← Latest papers
🤖 AI

AIR: Adaptive Interleaved Reasoning with Code in MLLMs

This paper introduces AIR, a framework that enhances Multimodal Large Language Models' ability to perform adaptive interleaved reasoning with code for complex numerical computation through a three-component solution involving cold-start data construction, dataset curation, and an adaptive tool-invocation strategy guided by group-constrained reinforcement learning, resulting in significant performance improvements on evaluation benchmarks.

Original authors: Cong Han, Xiaohan Lan, Haibo Qiu, Yujie Zhong

Published 2026-06-23
📖 4 min read☕ Coffee break read

Original authors: Cong Han, Xiaohan Lan, Haibo Qiu, Yujie Zhong

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very smart assistant who is great at looking at pictures and reading text, but sometimes gets stuck when a math problem requires heavy calculation. If you ask this assistant to solve a complex geometry problem involving volume, it might try to do the math in its "head" (the neural network) and make a mistake, just like a human might when trying to multiply large numbers without a calculator.

The paper introduces a new system called AIR (Adaptive Interleaved Reasoning with Code) that teaches this assistant a new superpower: knowing when to stop thinking and start using a tool.

Here is how AIR works, broken down into simple concepts:

1. The Core Idea: The "Human Calculator" Analogy

Think of the AI as a student taking a test.

  • Old Way: The student tries to solve every problem using only their brain. If the math is too hard, they guess or get it wrong.
  • AIR Way: The student learns that when a problem gets too tricky, they can raise their hand and ask for a calculator. They write down the numbers, hit the buttons, get the result, and then write the final answer.
  • The Twist: The AI doesn't just use a calculator for every question. It learns to be adaptive. It knows, "This question is easy, I'll do it in my head," and "This question is hard, I need to write some code to solve it."

2. The Training Process: A Two-Step Journey

The paper explains that you can't just tell a model to "use a calculator" and expect it to work immediately. It needs a specific training plan:

Step 1: The "Cold Start" (Learning the Basics)
Before the AI can learn to use tools on its own, it needs to see examples of how it's done. The researchers built a special dataset where they took hard math problems and manually showed the AI how to switch between "thinking" (text) and "calculating" (writing Python code).

  • Analogy: Imagine a teacher showing a student a few solved examples where the student uses a calculator for the hard parts. This gives the student a basic template to follow.

Step 2: Reinforcement Learning (The "Trial and Error" Phase)
Once the AI has the basics, it starts practicing on its own. This is where the magic happens. The researchers used a special scoring system (a reward function) to teach the AI when to use the tool.

  • The Problem: If the AI uses the calculator too much, it gets confused and the training falls apart (like a student who refuses to think for themselves). If it never uses it, it keeps making math errors.
  • The Solution: The researchers created a "Group-Constrained Reward." Imagine a coach watching a whole team of players. The coach doesn't just reward the player who scores; they reward the team for having the right balance of players using calculators.
    • If the AI uses the tool too often, it gets a lower score.
    • If it uses the tool just enough to get the right answer, it gets a high score.
    • This keeps the AI stable and prevents it from going crazy with tool usage.

3. The Result: Smarter and More Stable

The paper claims that after this training:

  • Accuracy: The AI got significantly better at math problems, especially the ones that required complex calculations. On average, its scores went up by about 6 points, and for the specific problems where it used the tool, it improved by nearly 10 points.
  • Reliability: The AI successfully used the tool more than 95% of the time when it decided to use it.
  • Stability: The "Group-Constrained" method prevented the AI from crashing or becoming unstable during training, a common problem when teaching AI to use tools.

Summary

In short, AIR is a method that teaches Multimodal Large Language Models (AI that sees and reads) to act like a human problem-solver: it thinks through a problem, realizes when the math is too hard, writes a quick computer script to solve the calculation, and then finishes the answer. The key innovation is teaching the AI to do this automatically and at the right time, without needing a human to tell it when to pick up the calculator.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →