Long-Context Reasoning Through Proxy-Based Chain-of-Thought Tuning

Miao Li, Irina Saparina, Alexander Gurung, Mirella Lapata

TL;DR

While modern Large Language Models (LLMs) boast massive context windows capable of processing millions of tokens, their ability to perform complex reasoning over long documents remains surprisingly weak. To bridge this gap, the authors introduce ProxyCoT, a two-stage training framework that first teaches models to generate high-quality chain-of-thought (CoT) reasoning traces on short, information-dense "proxy contexts," and then trains them to ground these exact reasoning steps within full, long-context inputs. This approach significantly boosts long-context reasoning performance across different model families while drastically reducing training and inference costs.

What Problem Does This Paper Address?

We are living in the era of massive context windows, with models routinely accepting inputs up to millions of tokens long. However, a frustrating paradox remains: if you ask an LLM to solve a complex, multi-step reasoning problem embedded within a massive document, it often fails.

Interestingly, the authors observe a massive performance disparity: if you strip away the fluff and present the model with only the specific sentences or metadata needed to answer the question—termed the proxy context—the model performs beautifully.

Performance disparity between full long contexts and short proxy contexts.

As shown in Figure 1, models excel when evaluated on short proxy contexts (~650 tokens) compared to full long contexts (128K tokens), even though both require the exact same underlying reasoning steps. When forced to read the full text, LLMs struggle to ground their reasoning in the relevant evidence, often hallucinating specific facts despite setting up a plausible high-level plan.

Directly training models to reason over long contexts using Reinforcement Learning (RL) is prohibitively expensive due to the computational cost of sampling long sequences. ProxyCoT addresses this by leveraging short proxy contexts as a stepping stone.

Methods

ProxyCoT operates on a simple but powerful hypothesis: the underlying reasoning process should be invariant to the length of the context representation. The framework trains models using a two-stage teacher-student paradigm:

The two-stage pipeline of ProxyCoT and its variants.
  1. Stage 1: Acquiring CoT on Short Proxy Contexts The goal here is to obtain high-quality reasoning traces ($t$) using only the compact proxy context ($C^p$). The authors propose two ways to do this (Figure 2, right):

  2. ProxyCoT-ZS (Zero-Shot Distillation): A large, powerful off-the-shelf teacher model generates reasoning traces on the short proxy context. Only traces that yield correct answers are kept.

  3. ProxyCoT-RL (Reinforcement Learning): If a teacher model isn't available, the target model is trained directly on the proxy contexts using Reinforcement Learning with Verifiable Rewards (RLVR). Because the context is short, this RL exploration is highly efficient.
  4. Stage 2: Grounding CoT in Full Long Contexts The student model (the target model) is fine-tuned via Supervised Fine-Tuning (SFT). Crucially, it is given the full long context ($C$) but is trained to reproduce the high-quality reasoning traces ($t$) and answers ($a$) derived from the proxy context in Stage 1. This teaches the model how to locate and ground its reasoning within extensive text.

Datasets

The framework was evaluated on two primary long-context question-answering benchmarks, scaled up to 128K tokens:

  • SciTrek: A benchmark testing reasoning over collections of full-text scientific articles. The proxy context used was a structured textual representation of article metadata (titles, authors, references).
  • HotpotQA: A multi-hop QA dataset based on Wikipedia. The authors expanded the context length by appending cited distractor articles. The proxy context consisted of the human-annotated supporting sentences.
  • Loong: An out-of-domain benchmark featuring financial reports and academic papers, used strictly to test the model's generalization capabilities.

Key Insights and Ideas

  • Reasoning Invariance as a Training Signal: Instead of forcing a model to learn how to think and where to look at the same time over 128K tokens, ProxyCoT decouples these challenges. It teaches the model how to think on short text first, then teaches it where to look in long text.
  • RL on Short Proxies is a Cheat Code: Running RLVR on 128K tokens is a computational nightmare. Running it on <1K token proxies allows smaller models to discover task-specific reasoning structures efficiently, which can then be transferred to long contexts.
  • Shorter Inference Traces: Surprisingly, models trained via ProxyCoT-RL actually generate shorter and more concise reasoning traces at inference time compared to standard SFT or zero-shot baselines, leading to lower inference-time compute budgets.

Key Results

The authors experimented using Qwen3-4B-Instruct and Gemma3-4B-IT. The results show substantial improvements over standard long-context training baselines:

  • SciTrek Performance: On full long contexts, zero-shot Qwen3-4B scored 30.8% Exact Match (EM). ProxyCoT-RL boosted this to 46.5%, approaching the performance of the massive Qwen3-235B teacher model (48.8%). Gemma3-4B-IT saw an even more dramatic leap, skyrocketing from a baseline of 3.0% to 43.7% EM.
  • HotpotQA Accuracy: Qwen3-4B improved from a zero-shot baseline of 44.5% to 52.7% using ProxyCoT-RL.
  • Out-of-Domain Generalization: When models trained on SciTrek were evaluated on the completely unseen Loong benchmark, they showed remarkable cross-domain gains. For instance, on academic papers within Loong, Gemma3-4B-IT's score jumped from 3.55 to 24.32 (on a 1–100 scale judged by GPT-5-mini).

Limitations and Future Work

Despite its success, ProxyCoT relies on a significant assumption: the availability of high-quality proxy contexts (like human annotations or structured metadata). For many real-world datasets, these proxies do not exist out of the box. While the authors showed that the method is robust to a moderate amount of injected noise, performance drops sharply if proxies are built using naive information retrieval methods (like standard BM25 or embedding searches).

Future work will focus on developing algorithms to automatically discover or construct effective proxy contexts from raw, unannotated long documents.

Summary updated

Abstract

Recent large language models support inputs of up to 10 million tokens, yet they perform poorly on long-context tasks that require complex reasoning. Such tasks can be solved using only a subset of the input -- a proxy context -- rather than the full sequence. Despite sharing the same underlying reasoning process, models exhibit a significant performance disparity between proxy and full contexts. To improve long-context reasoning, we propose ProxyCoT, a novel training framework that transfers reasoning capabilities from short proxy contexts to full long contexts. Specifically, we first obtain high-quality chain-of-thought reasoning traces on proxy contexts through reinforcement learning or distillation from a larger teacher model, and then ground the generated traces in full long contexts with supervised fine-tuning. Experiments across different datasets demonstrate that ProxyCoT consistently outperforms strong baselines with reduced computational overhead. Furthermore, models trained with ProxyCoT generalize their long-context reasoning capabilities to out-of-domain tasks.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
SciTrekProxyCoT-RL (Qwen3-4B-Instruct)Exact match (EM)46.5+13.6 vs baselineQuestion Answering · params=4B · context=full long contexts · backbone=Qwen3-4B-Instruct
Source quote
L276: ProxyCoT-RL │ ~~~617 │ 46.5
Loong · Academic PapersGemma3-4B-IT + ProxyCoT-RLAnswer quality (GPT-5 mini judge)24.32 1–100 scaleQuestion Answering · params=4B · judge=GPT-5 mini · backbone=Gemma3-4B-IT · language=English · training-data=SciTrek · context-length=up to 128K tokens
Source quote
L297: ProxyCoT-RL │ 32.05 │ 24.32
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
SciTrekRLVR on full context (Qwen3-4B-Instruct) baselineExact match (EM)32.9Question Answering · params=4B · context=full long contexts · backbone=Qwen3-4B-Instruct
Source quote
L273: RLVR on C │ ~~~937 │ 32.9
BibTeX
@inproceedings{li2026long,
  author = {Miao Li and Irina Saparina and Alexander Gurung and Mirella Lapata},
  title = {{Long-Context Reasoning Through Proxy-Based Chain-of-Thought Tuning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1917},
}

Loading related content...

Figure