arXiv:2610.23167cs.AIOct 2026

Manuscript Offprint

arXiv:2610.23167

LongForge: Measuring and Improving Long-Context Instruction Data via Evidence-Assertion Reasoning Graphs

Ziyang Chen, Junlong Jia, Xing Wu, Tinghao Yu, Songlin Hu

Ziyang Chen ∗^{*}, Junlong Jia ∗^{*}, Xing Wu †^{\dagger}, Tinghao Yu †^{\dagger}, and Songlin Hu

Hunyuan Team, Tencent Chinese Academy of Sciences

Existing quality control for long-context instruction-tuning data is a one-shot judgment inside the generation pipeline that leaves only a scalar, revealing neither which document parts an answer uses nor how many reasoning steps it writes down; the data can thus be neither audited nor controlled. We formalize data quality as a property of the alignment structure among document, question, and answer, and build LongForge, which pairs an analyzer that measures long-context data with a synthesizer that generates it. The analyzer reverse-reconstructs each sample into an evidence–assertion reasoning graph and programmatically computes four dimensions on it: breadth, depth, correctness, and completeness. Every reading traces back to specific evidence spans and reasoning steps, making data auditable. Measuring seven mainstream datasets reveals two previously unquantified defects: breadth barely grows with document length, and depth is generally low, the two being nearly orthogonal. The synthesizer then embeds the analyzer into generation, gating on correctness and completeness and deferring breadth and depth to a training-time mixture over measured values, which makes the training distribution controllable. On two backbones, its two mixtures, LongForge-1 and LongForge-N, outperform the strongest baseline by 2.2–4.7 points on average over six long-context benchmarks, and in a controlled comparison that holds the gate and the candidate pool fixed, raising breadth and depth alone is worth a further 1.16 points, making the structural distribution of training data a lever on downstream quality rather than only a description of it.

Llama3.1-8B

Qwen3.5-4B

Figure

Baselines

LongAlign

LongReward

LongMIT

LongAlpaca

SEALONG

LongMagpie

Figure

Ours

LongFaith

LongForge-1

LongForge-N

Figure 1 | Six-benchmark results on the two backbones. Each sector is a benchmark, each bar a training dataset, and the center the six-benchmark average. Our two mixtures lead on both backbones; the numbers are in Table 2.

*Equal contribution. †Corresponding author. Correspondence to {ucaswu,maxwellyu}@tencent.com.

Figure

Figure 2 | Overview. (a) Existing data keeps only one-shot judgments. (b) The analyzer reconstructs an evidence–assertion reasoning graph and computes four dimensions on it. (c) Each synthesized sample carries these readings and is auditable and controllable.

1. Introduction

The effectiveness of long-context instruction tuning (Bai et al., 2024a; Chen et al., 2024b) depends heavily on the training data (Chen et al., 2026), yet how to define and measure the quality of long-context instruction-tuning data (hereafter, long-context data) remains open. Existing quality control, whether binary filtering after multi-agent verification (Chen et al., 2025), consistency-based selection (Li et al., 2024d), 0–10 scoring (Zhang et al., 2025), or ground-truth citations (Yang et al., 2025), is a one-shot judgment inside generation that leaves at most a scalar (Figure 2a); selecting samples by their long-range dependencies (Si et al., 2025) likewise reduces a sample to one number. A scalar cannot tell which parts of the document an answer uses or how many reasoning steps it writes down, so the data can be neither audited (tracing a reading to its source text and reasoning step) nor controlled (setting the training distribution over these structures).

We define quality on the alignment among the document, the question, and the answer, and build LongForge, which pairs an analyzer that measures long-context data with a synthesizer that generates it. The analyzer reverse-reconstructs a sample into an evidence–assertion reasoning graph (Figure 2b), whose evidence nodes are verbatim document spans, assertion nodes are the answer’s own sentences, and information points are the items the question asks for. Programs compute four dimensions on the graph, with the model making only local judgments: breadth, the number of distinct evidence spans used; depth, the longest path from evidence to a terminal assertion after paraphrase contraction; correctness, the share of reasoning steps supported by their inputs; and completeness, the share of information points answered by a non-isolated assertion.

Measuring seven mainstream datasets (Bai et al., 2024a; Chen et al., 2024b, 2025; Gao et al., 2025a; Li et al., 2024d; Yang et al., 2025; Zhang et al., 2025) reveals two previously unquantified defects. First, breadth barely grows with document length: the median breadth is 5, yet answers cover only 12.1% of the document on average, and a tenfold longer document raises evidence usage by only about 40%. Second, depth is low: 43.4% of the samples write down no explicit intermediate reasoning, and its Pearson correlation with breadth is only 0.070. Existing methods set conditions such as task types or hop counts before generation (Chen et al., 2025; Sun et al., 2026; Yuan et al., 2026), yet hops planned on a document graph do not guarantee that the answer writes down the corresponding reasoning, and no method measures these quantities afterwards, so breadth and depth have never been optimization targets. In addition, 23.3% of the reasoning steps are unsupported and 10.2% of the samples are incomplete.

The synthesizer embeds the analyzer into generation. Correctness and completeness decide whether a sample is usable, so they gate generation, and the failure reasons pinpointed by the analyzer are fed back for re-answering. Breadth and depth measure degree, so they are measured rather than targeted during generation, since targeting them would induce answers that are multi-step only in form, and are mixed when the training set is built. Every sample thus carries its reasoning graph and readings (Figure 2c), making the training distribution directly settable without regeneration.

From one synthesis pool we build two mixtures: LongForge-1, with breadth and depth moderately above the baseline level, and LongForge-N, which organizes the QA pairs of each document into a multi-turn dialogue. On two backbones, they exceed the strongest baseline by 2.2–3.0 and 3.1–4.7 points on average over six long-context benchmarks, whereas raising breadth and depth on the same QA pairs is worth 1.16 points; the gains are robust to the document source and synthesis model, and short-context ability stays on par with the baselines. Our contributions are:

  1. Auditable quality measurement: an evidence–assertion reasoning graph and an analyzer that compute four traceable quality dimensions on any long-context data.

  2. Structural diagnosis of existing data: across seven mainstream datasets, breadth barely grows with document length and depth is low, the two being nearly orthogonal.

  3. Controllable data synthesis: a synthesizer whose readings make the training distribution settable; its mixtures consistently outperform the strongest baseline.

References (50)