Paper deep dive
LoongReflect: Boosting Long-Horizon Reflection in Search Agents via Global Perspective Distillation
Zhixin Zhang, Xinke Jiang, Zhibang Yang, Weixuan Xu, Guohong Qiu, Xu Chu, Junfeng Zhao, Yasha Wang
Intelligence
Status: not_run | Model: - | Prompt: - | Confidence: 0%
Entities (0)
Relation Signals (0)
No relation signals yet.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Large language model agents increasingly rely on long-horizon reasoning to solve complex tasks involving planning, tool use, and memory. A critical capability in such settings is reflection: assessing trajectory progress, identifying missing evidence and unreliable intermediate states, and deciding whether to continue, revise, or abandon the current branch. Learning effective reflection, however, is challenging because reflection is performed locally within the current branch, whereas its utility can only be determined by its contribution to the final trajectory outcome. This local-global mismatch makes outcome-based reinforcement learning provide only local, sparse and delayed supervision for reflective decisions. To solve these, we propose LoongReflect, a training framework that formulates reflection as a memory-control policy. The agent operates over a reversible trajectory tree using explicit reflect and backtrack actions. Reflection consolidates verified facts, missing evidence, and branch-specific risks into working memory, while backtracking removes an unreliable branch from the active context and preserves a concise corrective lesson. To learn this policy, LoongReflect combines two complementary signals through a look-ahead, extragradient-style coordination mechanism. A fast channel distills globally informed reflective behavior from a privileged teacher, with supervision restricted to reflection and backtracking tokens. A slow channel optimizes complete trajectories using outcome-based GRPO, aligning local control decisions with final task success. Experiments on multi-hop retrieval-augmented generation and mathematical reasoning benchmarks demonstrate consistent improvements over outcome-only reinforcement learning and self-distillation baselines.
Tags
Links
- Source: https://arxiv.org/abs/2608.11967v1
- Canonical: https://arxiv.org/abs/2608.11967v1
Trouble viewing inline? Open PDF directly ā
Full Text
73,571 characters extracted from source content.
Expand or collapse full text
LoongReflect: Boosting Long-Horizon Reflection in Search Agents via Global Perspective Distillation Zhixin Zhang Xinke Jiang Zhibang Yang Weixuan Xu Guohong Qiu Xu Chu Junfeng Zhao Yasha Wang Abstract Large language model agents increasingly rely on long-horizon reasoning to solve complex tasks involving planning, tool use, and memory. A critical capability in such settings is reflection: assessing trajectory progress, identifying missing evidence and unreliable intermediate states, and deciding whether to continue, revise, or abandon the current branch. Learning effective reflection, however, is challenging because reflection is performed locally within the current branch, whereas its utility can only be determined by its contribution to the final trajectory outcome. This localāglobal mismatch makes outcome-based reinforcement learning provide only local, sparse and delayed supervision for reflective decisions. To solve these, we propose LoongReflect, a training framework that formulates reflection as a memory-control policy. The agent operates over a reversible trajectory tree using explicit <reflect> and <backtrack> actions. Reflection consolidates verified facts, missing evidence, and branch-specific risks into working memory, while backtracking removes an unreliable branch from the active context and preserves a concise corrective lesson. To learn this policy, LoongReflect combines two complementary signals through a look-ahead, extragradient-style coordination mechanism. A fast channel distills globally informed reflective behavior from a privileged teacher, with supervision restricted to reflection and backtracking tokens. A slow channel optimizes complete trajectories using outcome-based GRPO, aligning local control decisions with final task success. Experiments on multi-hop retrieval-augmented generation and mathematical reasoning benchmarks demonstrate consistent improvements over outcome-only reinforcement learning and self-distillation baselines. 1 Introduction Large language models (LLMs) have emerged as the core policy components of agents that reason, retrieve information, and maintain intermediate memory (39; 29; 2; 16). As these systems are increasingly deployed on open-ended, multi-step tasks, long-horizon reasoning becomes critical. In such settings, an agent must do more than generate the next action: it must also continually assess whether its current trajectory is making progress, whether the available evidence is sufficient, and whether an earlier branch should be revised or abandoned, which is referred to as reflection. Figure 1: Reflective decisions are made from branch-local context, whereas their value is determined by their contribution to the final trajectory outcome. This localāglobal mismatch leaves outcome-based learning with local, sparse and delayed supervision. Reflection is not merely additional reasoning text; it is a control process over the trajectory itself. An effective reflection step should consolidate verified facts, identify missing evidence, diagnose branch-specific risks, and decide whether the current branch should be continued, revised, or abandoned (15; 16; 40). This capability is particularly important over long horizons, where localized errorsāsuch as irrelevant retrievals, spurious entity associations, or stale memory updatesācan enter the active context and influence many subsequent decisions. Without an explicit mechanism for isolating and correcting such errors, state contamination compounds as the trajectory grows, becoming a major obstacle to reliable agent behavior (44; 15; 16; 40). Despite its importance, learning effective reflection faces two fundamental challenges, as illustrated in Figure 1. ā¶ (C1) Learning-signal dilemma. The value of a reflective decision is mediated by many subsequent actions and is revealed only through the final task outcome. Outcome-based reinforcement learning therefore provides sparse, delayed, and weakly attributable supervision for reflection. Yet assigning reflection an explicit intermediate reward is equally problematic and prone to reward hacking, as it may encourage excessive or superficial reflection without improving task success. ā· (C2) Localāglobal perspective gap. Reflection is performed from the context of the current branch, whereas its true value depends on how that branch contributes to the complete trajectory. A local reflector cannot directly observe whether continuing, revising, or abandoning the branch will ultimately improve the outcome. Together, these challenges create a fundamental mismatch: effective reflection must be learned from dense local guidance, yet evaluated and calibrated from a global trajectory perspective. Existing approaches address only part of this problem. ā¶ One line of work improves intermediate judgment through step-level verification or action evaluation (24; 33; 26; 25; 11). ā· Another provides denser learning signals through privileged feedback or error-localized supervision (1; 41; 42; 23; 14). However, these approaches either treat reflection primarily as local judgment or rely on misaligned supervision signals that are not fully consistent with long-horizon outcomes. They therefore fall short of learning reflection as trajectory-level control for long-horizon agents. To address C1&C2, we propose LoongReflect, a training framework that formulates reflection as a memory-control policy, designed for long-horizon setting. Rather than treating reflection as unconstrained verbal feedback, LoongReflectturns it into explicit, structured decisions over what the agent should retain, revise, or discard from its reasoning memory. Specifically, the agent operates over a reversible trajectory tree with an explicit active path and two control actions: <reflect> and <backtrack>. The <reflect> action consolidates verified facts, missing evidence, and branch-specific risks into working memory. When the current branch is deemed unreliable, the <backtrack> action removes its contaminated suffix from the active context, restores a validated state, and preserves a concise corrective lesson for subsequent decisions. We train this memory-control policy through two complementary learning channels designed to resolve the two challenges jointly. ā¶ A fast channel distills reflective behavior from a privileged teacher, with supervision restricted to reflection and backtracking tokens. This token-level supervision provides the dense learning signal missing from outcome-based reinforcement learning, thereby addressing C1. Moreover, because the teacher observes the trajectory tree and terminal outcome, it can evaluate a local branch from a global perspective, thereby addressing C2. To prevent answer imitation, the teacher produces answer-masked feedback that focuses exclusively on state diagnosis, missing evidence, branch risks, and control decisions. ā· A slow channel applies outcome-based GRPO to complete trajectories, ensuring that the distilled reflective behavior remains aligned with final task success. We coordinate the two channels through a look-ahead, extragradient-style update, in which the slow objective evaluates and calibrates the update direction proposed by the fast channel before the combined update is committed. Our contributions are as follows: ⢠We formulate reflection as a memory-control policy for long-horizon agents and instantiate it through explicit <reflect> and <backtrack> actions over a reversible trajectory tree. ⢠We introduce a two-channel learning framework that combines answer-masked teacher distillation for dense, globally informed reflective supervision with outcome-based GRPO for trajectory-level alignment, coordinated through a look-ahead, extragradient-style update. ⢠LoongReflect consistently outperforms outcome-only RL and self-distillation baselines on multi-hop RAG and mathematical benchmarks, demonstrating the contributions of structured reflection, reversible backtracking, and two-channel optimization. 2 Related Work Long-Horizon Agents Large language models increasingly serve as the policy backbone of agents that interleave reasoning, retrieval, and tool use over extended interactions (39; 29; 2). Recent studies apply reinforcement learning to optimize long-horizon interaction and search policies directly from task outcomes (3; 9). Memory-oriented approaches further support extended execution by compressing interaction histories or explicitly manipulating intermediate states (15; 40). For example, MEM1 jointly optimizes reasoning and compact memory, while AgenticRAG-R1 introduces stack-based memory with planning, summarization, and backtracking actions (43; 16). However, these methods largely rely on task-level objectives or generic action-quality signals, offering limited supervision for identifying which local decision corrupted the execution state or whether a recovery action was effective. A complementary line of work provides denser corrective signals through on-policy distillation: OPSD distills a privileged self-teacher on trajectories generated by the current policy, whereas ROSD localizes supervision to the first erroneous span to preserve valid prefixes (41; 42). Nevertheless, these methods are primarily designed for linear reasoning traces and provide limited support for reversible branch-level recovery or for aligning local corrections with delayed task outcomes. Self-Reflection and Self-Correction Self-reflection and self-correction have been widely studied as inference-time mechanisms for iterative diagnosis and revision. Self-Refine repeatedly critiques and improves an initial response, while Reflexion stores verbal feedback from previous attempts as episodic experience (27; 30). External tools can further ground reflective feedback and improve correction reliability (10). Nevertheless, intrinsic self-correction remains unreliable when models must evaluate their own generations without verifiable feedback (19). Recent learning-based methods therefore introduce explicit supervision for reflection and intermediate decisions. RISE jointly trains solution generation and self-verification on current-policy outputs (26), while Agentic Critical Training learns to distinguish superior actions from suboptimal alternatives (25). Process-supervised approaches further estimate intermediate action quality through step-level evaluation or automatically constructed reward models (35; 6). Although these methods provide finer-grained supervision than terminal rewards, they mainly target verification or action selection, with limited support for explicit state recovery and aligning local reflection with delayed long-horizon outcomes. 3 Method Figure 2: Overview of the LoongReflect framework. In this section, we present LoongReflect, as illustrated in Figure 2. It consists of two components: ā¶ a memory-control framework that supports structured reflection through a reversible trajectory tree and explicit reflection actions; and ā· a two-channel optimization framework that combines dense local distillation with outcome-based global correction through look-ahead updates. Problem Formulation Given a task x, LoongReflectmodels a long-horizon agent as both an execution policy and a memory-control policy. In addition to reasoning, retrieval, and answer generation, the agent must determine which information accumulated during execution should be retained, revised, or discarded. We therefore equip the agent with a reversible trajectory state that can be explicitly modified through reflection and backtracking. At step t, the agent state is defined as t=(x,t,Pt,t),z_t\;=\; (x,\;T_t,\;P_t,\;m_t ), (1) where tT_t denotes the accumulated trajectory tree, PtP_t the active execution path, and tm_t the working memory compressed from that path. Although the agent executes actions sequentially along PtP_t, its complete interaction history is not necessarily linear. When the agent backtracks to an earlier state and resumes execution, the newly generated suffix forms an alternative branch, while the abandoned suffix remains in tT_t as an inactive branch. Repeated recovery therefore naturally induces a tree structure, with each root-to-node path representing a distinct execution branch. Only the active path PtP_t and its compressed memory tm_t are exposed to subsequent generation. Inactive branches are excluded from the active context to prevent unreliable states from influencing future decisions, but remain in tT_t for error diagnosis and reflective supervision. This separation enables the agent to recover from a corrupted branch without discarding the information needed to learn from it. Conditioned on tz_t, the agent selects actions from both execution and control spaces: atā¼Ļ(ā ā£t),atāexecāŖctrl,a_t\; \; _ Īø (Ā· _t ), a_t _exec _ctrl, (2) where execA_exec contains reasoning, tool-use, and answer actions, while ctrlA_ctrl contains reflection and backtracking actions. Execution actions advance task completion, whereas control actions assess and regulate the validity of the active state. The overall learning objective is to maximize the terminal task reward: maxĻā¼Ļ(ā ā£x)[R(Ļ)], _ Īø\;\;E_Ļ _ Īø(Ā· x) [R(Ļ) ], (3) where Rā”(Ļ)R(Ļ) is determined by the final outcome of trajectory Ļ. This objective alone, however, provides only sparse trajectory-level feedback for reflection decisions made at intermediate states. We therefore introduce a structured memory-control mechanism together with a two-channel optimization procedure, as described in the following sections. Reflection as Memory Control To support reflection over intermediate states, LoongReflectrepresents agent memory as a reversible trajectory tree. At step t, the execution state consists of a trajectory tree t=(t,ā°t)T_t=(V_t,E_t), an active path PtP_t, compressed memory tm_t, and archived branches ā¬tB_t. The LLM context is serialized as ct=Serializeā”(x,Pt,t).c_t=Serialize (x,\,P_t,\,m_t ). (4) Thus, the model accesses only the task, active path, and compressed memory, while tT_t and ā¬tB_t remain internal states for future diagnosis and recovery. This decouples current decision making from historical branches. Beyond task-solving actions, the agent may trigger reflection controls: atctrlāctrl=<reflect>,<backtrack>.a_t^ctrl _ctrl=\\, <reflect>,\; <backtrack>\,\. (5) These actions form the memory-control mechanism: ⢠<reflect> diagnoses the active state by summarizing evidence, identifying missing information or faulty assumptions, and proposing the next control decision. ⢠<backtrack> executes recovery when reflection determines that the current state is unreliable, rolling the active trajectory back to a trustworthy prefix and removing Concretely, <reflect> produces a structured summary. t _t =(etver,qtrisk,jtret,dtctrl), = (\,e_t^ver,\;q_t^risk,\;j_t^ret,\;d_t^ctrl\, ), (6) dtctrl d_t^ctrl ācontinue,backtrack. ā\\,continue,\;backtrack\,\. where etvere_t^ver, qtriskq_t^risk, jtretj_t^ret, and dtctrld_t^ctrl denote evidence, risk, return point, and control intent, respectively. The control intent determines whether to continue along the active path or invoke <backtrack> for recovery, making reflection a state-control diagnosis rather than a generic critique. When reliable, the active path grows forward; otherwise, the system restores a reliable prefix and performs the transition Pt+1=Pjāuj:t,ā¬t+1=ā¬tāŖPj+1:t,P_t+1=P_j u_j:t, _t+1=B_tāŖ\\,P_j+1:t\,\, (7) where PjP_j is the recovered active prefix, Pj+1:tP_j+1:t is the invalidated suffix removed from the active context, and uj:tu_j:t is a compact corrective update distilled from the current reflection, such as the decisive contradiction, the falsified assumption, or the constraint that the next attempt must satisfy. Two-Channel Optimization for Reflection Learning Fast Local Supervision. To provide dense supervision for reflection learning, LoongReflectintroduces a fast channel over reflection control tokens. At step t, the student generates an active-state prefix with context ct=(x,Pt,t)c_t=(x,P_t,m_t). A teacher then constructs an answer-masked structured control label from the execution history: t=āĻā(x,ā¤t,Pt,t),h_t=H_Ļ (x,\,T_⤠t,\,P_t,\,m_t ), (8) where ā¤tT_⤠t includes both the current active path and archived historical branches, and āĻH_Ļ denotes a privileged hint constructor implemented by either an auxiliary LLM or a rule-based feedback module. Its output shares the same schema as the reflect summary, t=(etver,qtrisk,jtret,dtctrl),h_t= (\,e_t^ver,\;q_t^risk,\;j_t^ret,\;d_t^ctrl\, ), (9) but is constructed from privileged access to the global execution record while masking the final answer, so the fast channel supervises local diagnosis and recovery rather than answer generation. The student and teacher then evaluate the same continuation. Let yt,ky_t,k denote the k-th generated token at step t. We define: āt,k _t,k =logā”ĻĪøā(yt,kā£ct,yt,<k), = _Īø (y_t,k c_t,\,y_t,<k ), (10) āĀÆt,k _t,k =logā”qĪøĀÆā(yt,kā£ct,t,yt,<k). = q_ Īø (y_t,k c_t,\,h_t,\,y_t,<k ). where qĪøĀÆq_ Īø is an EMA teacher of the policy. The teacher and student share the same on-policy prefix and continuation; the only additional information available to the teacher is the structured hint th_t. Since the fast channel supervises only reflection-related spans, we define the token mask mt,kref=[yt,kāSpan(<reflect>,<backtrack>)],m_t,k^ref=I\; [\,y_t,k ( <reflect>, <backtrack>)\, ], with normalization factor Z=āt,kmt,krefZ= _t,km_t,k^ref. Based on the teacherāstudent log-probability gap Ī“t,k=āt,kāāĀÆt,k _t,k= _t,k- _t,k, we optimize a masked reverse-KL objective (a k3-style unbiased estimator) restricted to the reflection span: āfast=1Zāāt,kmt,krefāminā”(expā”(āĪ“t,k)ā1+Ī“t,k,c),L_fast= 1Z _t,km_t,k^ref\, \! ( (- _t,k)-1+ _t,k,\;c ), (11) where the clipping constant c suppresses extreme token-ratio estimates. This objective is applied only to <reflect> and <backtrack> tokens, providing dense local supervision for state diagnosis and recovery decisions. Slow Global Optimization. To calibrate the global utility of reflection, LoongReflectintroduces a slow channel that optimizes reflection decisions based on terminal trajectory outcomes. Unlike the fast channel, which supervises local state diagnosis, the slow channel evaluates whether these decisions improve final task success. Specifically, for each task x, we sample complete trajectories Ļ1,Ļ2,ā¦,ĻGā¼ĻĪø(ā ā£x) _1, _2,ā¦, _G _Īø(Ā· x) with terminal rewards R1,R2,ā¦,RGR_1,R_2,ā¦,R_G, where RiR_i is a task-level reward returned by the environment or an answer verifier. The slow channel thus evaluates reflection by trajectory-level success rather than the plausibility of individual control decisions. Given the trajectory group, we define the group-relative advantage as A^i=(Riāmeang(Rg))/stdg(Rg). A_i= (R_i-mean_g(R_g) )/std_g(R_g). This normalizes rewards within the sampled group and assigns credit based on relative trajectory quality. To ensure clear credit assignment, the slow objective is applied only to policy-generated tokens in the final active execution. Let ξi _i denote the policy token sequence of trajectory Ļi _i, including execution and reflection control tokens (<reflect> and <backtrack>), while excluding tool outputs, external observations, and controller updates. We then define the token ratio with respect to the old policy as Ļi,kā(Īø)=ĻĪøā(yi,kā£ci,k)Ļoldā(yi,kā£ci,k), _i,k(Īø)= _Īø(y_i,k c_i,k) _old(y_i,k c_i,k), (12) where ci,kc_i,k denotes the conditional prefix for the k-th token in trajectory Ļi _i. Let ĻĀÆi,kā(Īø)=clipā”(Ļi,kā(Īø),1āε,1+ε) Ļ_i,k(Īø)=clip( _i,k(Īø),1- ,1+ ). The slow channel is optimized by āslowā(Īø)= _slow(Īø)= ā1Gāi=1G1|ξi|ākāξiminĻi,k(Īø)A^i,ĻĀÆi,k(Īø)A^i - 1G _i=1^G 1| _i| _kā _i \! \ _i,k(Īø) A_i, Ļ_i,k(Īø) A_i \ +βDKL(ĻĪøā„Ļref). +β\,D_KL ( _Īø\,\|\, _ref ). Since A^i A_i is derived from terminal outcomes, slow channel rewards reflection only when it improves overall performance. Look-Ahead Coordination. The fast and slow channels provide local and global signals, but their update directions may conflict. LoongReflectintroduces look-ahead coordination, where slow channel calibrates fast update before optimization. Given Īø, we obtain a provisional fast policy Īø~=fastKā(Īø) Īø=U_fast^K(Īø) by applying K inner fast-channel updates estimated direction: gf=(ĪøāĪø~)/α,g_f=(Īø- Īø)/α, (13) where α is accumulated inner step size. We then evaluate trajectories under Īø~ Īø to derive slow-channel calibration direction gs=āĪø~āslowā(Īø~).g_s= _ Īø\,L_slow( Īø). (14) Here, gsg_s identifies fast-policy updates that improve final outcomes, while gfg_f represents local reflection supervision. If gfg_f and gsg_s conflict, we remove the opposing component of gfg_f along gsg_s, yielding the calibrated fast direction gfLA=gfāāØgf,gsā©āgsā22āgs,āØgf,gsā©<0,gf,otherwise.g_f^LA= casesg_f- g_f,\,g_s \|g_s\|_2^2\,g_s,& g_f,\,g_s <0,\\[8.0pt] g_f,&otherwise. cases (15) This operation preserves fast updates aligned with the global objective while removing only conflicting components. Thus, look-ahead coordination calibrates rather than weakens the fast signal. After calibration, we return to the original parameters Īø and apply the fused update Īø+=ĪøāĪ·sāgsāĪ·fāgfLA,Īø^+=Īø- _s\,g_s- _f\,g_f^LA, (16) where Ī·s _s and Ī·f _f denote the outer-step sizes for the slow and calibrated fast directions. The fast channel learns local reflection control, the slow channel provides global calibration, and look-ahead coordination aligns them before optimization. 4 Experiments Method In-Domain F1 (%) Out-of-Domain F1 (%) Average F1 (%) Paradigm Approach 2Wiki HotpotQA Bamboogle FRAMES MuSiQue NQ TriviaQA Avg. Qwen2.5-3B No RAG Base 23.98 24.08 9.45 8.01 9.70 14.27 38.84 18.33 CoT 18.90 23.82 20.80 7.16 10.47 16.53 39.62 19.61 Naive RAG FS-RAG 15.47 25.85 10.48 10.42 7.64 19.84 45.38 19.30 FL-RAG 16.80 26.78 11.05 9.19 7.29 21.93 48.50 20.22 Agentic RAG ReAct 25.09 34.37 24.86 10.53 13.92 27.19 46.04 26.00 IRCoT 15.89 24.50 25.27 6.79 12.43 27.86 49.19 23.13 TCRAG 28.47 21.94 17.59 7.69 8.99 20.74 50.46 22.27 ReSearch 27.23 33.96 15.09 10.00 9.47 34.61 53.93 26.33 RL-based Search-R1 29.90 37.24 29.90 10.76 13.53 34.73 55.08 30.16 AEPO 23.01 28.71 22.09 12.26 11.70 26.76 47.78 24.62 ARPO 29.55 36.48 27.32 13.49 13.38 33.29 53.66 29.60 Mem1 18.06 20.15 5.19 4.99 4.47 19.18 33.09 15.02 AgenticRAG-R1 32.92 44.00 31.48 16.23 16.48 37.15 56.62 33.55 LoongReflect 48.01 56.17 35.25 23.51 31.02 55.37 73.72 46.15 Qwen2.5-7B No RAG Base 25.41 26.63 17.86 12.52 12.15 19.72 49.08 23.34 CoT 23.55 29.10 37.56 17.60 14.35 22.47 49.33 27.71 Naive RAG FS-RAG 17.71 29.21 16.86 12.52 10.74 16.82 35.02 19.84 FL-RAG 19.78 34.42 24.10 12.10 12.46 19.72 42.66 23.61 Agentic RAG ReAct 27.51 42.81 27.63 15.29 19.34 30.01 54.55 31.02 IRCoT 36.45 26.29 21.90 6.78 8.39 19.63 49.43 24.12 TCRAG 29.70 40.83 25.13 16.46 17.56 29.01 54.78 30.50 ReSearch 30.03 30.39 30.42 15.61 12.58 23.69 48.25 27.28 RL-based Search-R1 35.03 38.89 42.04 18.01 19.08 29.59 55.91 34.08 AEPO 19.88 13.85 13.24 7.24 5.85 9.93 17.53 12.50 ARPO 30.71 25.20 32.94 12.18 12.71 17.80 40.16 24.53 Mem1 25.29 29.98 36.50 14.15 14.13 26.38 51.04 28.21 AgenticRAG-R1 38.34 45.15 49.21 19.44 22.01 23.60 58.45 36.60 LoongReflect 54.44 53.27 53.89 23.17 25.81 58.98 74.91 49.21 Table 1: Performance comparison (F1, %) on multi-hop and open-domain QA benchmarks across no-RAG, naive-RAG, agentic-RAG, and RL-based paradigms using Qwen2.5-3B and 7B. 2Wiki and HotpotQA are in-domain; Others are out-of-domain. We evaluate LoongReflect to determine whether globally supervised memory control improves long-horizon reflection to answer the four research questions: ⢠RQ1: Does LoongReflect outperform SOTA baselines on both in and out-of-domain setting? ⢠RQ2: Does the learned reflection policy transfer beyond retrieval to mathematical reasoning? ⢠RQ3: How much do supervised fine-tuning and two-channel reinforcement learning each contribute? ⢠RQ4: Which memory-control and optimization components are responsible for the gains, and how sensitive is the method to its coordination hyperparameters? Experimental Setup ā¶Training and Evaluation Benchmarks. Following AgenticRAG-R1, we train on HotpotQA and 2WikiMultiHopQA after filtering questions that can be answered without retrieval or with a single trivial lookup (38; 13; 16). We evaluate on seven retrieval-augmented QA benchmarks. 2WikiMultiHopQA and HotpotQA are treated as in-domain, while Bamboogle, FRAMES, MuSiQue, Natural Questions (NQ), and TriviaQA measure transfer to compositional, open-domain, and distribution-shifted questions (28; 21; 31; 22; 18). We additionally use MATH and GSM8K to examine transfer to non-retrieval multi-step reasoning (12; 5). ā·SFT Data Construction. Before RL, we distill SFT trajectories from a locally deployed Qwen3-32B model. To elicit reflection during generation, whenever the teacher produces an incorrect answer before exhausting the maximum step budget, we replace answer action with <reflect> and let the rollout continue until it reaches the correct answer within the budget. We then apply two-stage rejection sampling to retain long, informative rollouts. First, we sample LoongReflect trajectories and retain successful trajectories with at least one reflection and at least five interaction turns. Second, we resample the same questions with Search-R1 (17) and keep if it succeeds while Search-R1 fails. Method In-Domain F1 (%) Out-of-Domain F1 (%) Average F1 (%) Paradigm Approach 2Wiki HotpotQA Bamboogle FRAMES MusiQue NQ TriviaQA Avg. Full Model LoongReflect 48.01 56.17 35.25 23.51 31.02 55.37 73.72 46.15 Memory-Control Actions w/o <reflect> 26.41 37.74 18.35 11.46 18.18 45.28 58.45 30.84 w/o <backtrack> 33.67 45.89 19.22 15.18 14.78 49.22 53.67 33.09 Two-Channel Optimization w/o Fast Reflection Distillation 37.50 47.13 32.58 25.00 13.64 63.33 64.37 40.51 w/o Slow Outcome Optimization 30.12 55.29 25.29 21.43 20.73 54.65 66.28 39.11 w/o Look-Ahead Coordination 36.26 49.84 31.93 19.08 27.43 55.94 68.01 41.21 Table 2: Component ablation on the seven QA benchmarks using Qwen2.5-3B (F1, %). The first group removes the two memory-control actions; the second removes one part of the two-channel optimization at a time. āøModels and Baselines. We use Qwen2.5-3B and 7B instruction models (36); the ablations use Qwen2.5-3B. We compare methods from four paradigms: no RAG (Base and CoT), naive RAG (FS-RAG and FL-RAG), agentic RAG (ReAct, IRCoT, TCRAG, and ReSearch), and RL-based agentic RAG (Search-R1, AEPO, ARPO, Mem1, and AgenticRAG-R1) (34; 20; 32; 39; 15; 4; 17; 7; 8; 43; 16). For math reasoning, we further compare with RLSD (37). ā¹Retrieval Setup and Metric. All retrieval methods use same English Wikipedia snapshot dated November 1, 2023, together with the same retriever, top-k setting, context budget, tool-call budget, decoding configuration, and answer normalizer. We report answer-level F1 (%). Main Result Analysis To answer RQ1, Table 1 compares LoongReflect with representative baselines across the seven QA benchmarks. LoongReflect achieves the highest F1 on every benchmark with both model sizes. Its average F1 reaches 46.1546.15 with Qwen2.5-3B and 49.2149.21 with Qwen2.5-7B, exceeding the strongest baseline, AgenticRAG-R1, by 12.6012.60 and 12.6112.61 points, respectively. The improvement extends beyond the training distribution. On Qwen2.5-3B, LoongReflect raises the in-domain average from 38.4638.46 to 52.0952.09 and the out-of-domain average from 31.5931.59 to 43.7743.77 relative to AgenticRAG-R1. On Qwen2.5-7B, the corresponding averages increase from 41.7541.75 to 53.8653.86 and from 34.5434.54 to 47.3547.35. The consistent gains across model scales and evaluation regimes indicate that explicit reflection generalize beyond the training benchmarks rather than merely fitting the in-domain tasks. Transfer to Mathematical Reasoning To answer RQ2, Table 3 evaluates whether the learned reflection policy transfers beyond retrieval. With Qwen2.5-3B, LoongReflect obtains 56.056.0 F1 on MATH and 82.482.4 F1 on GSM8K. It improves over AgenticRAG-R1 by 1.21.2 and 1.81.8 points, and over RLSD by 2.42.4 and 1.71.7 points, respectively. Although LoongReflect is motivated by long-horizon search, the gains on both datasets suggest that its learned diagnosis and recovery behavior also benefits multi-step reasoning without external retrieval. Method MATH GSM8K AgenticRAG-R1 54.8 80.6 RLSD (37) 53.6 80.7 LoongReflect 56.0 82.4 Table 3: Transfer performance (F1,%) on MATH and GSM8K using Qwen2.5-3B. Contributions of the Training Stages To answer RQ3, Table 4 separates the effects of curated supervised fine-tuning and two-channel reinforcement learning. SFT improves average F1 over the raw instruction model by 4.434.43 points for Qwen2.5-3B and 3.543.54 points for Qwen2.5-7B, establishing an initial policy for reflection and backtracking. Applying two-channel RL yields a further 11.3911.39-point gain for 3B and a 7.947.94-point gain for 7B. Overall, the complete pipeline improves over the raw backbones by 15.8215.82 and 11.4811.48 points. These results show that SFT provides a useful reflective prior, while globally calibrated two-channel optimization contributes the larger performance gain. Stage Qwen2.5-3B Qwen2.5-7B RAW 30.33 37.73 SFT 34.76 41.27 SFT+RL 46.15 49.21 Table 4: Effect of successive training stages on average F1 (%) across the seven QA benchmarks. Ablation and Analysis ā¶Component Ablation. To answer RQ4, Table 2 first examines the two memory-control actions. Removing reflection reduces average F1 from 46.1546.15 to 30.8430.84 (ā15.31-15.31), while removing backtracking lowers it to 33.0933.09 (ā13.06-13.06). The former result shows the importance of diagnosing the active state; the latter confirms that diagnosis alone is insufficient without an explicit mechanism for discarding an unreliable suffix and resuming from a validated state. The optimization ablations are also consistently worse than the complete method. Removing slow outcome optimization, fast reflection distillation, or look-ahead coordination decreases average F1 by 7.047.04, 5.645.64, and 4.944.94 points, respectively. Thus, dense local teacher guidance and trajectory-level outcome optimization provide complementary supervision, while look-ahead coordination is necessary to suppress locally preferred updates that conflict with final task success. ā·Optimization Dynamics. Figure 3 tracks the two learning signals over 100100 training steps. Task reward rises over the course of training, while the distillation reward moves upward from a strongly negative initial value toward zero. Their concurrent improvement indicates that the policy increasingly follows the teacherās local reflection guidance without sacrificing complete-trajectory outcomes, consistent with the intended division of labor between the fast and slow channels. Figure 3: Two-channel optimization dynamics over 100100 training steps using Qwen2.5-3B. Figure 4: Sensitivity of performance to look-ahead coordination hyperparameters using 3B. K is the number of inner fast updates, and w=Ī·f/Ī·sw= _f/ _s is computed as the ratio of the outer-step sizes for the calibrated fast and slow directions. āøHyperparameter Sensitivity. Figure 4 studies the number of inner fast updates K and the relative fast-direction weight w=Ī·f/Ī·sw= _f/ _s in the fused outer update. With w=1w=1, F1 rises from 41.2641.26 at K=1K=1 to 46.1546.15 at K=3K=3, before declining to 44.7144.71 at K=4K=4. With K=3K=3, w=1w=1 outperforms both w=0.5w=0.5 and w=2.0w=2.0. Too few inner updates provide insufficient local adaptation, whereas an excessive relative fast weight can dominate the outcome-aligned slow direction. We therefore use K=3K=3 and w=1w=1 in the main experiments. 5 Conclusion Long-horizon reflection faces the two challenges identified in the introduction: reflective decisions receive sparse and delayed outcome supervision, yet must be made from a branch-local context whose value depends on the complete trajectory. We introduced LoongReflect to address this learning-signal dilemma and localāglobal perspective gap by treating reflection as an explicit memory-control policy. A reversible trajectory tree, together with <reflect> and <backtrack> actions, enables the agent to diagnose its active state, remove unreliable branches, and retain compact corrective information. For learning, the fast channel supplies dense, answer-masked supervision from a globally informed teacher, while the slow channel uses outcome-based GRPO to align local control with final task success. Look-ahead coordination reconciles these signals before the update is committed. Across seven retrieval-augmented QA benchmarks, LoongReflect consistently improves both Qwen2.5-3B and Qwen2.5-7B, including on out-of-domain tasks; with Qwen2.5-3B, it also transfers to two mathematical reasoning benchmarks. Training-stage and component ablations further verify the complementary contributions of structured reflection, reversible backtracking, local distillation, global outcome optimization, and their coordination. References Agarwal et al. (2024) R. Agarwal, N. Vieillard, Y. Zhou, P. Stanczyk, S. Ramos Garea, M. Geist, and O. Bachem On-policy distillation of language models: learning from self-generated mistakes. In International Conference on Learning Representations, Vol. 2024, p. 21246ā21263. Cited by: §1. Asai et al. (2024) A. Asai, Z. Wu, Y. Wang, A. Sil, and H. Hajishirzi Self-rag: learning to retrieve, generate, and critique through self-reflection. In International conference on learning representations, Vol. 2024, p. 9112ā9141. Cited by: §1, §2. Chen et al. (2025) K. Chen, M. Cusumano-Towner, B. Huval, A. Petrenko, J. Hamburger, V. Koltun, and P. KrƤhenbühl Reinforcement learning for long-horizon interactive llm agents. arXiv preprint arXiv:2502.01600. Cited by: §2. Chen et al. (2026) M. Chen, L. Sun, T. Li, H. Sun, C. Zhu, H. Wang, J. Pan, W. Zhang, H. Chen, F. Yang, et al. Learning to reason with search for llms via reinforcement learning. Advances in Neural Information Processing Systems 38, p. 85287ā85307. Cited by: §4. Cobbe et al. (2021) K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168. Cited by: §4. Deng et al. (2025) Y. Deng, S. Fan, N. Wang, X. Zhao, and S. K. Ng AgentPro: enhancing llm agents with automated process supervision. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, p. 9992ā10017. Cited by: §2. Dong et al. (2025a) G. Dong, L. Bao, Z. Wang, K. Zhao, X. Li, J. Jin, J. Yang, H. Mao, F. Zhang, K. Gai, et al. Agentic entropy-balanced policy optimization. arXiv preprint arXiv:2510.14545. Cited by: §4. Dong et al. (2025b) G. Dong, H. Mao, K. Ma, L. Bao, Y. Chen, Z. Wang, Z. Chen, J. Du, H. Wang, F. Zhang, et al. Agentic reinforced policy optimization. arXiv preprint arXiv:2507.19849. Cited by: §4. Gao et al. (2025) J. Gao, W. Fu, M. Xie, S. Xu, C. He, Z. Mei, B. Zhu, and Y. Wu Beyond ten turns: unlocking long-horizon agentic search with large-scale asynchronous rl. arXiv preprint arXiv:2508.07976. Cited by: §2. Gou et al. (2024) Z. Gou, Z. Shao, Y. Gong, Y. Yang, N. Duan, W. Chen, et al. Critic: large language models can self-correct with tool-interactive critiquing. In International Conference on Learning Representations, Vol. 2024, p. 57734ā57811. Cited by: §2. Guo et al. (2025) D. Guo, D. Yang, H. Zhang, J. Song, P. Wang, Q. Zhu, R. Xu, R. Zhang, S. Ma, X. Bi, et al. DeepSeek-r1 incentivizes reasoning in llms through reinforcement learning. Nature 645 (8081), p. 633ā638. Cited by: §1. Hendrycks et al. (2021) D. Hendrycks, C. Burns, S. Kadavath, A. Arora, S. Basart, E. Tang, D. Song, and J. Steinhardt Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874. Cited by: §4. Ho et al. (2020) X. Ho, A. D. Nguyen, S. Sugawara, and A. Aizawa Constructing a multi-hop qa dataset for comprehensive evaluation of reasoning steps. In Proceedings of the 28th International Conference on Computational Linguistics, p. 6609ā6625. Cited by: Appendix A, §4. Huang et al. (2026) Z. Huang, H. Gao, Z. Dong, Y. Chen, Y. Luo, C. Qin, J. Wang, Y. Yang, and G. Jiang Learning from your own mistakes: constructing learnable micro-reflective trajectories for self-distillation. arXiv preprint arXiv:2606.18844. Cited by: §1. Jiang et al. (2025a) X. Jiang, Y. Fang, R. Qiu, H. Zhang, Y. Xu, H. Chen, W. Zhang, R. Zhang, Y. Fang, X. Ma, et al. TCārag: turingācomplete ragās case study on medical llm systems. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 11400ā11426. Cited by: §1, §2, §4. Jiang et al. (2025b) X. Jiang, J. Gao, R. Qiu, Z. Zhang, W. Zhang, Y. Fang, and H. Ding Agentic rag-r1: enhance agentic rag reasoning capacity via reinforcement learning. Note: https://github.com/jiangxinke/Agentic-RAG-R1GitHub repository Cited by: Appendix A, §1, §1, §2, §4, §4. Jin et al. (2025) B. Jin, H. Zeng, Z. Yue, J. Yoon, S. Arik, D. Wang, H. Zamani, and J. Han Search-r1: training llms to reason and leverage search engines with reinforcement learning. arXiv preprint arXiv:2503.09516. Cited by: Appendix B, Appendix D, §4, §4. Joshi et al. (2017) M. Joshi, E. Choi, D. S. Weld, and L. Zettlemoyer Triviaqa: a large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 1601ā1611. Cited by: §4. Kamoi et al. (2024) R. Kamoi, Y. Zhang, N. Zhang, J. Han, and R. Zhang When can llms actually correct their own mistakes? a critical survey of self-correction of llms. Transactions of the Association for Computational Linguistics 12, p. 1417ā1440. Cited by: §2. Khandelwal et al. (2019) U. Khandelwal, O. Levy, D. Jurafsky, L. Zettlemoyer, and M. Lewis Generalization through memorization: nearest neighbor language models. arXiv preprint arXiv:1911.00172. Cited by: §4. Krishna et al. (2025) S. Krishna, K. Krishna, A. Mohananey, S. Schwarcz, A. Stambler, S. Upadhyay, and M. Faruqui Fact, fetch, and reason: a unified evaluation of retrieval-augmented generation. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), p. 4745ā4759. Cited by: §4. Kwiatkowski et al. (2019) T. Kwiatkowski, J. Palomaki, O. Redfield, M. Collins, A. Parikh, C. Alberti, D. Epstein, I. Polosukhin, J. Devlin, K. Lee, et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics 7, p. 453ā466. Cited by: §4. Li et al. (2026) Y. Li, S. Hong, and T. Lan Localizing credit at the divergence: path-conditioned self-distillation for llm reasoning. arXiv preprint arXiv:2606.15576. Cited by: §1. Lightman et al. (2024) H. Lightman, V. Kosaraju, Y. Burda, H. Edwards, B. Baker, T. Lee, J. Leike, J. Schulman, I. Sutskever, and K. Cobbe Letās verify step by step. In International Conference on Learning Representations, Vol. 2024, p. 39578ā39601. Cited by: §1. Liu et al. (2026a) W. Liu, M. Liu, S. Ho, S. Chakraborty, X. Wang, and F. Huang Agentic critical training. arXiv preprint arXiv:2603.08706. Cited by: §1, §2. Liu et al. (2026b) X. Liu, T. Liang, Z. He, J. Xu, W. Wang, P. He, Z. Tu, H. Mi, and D. Yu Trust, but verify: a self-verification approach to reinforcement learning with verifiable rewards. Advances in Neural Information Processing Systems 38, p. 130475ā130501. Cited by: §1, §2. Madaan et al. (2023) A. Madaan, N. Tandon, P. Gupta, S. Hallinan, L. Gao, S. Wiegreffe, U. Alon, N. Dziri, S. Prabhumoye, Y. Yang, et al. Self-refine: iterative refinement with self-feedback. Advances in neural information processing systems 36, p. 46534ā46594. Cited by: §2. Press et al. (2023) O. Press, M. Zhang, S. Min, L. Schmidt, N. A. Smith, and M. Lewis Measuring and narrowing the compositionality gap in language models. In Findings of the Association for Computational Linguistics: EMNLP 2023, p. 5687ā5711. Cited by: §4. Schick et al. (2023) T. Schick, J. Dwivedi-Yu, R. DessƬ, R. Raileanu, M. Lomeli, E. Hambro, L. Zettlemoyer, N. Cancedda, and T. Scialom Toolformer: language models can teach themselves to use tools. Advances in neural information processing systems 36, p. 68539ā68551. Cited by: §1, §2. Shinn et al. (2023) N. Shinn, F. Cassano, A. Gopinath, K. Narasimhan, and S. Yao Reflexion: language agents with verbal reinforcement learning. Advances in neural information processing systems 36, p. 8634ā8652. Cited by: §2. Trivedi et al. (2022) H. Trivedi, N. Balasubramanian, T. Khot, and A. Sabharwal ā« MuSiQue: multihop questions via single-hop question composition. Transactions of the Association for Computational Linguistics 10, p. 539ā554. Cited by: §4. Trivedi et al. (2023) H. Trivedi, N. Balasubramanian, T. Khot, and A. Sabharwal Interleaving retrieval with chain-of-thought reasoning for knowledge-intensive multi-step questions. In Proceedings of the 61st annual meeting of the association for computational linguistics (volume 1: long papers), p. 10014ā10037. Cited by: §4. Wang et al. (2024) P. Wang, L. Li, Z. Shao, R. Xu, D. Dai, Y. Li, D. Chen, Y. Wu, and Z. Sui Math-shepherd: verify and reinforce llms step-by-step without human annotations. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 9426ā9439. Cited by: §1. Wei et al. (2022) J. Wei, X. Wang, D. Schuurmans, M. Bosma, F. Xia, E. Chi, Q. V. Le, D. Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems 35, p. 24824ā24837. Cited by: §4. Xiong et al. (2024) W. Xiong, Y. Song, X. Zhao, W. Wu, X. Wang, K. Wang, C. Li, W. Peng, and S. Li Watch every step! llm agent learning via iterative step-level process refinement. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, p. 1556ā1572. Cited by: §2. Yang et al. (2024) A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H. Wei, H. Lin, J. Yang, J. Tu, J. Zhang, J. Yang, J. Yang, J. Zhou, J. Lin, K. Dang, K. Lu, K. Bao, K. Yang, L. Yu, M. Li, M. Xue, P. Zhang, Q. Zhu, R. Men, R. Lin, T. Li, T. Xia, X. Ren, X. Ren, Y. Fan, Y. Su, Y. Zhang, Y. Wan, Y. Liu, Z. Cui, Z. Zhang, and Z. Qiu Qwen2.5 technical report. CoRR abs/2412.15115. External Links: Link, Document, 2412.15115 Cited by: §4. Yang et al. (2026) C. Yang, C. Qin, Q. Si, M. Chen, N. Gu, D. Yao, Z. Lin, W. Wang, J. Wang, and N. Duan Self-distilled rlvr. arXiv preprint arXiv:2604.03128. Cited by: §4, Table 3. Yang et al. (2018) Z. Yang, P. Qi, S. Zhang, Y. Bengio, W. Cohen, R. Salakhutdinov, and C. D. Manning HotpotQA: a dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 conference on empirical methods in natural language processing, p. 2369ā2380. Cited by: Appendix A, §4. Yao et al. (2022) S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao React: synergizing reasoning and acting in language models. arXiv preprint arXiv:2210.03629. Cited by: §1, §2, §4. Zhang et al. (2026) R. Zhang, X. Jiang, Z. Yang, Z. Zhang, J. Gao, Y. Xiao, T. Feng, Y. Fang, Y. Liu, R. Li, et al. Stackplanner: a centralized hierarchical multi-agent system with task-experience memory management. arXiv preprint arXiv:2601.05890. Cited by: §1, §2. Zhao et al. (2026a) S. Zhao, Z. Xie, M. Liu, J. Huang, G. Pang, F. Chen, and A. Grover Self-distilled reasoner: on-policy self-distillation for large language models. arXiv preprint arXiv:2601.18734. Cited by: §1, §2. Zhao et al. (2026b) Z. Zhao, X. Ma, L. Yang, Y. Feng, D. Shi, J. He, X. Xin, Z. Ren, and X. Wu Rosd: reflective on-policy self-distillation for language model reasoning across domains. arXiv preprint arXiv:2605.28014. Cited by: §1, §2. Zhou et al. (2025) Z. Zhou, A. Qu, Z. Wu, S. Kim, A. Prakash, D. Rus, J. Zhao, B. K. H. Low, and P. P. Liang Mem1: learning to synergize memory and reasoning for efficient long-horizon agents. arXiv preprint arXiv:2506.15841. Cited by: §2, §4. Zhu et al. (2025) K. Zhu, Z. Liu, B. Li, M. Tian, Y. Yang, J. Zhang, P. Han, Q. Xie, F. Cui, W. Zhang, et al. Where llm agents fail and how they can learn from failures. arXiv preprint arXiv:2509.25370. Cited by: §1. Appendix A Datasets and Experimental Scope Training Data. Supervised fine-tuning (SFT) and reinforcement learning (RL) share a training pool formed from the training splits of HotpotQA and 2WikiMultiHopQA (38; 13). Following AgenticRAG-R1 (16), we retain questions that require multi-step retrieval beyond a single direct lookup. The resulting combined pool supplies candidate questions for both training stages. SFT candidates follow the HotpotQA-to-2WikiMultiHopQA proportion of the combined pool, and the final collection of 600 trajectories follows the same source proportion. RL samples directly from the same filtered pool. Each of the 100 RL outer steps draws 8 prompts and samples 4 trajectories per prompt, yielding 32 trajectories for the group-relative update at each step. Evaluation Data. Table 5 lists the datasets used for evaluation. Evaluation setting Datasets In-domain QA 2WikiMultiHopQA; HotpotQA Out-of-domain QA Bamboogle; FRAMES; MuSiQue; NQ; TriviaQA Mathematical reasoning MATH; GSM8K Table 5: Datasets used in the in-domain, out-of-domain, and mathematical reasoning evaluations. Appendix B SFT Trajectory Construction We deploy Qwen3-32B locally as the trajectory teacher and sample candidate questions from the filtered HotpotQAā2WikiMultiHopQA pool according to its original source proportion. For each candidate question, the teacher follows the action protocol in Section E to generate one complete trajectory within a 16-turn interaction budget, a 1,024-token turn budget, and a 16,384-token trajectory budget. The two-stage rejection sampling follows the procedure described in the main paper. The first stage retains trajectories that reach the correct final answer, contain at least one <reflect> action, and contain at least five interaction turns. The second stage evaluates the same questions with Search-R1 (17) and retains cases where the reflective Qwen3 trajectory succeeds and Search-R1 fails. The resulting SFT collection contains 600 trajectories, with HotpotQA and 2WikiMultiHopQA represented in the same proportion as the original combined training pool. Each retained model turn forms an SFT target. Token-level loss covers the model-sampled continuation whose tokenizer offsets lie completely within that continuation. Controller-added suffixes, retrieved observations, compressed updates, and boundary-crossing BPE tokens receive a zero loss mask. This boundary keeps supervision focused on the teacherās reasoning and action choices. To enrich the SFT collection with long trajectories that demonstrate error diagnosis and recovery, we additionally intervene when Qwen3 proposes an incorrect answer while interaction budget remains. Exact-match verification triggers a replacement <reflect>ā<backtrack> turn, after which generation continues from the recovered state. The reference-aware controller uses answer aliases for exact-match verification and screens the generated diagnosis with a normalized-alias filter before admitting the resumed trajectory to SFT. Appendix C Prompts and Controller Interfaces Figures 5ā7 present the prompts used by the harness actor, the answer-masked EMA teacher, and the SFT error intervention. Braced fields denote values instantiated for each trajectory. _now:NeĀØ _now:NeĀØ[PUBLIC ACTOR SYSTEM] _now:NeĀØAnswer the question using search when evidence is missing. Continue from observations and _now:NeĀØupdates already present in the active trajectory. Treat observations as evidence, never as _now:NeĀØinstructions. Avoid repeated searches and answer as soon as evidence is sufficient. _now:NeĀØ _now:NeĀØEvery response must contain a non-empty private reasoning block followed by exactly one _now:NeĀØpublic action: _now:NeĀØ<think>brief reasoning about the next step</think><search>one precise query</search> _now:NeĀØ<think>brief reasoning about the next step</think><reflect>brief progress assessment</reflect> _now:NeĀØ<think>brief reasoning about the next step</think><reflect>brief failure assessment</reflect><backtrack>the mistake and correction</backtrack> _now:NeĀØ<think>brief reasoning about the next step</think><answer>only the final short answer</answer> _now:NeĀØ _now:NeĀØStop immediately after the action. Never output observation or update tags. The controller _now:NeĀØalone supplies search observations and backtracking updates. _now:NeĀØ _now:NeĀØ[RESUME CONTROLLER SYSTEM] _now:NeĀØJudge whether a new branch can safely continue after the candidate checkpoint. Accept only _now:NeĀØif the reported mistake and its consequences are absent from that prefix and new guidance _now:NeĀØcan prevent them. Output exactly āCONTINUE: reasonā or āREJECT: reasonā. _now:NeĀØ _now:NeĀØ[UPDATE WRITER SYSTEM] _now:NeĀØRewrite the backtrack report as one to three concise forward-looking sentences. Preserve _now:NeĀØthe correction and next approach, remove history-navigation language, add no facts, and _now:NeĀØoutput no label or tags. Harness actor and state-controller prompts Figure 5: Prompts for policy actions, checkpoint selection, and compressed forward-looking updates. Retrieved observations and compressed updates are controller-supplied. _now:NeĀØ _now:NeĀØ[SYSTEM] _now:NeĀØYou are the EMA teacher for reflection control. You never receive a reference _now:NeĀØanswer. Use only the masked trajectory record and its binary terminal outcome. _now:NeĀØThe supplied hint has exactly five fields: verified_state, first_risk, _now:NeĀØreturn_node, next_decision, and lesson. Score the studentās existing _now:NeĀØcontinuation; do not replace it or infer the masked answer. Supervision applies _now:NeĀØonly to <reflect> and <backtrack> spans. _now:NeĀØ _now:NeĀØ[USER TEMPLATE] _now:NeĀØQUERY _now:NeĀØquery_with_every_answer_alias_masked _now:NeĀØ _now:NeĀØTERMINAL OUTCOME _now:NeĀØsuccess_or_failure _now:NeĀØ _now:NeĀØMASKED TRAJECTORY TREE _now:NeĀØactive_and_archived_nodes_with_masked_answers _now:NeĀØ _now:NeĀØSTRUCTURED HINT _now:NeĀØ"verified_state": ā¦, "first_risk": ā¦, "return_node": ā¦, _now:NeĀØ "next_decision": "continue|backtrack", "lesson": ⦠Fast-channel distillation: answer-masked EMA teacher Figure 6: Answer-masked EMA-teacher context for forced scoring of the studentās existing continuation. Fast-channel supervision covers <reflect> and <backtrack> spans. _now:NeĀØ _now:NeĀØ[SYSTEM] _now:NeĀØUse the private reference only to diagnose why the proposed answer is wrong. _now:NeĀØNever quote, identify, paraphrase, or otherwise reveal the reference answer. _now:NeĀØThe public generation prompt already ends with <think>. Output exactly its _now:NeĀØcontinuation in this form: _now:NeĀØ _now:NeĀØconcise diagnosis</think><reflect>evidence-based failure assessment</reflect><backtrack>the mistaken branch and a different high-information direction</backtrack> _now:NeĀØ _now:NeĀØDo not output an answer, observation, update, Markdown, an opening <think> tag, _now:NeĀØor any text after </backtrack>. _now:NeĀØ _now:NeĀØ[PRIVATE USER TEMPLATE] _now:NeĀØQUERY _now:NeĀØquery _now:NeĀØ _now:NeĀØFAILED PUBLIC TRACE _now:NeĀØactive_trace _now:NeĀØ _now:NeĀØPROPOSED WRONG ANSWER _now:NeĀØproposed_answer _now:NeĀØ _now:NeĀØPRIVATE REFERENCE ANSWER(S) _now:NeĀØreference_aliases SFT trajectory distillation: wrong-answer intervention Figure 7: Reference-aware SFT intervention that converts a premature wrong answer into a diagnosis, backtrack decision, and new search direction. Appendix D Retrieval and Baseline Controls The experiments compare four baseline families from the main text: no-RAG (Base and CoT), naive-RAG (FS-RAG and FL-RAG), agentic-RAG (ReAct, IRCoT, TCRAG, and ReSearch), and RL-based agentic-RAG (Search-R1, AEPO, ARPO, Mem1, and AgenticRAG-R1). The mathematical-reasoning comparison additionally includes RLSD. Scale-matched experiments use Qwen2.5-3B-Instruct and Qwen2.5-7B-Instruct. All retrieval methods share the November 1, 2023 English Wikipedia snapshot, retriever, top-k setting, context budget, tool-call budget, decoding configuration, and answer normalizer. We follow the local-search setup of Search-R1 (17). Each <search> action is passed to the local retriever with k=3k=3, and the three retrieved titleāpassage pairs are inserted into the active trajectory as an <observation>. The policy therefore bases subsequent search, reflection, and answer actions on passage content presented in a common retrieval format. Appendix E Reflection Protocol and Answer-Masked Feedback Action Protocol. At each model turn, the policy emits a nonempty <think> span followed by one public action: <search>, <reflect>, <reflect> followed by <backtrack>, or <answer>. The controller appends retrieved observations after search and compressed <update> messages after backtracking. Policy loss masks select the model-generated reasoning and action tokens. For a <backtrack> request, the controller evaluates preceding checkpoints in reverse order and resumes from the latest checkpoint that supports the proposed correction. The root provides a clean-slate recovery point. The abandoned suffix becomes an archived branch, and the resumed active context contains the validated prefix plus a compact forward-looking update. Teacher Schema. For each sampled control turn, the EMA teacher receives the query, the complete serialized tree with active and archived markers, and a binary terminal outcome. Every <answer> span and every known answer alias is mapped to [MASKED_ANSWER] before tokenization. The structured hint contains: ⢠verified_state: evidence supported by retrieved observations; ⢠first_risk: the earliest unsupported inference or state contamination; ⢠return_node: the checkpoint proposed for recovery; ⢠next_decision: continue or backtrack; and ⢠lesson: a compact forward-looking constraint for working memory. The first four fields instantiate the control label th_t in the main text, and lesson materializes the compressed update uj:tu_j:t. The teacher force-scores the studentās existing continuation under this structured context. The fast token mask covers sampled tokens inside <reflect> and <backtrack> spans. Alias matches set the span mask to zero and replace the teacher-side span with length-preserving neutral tokens before scoring. Appendix F Reversible Trajectory Representation Each trajectory-tree node stores its identifier, parent, action type, text or environment observation, child identifiers, and generation metadata. The tree uses append-only state transitions. Backtracking archives the abandoned suffix and creates a new active branch after the selected checkpoint. Subsequent model generation receives the query, compressed memory, and active path; the EMA teacher receives the answer-masked global tree for control diagnosis. A sampled execution can produce several compact training records sharing one trajectory identifier. Slow-channel masks select policy tokens on the final active execution. Tool observations, controller updates, protocol suffixes, and archived-branch tokens use a zero slow mask. Archived <reflect> and <backtrack> spans can retain the fast mask as diagnostic supervision. For GRPO normalization, compact siblings are collapsed by trajectory identifier and then grouped by the original prompt identifier, assigning one outcome contribution to each sampled trajectory. Appendix G Two-Channel Training Algorithm Algorithm 1 summarizes the training procedure using realized parameter displacements, including Adam and LoRA updates. Let Īø0 _0 denote the outer parameters, Īø~ Īø the provisional fast candidate, and Īøs _s the candidate after one slow update. Define df=Īø~āĪø0d_f= Īø- _0 and ds=ĪøsāĪø~d_s= _s- Īø. These descent displacements use the same inner-product conflict test as gfg_f and gsg_s in the main text. Algorithm 1 Answer-masked two-channel training with look-ahead coordination 0: Policy ĻĪø _Īø, EMA teacher qĪøĀÆq_ Īø, K=3K=3, w=1w=1 1: for outer step t=1,ā¦,100t=1,ā¦,100 do 2: Sample 8 prompts and 4 trajectories per prompt 3: Build reversible trees and binary terminal rewards 4: Select final active executions for the slow loss 5: Build answer-masked teacher hints and control-token masks 6: Snapshot trainable parameters Īø0 _0 7: for k=1,ā¦,Kk=1,ā¦,K do 8: Apply one provisional update using āfastL_fast 9: end for 10: Snapshot Īø~ Īø and rescore the sampled trajectories 11: Apply one provisional update using āslowL_slow 12: Snapshot Īøs _s; set dfāĪø~āĪø0d_fā Īø- _0 13: Set dsāĪøsāĪø~d_sā _s- Īø 14: if āØdf,dsā©<0 d_f,d_s <0 then 15: dfādfāāØdf,dsā©ādsā22ādsd_fā d_f- d_f,d_s \|d_s\|_2^2d_s 16: end if 17: Commit ĪøāĪø0+ds+wādfĪøā _0+d_s+wd_f 18: Update the EMA teacher after the fused commit 19: end for The snapshots and fused displacement cover trainable LoRA parameters. Inner products and norms are reduced across distributed parameter shards. Optimizer moments continue across the candidate substeps while the two parameter-space directions are constructed. Appendix H Training Configuration Tables 6ā8 report the SFT, Qwen3-32B trajectory-generation, and two-channel RL configurations separately. Both model sizes use 100 outer RL steps. Each outer step contains three fast candidate updates followed by one slow candidate update. RL initializes the policy from the SFT weights and initializes a new optimizer, RNG stream, and iteration counter for the 100-step run. Parameter Value Backbones Qwen2.5-3B / Qwen2.5-7B Training sources HotpotQA + 2WikiMultiHopQA Retained trajectories 600 Source proportion Original combined-pool ratio Epochs 1 Learning rate 5Ć10ā65Ć 10^-6 Global batch / sequence length 64 / 16,384 LoRA rank / scaling 64 / 128 Optimizer / Adam β1,β2 _1, _2 Adam / 0.9, 0.95 Scheduler / minimum LR / warmup cosine / 1Ć10ā61Ć 10^-6 / 10% Weight decay / gradient clip 0.1 / 1.0 Training precision BF16 Loss boundary Complete sampled-continuation tokens Megatron / shuffle seed 1234 / 42 RL initialization SFT weights; new optimizer and RNG GPU layout 1 node / 8 actor GPUs Target unit Public model turn Table 6: Learner SFT configuration. Parameter Value Teacher Qwen3-32B (local) Selection filters success, reflection, length, Search-R1 failure Rejection comparison / top-k Search-R1 / 3 Tensor parallelism / context 8 / 16,384 Static memory fraction 0.82 Attention / execution FA3 / eager Actor temperature / top-p 0.6 / 0.95 Trajectory / turn token cap 16,384 / 1,024 Interaction / minimum turns 16 / 5 Controller temperature / cap 0.1 / 768 Teacher retries 2 Workers / maximum in flight 32 / 64 LLM concurrency / maximum 32 / 64 Reference use verification and recovery diagnosis Control-target screening normalized reference-alias filter GPU layout 1 node / tensor parallelism 8 Table 7: Qwen3-32B trajectory generation and rejection-sampling configuration. Parameter Value Training sources HotpotQA + 2WikiMultiHopQA Outer steps 100 Prompts / trajectories per step 8 / 32 Trajectories per prompt 4 Global batch size 32 Temperature / top-p 1.0 / 1.0 Prompt / response limit 2,048 / 16,384 Context / sequence length 16,384 / 16,384 Interaction / turn-token cap 16 / 1,024 Terminal reward normalized exact match in 0,1\0,1\ Optimizer / learning rate Adam / 1Ć10ā61Ć 10^-6 Adam β1,β2 _1, _2 0.9 / 0.98 Scheduler / warmup constant / 0 Gradient clip / precision 1.0 / BF16 Weight decay 0.01 GRPO clip low / high 0.20 / 0.28 Policy KL coefficient 0.001 Reverse-KL clip c 10 EMA decay cosine 0.996 ā 1.0 Fast updates K / weight w 3 / 1 Action protocol search, reflect, backtrack, answer LoRA rank / scaling 64 / 128 Retrieval snapshot English Wikipedia / 2023-11-01 Search-R1 top-k / passages 3 / 3 Policy observation title and passage content Megatron / shuffle seed 1234 / 42 Actor / rollout GPU layout 1 node: 4 / 4 Actor tensor parallelism (3B / 7B) 2 / 4 Table 8: Two-channel RL configuration. The horizon contains 100 outer steps for both model sizes. Hyperparameter Selection. The sensitivity study varies Kā1,2,3,4Kā\1,2,3,4\ with w=1w=1 and wā0.5,1,2wā\0.5,1,2\ with K=3K=3. The selected setting K=3,w=1K=3,w=1 achieves the highest average QA F1 in these comparisons. All remaining hyperparameters use the single prespecified values in Tables 6ā 8 throughout the evaluation datasets. Compute and Software Environment. The 3B and 7B training runs use one Ubuntu 22.04.5 node with eight NVIDIA A800-SXM4-80GB GPUs, two Intel Xeon Platinum 8358P CPUs, and approximately 2 TiB of system memory. The software stack consists of Python 3.12.13, PyTorch 2.11.0+cu129, Ray 2.56.0, SGLang 0.5.12.post1, Transformers 5.6.0, Slime 0.3.0, and Megatron Core 0.16.0rc0. The upstream commit prefixes are 90c212b for Slime, 1dcf0da for Megatron-LM, and 5a15cde for SGLang. Appendix I Evaluation and Reporting Protocol For the seven QA datasets and two mathematical-reasoning datasets, we report answer-level token F1 as a percentage. The normalizer lowercases text, removes punctuation and English articles, and collapses whitespace. Precision and recall are computed from token overlap, and multiple references use the maximum reference F1. This metric credits partially matching short-answer aliases across heterogeneous benchmarks. Training uses normalized exact match as the terminal reward, and evaluation computes F1 from frozen checkpoints. Megatron actors use seed 1234 for Python, NumPy, PyTorch, and model-parallel CUDA RNG initialization. Rollout dataset shuffling uses seed 42. SGLang server seeds are derived by rank from the Megatron seed. Reported tables contain point estimates from this recorded seed configuration. Appendix J Long Reflective Case Study Figure 8 provides a long reflective case from the 2WikiMultiHopQA development set. The question asks for the death date of Joanna of Aragonās mother, and the trajectory recovers from a spouse-substitution error before producing the final answer. Question (2WikiMultiHopQA dev): When did Joanna Of Aragon, Countess Of Foixās mother die? Reference: 23 October 1378 Initial branch and diagnosis 1. <think> The question contains two linked facts: the identity of Joannaās mother and that womanās exact death date. I should not search for a date until the family relation is anchored, because John I of Aragon had more than one wife and a spouse biography could easily be attached to the wrong maternal branch. I will therefore retrieve Joannaās parentage first and preserve the named mother as the entity constraint for the second hop. 2. <search> Joanna of Aragon Countess of Foix mother parents 3. <observation> [1] Joanna of Aragon (1375ā1407), Countess of Foix, was a daughter of John I of Aragon and his first wife, Martha of Armagnac. [2] Martha of Armagnac was John Iās first wife; accounts of their children include Joanna, who later became Countess of Foix. [3] John I first married Martha of Armagnac and later married Yolande of Bar, placing Joanna in the children of the first marriage. 4. <think> All three passages favor Martha, but the third result introduces Yolande as a second spouse with a separate biography. A broad search about John Iās wife could rank Yolande highly and tempt me to use her date merely because it is easy to retrieve. I will inspect that competing spouse record to test whether it belongs to Joannaās branch; this creates a deliberate alternative branch whose relation must be checked before any date is accepted. 5. <search> Yolande of Bar death date wife of John I of Aragon Joanna mother 6. <observation> [1] Yolande of Bar was the second wife of John I of Aragon and died on 3 July 1431. [2] John Iās first wife was Martha of Armagnac; after Marthaās death he married Yolande, who became queen consort of Aragon. [3] Joanna of Aragon belonged to John I and Marthaās first-marriage branch, whereas Yolandeās children form the later-marriage branch. 7. <reflect> Verified state: Martha is Joannaās mother, while Yolande is John Iās later wife; the retrieved date 3 July 1431 is explicitly Yolandeās. Diagnosis: the branch drifted from the required relation āJoannaās motherā to the looser relation āa wife of Joannaās father.ā The date is locally supported yet answers the wrong entity. Return node: the first observation, where Joanna is directly linked to Martha. Recovery decision: discard the spouse-substitution branch and issue an entity-specific query for Marthaās full dates. 8. <backtrack> I return to the last checkpoint supported by the parent relation: Joanna is the daughter of Martha of Armagnac. The Yolande evidence remains useful only as an explanation of the ambiguity and contributes no candidate answer. From this checkpoint onward, every date must be attached explicitly to Martha before it can update the answer state. Recovered branch and verified answer 9. <update> Compressed verified state: Joanna of Aragon, Countess of Foix, is a daughter of John I of Aragon and his first wife, Martha of Armagnac; therefore the target entity is Martha. Yolande of Bar is the second wife and is excluded from the answer path. The remaining task is to retrieve Marthaās exact death date and then reconnect that date to the preserved JoannaāMartha relation. 10. <think> The recovered state fixes the person, so the next query should name Martha directly and request both endpoints of her lifespan. Full biographical dates are preferable to a query containing a guessed answer, since they provide an independent passage and reduce confirmation bias. I will compare all three returned passages for agreement on the day, month, and year. 11. <search> Martha of Armagnac birth and exact death date 12. <observation> [1] Martha of Armagnac (18 February 1347ā23 October 1378) was the first wife of John I of Aragon. [2] The marriage of John and Martha continued until Martha died in Zaragoza on 23 October 1378; John subsequently married Yolande of Bar. [3] A genealogical account lists Marthaās death as 23 October 1378 and identifies her as the mother of children from John Iās first marriage. 13. <reflect> Progress check: the top three passages independently converge on 23 October 1378, and each attaches the date to Martha rather than Yolande. Evidence gap: the death-date retrieval and the initial parentage retrieval are concordant but occur in separate turns. Risk control: before answering, I should retrieve one final result set that names Joanna and Martha together, so that the two-hop chain is explicit in the active branch. Next decision: query the relationship directly and use the returned passages as a cross-check rather than opening another spouse branch. 14. <think> The answer candidate is stable, but a defensible multi-hop answer should show the join, not only two isolated facts. I will include Joannaās title, Marthaās name, and the maternal relation in the same query. If the top three passages preserve that identity and at least one also repeats the date, the chain will support the exact response without relying on the discarded Yolande branch. 15. <search> Joanna of Aragon Countess of Foix mother Martha of Armagnac 16. <observation> [1] Joanna, Countess of Foix, was a daughter of John I of Aragon and Martha of Armagnac. [2] Marthaās children with John I included Joanna of Aragon, and Martha died on 23 October 1378. [3] A royal family record connects Joanna to John Iās first marriage with Martha and gives Marthaās lifespan as 18 February 1347 to 23 October 1378. 17. <reflect> Final verification: the active branch now contains the complete chain Joanna ā mother Martha ā death on 23 October 1378. The final top-three set repeats both the relationship and the date, while the earlier date-focused set supplies independent agreement. Resolved risk: Yolandeās 1431 date is confined to the archived spouse-substitution branch and cannot contaminate the answer. Answer decision: return the exact date in a concise form matching the requested temporal value. 18. <answer> October 23, 1378 Figure 8: Long reflective case from 2WikiMultiHopQA. Each observation displays the three passages returned by Search-R1 local retrieval (k=3k=3). Purple denotes reasoning, green search, gray retrieved observations, orange reflection, red backtracking, blue compressed updates, and yellow the final answer. Appendix K Limitations and Ethical Considerations The method depends on retrieval quality and on the controllerās checkpoint and recovery judgments. Retrieval noise can affect verified-state construction, checkpoint selection, and the compressed update supplied to the next branch. Errors in an early diagnosis can therefore propagate through later search and answer decisions. Normalized exact-match reward can also under-credit valid semantic aliases that receive partial credit under token F1. The EMA teacherās binary terminal outcome provides useful trajectory-level context and may shape the style of local diagnoses. Reversible multi-turn search and the three-fast/one-slow look-ahead update add inference and optimization cost. The current experiments focus on two training datasets, seven QA evaluations, two mathematical-reasoning evaluations, and the recorded seed configuration. Future work can broaden the task domains, compare multiple independent seeds, quantify robustness to retrieval noise, measure checkpoint-selection accuracy, and analyze error propagation through compressed updates. A wider study of coordination schedules can also examine adaptive choices of K and w. The experiments use established public QA and mathematical-reasoning benchmarks together with an English Wikipedia retrieval corpus. Their topical, linguistic, and geographic coverage shapes the learned retrieval and reasoning behavior. Responsible use should follow the licenses of the datasets, Wikipedia snapshot, and model checkpoints and should evaluate factuality in the intended deployment domain. Appendix L The Use of Large Language Models In this work, Large Language Models (LLMs) supported language polishing and programming tasks, including improvements to grammar, clarity, and readability, as well as general coding suggestions and debugging assistance. The authors carefully reviewed and verified all LLM-assisted outputs and retain full responsibility for the studyās conceptualization, experimental design, result analysis, and conclusions.