Skip to content

IACM-RL: Intent-Aware Context Management and Reinforcement Learning for Complex Tool Calling under Dynamic Intent FluctuationIACM-RL: Intent-Aware Context Management and Reinforcement Learning for Complex Tool Invocation under Dynamic Intent Fluctuations

Paper Tracker· arXiv:2608.02110· Dingwei Zhu, Jiahan Li, Chengjun Pan, Yunxian Yang, Yunbin Zhao, Yunke Zhang, Zhonghang Lu, Zhuohui Sheng, Chenhao Huang, Jiahang Lin, Yajie Yang, Junlin Shang, Shichun Liu, Yuhui Wang, Honglin Guo, Junjie Ye, Xin Guo, Jiazheng Zhang, Ming Zhang, Shihan Dou, Zhiheng Xi, Tao Gui, Qi Zhang, Xipeng Qiu, Xuanjing Huang·Indexed by this site · 2026-10-04· Originally publishedTools

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

IACM-RL uses self-generated BeliefState for tool calling under intention fluctuations, Qwen3-8B total average 64.0 (Table 4).

Questions
In long-horizon tool calls, when users change tasks, chat idly, or give vague constraints, outdated constraints dilute attention, leading to intent deviation and infinite API loops. Existing methods mostly assume static and complete instructions.
Methods
IACM-RL uses DynamicIntent to synthesize 13 types of intent fluctuation trajectories; the policy self-generates BeliefState context blocks, uses stale flags to isolate overridden parameters, and then writes state tracking into parameters with hierarchical rewards and three auxiliary losses.
Experiments and results
On Qwen3-8B, overall average 64.0, OOD Cognitive 36.3, BFCL 63.3 (Table 4). OOD Outcome 81.2 is lower than RL-STA's 83.0. 1.7B overall average 54.2 (Table 12).
Limitations and future work
The authors note that all experiments use LLM-simulated text APIs, and whether the gains transfer to multimodal or non-tool agent scenarios remains open (Appendix F). Experiments cover Qwen3-8B and 1.7B Qwen, DynamicIntent's ID/OOD, BFCL-V3, and τ2-Bench.
Experimental setupQwen3-8B · DynamicIntent Benchmark、BFCL-V3 et al. · JGA、SCRR et al.
Evaluated models
Qwen3-8B
Benchmarks
DynamicIntent BenchmarkBFCL-V3τ2-Bench
Metrics
JGASCRRRIRDTCRISSRCognitiveBehavioralOutcomeBFCL Partial OverallAverage Reward
AI summaryThe IACM-RL framework uses a self-generated BeliefState context manager to actively track goal changes, and uses structured stale flags to isolate overridden parameters, optimizing the policy with hierarchical intent-driven rewards and three auxiliary losses. The authors also propose the DynamicIntent pipeline, covering 13 fine-grained intent fluctuation scenarios with five-dimensional diagnostic metrics. On DynamicIntent, BFCL-V3, and τ²-Bench, IACM-RL significantly outperforms baselines, reduces infinite API loops and stale context errors, and improves out-of-domain generalization.

The IACM-RL framework uses a self-generated BeliefState context manager to actively track goal changes, and uses structured stale flags to isolate overridden parameters, optimizing the policy with hierarchical intent-driven rewards and three auxiliary losses. The authors also propose the DynamicIntent pipeline, covering 13 fine-grained intent fluctuation scenarios with five-dimensional diagnostic metrics. On DynamicIntent, BFCL-V3, and τ²-Bench, IACM-RL significantly outperforms baselines, reduces infinite API loops and stale context errors, and improves out-of-domain generalization.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Dynamic intent noise dilutes attention, causing long-horizon tool calls to deviate from the goal and fall into infinite API loops.

    Under dynamic intent noise, long-horizon tool calls deviate from the goal because outdated constraints dilute attention, and fall into infinite API loops.

    • Scenario: The authors state that in real interactions, users often change tasks, insert irrelevant chit-chat, or give vague constraints, while existing training mostly assumes "perfect static instructions" and linear query evolution (Section 1).
    • Limitations: Long-context fine-tuning, implicit chain-of-thought, or context compression still require scanning lengthy raw history. The authors state that outdated constraints and interruptions dilute token-level attention, causing tokens for updated goals to have lower weights, breaking multi-tool data dependencies, and leading to intent deviation and infinite API loops (Section 1, Figure 6). The authors state that contextual belief management and external belief guidance are only fault-tolerant in simple tool scenarios and collapse under long-horizon, parallel multi-tool tasks.
    • Observation: This setting is formulated as a POMDP, where latent intent is only partially observable through noisy observations; imitation learning couples state tracking and action generation in a policy over raw history (Section 4.1).
    • Approach: Propose IACM-RL. DynamicIntent synthesizes 13 types of fine-grained fluctuation trajectories with five-dimensional diagnostic metrics; the BeliefState self-generated context manager uses structural stale flags to isolate overridden parameters; hierarchical intent rewards plus three auxiliary losses internalize state tracking into parameters (Abstract, Section 1).
  2. What related research exists?

    Related work covers intent drift tracking and long-horizon memory; this paper internalizes BeliefState into RL.

    Related work is organized by Section 2 into intent fluctuation tracking and long-horizon state management; comparison baselines are in Section 5.1 and Appendix C.3.

    Intent Fluctuation and Belief Management

    • Drift Detection: Wang et al. (2025) quantify deviation using temporal shifts; Arike et al. (2025) observe goal divergence as contextual signals accumulate; Dzeparoska et al. (2024) extract key metrics for drift detection.
    • Explicit Beliefs: Xu et al. (2026) extend dynamic tracking to explicit belief states to capture evidence changes; Saebo et al. (2026) examine how explicit value conflicts trigger asymmetric goal drift.
    • Internal Representations: Kang et al. (2026), Luo et al. (2026), and Sun et al. (2026) discuss that LLMs lack stable internal representations, thus requiring external belief guidance. The introduction states that Xu et al. (2026)'s contextual belief management and probing works like Luo et al. (2026) are only fault-tolerant in simple tool scenarios and collapse under long-horizon, parallel multi-tool tasks.

    Multi-turn Instability and State Management

    • Failure Modes: Chen et al. (2026), Laban et al. (2025), Liu et al. (2024), and Shi et al. (2023) discuss lost evidence, noise susceptibility, context inertia, and instruction degradation; Lin et al. (2026) and Ma et al. (2026) discuss cross-step error cascades.
    • Memory and Compression: Zhou et al. (2025) jointly optimize memory with reinforcement learning; Kang et al. (2026) refine prompts to filter noise; Chhikara et al. (2025) use an external memory layer to summarize key points across sessions. The authors state that unlike these methods, IACM-RL uses self-generated BeliefState to decouple state tracking from action generation and internalizes state management into parameters.

    Baselines and Benchmarks

    • Baseline Methods: The same Qwen3-8B is fine-tuned with DynamicIntent supervised fine-tuning, comparing Base (SFT only), PPO-noCM (PPO with full history), FIFO-k (k=5), Prompt-Comp (static summary instruction), LLMLingua (token-level compression with Qwen3-1.7B), ACON (GPT-5.4 iteratively compresses guidelines based on failure analysis), MEM1 (compression policy jointly trained with the agent), and RL-STA (injecting single-turn anchors in multi-turn RL).
    • Benchmarks: DynamicIntent (13 scenarios, ID/OOD, disjoint tool pools), BFCL-V3 (Partial Overall), and τ2-Bench (airline and retail).

    The authors position this paper as: beyond belief tracking and external memory, placing self-generated BeliefState directly into the RL optimization loop, rather than only scanning, truncating, or externally attaching history (Section 2).

  3. How does the paper address this problem?

    Self-generated BeliefState decouples state tracking from action generation, then internalizes it with hierarchical rewards and auxiliary losses.

    IACM-RL first writes a BeliefState block itself and then calls tools, using hierarchical rewards and three auxiliary losses to write state tracking into the parameters; on the data side, DynamicIntent provides 13 types of fluctuating trajectories and five-dimensional diagnostics.

    Problem Setting

    Multi-turn tool calling is formulated as a POMDP: the latent intent is only partially visible through noisy observations such as mid-course modifications, irrelevant chitchat, and vague constraints. A conventional policy conditions directly on the raw history, bundling tracking and action together. The authors state that in the failure cases of Figure 6, outdated constraints from drifted turns and injected noise dilute token-level attention, and the key tokens for updating the goal and the latest parameters receive low weights.

    Data Construction

    Five stages, no real backend (Figure 2).

    • Abstraction and dependency graph: English ToolBench and proprietary third-party and central-control APIs are normalized via UTAL; each trajectory self-samples a candidate subset. Multiple LLMs each cast two votes on whether a return can satisfy another tool's parameters (schema only, plus input examples); an edge is kept only if the two votes from the same account agree and the majority of accounts agree. Constraint-aware random walks yield Function Sequence Patterns.
    • Augmentation and filtering: Graph-level methods modify FSP, trajectory-level methods modify the dialogue, corresponding to Modification, Interruption, Clarification, Accumulation, Chaining (Table 1). Interruption-type only concatenates sub-trajectories when tool names are disjoint and the two tool groups have no dependency edges (Algorithm 2). Filtering checks schema consistency, task closure, and prompt length; overly long ones are truncated or rejected, overly short ones are removed.
    • Simulation and split: An LLM simulator generates user utterances, tool calls, mock returns conforming to the response schema, and summaries; real responses are cached if available. A golden map records expected dependencies and parameters. Multi-turn training has 5,639 trajectories, single-step 17,391 (Table 2). About 9.3% of multi-turn and 9.5% of single-step are mixed with pure-language clarification. ID test has 1,272 segments, OOD 1,278; the OOD tool pool has 244 tools and is disjoint from training (Table 20). The test set has 2,550 segments; about 18.7% are revised in place, 4.2% discarded (Appendix D.2).
    • Metrics: JGA checks whether names, parameter names, and parameter values match the golden standard; SCRR is the proportion of modification turns that reuse already-overwritten values; RIR is the proportion of repeated calls across turns; DTCR gives partial/high/full based on chain completion ratio; ISSR counts successful steering when the LLM review exceeds threshold τ. Evaluation JGA is turn-level strict matching, training JGA is call-level partial scoring, and the two are deliberately separated (Sections 3.3, 4.3).

    Context Manager

    Each turn first decodes a compact state block, then conditions on that block rather than the raw history to generate actions. BeliefState is bt=(Cslots, Gcurrent, Alast, Qpending, Isignal), i.e., confirmed parameters, current goal, last execution, pending clarification information, and deviation category (e.g., clarify, modify, interrupt). When parameters are overwritten, old values are retained and marked with a stale flag. Implemented as nine XML sub-blocks (Figure 7). Single-step renders once before generation; multi-turn updates after each user message and each tool execution, and re-injects the new block into the system prompt (Section 4.2).

    Hierarchical Rewards

    The total reward is Rtotal=α Rbelief+β Raction+γ Routcome+Rformat. R_belief supervises Cslots, R_action supervises Alast and Qpending, R_outcome supervises Gcurrent and Isignal. Multi-turn weights are α=1.0, β=1.0, γ=0.5, and the total score is truncated to [-4.0, 8.0]. ACR and ISSR are scored by GPT-5.4, with scores between -1 and 1; training ISSR gives +2.0×score when the score is greater than 0.3. Consecutive identical calls short-circuit to -2.0 and return early. Single-step rewards are divided into four branches based on whether tools are called and problem type, without loop, chaining, or switching detection; Stage 1 disables SCRR (Section 4.3, Table 3).

    Optimization

    Uses PPO with GAE, removing the cross-entropy imitation loss. L_cal weights the log probabilities of response tokens by tool call correctness; L_ext optimizes CM block tokens with detached-trajectory advantages; L_dist uses forward KL to distill a teacher with CM into a student without CM, with the teacher distribution detached. Weights are 0.02, 0.01, 0.01. Stage 1 trains on 17,391 single-turn slices, and a 600-step checkpoint seeds Stage 2; Stage 2 trains on 5,639 trajectories of up to 12 turns for another 100 to 300 steps (Appendix C). Inference is greedy, temperature 0, no-think.

  4. What experiments did the paper conduct?

    IACM-RL on Qwen3-8B has an overall average of 64.0; columns like OOD Outcome are not all the highest.

    Experimental Setup

    • Models: The main experiment uses Qwen3-8B SFT on DynamicIntent; Table 12 repeats the main experiment with 1.7B Qwen, with the same components and two-stage training.
    • Benchmarks and data: DynamicIntent ID 1,272 segments, OOD 1,278, 13 scenarios, OOD tool pool 244 and disjoint. BFCL-V3 is the unweighted average of Live, Non-Live, Multi-turn accuracy (Partial Overall). τ2-Bench reports Average Reward for airline and retail. Training mixes DynamicIntent, BFCL-V3, τ2-Bench, and pure-language queries; official evaluation instances are excluded, and deduplication is performed at the tool schema and task instance levels (Appendix C.2, Table 17).
    • Baselines: Base, PPO-noCM, FIFO-k (k=5), Prompt-Comp, LLMLingua, ACON, MEM1, RL-STA; all except Base use the same PPO pipeline (Section 5.1).
    • Metrics: Cognitive=(JGA−SCRR)/2, Behavioral=100−RIR, Outcome=(ISSR+DTCR)/2. Appendix B.1 states that Avg is the unweighted mean of 9 columns. Adversarial experiments use tool call accuracy (Table 8).
    • Review: ACR, ISSR use GPT-5.4, scores between -1 and 1; training ISSR threshold is 0.3. JGA, SCRR, RIR, DTCR evaluations are rule-based (Sections 3.3, 4.3).
    • Decoding: Greedy, temperature 0, no-think. The main result table does not state the number of repetitions; Appendix B.1 additionally uses 3 random seeds for IACM-RL. Optimizer and length details are in Appendix C.1.

    Main Results

    According to Table 4 (Qwen3-8B). ACON omitted (Avg 61.6).

    Swipe horizontally to read the table

    MethodID CogOOD CogBFCLτ2 AirAvg
    Base34.833.063.128.061.2
    PPO-noCM34.832.462.232.061.5
    FIFO-k33.331.458.930.061.0
    Prompt-Comp32.234.061.630.060.6
    LLMLingua29.631.262.228.061.5
    MEM136.434.761.938.062.6
    RL-STA36.433.863.228.062.0
    IACM-RL36.536.363.338.064.0
    • The authors state that IACM-RL has the highest overall average and outperforms the baselines in the table on ID/OOD Cognitive and BFCL; it ties with MEM1 on τ2 airline. The authors state that compression baselines lag on Cognitive because history truncation loses the state needed for tracking goals.
    • Not the highest in every column: OOD Outcome is 81.2, lower than RL-STA's 83.0 and MEM1's 82.7; τ2 retail is 34.2, lower than LLMLingua's 38.6 and ACON's 35.1 (all Table 4). The authors state that airline leads and retail remains competitive.
    • The abstract claims reduction of infinite loops and outdated-context errors. Table 4's Behavioral ranges from 98.3 to 99.9; on ID, Base is 99.4 and IACM-RL is 99.9. The authors state that OOD Cognitive is close to its ID, while Base and RL-STA's OOD Cognitive drop to 33.0 and 33.8, respectively.

    Length, Adversarial, and Scenario Families

    • Length: Table 6 compares IACM-RL and PPO-noCM on τ2-Bench by dialogue token length, and the text states the numbers are rewards. Short dialogues (≤5k) go from 45.8 to 56.0; long dialogues (11k–16k) from 8.6 to 23.5; very long (>16k) from 0.0 to 34.8. The authors state that the compact CM block maintains state tracking where raw history scanning fails.
    • Adversarial: Table 8 inserts distractions into 500 sampled trajectories, with tool call accuracy as the metric. L0 is 81.8% vs. 83.2%; L3 (3 fake tasks plus 5 chitchat) is 25.6% vs. 36.8%, a difference of 11.2 percentage points. The authors state that CM fixes Gcurrent and Cslots in the system prompt, thereby blocking mid-sequence noise.
    • Scenario families: Table 7 uses each family's main metric. On OOD, Modification's JGA goes from 75.0 to 79.7, Clarification from 66.7 to 70.9. OOD Accumulation's DTCR goes from 65.5 to 64.9, and OOD Chaining is 66.1 on both sides. The authors state that resistance is strongest in Modification and Clarification, and state that this is consistent with Cslots' stale flag reducing SCRR in modification turns; the main metric for Modification in that table is JGA, and SCRR is not given.

    Backbone Scale and Inference-Time CM

    • 1.7B: In Table 12, IACM-RL has an overall average of 54.2, MEM1 53.0, FIFO-k 47.0. The authors state it leads on ID Behavioral, ID Outcome, BFCL, and both τ2 domains; airline ties with MEM1 at 34.0. OOD Cognitive is 25.8, lower than MEM1's 27.9; OOD Outcome is 74.3, lower than PPO-noCM's 75.0. The authors state that the potential of explicit context management depends on a certain amount of reasoning capacity.
    • Inference-time CM without RL: Table 13 compares with and without CM injection on τ2-Bench airline, Qwen3-8B, no RL. Short dialogues (<5K characters) go from 0.615 to 0.667; long dialogues (15K–30K) from 0.086 to 0.397; above 30K, no CM is 0.000 and with CM is 0.202. The authors state that the gain increases as dialogues get longer.

    Other Ablations and Analyses

    • Removing L_ext: OOD Cognitive goes from 36.3 to 32.7; removing L_dist to 31.4; removing all auxiliary losses, Avg from 64.0 to 61.5. When L_ext is removed, ID Cognitive is 37.0, higher than the full model's 36.5 (Table 5).
    • Removing R_belief: BFCL from 63.3 to 47.5, Avg from 64.0 to 57.4. With only the format penalty, BFCL is 28.1 and τ2 airline is 65.0, higher than the full model's 38.0 (Table 9).
    • CM updates: Accumulate's Avg 64.0, Last-only 62.4, First-only 60.1; First-only's retail is 8.8, and ID Cognitive is 38.7, higher than Accumulate's 36.5 (Table 10).
    • SFT, Qwen3-8B: LLM simulation and real MCP have Avg 60.2 and 60.1. The authors state that Cog and Beh are nearly identical; on airline, real MCP is 20.0 and simulation 17.0, on retail simulation is 18.4 and real MCP 14.9 (Table 11).
    • Three seeds have Avg 64.0, 63.5, 63.3, mean 63.6±0.4; OOD Cognitive is 34.3±2.0, retail 33.9±3.1. The authors state variance is small (Table 14). When auxiliary loss weights are simultaneously 0.25×, 0.5×, 2.0×, Avg is 62.1, 62.7, 62.6, and the default 1.0× is 64.0 (Table 15).
  5. What are some points that can be further explored?

    The authors only list as an open question whether text API simulation transfers to multimodal or non-tool scenarios.

    Limitations and future directions noted by the authors

    • The experiments all use text-based API tools simulated by LLMs; the authors state that whether the observed gains transfer to multimodal or non-tool agent settings remains an open question (Appendix F).

    The paper's Limitations section only lists this one item. The conclusion does not list additional future experimental plans.

    Experimental coverage

    • Main results and ablations are done on Qwen3-8B; Table 12 repeats the main experiment on 1.7B Qwen using the same two-stage pipeline.
    • Evaluations include DynamicIntent's ID and OOD (OOD has 244 disjoint tools), BFCL-V3's Partial Overall, and τ2-Bench's airline and retail (Section 5.1).
    • Baselines are Base and seven context management strategies; also compared are auxiliary loss, reward layer, CM update strategy, and loss weight. Appendix B.1 reports 3 random seeds for IACM-RL. The main results table does not state the number of repetitions for each baseline.
    • Tool returns for main training are LLM-simulated; Table 11 compares LLM-simulated vs real MCP on SFT, Qwen3-8B. Each test set item is labeled by one person and reviewed by another, with disagreements resolved by an adjudicator; about 18.7% are revised in place and 4.2% discarded (Appendix D.2). The paper does not report inter-annotator agreement values.
    • Main experiment inference is greedy, temperature 0, no-think; Table 13 additionally compares with and without injecting CM blocks on Qwen3-8B without RL.
  6. Summarize the main content of the paper

    IACM-RL performs dynamic tool calling with self-generated context and intent rewards; Qwen3-8B overall average 64.0.

    IACM-RL is a tool-calling training framework for dynamic intent fluctuations, accompanied by the DynamicIntent data and five-dimensional diagnostics.

    • Problem: Users change parameters, interrupt mid-course, add vague clarifications, or append parallel tasks. The authors state that after outdated constraints remain in history, attention to the updated goal is diluted, causing the agent to deviate from the current goal and repeatedly call APIs. Compression or external memory still relies on scanning or truncating the original context.
    • Method: A dependency graph samples tool chains, then injects 13 types of fluctuations, with consistency, plausibility, and length filtering; tests are split into ID/OOD by tool source. The policy first writes a BeliefState block, with overwritten slots marked stale, then generates actions. Two-stage PPO first learns single-step calls, then on multi-turn uses three-layer rewards (α=1.0, β=1.0, γ=0.5) and L_cal, L_ext, L_dist to distill tracking into a policy that can operate without explicit blocks.
    • Results: On Qwen3-8B, overall average 64.0, OOD Cognitive 36.3, close to ID's 36.5, BFCL 63.3, τ2 airline 38.0, retail 34.2 (Table 4). OOD Outcome 81.2, lower than RL-STA's 83.0. On very long τ2 dialogues, the text's stated reward goes from PPO-noCM's 0.0 to IACM-RL's 34.8 (Table 6). Under L3 distraction, tool call accuracy is 36.8%, PPO-noCM 25.6% (Table 8, 500 trajectories). On 1.7B, overall average 54.2, but OOD Cognitive 25.8 is lower than MEM1's 27.9 (Table 12).
    • Authors' conclusion: The gains from auxiliary losses and CM do not overlap, and they provide a route for maintaining long-range tool calling under noisy, evolving intents. Transfer to multimodal and non-tool settings remains an open problem (Appendix F).

Related papers

Show 3 more papers
Read originalarxiv.org