LongTraceRL: Learning Long-Context Reasoning from Search Agent Trajectories with Rubric Rewards

Nianyi Lin, Jiajie Zhang, Lei Hou, Juanzi Li
5/29/2026
cs.CLcs.AIcs.LG

Official code: THU-KEG/LongTraceRL (40 stars, last commit 2026-06-01).

Abstract

Long-context reasoning remains a central challenge for large language models, which often fail to locate and integrate key information in extensive distracting content. Reinforcement learning with verifiable rewards (RLVR) has shown promise for this task, yet existing methods are limited by low-confusability distractors and sparse, outcome-only reward signals that cannot supervise intermediate reasoning steps. To address these issues, we introduce \textsc{LongTraceRL}. For data construction, we generate multi-hop questions via knowledge graph random walks and leverage search agent trajectories to build \emph{tiered distractors}: documents the agent read but did not cite (high confusability) and documents that appeared in search results but were never opened (low confusability), producing training contexts that are far more challenging than those built by random sampling or one-shot search. For reward design, we propose a \emph{rubric reward} that uses the gold entities along each reasoning chain as fine-grained, entity-level process supervision. This rubric reward is applied only to responses with correct final answers (positive-only strategy), distinguishing the reasoning quality among correct responses and preventing reward hacking. Experiments on three reasoning LLMs (4B--30B) across five long-context benchmarks demonstrate that \textsc{LongTraceRL} consistently outperforms strong baselines and encourages comprehensive, evidence-grounded reasoning. Codes, datasets and models are available at \href{https://github.com/THU-KEG/LongTraceRL}{https://github.com/THU-KEG/LongTraceRL}.

View on arXivView PDF

Code Implementations(1)

LongTraceRL: Learning Long-Context Reasoning from Search Agent Trajectories with Rubric Rewards

400Cuda, JustMay 27, 20264 months ago

Similar Papers

Cite this paper

@article{lin2026longtracerl,
  title  = {LongTraceRL: Learning Long-Context Reasoning from Search Agent Trajectories with Rubric Rewards},
  author = {Nianyi Lin and Jiajie Zhang and Lei Hou and Juanzi Li},
  year   = {2026},
  eprint = {2605.31584},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.31584v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.31584.svg)](https://codeofpaper.com/paper/2605.31584)

Discussion