betaFeedback

WorksComputer Science

Post-Training Agents for Long-Document Reasoning

Abstract

Professional documents are a long-context workload that retrieval-style benchmarks do not capture. In a ten-domain enterprise collection, a task's evidence is spread across a source document of median length 27 pages (mean 48.8, maximum 873); a third of tasks rest mainly on charts, drawings, and maps; and 70.9% require two or more reasoning hops. We post-train Kimi-K2.7, an open-weight foundation model, at its full context window on 1,465 expert-authored tasks with atomic rubrics from that collection, training rank-32 adapters with one round of privileged-context on-policy self-distillation followed by two rounds of rubric-reward reinforcement learning. We render each PDF as text for training and as extracted text plus selected page images at evaluation. The smoothed RL training reward rises from 0.37 in the first tenth of the run to 0.67 in the last. On the 100-task GDP.pdf holdout, served in a 262,144-token window, strict pass (all rubric criteria met) more than doubles after the second round, from 11.0% to 24.5%, with gains across input lengths up to 240K tokens. Mean tokens generated stay flat (9,803 to 9,733), so the gain does not come from longer outputs. GPT-5.6 Sol's leaderboard strict pass is 30.7% at a measured 3,422 tokens. On 220 out-of-domain GDPval tasks, where the model runs as a long-horizon tool-using agent, mean rubric reward rises from 0.571 to 0.746 after the third round and zero-credit tasks fall from 54 to 10, while messages per task fall 18%, from 70.9 to 58.2. In paired trajectories, the third round replaces a context-thrashing retry loop with one up-front check of all sources, and verification extends from checking that files exist to checking what they contain. We argue that long-context evaluation of agents should report accuracy jointly with tokens and turns, and that datasets of long documents should ship text and image renderings alongside each PDF.

Introduction

Much long-context evaluation is built around locating evidence: find the needle, or answer the question whose evidence sits at a controlled depth [11, 17, 15]. Professional documents pose the problem differently. The evidence for a benefits question may be a footnote three pages after the table it qualifies. A wiring question requires choosing the right diagram by serial-number range before tracing a wire across a page image, and a productivity rollup depends on which of two case volumes a formula applies to. The difficulty lies in holding scope, exclusions, visual encodings, and definitions steady across a long, mixed-modality document.

We post-train Kimi-K2.7 [23, 14], an open-weight model, at its full context window on 1,465 such document tasks with expert rubrics. Alongside accuracy, we measure the tokens it generates on the in-domain GDP.pdf holdout [8], whose 100 public tasks are single-turn and disjoint from the training tasks, and the turns and messages it uses when run as a long-horizon agent on 220 GDPval tasks that require tools and deliverables [26]. A companion report on the same training run presents the benchmark results after the first two rounds and an analysis of tool use on GDPval [31]. This paper adds the workload analysis, the training dynamics, the third round, the tokens and turns the trained policy spends, and trajectory changes across rounds. We write M0M_0 for the base model and M1M_1, M2M_2, and M3M_3 for the checkpoints after training rounds 1–3 (R1–R3 in tables): distillation, reinforcement learning (RL), and continued RL.

Our contributions are: (i) a characterization of professional-document reasoning as a long-context multimodal workload, with page, hop, and modality distributions over a ten-domain collection, input sizes in tokens, and frontier pass rates that show it is unsolved (§ 3); (ii) the post-training recipe and its dynamics: privileged-context on-policy self-distillation followed by rubric-reward RL, the mechanics that keep the teacher’s longer prompt from truncating the student’s response, and the training reward over the RL run (§ 4); (iii) measurements showing that post-training more than doubles in-domain strict pass (11.0% to 24.5%) at constant token spend, with gains across input lengths up to 240K tokens, and that out-of-domain scores rise as messages fall (§ 5); (iv) measured and qualitative evidence of what changes in the trajectories: writing the deliverable, budget-aware research, checks on the content of the deliverable, and scope held across long documents (§ 6); and (v) recommendations for long-context evaluation and dataset release (§ 7).

Related work

Long-context benchmarks range from synthetic suites that control the position and density of evidence [11, 15] to multitask suites over realistic long inputs [3, 4] (Yen et al. 2025). LongProc tests long-form procedural generation [Ye et al., 2025], and positional effects are well documented [17]. Document-understanding benchmarks address visually rich pages [21] and long, multi-page documents [20, 6, 32], and GDP.pdf catalogs the failure modes of frontier models on real professional PDFs [8]. Long-horizon agentic evaluation adds tool use and deliverables [26, 25] (Xu et al. 2025), and work on evaluating agents and models argues for reporting cost alongside accuracy [13, 7]. On the training side, our recipe combines self-distillation from privileged information [27] (Zhao et al. 2026), a form of on-policy distillation [1, 18], with criterion-level rewards [10, 38, 22, 5] and low-rank adaptation [12, 33]. Concurrently, Wang et al. [2026b] warm-start rubric-based RL with on-policy distillation from a larger teacher that reads the rubric; our first round instead uses the student checkpoint as its own teacher, conditioned on written feedback about an earlier attempt. Reinforcement learning on long inputs has been applied to question answering scored against reference answers [39] (Wang et al. 2026a) and to agents that search and read the pages of long documents over multiple turns [16] (Yang et al. 2026); we train on single-turn professional tasks graded by expert rubrics and evaluate the trained model both on single-turn tasks and as a tool-using agent. Document-parsing vendors report that supplying a structured parse alongside the original PDF raises frontier-model accuracy on GDP.pdf [30] (Pulse 2026).

Professional documents as a long-context workload

The training corpus is drawn from an expert-authored collection of prompts paired with real professional PDFs across ten domains. Each task supplies the source PDF, a workflow-realistic question written by a domain expert from work they had recently performed, and an atomic rubric (mean about 11 criteria, maximum 30; Appendix § 10). Each criterion is a single auditable statement with subjectiveness and severity metadata, typed as primary intent (what the prompt leads the user to expect) or dodged bullet (the absence of a likely error that the prompt does not mention).

Length. The 2,485 tasks profiled in the collection’s catalog draw on 121,158 pages (Table 1), with a median of 27 pages per task and a mean of 48.8. Engineering and finance documents average more than 60 pages, and the longest document, at 873 pages, is from construction. The 1,465 training tasks alone draw on 73,609 pages. Under our evaluation rendering, the inputs of the 100 holdout tasks range from 6K to 240K tokens, with a median of 87K [31].

DomainTasksTotal pagesMedianMeanMax
Engineering24115,4373764.1407
Finance/Investing29518,7063963.4384
Construction26414,3152654.2873
Legal22311,9603053.6382
Manufacturing/Supply chains24812,4483150.2302
STEM/Research24711,3002545.7498
Insurance23310,2952644.2552
HR2279,3713041.3336
Real estate2368,4892036.0475
Healthcare2718,8371632.6375
All2,485121,1582748.8873

Table 1. Source-page profile, by domain, of the enterprise collection that supplies the 1,465 training tasks. Values come from the collection’s catalog at the time of the study; its rows cover 2,485 of the 3,001 tasks it listed.

Dispersion. Table 2 shows that 70.9% of tasks require two or more reasoning hops, and 12.4% require ten or more. In the tasks we reviewed, hops are dependent lookups (a serial number that selects a diagram, a legend that decodes a fill color, a footnote that qualifies a table row), so the evidence for a single answer is distributed across the document and must be composed in order.

HopsTasksShareEvidenceTasksShareModelpass@1pass@3
172229.1%Mostly text1,24650.4%GPT-5.6 Sol (Medium)38.5%48.7%
247119.0%Mostly visual85134.5%Claude Opus 4.826.4%35.1%
331312.6%Roughly even37315.1%Gemini 3.5 Flash25.2%35.0%
4–537315.0%Gemini 3.1 Pro (High)24.0%33.9%
6–929912.0%Muse Spark 1.123.9%33.3%
10+30712.4%Kimi K2.619.6%28.2%

Table 2. Reasoning hops and dominant evidence modality in the same catalog (hop counts for 2,485 tasks, evidence for 2,470), and frontier pass rates across the collection’s prompts at that time. Parentheses give a model’s reasoning-effort setting.

Modality. A third of tasks (34.5%) rest mainly on visual evidence (charts, floor plans, schematics, maps), and a further 15.1% draw evenly on text and images. The long context therefore mixes extractable text with images, and reducing those images to text loses part of the encoding the question depends on.

The workload is unsolved at the frontier. Across the collection’s prompts, the best pass@1 was 38.5% (GPT-5.6 Sol at medium reasoning effort) and pass@3 was 48.7%; Kimi K2.6 reached 19.6%. On the 100-task GDP.pdf holdout, the highest entry on the public leaderboard when this study ran (July 2026) was GPT-5.6 Sol (Max), at 30.7% strict pass, the share of tasks with every rubric criterion satisfied [8]. The benchmark keeps only tasks that at least two frontier models failed at collection time. The recurring failures cataloged for that benchmark include table misalignment, chart misreading, ignored footnotes and exclusions, and superseded evidence [8]. We read these as failures to hold scope across a long document.

Post-training recipe and dynamics

Rendering documents for the model

Self-hosted open-weight models have no document input: the serving stack accepts text and, at most, images, so the harness must render each PDF itself. Hosted APIs accept PDFs but convert them in provider-specific ways, typically to an image of each page plus extracted text [24]

Anthropic, 2026, Google, 2026], so a comparison on raw PDFs measures a model together with its provider’s document pipeline. For training, OCR and text extraction turn each PDF into a Markdown rendering in which tables, charts, and figures are transcribed by a separate model (GPT-5.4 Mini), and maps and floor plans become structured records; without this step, training would have needed a context window of more than 256K tokens. Training runs at the model’s full context window; 20 of the 1,465 tasks, whose documents exceed 300 pages, were filtered out during training because they did not fit.

In the main evaluation setup, the user message holds the question, a relevance guide derived from the question (likely relevant pages with excerpts), the extracted text of the complete document, and up to 16 selected page images; it is served in the model’s 262,144-token window. Page images account for most of the input tokens at evaluation.

Privileged-context distillation

Round 1 of the recipe is privileged-context on-policy self-distillation. Each round-1 task carries criterion-targeted feedback zz from GPT-5.6 Sol (Max) on an earlier attempt, written before training; the student never sees zz. The student samples a response yy to the public task xx; the same checkpoint, with the same active adapter, then acts as the teacher and scores the exact sampled tokens under the privileged prompt (x,z)(x, z). There is no task reward, so the token-level advantage is −λ(log⁡πθ(yt∣x,y<t)−sg⁡[log⁡qθ(yt∣x,z,y<t)])-\lambda\left(\log\pi_\theta(y_t \mid x,y_{<t})-\operatorname{sg}[\log q_\theta(y_t \mid x,z,y_{<t})]\right), where λ\lambda is a fixed coefficient, qθq_\theta is the same network conditioned on the privileged prompt, and sg⁡[⋅]\operatorname{sg}[\cdot] is a stop-gradient that treats the teacher’s probabilities as fixed targets [18] (Zhao et al. 2026).

The teacher prompt is strictly longer than the student’s, and the teacher must fit the whole student response after it. The student’s maximum new tokens are therefore capped before generation at the usable context limit minus the teacher prompt length, where the usable limit is the minimum of the rollout limit, the training sequence length, and the model’s positional limit. A sample with no positive budget fails before generation rather than being truncated. Aborted, empty, truncated, or over-context traces are rejected and never trained on as complete answers (the RL rounds likewise drop truncated samples and oversample with up to 16 retries). Teacher scoring is a prefill with zero new tokens over the teacher prompt and the student’s recorded token IDs, so no decode-and-retokenize step can change what is scored.

Rubric-reward reinforcement learning

Rounds 2 and 3 are rubric-reward RL: eight samples per prompt, with every rubric criterion judged by GPT-5.4 Mini at medium effort. The reward (Figure 1) is the severity-weighted fraction of criteria satisfied: primary-intent criteria weigh 1.0, 0.6, or 0.3 according to their severity label, dodged-bullet criteria enter as penalties rather than as credit, and the result is floored at zero (Appendix § 9). The policy update uses group-relative advantages [34] (Zheng et al. 2025) with truncated importance sampling (TIS) [Yao et al., 2025] and asymmetric clipping (0.20/0.28) [Yu et al., 2025]. Each response is capped at 65,536 tokens; the context is the model’s full window. Training runs on 64 H200 GPUs with context, tensor, pipeline, expert, and sequence parallelism and dynamic batching. It updates a rank-32 LoRA adapter over frozen base weights [12]. Round 1 uses 600 tasks and round 2 a disjoint 865, both balanced across the ten domains; round 3 continues RL from the round-2 adapter on the same 865-task pool under the same configuration (Table 7).

RL training reward plot

Figure 1. RL training reward: the severity-weighted rubric reward on training prompts, as an exponential moving average over 32 steps, plotted against the share of the logged run completed.

FieldValueFieldValue
Base modelKimi-K2.7AdapterLoRA, rank 32, alpha 32, dropout 0
Adapter targetsq_a_proj, q_b_proj, kv_a_proj_with_mqa, kv_b_proj, o_proj, gate_proj, up_proj, down_proj
Tasks600 (R1); 865 (R2, R3)Batch size64 prompts per update
Samples per prompt8ContextFull model window
Response cap65,536 tokensMax tokens per GPU32,768 (dynamic batching)
ParallelismTP8, PP4, CP2, EP16; sequence parallelTemperature / top-pp0.7 / 0.95
Truncated samplesDropped (oversampling retries: 16)Reasoning effortMaximum
Criterion judgeGPT-5.4 Mini, medium effortFeedback model (R1)GPT-5.6 Sol (Max)
AdvantageGroup-relative; TIS onClipping (low / high)0.20 / 0.28
Rollout routing replayOnEntropy / KL coefficients0 / 0
OptimizerAdam, (β1,β2)=(0.9,0.98)(\beta_1, \beta_2) = (0.9, 0.98)Learning rate10−510^{-5}, constant
Weight decay0.1Gradient clipping0.1
Hardware8 nodes ×\times 8 H200Checkpoint intervalEvery 5 updates
BackendMegatron with FlashAttentionSeed42

Table 7. RL training configuration. The feedback model applies to the distillation round (R1), which also lowers the response cap to fit its privileged context.

Training dynamics

Over the logged RL run (Figure 1), the training reward rises from 0.37 at the start to a peak of 0.74 near the end and finishes at 0.66. Its mean is 0.37 over the first tenth of the run and 0.67 over the last. The reward recovers to a new high after each of five falls of more than 0.10 below its running maximum, the largest from 0.68 to 0.53 about two-thirds of the way through.

Results: accuracy, tokens, and turns

In domain, accuracy per token more than doubles. On the 100-task holdout (Table 3), strict pass rises from 11.0% at base to 13.0% for M1M_1 and 24.5% for M2M_2, and the criterion pass rate from 0.660 to 0.765 (a single run for M2M_2). Mean tokens generated go from 9,803 to 10,775 and back down to 9,733, so M2M_2 earns more than twice as many strict passes per token as the base model at the same output length (2.52 versus 1.12 per hundred thousand tokens generated). The strict-pass gain appears in all ten domains, and each of the four evaluation runs behind the 24.5% figure (23% to 27%) exceeds the base run in a paired test (exact McNemar p≤0.003p \le0.003) [31].

Table 3: In-domain holdout: the 100 public GDP.pdf tasks at pass@1, served in a 262,144-token window. The M2M_2 strict pass averages four evaluation runs (23, 24, 24, 27%); the M2M_2 criterion pass rate comes from a single run, and all other cells are reported as single values. The GPT-5.6 Sol strict pass (public leaderboard, Max setting, July 2026) and criterion pass rate (from the leaderboard’s evaluation data) were not produced under this harness; its token count is our measurement, so its passes-per-token ratio combines the two sources.

MetricBase M0M_0After R1 M1M_1After R2 M2M_2GPT-5.6 Sol
Strict pass (all criteria)11.0%13.0%24.5%30.7% (leaderboard)
Criterion pass rate (per-task mean)0.65990.67860.76490.8260
Tokens generated (mean)9,80310,7759,7333,422
Strict passes per 100K tokens1.121.212.528.97

Table 3.

The gain holds across input lengths. Strict pass rises in every input-length bucket (Table 5), with the largest gain on the 19 inputs longer than 128K tokens (10.5% to 30.3%). On the 72 inputs longer than 64K tokens it rises from 8.3% to 21.5%, and on the 28 shorter ones from 17.9% to 32.1%. The gain on the longer inputs minus the gain on the shorter ones is −1.1 points (95% bootstrap interval −13.0 to +9.7), so there is no evidence that the gain shrinks with input length [31].

Input tokensTasksBase M0M_0After R2 M2M_2
Under 32K120.0%12.5%
32K–64K1631.2%46.9%
64K–128K537.5%18.4%
Over 128K1910.5%30.3%
At or under 64K2817.9%32.1%
Over 64K728.3%21.5%

Table 5. Strict pass on the GDP.pdf holdout by evaluation input length in tokens [31]; the M2M_2 figures are four-run means.

The frontier reference locates the efficiency gap. GPT-5.6 Sol’s leaderboard strict pass is 30.7% (Max setting) and its measured mean output is 3,422 tokens, or 8.97 strict passes per hundred thousand tokens if the two figures are combined (Figure 2a). The trained open model has closed much of the accuracy gap (24.5 versus 30.7) and almost none of the spend gap. The open model still reasons at length over the rendered document where the references answer briefly; whether that reflects how each model attends to the long input or how each has been trained to reason is a question this study cannot separate.

Accuracy against tokens and turns

Figure 2. Accuracy against spend. (a) On the single-turn document interface, post-training moves the model upward at constant token spend; the frontier reference (leaderboard strict pass, measured output tokens) is more accurate and generates about a third as many tokens. (b) On the long-horizon agentic interface, turns (assistant messages) fall from 35.25 to 27.06 after the distillation round (M1M_1) and rise to 33.33, still below base, after the first RL round (M2M_2, the checkpoint with the most tasks at or above 90% of rubric points); the reference completes tasks in fewer than half the turns.

Out of domain, scores rise as messages fall. On GDPval, the policy runs a multi-turn tool loop that our post-training never exercised. GDPval prompts are short (median 2.4K characters), so a session’s long context comes from the model’s own tool use [31]. A turn is one assistant message; messages also count tool results and the prompt, so they are about twice as many. Mean rubric reward rises from 0.571 at base to 0.703 for M2M_2 and 0.746 for M3M_3, and zero-credit tasks fall from 54 to 29 and then 10 (Table 4). Mean messages per task fall 18%, from 70.9 at base to 58.2 for M3M_3 (67.0 for M2M_2). Task by task, M2M_2 scores above base on 119 tasks and below it on 63 (Wilcoxon signed-rank p<10−6p < 10^{-6}). Its gain in the share of tasks reaching 90% of rubric points extends to the four GDPval sectors with no counterpart among the training domains (20.0% to 33.7%) and to the 95 tasks with no input files (25% to 40%) [31].

Table 4: Out-of-domain evaluation on 220 GDPval tasks (tools, web, deliverables), run through the Inspect Evals harness [37] on the Inspect AI framework [UK AI Security Institute, 2024] and judged by GPT-5.4 Mini. Reward is the share of rubric points earned; points missed are (1−reward)(1-\text{reward}) times a rubric’s net point total, with penalty items counted as negative. M3M_3 comes from the third of three evaluation runs (§ 6).

MetricBase M0M_0After R1 M1M_1After R2 M2M_2After R3 M3M_3GPT-5.6 Sol (Medium)
Perfect (all points)6813914
≤1\le1 point missed2123321930
≤2\le2 points missed2528402639
≥90%\ge90\% of points4355725385
Mean rubric reward0.5710.7420.7030.7460.761
Zero-credit tasks5410291014

Table 4.

Accuracy against turns. Tokens generated on GDPval do not fall as messages fall, so the trained models finish in fewer, denser turns. After distillation, M1M_1 averages 27.06 turns against 35.25 at base and reaches the 90% threshold on 55 tasks against 43; M2M_2 reaches it on 72 at 33.33 turns (Figure 2b). GPT-5.6 Sol (Medium) reaches 85 tasks at the 90% threshold in a mean of 14.24 turns, so the turn axis, like the token axis, has substantial headroom.

Different checkpoints lead on different metrics. From M2M_2 to M3M_3, tasks scoring more than 0.10 above base rise from 62 to 70 and tasks more than 0.10 below base fall from 24 to 18. The gains of M3M_3 over M2M_2 are concentrated at the bottom of the distribution (zero-credit tasks, 29 to 10) and in messages (67.0 to 58.2). At the top, M2M_2 leads the trained checkpoints, with 13 perfect scores and 72 tasks at or above 90%, against 9 and 53 for M3M_3. After the distillation round alone, M1M_1 already reaches a mean reward of 0.742, with 10 zero-credit tasks and 70 tasks more than 0.10 above base.

Analysis of the trajectories

In the companion report’s GDPval replication (Table 6), M2M_2 covered more of the named sources than the base model while making fewer read-only tool calls, retrieved less text and repeated less of it, wrote fewer and longer reasoning messages, and checked its deliverable more often [31]. The paired trajectories below draw on seven GDPval tasks at M0M_0 and M3M_3, three of them also at M2M_2, and on five GDP.pdf tasks at M0M_0 and M2M_2 (scores are rubric fractions from single runs).

MeasureBase M0M_0After R2 M2M_2
Named source files accessed before building76.1%89.9%
Read-only tool calls per write call2.771.72
Environment text retrieved (tokens)13,4597,172
Share of retrieved text that is unique67.0%73.9%
Reasoning messages26.418.8
Words per reasoning message214486
Tasks with an executable check of the deliverable5.3%14.9%

Table 6. Session behavior on GDPval, base against M2M_2, in the companion report’s replication of the GDPval comparison: a separate 100-task run, measured on the 94 task pairs in which both models wrote a gradable deliverable (60 pairs with named input files for the first row). Means per task unless stated. The paired 95% bootstrap intervals of the changes in source coverage, read-only calls per task, retrieved text, unique share, and deliverable checks exclude zero [31].

Writing the deliverable. Some of the reviewed base trajectories end with a complete, correct solution in a final reasoning message and never issue the tool call that would write the file. On a leasing task, the base model’s final message contained every resident, every date, and the planned table layout but ended in stray tool-call tokens with no call issued (0.000). M3M_3 built both deliverables in one scripted step and read its own PDFs back through a text extractor before finishing (1.000; M2M_2 also scored 1.000). We set aside two of the three evaluation runs of M3M_3 because of a related failure (roughly 40% of their trajectories ended after a single reasoning-only message) and report the third.

Covering the whole task. In two examples from the companion report, the base model treated one part as the whole. On a GDP.pdf parts question it took one of six seaming stations for the whole machine, and on a GDPval workload task it computed monthly totals from the first of four weekly timekeeping sheets. In both cases M2M_2 first established the full extent of the task [31].

Context thrashing on blocked sources. A legal-memo task required a statute, an amending bill, and case law. The base model never crossed from research to writing (0.000). M2M_2 spent roughly 110 messages chasing sources that returned 403s and CAPTCHA walls, re-extracting the identical statutory text sixteen times, before it drafted and verified the memo (0.810). M3M_3 checked every source in a single message before committing effort and applied an explicit fallback rule (the blocked cases were available in synopsis form, which sufficed for the one required holding). It drafted early, expanded the draft with the remaining budget, and verified the memo by reading it back (0.905).

Staged, restartable builds. On a CAD task (STEP solids, drawings, rendered PDF), M2M_2 built all geometry and then wrote a blind 523-line drawing script in one shot. When the script failed, the model got stuck inspecting its own source line numbers and ended with no drawings (0.000). M3M_3 tested the SVG-to-PDF chain on a throwaway 10-box model before depending on it and asserted validity after nearly every boolean operation. After every patch it re-ran an idempotent build that regenerates the whole deliverable, so any crash cost only one iteration. It finished by re-importing the STEP files to check volumes, reading back the PDF text, and listing every output file (0.941).

Checking the deliverable. Across the replication, the share of tasks with an executable check of the written deliverable nearly triples (Table 6). On a journal-club scheduling task, M3M_3 collected all nine articles through heavy rate limiting with escalating backoff, validated each download by its file signature and by text it expected to find, caught that one month’s PDF was an unrelated 2022 report, and replaced it with the correct article before finishing. On a residency-tracking workbook, M2M_2 chose a standard-deviation convention without checking it and flagged four residents where two were intended (0.776); M3M_3 computed the flags under both the sample and the population convention, compared them, and kept the one that matched the intended set (0.836).

Scope errors in long documents. On each of the five GDP.pdf pairs, M2M_2 corrected a scope error that the base model made (Appendix § 11). It distinguished the designs plotted on the requested summary graphs from the larger implementation tables elsewhere in the document, and kept a medication lookup within the named table rather than importing associations from a broader one. It also used a serial number to select the correct wiring diagram before tracing a wire across the page image, read a map by its legend’s fill encoding rather than nearby prose, and defined the applicable case volume before applying a savings formula.

Implications for long-context evaluation and datasets

Report accuracy with spend. The trained model and the frontier reference differ most in spend, which accuracy alone does not show. We recommend reporting tokens generated per task on single-turn interfaces, and turns and messages per task on agentic ones, alongside pass rates [13], and describing improvements as movements in the plane of accuracy against spend (Figure 2).

Use thresholds and multiple runs. Strict pass on the 100-task holdout moved by four points across four runs of the same checkpoint (23–27%). Reported alongside a mean score, threshold metrics (perfect, at most one or two points missed, at least 90%) show whether a gain comes from near-misses or from complete passes.

Use one document rendering when comparing models. Providers ingest PDFs differently, so comparisons on raw documents also compare document pipelines.

Ship text and image renderings with long-document datasets. We recommend that dataset builders release, alongside each PDF, a Markdown rendering of the text with references to separate image files for each figure, chart, or drawing. Users who do not need the native PDF would train and iterate faster, and the visual evidence a third of tasks depend on would remain as images.

Guard long-prompt training against silent failures. Reserving the response budget against the longest prompt that must see the response keeps a response from being cut to fit a teacher. Rejecting truncated samples stops a truncated answer from being learned as complete, and teacher prefill over the exact token IDs avoids scoring a retokenized response under a shifted alignment.

Conclusion

Real professional documents are long, their evidence is dispersed, and they mix text with images. Frontier models do not yet solve them. After two rounds of post-training at full context on 1,465 tasks over such documents, an open-weight model more than doubled its strict pass on the in-domain holdout at constant token spend, with gains across input lengths up to 240k tokens. On long-horizon agentic work that the post-training never exercised, it raised scores and cut zero-credit tasks from 54 to 10 after a third round, in 18% fewer messages per task. In the trajectories, the third round replaced a blind script with a restartable build, and a long retry loop with one up-front check of all sources and a fallback rule; verification extended to the deliverable’s content, and, after two rounds the model held a question’s scope across pages and modalities. The frontier reference, more accurate at roughly a third of the tokens and under half the turns, marks the remaining headroom on spend.

Training configuration

Table 7: RL training configuration. The feedback model applies to the distillation round (R1), which also lowers the response cap to fit its privileged context.

The stack builds on slime for the distillation round, Miles for RL, SGLang for rollouts and teacher scoring, and Megatron for training [29] (Zhu et al. 2025; Zheng et al. 2024; Shoeybi et al. 2019), with rollout routing replay for the mixture-of-experts routers [19]. The teacher request supplies the teacher prompt’s token IDs concatenated with the student’s recorded response IDs, requests zero new tokens at temperature zero, and asks for log-probabilities starting one position before the response so that the first response token is included. The returned entries are checked against the response token IDs before use. Private feedback is held in process-local runtime state that is excluded from serialization and cleared after scoring. The re-rendered public prompt must match the recorded prompt prefix token for token. At evaluation, private context is stripped and teacher scoring does not run.

Model choice. We chose Kimi-K2.7 as the strongest open-weight model on the in-domain benchmark at project start; a 30B-parameter alternative scored too low to provide a usable reward signal.

Reward. Each rubric criterion ii carries a weight wiw_i set by its label: 1.0, 0.6, and 0.3 for primary-intent criteria marked as certain, possible, and unlikely dealbreakers, respectively, and 0.6 for dodged-bullet criteria. The judge returns one binary verdict per criterion. With PP the set of primary-intent criteria, S⊆PS \subseteq P those judged satisfied, and DD the dodged-bullet criteria to which the penalty applies, the reward is

r=max⁡(0, ∑i∈Swi−∑i∈Dwi)∑i∈Pwi,r = \frac{\max\left(0,\ \sum_{i\in S} w_i - \sum_{i\in D} w_i\right)}{\sum_{i\in P} w_i},

and r=0r = 0 when a task has no primary-intent criteria. Dodged-bullet criteria therefore never add credit and do not enter the denominator.

Rubric size distribution

In the catalog’s rubric table (2,485 tasks), 584 tasks (23.5%) have 1–5 criteria, 928 (37.3%) have 6–10, 470 (18.9%) have 11–15, 235 (9.5%) have 16–20, 136 (5.5%) have 21–25, and 132 (5.3%) have 26–30. Rubric size adds to a task’s context demand as document length does, since more criteria mean more distinct facts to hold from more places in the document.

Paired GDP.pdf comparisons

We compare five base trajectories with M2M_2 trajectories on the same tasks, each from a single evaluation run chosen for the comparison; scores are rubric fractions.

Plotted population versus full tables (0.000→1.0000.000 \to1.000). Asked for the highest-throughput designs under 1,500 LUTs on each of three summary graphs, excluding one named design, the base model drew on the full implementation tables elsewhere in the document and selected variants that were not the qualifying winners among the plotted designs. The trained checkpoint treated each graph as a separate constrained maximization over the plotted population and returned the correct design, area, throughput, and variant feature for each.

Scope of a named table (0.333→1.0000.333 \to1.000). Asked for medium-frequency animal models in a named table and the medications common to their associated disorders, the base model identified the models, then imported associations from a broader table and omitted two medications. The trained checkpoint kept the lookup within the named table.

Diagram selection before tracing (0.500→1.0000.500 \to1.000). Asked which replacement part connects to a fryer’s I/O board through a specified wire, given a serial number, the base model inspected the wrong wiring context and reverse-matched a guess to the parts list. The trained checkpoint used the serial range to select the correct diagram (manual page 2-35, PDF page 7), traced the wire from the I/O board connector to the transformer, and only then consulted the parts list.

Legend over prose (0.500→1.0000.500 \to1.000). Asked which natural resource appears within a property boundary on an indicated map and how many instances there are, the base model saw two solid-blue features that the legend marked as lakes, then let nearby prose about wetlands and ponds override the map and added an unrequested acreage. The trained checkpoint confined evidence to the indicated map and answered “two lakes.”

Definition before formula (0.500→1.0000.500 \to1.000). Asked for weekly mechanized-versus-manual productivity metrics, cost avoidance, payback, and projections, the base model applied the savings formula to all weekly cases rather than the mechanically processed cases, inflating savings and projections and shortening the payback estimate to seven months. The trained checkpoint defined the applicable volume first, produced the corrected weekly figures and a payback of about 10.3 months, and showed its weekly rollups so that they could be checked.

References

  1. [1]Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=3zKtaqxLhW.arxiv.org/abs/2306.13649
  2. [3]Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. LongBench: A bilingual, multitask benchmark for long context understanding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3119–3137. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.acl-long.172. URL https://aclanthology.org/2024.acl-long.172/.DOI
  3. [4]Yushi Bai, Shangqing Tu, Jiajie Zhang, Hao Peng, Xiaozhi Wang, Xin Lv, Shulin Cao, Jiazheng Xu, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. LongBench v2: Towards deeper understanding and reasoning on realistic long-context multitasks. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3639–3664. Association for Computational Linguistics, 2025. doi: 10.18653/v1/2025.acl-long.183. URL https://aclanthology.org/2025.acl-long.183/.DOI
  4. [5]Manish Bhattarai, Ismael Boureima, Nishath Rajiv Ranasinghe, Scott Pakin, and Dan O’Malley. Rubric-grounded RL: Structured judge rewards for generalizable reasoning. arXiv preprint arXiv:2605.08061, 2026. URL https://arxiv.org/abs/2605.08061. AI for Science Workshop at ICML 2026.
  5. [6]Chao Deng, Jiale Yuan, Pi Bu, Peijie Wang, Zhong-Zhi Li, Jian Xu, Xiao-Hui Li, Yuan Gao, Jun Song, Bo Zheng, and Cheng-Lin Liu. LongDocURL: a comprehensive multimodal long document benchmark integrating understanding, reasoning, and locating. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1135–1159. Association for Computational Linguistics, 2025. doi: 10.18653/v1/2025.acl-long.57. URL https://aclanthology.org/2025.acl-long.57/.
  6. [7]Mehmet Hamza Erol, Batu El, Mirac Suzgun, Mert Yuksekgonul, and James Zou. Cost-of-pass: An economic framework for evaluating language models. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=vc9S20zs gN.arxiv.org/abs/2504.13359
  7. [8]Suhaas Garre, Emily Ritchie, Sushant Mehta, and Edwin Chen. GDP.pdf: Benchmarking grounded multimodal reasoning over professional PDF documents. arXiv preprint arXiv:2607.11192, 2026. URL https://arxiv.org/abs/2607.11192. Workshop on Knowledge-Intensive Multimodal Reasoning (KnowledgeMR) at CVPR 2026.
  8. [10]Anisha Gunjal, Anthony Wang, Elaine Lau, Vaskar Nath, Yunzhong He, Bing Liu, and Sean Hendryx. Rubrics as rewards: Reinforcement learning beyond verifiable domains. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=c1bTCrDmt4.arxiv.org/abs/2507.17746
  9. [11]Cheng-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, Yang Zhang, and Boris Ginsburg. RULER: What’s the real context size of your long-context language models? In First Conference on Language Modeling, 2024. URL https://arxiv.org/abs/2404.06654.
  10. [12]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In The Tenth International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=nZeVKeeFYf9.arxiv.org/abs/2106.09685
  11. [13]Sayash Kapoor, Benedikt Stroebl, Zachary S. Siegel, Nitya Nadgir, and Arvind Narayanan. AI agents that matter. Transactions on Machine Learning Research, 2025. URL https://openreview.net/forum?id=Zy4uFzMviZ.arxiv.org/abs/2407.01502
  12. [14]Kimi Team. Kimi K2: Open agentic intelligence. arXiv preprint arXiv:2507.20534, 2025. URL https://arxiv.org/abs/2507.20534.
  13. [15]Yuri Kuratov, Aydar Bulatov, Petr Anokhin, Ivan Rodkin, Dmitry Sorokin, Artyom Sorokin, and Mikhail Burtsev. BABILong: Testing the limits of LLMs with long context reasoning-in-a-haystack. In Advances in Neural Information Processing Systems, volume 37, pages 106519–106554, 2024. doi: 10.52202/079017-3381. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/c0d62e70dbc659cc9bd44cbcf1cb652f-Abstract-Datasets_and_Benchmarks_Track.html.DOI
  14. [16]Jiaheng Lin, Kai Hu, Binghai Wang, Yuhao Zhou, Zhiheng Xi, Honglin Guo, Shichun Liu, Junzhe Wang, Shihan Dou, Enyu Zhou, Hang Yan, Zhenhua Han, Tao Gui, Qi Zhang, and Xuanjing Huang. MM-Doc-R1: Training agents for long document visual question answering through multi-turn reinforcement learning. In Findings of the Association for Computational Linguistics: ACL 2026, pages 29770–29783. Association for Computational Linguistics, 2026. doi: 10.18653/v1/2026.findings-acl.1488. URL https://aclanthology.org/2026.findings-acl.1488/.DOI
  15. [17]Nelson F. Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang. Lost in the middle: How language models use long contexts. Transactions of the Association for Computational Linguistics, 12:157–173, 2024. doi: 10.1162/tacl_a_00638. URL https://aclanthology.org/2024.tacl-1.9/.DOI
  16. [18]Kevin Lu and Thinking Machines Lab. On-policy distillation. Thinking Machines Lab: Connectionism, 2025. doi: 10.64434/tml.20251026. URL https://thinkingmachines.ai/blog/on-policy-distillation/.DOI
  17. [19]Wenhan Ma, Hailin Zhang, Liang Zhao, Yifan Song, Yudong Wang, Fuli Luo, and Zhifang Sui. Stabilizing MoE reinforcement learning by aligning training and inference routers. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 85320–85343. PMLR, 2026. URL https://proceedings.mlr.press/v306/ma26aw.html.arxiv.org/abs/2510.11370
  18. [20]Yubo Ma, Yuhang Zhang, Liangyu Chen, Meiqi Chen, Yizhu Jiao, Xinze Li, Xinyuan Lu, Ziyu Liu, Yan Ma, Xiaoyi Dong, Pan Zhang, Liangming Pan, Yu-Gang Jiang, Jiaqi Wang, Yixin Cao, and Aixin Sun. MMLongBench-Doc: Benchmarking long-context document understanding with visualizations. In Advances in Neural Information Processing Systems, volume 37, pages 95963–96010, 2024. doi: 10.52202/079017-3041. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/ae0e43289bffea0c1fa343633fc608e92-Abstract-Datasets_and_Benchmarks_Track.html.DOI
  19. [21]Minesh Mathew, Dimosthenis Karatzas, and C. V. Jawahar. DocVQA: A dataset for VQA on document images. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 2200–2209, 2021. doi: 10.1109/WACV48630.2021.00225. URL https://openaccess.thecvf.com/content/WACV2021/html/Mathew_DocVQA_A_Dataset_for_VQA_on_Document_Images_WACV_2021_paper.html.DOI
  20. [22]Sushant Mehta, Liudas Panavas, Eleanor Fleming, Paul Mains, and Edwin Chen. Complex-IF and beyond: Expert rubrics for RLVR. In Proceedings of the Fifth Workshop on Generation, Evaluation and Metrics (GEM), pages 668–677. Association for Computational Linguistics, 2026. doi: 10.18653/v1/2026.gem-main.61. URL https://aclanthology.org/2026.gem-main.61/.DOI
  21. [23]Moonshot AI. Kimi K2.7 Code. Hugging Face model card, 2026. URL https://huggingface.co/moonshotai/Kimi-K2.7-Code. Accessed November 2026.
  22. [24]OpenAI. File inputs. OpenAI API documentation, 2026. URL https://developers.openai.com/api/docs/guides/file-inputs. Accessed November 2026.
  23. [25]Liudas Panavas, Sebastian Minus, Bradley Monton, Derek Ray, Suhaas Garre, Sushant Mehta, and Edwin Chen. HANDBOOK.md: A benchmark for long-context agentic instruction following. arXiv preprint arXiv:2607.25398, 2026. URL https://arxiv.org/abs/2607.25398. Workshop on Agent Behavior (WAB) at COLM 2026.
  24. [26]Tejal Patwardhan, Rachel Dias, Elizabeth Proehl, Grace Kim, Michele Wang, Olivia Watkins, Simón Posada Fishman, Marwan Aljubeh, Phoebe Thacker, Laurance Fauconnet, Natalie S. Kim, Samuel Miserendino, Gildas Chabot, David Li, Patrick Chao, Michael Sharman, Alexandra Barr, Amelia Glaese, and Jerry Tworek. GDPval: Evaluating AI model performance on real-world economically valuable tasks. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=hcuEdq6eKD.
  25. [27]Emiliano Penaloza, Dheeraj Vattikonda, Nicolas Gontier, Alexandre Lacoste, Laurent Charlin, and Massimo Caccia. Privileged information distillation for language models. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 97829–97868. PMLR, 2026. URL https://proceedings.mlr.press/v306/penaloza26a.html.arxiv.org/abs/2602.04942
  26. [29]RadixArk. Miles v0.1: Production-level post-training. arXiv preprint arXiv:2609.08368, 2026. URL https://arxiv.org/abs/2609.08368. Code: https://github.com/radixark/miles.
  27. [30]Reducto. Reducto raises frontier model accuracy on GDP.pdf. Blog post, June 2026. URL https://reducto.ai/blog/reducto-raises-frontier-model-accuracy. Accessed November 2026.
  28. [31]Logan Ritchie, Sushant Mehta, Liudas Panavas, and Edwin Chen. Post-training Kimi-K2.7 on GDP.pdf: Benchmark results and transfer to tool-using professional tasks on GDPval. Technical report, Surge AI, September 2026. URL https://surgehq.ai/blog/gdp-pdf-post-training.
  29. [32]Jon Saad-Falcon, Joe Barrow, Alexa Siu, Ani Nenkova, Seunghyun Yoon, Ryan A. Rossi, and Franck Dernoncourt. PDFtriage: Question answering over long, structured documents. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 153–169. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.emnlp-industry.13. URL https://aclanthology.org/2024.emnlp-industry.13/.
  30. [33]John Schulman and Thinking Machines Lab. LoRA without regret. Thinking Machines Lab: Connectionism, 2025. doi: 10.64434/tml.20250929. URL https://thinkingmachines.ai/blog/lora/.DOI
  31. [34]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024. URL https://arxiv.org/abs/2402.03300.
  32. [37]UK AI Security Institute, Arcadia Impact, and Vector Institute. Inspect Evals. GitHub repository, 2024. URL https://github.com/UKGovernmentBEIS/inspect_evals. Maintained by Generality Labs. GDPval task: https://ukgovernmentbeis.github.io/inspect_evals/gdpval/. Accessed November 2026.
  33. [38]Vijay Viswanathan, Yanchao Sun, Shuang Ma, Xiang Kong, Meng Cao, Graham Neubig, and Tongshuang Wu. Checklists are better than reward models for aligning language models. In Advances in Neural Information Processing Systems, volume 38, 2025. doi: 10.52202/085713-3824. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/a6837c1dd021f76f1b4098e3722052a8-Abstract-Conference.html.DOI
  34. [39]Fanqi Wan, Weizhou Shen, Shengyi Liao, Yingcheng Shi, Chenliang Li, Ziyi Yang, Ji Zhang, Fei Huang, Jingren Zhou, and Ming Yan. QwenLong-L1: Towards long-context large reasoning models with reinforcement learning. arXiv preprint arXiv:2505.17667, 2025. URL https://arxiv.org/abs/2505.17667.

Paper details

vlnc:W_8ntsxtm9
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents