pith. sign in

arxiv: 2605.12906 · v2 · pith:OKRWYSAYnew · submitted 2026-05-13 · 💻 cs.LG · cs.AI

Data Difficulty and the Generalization--Extrapolation Tradeoff in LLM Fine-Tuning

Pith reviewed 2026-06-30 22:02 UTC · model grok-4.3

classification 💻 cs.LG cs.AI
keywords data difficultysupervised fine-tuningLLMgeneralization gapextrapolation gapPAC-Bayesian boundsdata selection
0
0 comments X

The pith

For a fixed data budget in LLM supervised fine-tuning, an optimal data difficulty exists and shifts toward harder examples as the budget grows.

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The paper shows that data difficulty in supervised fine-tuning of large language models has no single best level across all conditions. Its value instead depends on the total size of the training set. With smaller budgets, easier data tends to support better in-distribution accuracy. Larger budgets allow harder data to improve handling of cases outside the training distribution. Controlled synthetic experiments isolate the underlying tradeoff between staying close to the training distribution and extending beyond it, while PAC-Bayesian bounds supply matching theoretical support.

Core claim

There is no universally optimal difficulty level for data in SFT. For a fixed data budget there exists an optimal data difficulty, and this optimal difficulty shifts toward harder data as the data budget increases. This phenomenon arises from the interplay between the in-distribution generalization gap and the extrapolation gap, as revealed by controlled synthetic experiments and supported by PAC-Bayesian generalization bounds.

What carries the argument

The interplay between the in-distribution generalization gap and the extrapolation gap.

If this is right

  • Difficulty-based data selection must be adjusted according to available data volume rather than applied uniformly.
  • Larger data budgets favor selection of harder examples to reduce the extrapolation gap.
  • Prior inconsistent findings on heuristics such as perplexity or length likely result from not holding data size fixed.
  • PAC-Bayesian bounds can be used to anticipate how difficulty choice interacts with model and data scale.

Where Pith is reading between the lines

These are editorial extensions of the paper, not claims the author makes directly.

  • The same generalization-extrapolation tradeoff may account for why some data-selection heuristics succeed at small scale but degrade at larger scale.
  • Practical pipelines could incorporate a simple budget-dependent threshold when ranking examples by difficulty proxies such as loss.
  • The mechanism invites direct tests on held-out extrapolation tasks rather than in-distribution validation accuracy alone.

Load-bearing premise

The controlled synthetic experiments and PAC-Bayesian analysis capture the dominant mechanism operating in real LLM fine-tuning on natural language data.

What would settle it

An experiment on real LLMs and natural language data in which the optimal data difficulty does not shift toward harder examples when the data budget is increased would falsify the central claim.

Figures

Figures reproduced from arXiv: 2605.12906 by Jingzhao Zhang, Jingzhao Zhang (IIIS, Siyuan Liu, Tinghong Chen, Xinghan Li, Xinghan Li (IIIS, Yifei Wang, Yifei Wang (Amazon AGI SF Lab).

Figure 1
Figure 1. Figure 1: Relationship between data difficulty mea [PITH_FULL_IMAGE:figures/full_fig_p003_1.png] view at source ↗
Figure 3
Figure 3. Figure 3: Performance gains over different base models as a function of data size and difficulty, trained on [PITH_FULL_IMAGE:figures/full_fig_p004_3.png] view at source ↗
Figure 4
Figure 4. Figure 4: One-dimensional slices of the 2D data size–difficulty experiment on Qwen-2.5-Math-7B from [PITH_FULL_IMAGE:figures/full_fig_p005_4.png] view at source ↗
Figure 5
Figure 5. Figure 5: Performance gains over different base models on synthetic iGSM data as a function of data difficulty [PITH_FULL_IMAGE:figures/full_fig_p006_5.png] view at source ↗
Figure 6
Figure 6. Figure 6: Decomposed test results for SFT experiments on the base model Ops[2–8]2k under data sizes of 5k [PITH_FULL_IMAGE:figures/full_fig_p008_6.png] view at source ↗
Figure 7
Figure 7. Figure 7: Illustration of the two-gap decomposition in SFT. The generalization gap rises with difficulty, while [PITH_FULL_IMAGE:figures/full_fig_p009_7.png] view at source ↗
Figure 8
Figure 8. Figure 8: DFT performance on synthetic iGSM data (base model Ops[2–8]2k) across various data difficulty [PITH_FULL_IMAGE:figures/full_fig_p011_8.png] view at source ↗
Figure 9
Figure 9. Figure 9: An example from the iGSM dataset in our work we fix the number of edges according to #edges =  op · 4 3  + 1, so that difficulty is effectively controlled by op. Notice that in the iGSM setup, the problem length grows linearly with the number of operations, which is consistent with our length-based difficulty control discussed in previous sections. In the iGSM experiments, all models are trained with a b… view at source ↗
Figure 10
Figure 10. Figure 10: Performance gain over base model as a function of data size and difficulty, trained on the OpenMath [PITH_FULL_IMAGE:figures/full_fig_p018_10.png] view at source ↗
Figure 11
Figure 11. Figure 11: Extension experiments on Llama models and science reasoning tasks. Data difficulty is measured [PITH_FULL_IMAGE:figures/full_fig_p019_11.png] view at source ↗
read the original abstract

Data selection during supervised fine-tuning (SFT) can critically change the behavior of large language models (LLMs). Although existing work has studied the effect of selecting data based on heuristics such as perplexity, difficulty, or length, the reported findings are often inconsistent or context-dependent. In this work, we systematically study the role of data difficulty in fine-tuning from both empirical and theoretical perspectives, and find that there is no universally optimal difficulty level; rather, its effectiveness depends on the dataset size. We show that for a fixed data budget, there exists an optimal data difficulty for SFT, and that this optimal difficulty shifts toward harder data as the data budget increases. To explain this phenomenon, we conduct controlled synthetic experiments that reveal a simple underlying mechanism: the interplay between the (in-distribution) generalization gap and the extrapolation gap. We further support this mechanism through a theoretical analysis using PAC-Bayesian generalization bounds. Overall, our results clarify how data size and difficulty jointly affect the trade-off between generalization and extrapolation in SFT, providing guidance for difficulty-based data selection under certain model and data conditions.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit. Tearing a paper down is the easy half of reading it; the pith above is the substance, this is the friction.

Referee Report

2 major / 2 minor

Summary. The manuscript claims that in supervised fine-tuning of LLMs there is no universally optimal data difficulty; instead, for any fixed data budget an optimum exists and shifts toward harder data as the budget grows. This is attributed to an interplay between the in-distribution generalization gap and the extrapolation gap, demonstrated through controlled synthetic experiments and supported by a PAC-Bayesian analysis.

Significance. If the synthetic mechanism and bounds transfer to real LLM fine-tuning on natural language, the result supplies concrete guidance for difficulty-based data selection that depends on budget size. The combination of synthetic controls and PAC-Bayesian bounds is a methodological strength; however, the manuscript provides no direct side-by-side validation that the synthetic data-generating process reproduces the qualitative tradeoff observed under transformer fine-tuning on natural data.

major comments (2)
  1. [Abstract and synthetic-experiments section] The central claim that the optimal difficulty shifts with budget size rests on the synthetic experiments reproducing the generalization-extrapolation tradeoff. No section or figure demonstrates that the controlled synthetic distributions match the token-level statistics, long-tail behavior, or pretraining effects present in real LLM SFT; without this transfer evidence the extrapolation to the stated LLM setting is not yet load-bearing.
  2. [Theoretical analysis] The PAC-Bayesian bounds are invoked to explain the mechanism, yet the abstract and reader's note give no indication whether the bounds are applied in a parameter-free manner or whether any constants are fitted to the same synthetic data used for illustration. If the latter, the theoretical support risks circularity with the empirical demonstration.
minor comments (2)
  1. The manuscript should clarify the precise definition of data difficulty used in both the synthetic generator and any real-data ablations.
  2. Statistical controls (e.g., multiple random seeds, confidence intervals on the reported optima) are mentioned only at a high level; explicit reporting would strengthen the empirical claims.

Simulated Author's Rebuttal

2 responses · 0 unresolved

We thank the referee for the detailed and constructive comments. We address the two major points below, clarifying the intended scope of the synthetic experiments and the application of the PAC-Bayesian analysis. We agree that additional discussion of limitations would strengthen the manuscript.

read point-by-point responses
  1. Referee: [Abstract and synthetic-experiments section] The central claim that the optimal difficulty shifts with budget size rests on the synthetic experiments reproducing the generalization-extrapolation tradeoff. No section or figure demonstrates that the controlled synthetic distributions match the token-level statistics, long-tail behavior, or pretraining effects present in real LLM SFT; without this transfer evidence the extrapolation to the stated LLM setting is not yet load-bearing.

    Authors: The synthetic data-generating process is deliberately constructed to isolate the interplay between the in-distribution generalization gap and the extrapolation gap while holding other factors fixed, enabling precise measurement of how optimal difficulty shifts with budget size. The experiments are not intended to replicate the full token-level statistics or pretraining dynamics of natural language; rather, they serve to demonstrate a mechanistic explanation that can inform LLM SFT under the stated conditions. We acknowledge that the manuscript would benefit from an explicit discussion of this scope and the absence of direct transfer validation on natural data. We will add a dedicated limitations paragraph in the revised version addressing the controlled nature of the setup and the conditions under which the observed tradeoff is expected to apply. revision: partial

  2. Referee: [Theoretical analysis] The PAC-Bayesian bounds are invoked to explain the mechanism, yet the abstract and reader's note give no indication whether the bounds are applied in a parameter-free manner or whether any constants are fitted to the same synthetic data used for illustration. If the latter, the theoretical support risks circularity with the empirical demonstration.

    Authors: The PAC-Bayesian bounds are derived in a parameter-free manner. The analysis examines the functional dependence of the bounds on data size and difficulty level, showing how the sum of the generalization and extrapolation terms produces a minimum that shifts toward higher difficulty as the sample size grows. No constants are fitted or tuned to the synthetic experimental outcomes; the bounds are used solely to provide a qualitative theoretical account of the observed behavior. We will revise the theoretical section and abstract to state this explicitly and to separate the roles of the empirical demonstration and the analytic bounds. revision: yes

Circularity Check

0 steps flagged

No significant circularity; claims rest on external PAC-Bayesian bounds and synthetic experiments

full rationale

The paper derives its central claim (optimal difficulty shifts with data budget) from controlled synthetic experiments that exhibit the generalization-extrapolation tradeoff mechanism, then invokes standard PAC-Bayesian generalization bounds for theoretical support. No equations or steps in the provided abstract reduce a prediction to a fitted input by construction, nor does any load-bearing premise collapse to a self-citation or self-definition. The bounds are presented as an independent analysis tool rather than a fitted or renamed result. The derivation chain is therefore self-contained against external benchmarks and does not exhibit any of the enumerated circularity patterns.

Axiom & Free-Parameter Ledger

0 free parameters · 0 axioms · 0 invented entities

Abstract-only review; no explicit free parameters, axioms, or invented entities can be extracted. The PAC-Bayesian analysis is presumed to rest on standard assumptions of that framework rather than new ones introduced here.

pith-pipeline@v0.9.1-grok · 5762 in / 1150 out tokens · 24677 ms · 2026-06-30T22:02:03.264087+00:00 · methodology

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Reference graph

Works this paper leans on

4 extracted references

  1. [1]

    Abstract parameters are inherited from the structure and are not explicitly assigned values

    Graph Construction:Each problem is built from a hierarchical category structure and a dependency graph, where instance parameters are connected by directed edges indicating dependencies. Abstract parameters are inherited from the structure and are not explicitly assigned values

  2. [2]

    Solutions follow a Chain-of-Thought (CoT) format, computing parameters in topological order

    Problem and Solution Generation:Problems are described in English sentences corresponding to the dependency graph. Solutions follow a Chain-of-Thought (CoT) format, computing parameters in topological order. The iGSM dataset allows fine-grained control over problem difficulty by varying two aspects: the number of operations in the solution (denoted as op)...

  3. [3]

    Existence of an interior optimum.Consistent with the observations in the main text, downstream performance does not improve monotonically as difficulty decreases. For a fixed data budget, accuracy typically peaks at an intermediate difficulty range, indicating that neither the easiest examples (lowest loss / highest pass rate) nor the hardest examples (hi...

  4. [4]

    Data-dependent shift of optimal difficulty.We observe a clear shift in the optimal difficulty interval as the training dataset size increases. In the low-data regime, performance is maximized by relatively easy examples (e.g., loss interval [0.6,0.8) or failure-rate interval [0.00,0.25) ), where learning is primarily limited by insufficient effective supe...