HyperAIHyperAI

Command Palette

Search for a command to run...

ABSeeker: تدريب وكلاء بحث طويلي الأفق عبر تخصيص الرصيد بتتبع الإجابة العكسي

Yijun Lu Rui Ye Jiajun Wang Yuwen Du Tian Jin Songhua Liu Siheng Chen

الملخص

يجب على وكلاء البحث طويلي الأفق تنفيذ إجراءات متسلسلة متعددة (خطوات) للبحث عن الأدلة واسترجاعها والتحقق منها ودمجها للوصول إلى إجابة نهائية. ومع ذلك، تعامل الطرق الحالية لتدريب هؤلاء الوكلاء جميع الخطوات ضمن المسار بشكل موحد أثناء الضبط الدقيق المُوجَّه (SFT) والتعلم المعزز (RL)، مما يفشل في تمييز الإجراءات المفيدة عن الخاطئة أو الزائدة عن الحاجة. في هذه الورقة، نقترح تخصيص الرصيد بتتبع الإجابة العكسي (ABC)، وهو إطار عمل دقيق لتخصيص الرصيد لتدريب وكلاء بحث طويلي الأفق، وذلك بتحويل نتائج المسار المتفرقة إلى إشراف كثيف على مستوى الخطوة يكافئ الإجراءات المفيدة (حتى في المسارات الفاشلة) ويكبح الإجراءات الخاطئة أو الزائدة. تحديدًا، عند إعطاء استعلام غامض محتمل وإجابته الصحيحة المرجعية، يقوم ABC أولاً باسترجاع الأدلة بتتبع الإجابة العكسي، والذي يتتبع المسار عكسيًا من الإجابة لاستعادة الأدلة الوسيطة المطلوبة لحل السؤال. ثم يطبق تسجيل الخطوات المثبت بالأدلة لتقييم كل خطوة بحث مقابل هذه الأدلة، محولاً إشراف النتائج الثنائية المتفرقة إلى مكافآت كثيفة على مستوى الخطوة. بناءً على هذه المكافآت، نطور ABC-SFT، الذي يعيد ترجيح خسارة كل دورة، و ABC-GRPO، الذي يستخدم الدرجات على مستوى الخطوة كمكافآت في GRPO. بالبناء على هذا الإطار، قمنا بتدريب ABSeeker استنادًا إلى Qwen3.5-4B باستخدام 8.5 ألف مثال فقط. يحقق ABSeeker نسبة 37.3% على BrowseComp و 39.1% على BrowseComp-ZH. مع إدارة السياق، تتحسن النتائج إلى 55.3% و 52.9% على التوالي، متفوقًا بشكل كبير على الوكلاء من نفس الحجم (4B) ومضاهيًا أداء وكلاء أكبر (~30B). تبرهن هذه النتائج على فعالية تخصيص الرصيد على مستوى الخطوة بتتبع الإجابة العكسي لتدريب وكلاء البحث طويلي الأفق.

One-sentence Summary

Researchers from Shanghai Jiao Tong University propose Answer-Backtracked Credit Assignment (ABC), a fine-grained framework that converts sparse trajectory-level outcomes into dense step-level supervision by backtracking from ground-truth answers to recover intermediate clues and scoring each search step, enabling their ABSeeker agent based on Qwen3.5-4B to achieve 37.3% on BrowseComp and 39.1% on BrowseComp-ZH, significantly outperforming same-scale agents and matching larger models.

Key Contributions

  • Answer-Backtracked Credit Assignment (ABC) recovers intermediate evidence clues from verified answers and uses Clue-Anchored Step Scoring to convert sparse trajectory-level outcomes into dense step-level supervision that rewards useful actions and suppresses erroneous or redundant ones.
  • ABC-SFT reweights the loss of each turn, and ABC-GRPO uses the step-level scores as rewards in GRPO, enabling fine-grained credit assignment during both supervised fine-tuning and reinforcement learning.
  • ABSeeker, trained on Qwen3.5-4B with only 8.5k examples, achieves 37.3% on BrowseComp and 39.1% on BrowseComp-ZH, and with context management reaches 55.3% and 52.9%, outperforming same-scale agents and matching larger models.

Introduction

Search agents that tackle complex, multi-step information-seeking tasks must execute long sequences of queries, evidence inspection, and hypothesis revision. Training these agents is difficult because existing methods assign uniform credit to every step in a trajectory, ignoring the fact that even successful runs contain redundant or erroneous actions while failed runs can include useful evidence-gathering steps. This coarse supervision limits the ability to optimize critical search and reasoning behaviors at a fine grain.

The authors introduce Answer-Backtracked Credit Assignment (ABC), a framework that recovers intermediate clues from a verified answer and then scores each search step according to how it discovers, verifies, or mishandles those clues. This produces dense, turn-level rewards that distinguish productive actions from mistakes, enabling two training variants: ABC-SFT, which reweights the supervised fine-tuning loss per step, and ABC-GRPO, which supplies step-level rewards for reinforcement learning. Using ABC, the authors train ABSeeker, a 4B-parameter agent that achieves strong results on BrowseComp, BrowseComp-ZH, xbench, and GAIA-text, outperforming same-scale baselines and competing with much larger search agents.

Method

The authors propose a training pipeline consisting of two core stages to address the sparse and coarse nature of trajectory-level outcome supervision in search agents.

Given a query and its verified answer, the pipeline first recovers a set of intermediate evidence clues that define meaningful progress toward the answer. Search trajectories are then rolled out, retaining both successful and failed trajectories. Next, a step scoring mechanism evaluates every step against the recovered clue set and produces dense, fine-grained step scores. Finally, these step-level scores directly serve as the reward signal for policy optimization.

The authors consider a set of training questions, each consisting of a query qqq and a verified answer aa^*a. A search agent interacts with a web environment over TTT turns to produce a search trajectory:

τ=(s1,s2,,sT,a)\tau = (s_1, s_2, \dots, s_T, a)τ=(s1,s2,,sT,a)

where aaa is the final answer submitted by the agent. Each step sts_tst contains the agent's reasoning, the issued tool call, and the corresponding tool response. During training, the agent typically receives a reward based solely on whether the final answer matches the ground truth:

rans(τ)={1,if a=a,0,otherwise.r_{\text{ans}}(\tau) = \begin{cases} 1, & \text{if } a = a^*, \\ 0, & \text{otherwise}. \end{cases}rans(τ)={1,0,if a=a,otherwise.

This trajectory-level signal is sparse and coarse, leading to credit-assignment failures. An incorrect trajectory may contain useful intermediate steps, yet the final reward of zero provides no positive signal. Conversely, a correct trajectory may contain erroneous intermediate steps, yet the final reward of one does not distinguish these flawed actions. The authors address this limitation by constructing a step reward rtr_trt for every step in each trajectory, enabling stable, dense, and fine-grained supervision.

The verified answer specifies where the search should end but provides little supervision about how the agent should reach it. To evaluate the quality of intermediate steps, the authors require a set of answer-backtracked anchors. Answer-Backtracked Clue Recovery maps each training question (q,a)(q, a^*)(q,a) to a set of clues:

C={c1,c2,,cK}\mathcal{C} = \{c_1, c_2, \dots, c_K\}C={c1,c2,,cK}

where each ckc_kck is a verifiable piece of intermediate evidence relevant to answering qqq.

The recovery process leverages the fact that benchmarks provide unique and verifiable answers. Given the query and its verified answer, the authors prompt an LLM to reconstruct the evidence chain by identifying the intermediate entities and facts that must be discovered, verified, and cross-referenced. This backtracking is an active ReAct loop where the recovery model conducts web searches and visits pages through the same tool-call protocol as the forward agent, tracing evidence from the answer back toward the query. Clues that survive this verification serve as reliable reference points for subsequent step scoring.

Given the recovered clue set C\mathcal{C}C for a training question, Clue-Anchored Step Scoring evaluates every step in each collected trajectory. For each step sts_tst, the scorer receives the current step, the original query qqq, and the complete clue set C\mathcal{C}C. It outputs a step reward rtr_trt together with a brief rationale. Each step starts with a base score of 1.0, ensuring that reasonable exploration without an obvious error is not penalized. A step may exhibit multiple scored behaviors, and the corresponding deltas are accumulated on top of the base score and clipped to [0,2.0][0, 2.0][0,2.0]:

rt=clip(1.0+jAtΔj,0,2.0)r_t = \text{clip}\left(1.0 + \sum_{j \in \mathcal{A}_t} \Delta_j, 0, 2.0\right)rt=clip1.0+jAtΔj,0,2.0

where At\mathcal{A}_tAt denotes the set of scored behavior instances detected at step ttt. A step that discovers a correct clue in a trajectory that ultimately fails still receives positive credit, whereas a step that incorrectly dismisses a correct clue in a trajectory that ultimately succeeds still receives a penalty.

Given the step reward rtr_trt assigned to every step in each trajectory, the authors train the agent in two consecutive stages: reward-weighted supervised fine-tuning (ABC-SFT) followed by step-level reinforcement learning (ABC-GRPO). Both successful and failed trajectories are retained.

In the first stage, the authors perform SFT on all collected trajectories. For a trajectory τ\tauτ of length TTT, let xt,jx_{t,j}xt,j denote the jjj-th policy-generated token at step sts_tst, with environment-provided tool responses excluded from optimization. The training objective is:

LSFT(θ)=t=1Tw(rt)jlogpθ(xt,jxt,<j)\mathcal{L}_{\text{SFT}}(\theta) = - \sum_{t=1}^T w(r_t) \sum_j \log p_\theta(x_{t,j} \mid x_{t,<j})LSFT(θ)=t=1Tw(rt)jlogpθ(xt,jxt,<j)

where the step-level weight is computed via a sigmoid function w(rt)=σ(α(rtβ))w(r_t) = \sigma(\alpha \cdot (r_t - \beta))w(rt)=σ(α(rtβ)), with α\alphaα controlling the sharpness of the mapping and β\betaβ the neutral baseline. High-scoring steps contribute more strongly to the gradient, whereas low-scoring steps contribute little training signal.

In the second stage, the authors further optimize the agent through online RL with step-level rewards. For each sampled rollout iii, the reward at step ttt is defined as Ri,t=ri,tR_{i,t} = r_{i,t}Ri,t=ri,t. They normalize rewards within each rollout group to obtain R^i,t\widehat{R}_{i,t}Ri,t and compute the discounted step-level advantage:

Ai,t=k=tTiγktR^i,kA_{i,t} = \sum_{k=t}^{T_i} \gamma^{k-t} \widehat{R}_{i,k}Ai,t=k=tTiγktRi,k

where γ\gammaγ controls how future step rewards are propagated to earlier decisions. The resulting advantage Ai,tA_{i,t}Ai,t is assigned to all policy-generated tokens at step ttt, while environment-provided tool responses are masked from optimization. The policy is optimized using the standard clipped GRPO objective, replacing its trajectory-level advantage with the step-specific advantage Ai,tA_{i,t}Ai,t.

Experiment

The evaluation uses Qwen3.5-4B as the backbone, with training on OpenSeeker trajectories and testing across BrowseComp, BrowseComp-ZH, xbench, and GAIA benchmarks. ABSeeker achieves the best performance among 4B search agents on every benchmark and remains competitive with much larger 30B agents, while also generalizing effectively to unseen benchmarks. The core insight is that answer-backtracked step-level credit assignment preserves useful actions in failed trajectories and suppresses erroneous ones in successful trajectories, leading to more efficient and deliberate search behavior. Ablation studies confirm that this fine-grained credit assignment improves both supervised fine-tuning and reinforcement learning over standard trajectory-level approaches.

The rubric assigns step-level rewards by accumulating deltas for specific behaviors relative to a base score of 1.0, then clipping to [0, 2.0]. Positive deltas are given for discovering or verifying correct clues and ruling out incorrect candidates, while negative deltas penalize incorrectly dismissing correct clues or submitting wrong answers. This fine-grained credit assignment allows useful steps in failed trajectories to receive positive rewards and erroneous steps in successful trajectories to be penalized. Discovering or verifying a correct clue yields the largest positive delta (+0.8), while submitting an incorrect answer incurs the largest penalty (-1.0). Ruling out an incorrect candidate provides a moderate positive signal (+0.4), and incorrectly dismissing a correct clue carries a symmetric negative delta (-0.8). Submitting the verified answer adds a full +1.0 delta, and all deltas accumulate on a base score of 1.0 before clipping to the range [0, 2.0]. Nearly 10% of steps in failed trajectories receive rewards above 1.0 because they still discover or verify useful clues, and about 4% of steps in successful trajectories fall below 1.0 due to low-quality actions.

The 4B-parameter ABSeeker search agent leads all comparable-sized models on every evaluated benchmark and remains competitive with much larger 30B-class agents, surpassing them on xbench-2505 and GAIA-text. Its performance gains are driven by answer-backtracked step-level credit assignment, which rewards productive steps even in failed trajectories and penalizes low-quality steps in successful ones, and are further amplified by context management on BrowseComp benchmarks. The method also exhibits strong cross-benchmark generalization despite being trained solely on BrowseComp-style questions. ABSeeker achieves the highest scores among all 4B search agents on BrowseComp, BrowseComp-ZH, xbench-2505, xbench-2510, and GAIA-text. Despite its smaller size, ABSeeker outperforms all reported 30B agents on xbench-2505 and GAIA-text and surpasses several 30B systems on BrowseComp and BrowseComp-ZH. Training exclusively on BrowseComp-style questions, ABSeeker generalizes effectively to xbench and GAIA benchmarks. Step-level credit assignment identifies useful actions in nearly 10% of steps from failed trajectories and low-quality steps in about 4% of steps from successful trajectories, enabling more precise supervision than trajectory-level signals. ABC-GRPO training yields consistently stronger BrowseComp validation performance and longer search trajectories compared to standard trajectory-level GRPO. Applying a discard-all context management strategy with a 256K token limit improves ABSeeker from 37.3% to 55.3% on BrowseComp and from 39.1% to 52.9% on BrowseComp-ZH.

Fine-grained step-level credit assignment improves both supervised fine-tuning and reinforcement learning by rewarding useful actions even in failed trajectories and suppressing erroneous ones in successful trajectories. ABC-SFT outperforms standard SFT on four of five benchmarks, and ABC-GRPO consistently surpasses standard trajectory-level GRPO across all benchmarks without context management. The gains are attributed to independent per-step evaluation that preserves productive exploration and corrects mistakes more precisely than trajectory-level signals. ABC-SFT improves performance over standard SFT on BrowseComp, BrowseComp-ZH, xbench-2510, and GAIA-text while remaining comparable on xbench-2505. ABC-GRPO consistently outperforms standard trajectory-level GRPO across all five benchmarks. Even successful trajectories contain about 4% low-quality steps with rewards below 1.0, and nearly 10% of steps in failed trajectories receive rewards above 1.0, motivating step-level credit assignment. The largest absolute gains from ABC-GRPO over standard GRPO appear on BrowseComp and GAIA-text, with smaller but consistent improvements on xbench-2505.

ABSeeker, a 4B-parameter search agent, is evaluated on BrowseComp, xbench, and GAIA-text benchmarks. Its training uses answer-backtracked step-level credit assignment to reward productive steps in failed trajectories and penalize low-quality steps in successful ones, improving both supervised fine-tuning and reinforcement learning over trajectory-level signals. This fine-grained credit assignment, combined with context management on BrowseComp, enables ABSeeker to lead all comparable-sized models and surpass several 30B agents while generalizing effectively despite training only on BrowseComp-style questions.


بناء الذكاء الاصطناعي بالذكاء الاصطناعي

من الفكرة إلى الإطلاق — سرّع تطوير الذكاء الاصطناعي الخاص بك مع المساعدة البرمجية المجانية بالذكاء الاصطناعي، وبيئة جاهزة للاستخدام، وأفضل أسعار لوحدات معالجة الرسومات.

البرمجة التعاونية باستخدام الذكاء الاصطناعي
وحدات GPU جاهزة للعمل
أفضل الأسعار

HyperAI Newsletters

اشترك في آخر تحديثاتنا
سنرسل لك أحدث التحديثات الأسبوعية إلى بريدك الإلكتروني في الساعة التاسعة من صباح كل يوم اثنين
مدعوم بواسطة MailChimp