Scaling Law by Difficulty
- Scaling Law by Difficulty is a framework characterizing how explicit difficulty measures—such as token learning time, difficulty gaps, and task separability—influence performance metrics.
- It spans diverse settings including language-model pretraining, sparse evaluation matrices, and physical neural networks, each formalizing difficulty with specific observables.
- The scaling laws provide actionable insights for optimizing training strategies and evaluation designs, improving loss reduction and overall prediction accuracy.
Searching arXiv for the specified papers to ground the article in current preprints. “Scaling Law by Difficulty” denotes a family of empirical and theoretical relations in which performance, loss, ranking error, or optimization time varies systematically with a quantified notion of difficulty. In recent arXiv usage, difficulty has been formalized at several levels: token learning time in language-model pretraining, item-difficulty gaps in sparse evaluation matrices, task-conditioned separability in physical neural networks, logic-preserving variation difficulty for LLM reasoning, the Zipf-law exponent governing token frequencies, and the average difficulty of fine-tuning data in structured-reasoning curricula (Wang et al., 29 Jun 2026, Kang, 11 May 2026, Ermolaev et al., 30 Jun 2026, Mondorf et al., 14 May 2026, Kunstner et al., 25 May 2025, Yang et al., 26 Aug 2025). Across these settings, the common claim is that aggregate curves are often governed by a heterogeneous spectrum of hard and easy cases rather than by uniform averages alone.
1. Conceptual scope and formalizations
The phrase has no single canonical equation. Instead, it refers to a recurrent pattern: once difficulty is made explicit, global behavior can often be written as a low-dimensional law in that difficulty variable, or in an interaction between difficulty and another resource such as data coverage, model scale, or representation quality. In the literature summarized here, “difficulty” is not treated as a metaphor; it is attached to specific observables or latent variables and then linked to measurable outcomes (Wang et al., 29 Jun 2026, Kang, 11 May 2026, Ermolaev et al., 30 Jun 2026, Mondorf et al., 14 May 2026, Kunstner et al., 25 May 2025, Yang et al., 26 Aug 2025).
| Setting | Difficulty variable | Measured outcome |
|---|---|---|
| Language-model pretraining | Token learning time | Validation loss derivative and training trajectory |
| Sparse benchmark evaluation | Difficulty gap with sparsity | Ranking error |
| Physical neural networks | Task-conditioned exponent in | Classification loss |
| Logic-preserving robustness | and | Accuracy, failure severity, DRS |
| Zipfian optimization | Power-law exponent in | Iteration complexity of GD and SD |
| Difficulty-aware fine-tuning | Average training difficulty 0 | Test accuracy 1 |
A central implication is that “difficulty” can denote at least three distinct objects: a property of examples, a property of tasks, or a property of the data distribution itself. The resulting laws therefore differ in semantics even when they share power-law or interaction-law form. A common misconception is to treat all such laws as interchangeable; the cited work instead shows that the meaning of the difficulty variable determines what can be predicted and what can be controlled.
2. Token-level learning times in language-model scaling
In large-scale language modeling, the aggregate validation loss is often written as
2
Wang et al. decompose this smooth law over the set 3 of contextualized validation tokens,
4
where the horizontal axis 5 may be training step 6, data scale 7, or model scale 8. Empirically, each token loss 9 stays on a high plateau, undergoes one main drop, and then flattens again, so the trajectory is fitted with a sigmoid whose center 0 is the token’s “learning time” and whose sharpness parameter is 1 (Wang et al., 29 Jun 2026).
The derivative-level picture is more consequential than the loss fit itself. Writing the token derivative as a localized “learning pulse,” and replacing individual pulses by a shared template 2, the global loss derivative becomes
3
where
4
is the empirical distribution of learning times. Across more than one hundred pre-training runs on large and diverse real-language corpora with modern LLM architectures, scaling up to 6B parameters and 300B training tokens, the measured spectrum 5 follows an approximate power law over its main regime,
6
with 7 or 8 depending on the axis. On the training-step axis, for example, 9 implies 0, and the measured 1 matches that tail index.
This formulation directly challenges the view that smooth scaling laws require smooth tokenwise progress. The reported result is the opposite: smooth global power laws can hide stepwise token learning. The same signal is also actionable. By estimating 2, scoring samples by the fraction of tokens whose learning times fall in a target interval 3, bucketing by score, and reweighting the mixture toward tokens that are about to become learnable, the optimization trajectory can be altered. The reported effect is an approximately 4 faster reduction in validation loss over the target interval, meaning that the same loss level is reached in about 5 fewer steps (Wang et al., 29 Jun 2026).
3. Difficulty gaps and the scaling law of evaluation failure
A distinct use of “Scaling Law by Difficulty” arises in benchmark evaluation when the evaluation matrix is both sparse and heterogeneous in item difficulty. In the two-parameter logistic Item Response Theory setting, the evaluation matrix is
6
coverage is
7
and the difficulty gap is
8
Performance is measured by Spearman rank correlation 9 between an estimated ranking 0 and ground truth 1, with ranking error
2
The failure surface for simple-average ranking error is modeled as
3
with centered variables 4 and 5 (Kang, 11 May 2026).
Under difficulty-biased missingness, the fitted coefficients are
6
with 7. The positive interaction term implies that the slope with respect to difficulty,
8
increases with sparsity. In the paper’s concise form, the evaluation-failure scaling law is
9
or, to leading order,
0
The empirical findings quantify a collapse regime for simple averaging. Spearman rank correlation degrades from 1 at 2 coverage to 3 at 4 coverage with high difficulty heterogeneity, and the 150-condition grid sweep over sparsity 5 and difficulty gap 6 shows a strong 7 interaction with 8, 9. The authors report that once 0 and 1, simple-average 2 drops below 3, and at the extreme grid corner 4 it falls to 5. By contrast, a standard 2PL IRT model maintains 6 across all conditions and 7 throughout the grid sweep (Kang, 11 May 2026).
The significance is methodological rather than architectural. Difficulty here is not a property of model internals, but of the item pool. The law therefore explains when benchmark aggregation collapses, especially in settings where evaluation matrices are incomplete and difficulty gaps are extreme.
4. Task difficulty and substrate-agnostic power laws in physical neural networks
In physical neural networks, task difficulty is encoded through the exponent of a power law relating classification loss to the Hotelling Trace Criterion (HTC), a task-conditioned measure of state separability that can be evaluated without training. Given class means, global mean, between-class scatter 8, and within-class scatter 9, the criterion is
0
where 1 are the nonzero eigenvalues of 2 (Ermolaev et al., 30 Jun 2026).
Across highly nonlinear optical fibres, vertical-cavity surface-emitting lasers, and coupled nonlinear oscillator networks, the reported empirical law is
3
When fit globally across four PNN implementations, the benchmark-specific forms are
4
with Pearson correlation 5, and
6
with 7. The exponent is larger for MNIST than for Fashion-MNIST, and the paper interprets this as a quantitative encoding of task difficulty: easier tasks have a steeper power-law slope, so a given fractional increase in HTC yields a larger gain in accuracy.
The key claim is a universal collapse onto a task-specific curve. Despite major differences among substrates, once loss and HTC are computed, the data fall onto the same line in the 8 plane for a given dataset. The prefactor 9 is also task-dependent, setting the baseline loss at 0, and harder tasks have a larger 1. This makes the law task-specific but substrate-agnostic.
The framework also supports calibration and prediction. A small calibration set of trained systems is used to determine 2 and 3, after which new systems need only an HTC measurement to predict expected loss. In the reported coupled nonlinear oscillator network example, only a handful of training runs suffice to fix the exponent, and subsequent architectures and parameter settings need no further offline training to predict performance with better than 4 accuracy. Layer-wise HTC further acts as a diagnostic: in a three-layer CNON, Layers 2–3 adhere to the same power-law line, while Layer 1 deviates, indicating under-utilization that is invisible to standard loss monitoring (Ermolaev et al., 30 Jun 2026).
5. Logic-preserving difficulty scaling in LLM robustness evaluation
In robustness work on LLM reasoning, difficulty is attached not to the original problem statement alone but to logic-preserving variations of a symbolic template. The LPDS framework defines two distance-based metrics. The first is the minimum normalized Levenshtein distance,
5
which measures lexical deviation from correct reasoning traces. The second is Mahalanobis distance in hidden-state space,
6
which measures how far a response lies from the manifold of correct solution traces (Mondorf et al., 14 May 2026).
LPDS then searches the variation space of a symbolic template 7 with a discrete beam-search procedure. Starting from a template variation 8, the algorithm alternates candidate generation, cheap scoring with an input-embedding Mahalanobis proxy, pruning, exact scoring with the expensive output-based metric, beam update, and best-so-far tracking. The reported hyperparameters are 9, 0, 1, 2, and 3. This design is intended to find a variation 4 that maximizes difficulty while controlling cost.
The empirical law is monotonic rather than power-law. Over 100 templates with 1,000 variations each, both Levenshtein and Mahalanobis distances separate correct from incorrect responses much better than perplexity or self-certainty, with 5–6 versus 7–8 for those baselines. Logistic mixed-effects models of the form
9
yield per-standard-deviation odds ratios as low as 00–01, indicating a strong negative association between difficulty and correctness. After beam search, explored variations are binned into 20 quantiles by 02, and accuracy decays monotonically with quantile. Smaller models begin to fail at lower quantiles, whereas Llama-70B maintains high accuracy until about quantile 03 and then drops. The paper summarizes these curves by a Difficulty–Robustness Score, the normalized area under the accuracy–quantile curve.
The framework is also comparative. On GSM-Symbolic, the relative accuracy drop from canonical GSM8K to logic-preserving search samples is reported as 04 percentage points for Llama-3.2-3B versus 05 points for random sampling, and 06 points for Qwen-32B versus 07 points for random sampling. Fine-tuning on the top-difficulty third of errors improves performance on all quantiles, whereas training on the easiest third helps only the low-difficulty region. The resulting claim is that random sampling can overstate robustness because it misses the brittle tail of high-difficulty, logic-preserving variations (Mondorf et al., 14 May 2026).
6. Optimization difficulty under Zipf’s law
A more theoretical variant of the topic concerns optimization difficulty induced by heavy-tailed token frequencies. In the linear bigram model for next-token prediction, one observes one-hot token pairs 08 and fits 09 by minimizing
10
The heavy-tailed assumption is
11
with 12. Here the difficulty variable is the Zipf exponent itself: smaller 13 corresponds to heavier tails, while 14 matches text data (Kunstner et al., 25 May 2025).
Under constant-step-size gradient descent with 15, the iteration complexity to reach relative error 16 obeys three regimes: 17
18
19
For sign descent, used as a proxy for Adam, the corresponding laws are
20
21
22
The paper identifies 23 as “worst-case” for gradient descent in the sense that the number of iterations required to reach a small relative error scales almost linearly with dimension. The derivation proceeds through a closed-form GD dynamics in the Hessian eigenbasis and an integral approximation showing that, for 24, the correct rescaling is 25, with normalized loss converging to 26. Setting 27 yields 28.
This yields a sharp optimizer comparison. For light tails 29, gradient descent is dimension-free and sign descent is worse. For the medium-tail regime 30, sign descent scales only as 31, giving a 32 speed-up relative to the Zipfian or near-Zipfian GD behavior. The stated intuition is that heavy-tailed data create many tiny eigenvalues; GD stalls because progress in low-frequency directions requires waiting on the order of 33 steps, while sign descent effectively normalizes per-coordinate step lengths and mitigates that penalty (Kunstner et al., 25 May 2025).
7. Training-data difficulty, U-shaped performance, and structured solution templates
A further meaning of “Scaling Law by Difficulty” concerns the composition of fine-tuning data for procedural reasoning. In this setting, the paper operationalizes example difficulty with three proxies: solution-trace length,
34
model-based judgment using a GPT-4 rating in 35, and the empirical error distribution based on absolute prediction error 36. Datasets are partitioned into low, medium, and high difficulty bins, and the average difficulty of a fine-tuning set 37 is
38
Test accuracy is then treated as a function 39 (Yang et al., 26 Aug 2025).
The reported law is U-shaped. There exist two critical points 40 such that
41
42
with a minimum at some 43. The qualitative statement is that performance first drops as fine-tuning is flooded with low-difficulty data, then recovers and eventually surpasses earlier levels when the set is composed of sufficiently challenging instances. The paper’s illustrative AIME24 table reports accuracy falling from 44 at 45k synthetic low-difficulty points to 46 at 47k. On MATH500, average absolute error across chain-length bins is 48 for 49, 50 for 51, 52 for 53, and 54 for 55.
This finding motivates the Structured Solution Template framework. Stage 1 applies weighted template fine-tuning with structured solution-template chains and dynamically weighted loss,
56
with
57
and uses XML tags 58. Stage 2 performs prompt-time chain injection with a small LoRA-adapted Qwen-1.5B. Stage 3 uses curriculum fine-tuning with Group Relative Policy Optimization, hard-mining the backbone’s weakest 59k problems and generating “plan–then–execute–self-correct” traces.
The paper’s interpretation is that too many easy, short, one-pattern chains promote shallow pattern matching, whereas complex, multi-step templates force the model to learn reusable abstractions. This directly contradicts the monotonic assumption that adding easier synthetic data is necessarily beneficial. The reported combined effect of SST is to reshape the empirical U-curve and move training into the high-difficulty regime, with gains of 60 points on GSM8K, 61 points on AIME24, and improvements on the Dynamic En benchmark (Yang et al., 26 Aug 2025).