Self-Taught Agentic Long Context Understanding

Yufan Zhuang, Xiaodong Yu, Jialian Wu, Ximeng Sun, Ze Wang +5 more
2/21/2025
cs.CLcs.AI

No official code found. Best implementation: EvanZhuang/AgenticLU (14 stars, MIT, last commit 2025-09-22).

Abstract

Answering complex, long-context questions remains a major challenge for large language models (LLMs) as it requires effective question clarifications and context retrieval. We propose Agentic Long-Context Understanding (AgenticLU), a framework designed to enhance an LLM's understanding of such queries by integrating targeted self-clarification with contextual grounding within an agentic workflow. At the core of AgenticLU is Chain-of-Clarifications (CoC), where models refine their understanding through self-generated clarification questions and corresponding contextual groundings. By scaling inference as a tree search where each node represents a CoC step, we achieve 97.8% answer recall on NarrativeQA with a search depth of up to three and a branching factor of eight. To amortize the high cost of this search process to training, we leverage the preference pairs for each step obtained by the CoC workflow and perform two-stage model finetuning: (1) supervised finetuning to learn effective decomposition strategies, and (2) direct preference optimization to enhance reasoning quality. This enables AgenticLU models to generate clarifications and retrieve relevant context effectively and efficiently in a single inference pass. Extensive experiments across seven long-context tasks demonstrate that AgenticLU significantly outperforms state-of-the-art prompting methods and specialized long-context LLMs, achieving robust multi-hop reasoning while sustaining consistent performance as context length grows.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of Self-Taught Agentic Long Context Understanding (ACL 2025).

141Shell, PythonFeb 15, 20251 years agoMIT

Similar Papers

Cite this paper

@article{zhuang2025selftaught,
  title  = {Self-Taught Agentic Long Context Understanding},
  author = {Yufan Zhuang and Xiaodong Yu and Jialian Wu and Ximeng Sun and Ze Wang and Jiang Liu and Yusheng Su and Jingbo Shang and Zicheng Liu and Emad Barsoum},
  year   = {2025},
  eprint = {2502.15920},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.15920v2}
}

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/2502.15920.svg)](https://codeofpaper.com/paper/2502.15920)

Discussion