Manuscript Offprint

arXiv:2609.31382

Highlight-Then-Summarize: Learning to Compress Evidence for Long-Context Understanding

Zhaoyuan Xia, Qinghongbing Xie, Yung Xiang Hue, Jianguang Jiang, Gaofeng Lu, Zhenyu Jiao, Xing Yuan, Dai Dai, Tong Mo, Long Zeng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Long-context understanding is a fundamental capability for large language models to reason over lengthy documents, multi-turn conversations, and code. However, large language models often struggle with irrelevant and redundant information in long contexts, where task-relevant evidence can be sparse and scattered across distant positions, limiting their ability to reliably solve long context tasks. To address this problem, we propose Highlight-Then-Summarize (H2S), a compress-then-reason paradigm that identifies question-relevant evidence from long contexts and summarizes it into a focused representation, enabling LLMs to reason with less interference from irrelevant and redundant information. We construct H2S-Dataset, comprising 6,647 examples from 11 benchmark families with an average context length of 43.9K tokens, and introduce H2S-Bench for evaluation. H2S-14B, trained on H2S-Dataset, achieves an average score of 32.60 on H2S-Bench, outperforming Qwen3.8-27B by 10.17 points and achieving leading performance among open-source models. Further analysis shows that H2S-14B achieves the highest Evidence-Summary Quality (ESQ) score and retains 97.1% of its 16K-budget performance with only a 4K output budget, indicating that H2S produces higher-quality yet more compact reasoning. Our contributions are threefold: (1) a compress-then-reason paradigm, H2S, that focuses reasoning on relevant evidence while suppressing irrelevant context; (2) H2S-Dataset, a diverse training set comprising 6,647 examples from 11 benchmark families to support learning under the H2S paradigm; and (3) a reinforcement learning method, H2S-RL, with process-level rewards for evidence selection and summary construction. We hope this work provides a practical approach to improving long-context reasoning through evidence-focused summary. Code and H2S-Dataset will be released at https://github.com/X-Luffy/Highlight-Then-Summarize.

1 INTRODUCTION

Long-context understanding is increasingly important for tasks such as long-document question answering, multi-document reasoning, extended dialogue modeling, and repository-level code understandingBai et al. (2024b); Jimenez et al. (2024). Despite substantial advances in the context-window capacity of state-of-the-art LLMs Guo et al. (2025); Team et al. (2026); OpenAI (2025), effective reasoning over long inputs remains difficult because task-relevant evidence is typically sparse, distributed across distant regions of the context, and embedded within substantially more non-essential content Liu et al. (2024); Hsieh et al. (2024). Beyond evidence grounding, successful reasoning further requires establishing query-conditioned relations among dispersed evidence, including entity associations, temporal dependencies, logical conditions, and numerical constraints.

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

For example, resolving a repository-level bug may require tracing a failing API call across its interface definition, an implementation in another file, and a configuration change introduced elsewhere in the codebase.

References (27)