acceptodds
Published as a conference paper at NeurIPS 2026

Harder the Task, Sparser the Representation: Sparsity as a Learning Signature of Capability in LLMs

Mingyu Jin, Yutong Yin, Jingcheng Niu, Qingcheng Zeng, Wujiang Xu, Xinyuan Song, Wei Cheng, Mengnan Du, Zhaoran Wang, Tianlong Chen, Dimitris Metaxas

Abstract

In this work, we investigate how the internal representations of Large Language Models (LLMs) change with inputs of increasing difficulty. Although sparsity changes may not be obvious for individual samples, dataset-level results reveal a consistent statistical trend: as task difficulty increases (e.g., harder questions, longer contexts, or more answer choices), the last hidden states of LLMs become systematically sparser. In short, the harder the task, the sparser the representation. This sparsity–difficulty relation is observable across diverse models and domains, suggesting that harder inputs drive more concentrated activation patterns in the last hidden state. Through a series of controlled analyses and learning-dynamics experiments, we show that representational density is a learned property of data familiarity: models develop rich, distributed representations for mastered patterns, while unfamiliar inputs default to sparser activations. Our finding is also actionable. We illustrate this with Sparsity-Guided Curriculum In-Context Learning (SG-ICL), which uses sparsity to select few-shot demonstrations matched to the query's difficulty, outperforming standard CoT and Auto-CoT baselines on MATH-500. Our study provides new insights into how LLM representations reflect task difficulty and how this signal can be leveraged for inference.

Keywords:
Atlanta

Reviews

Among:
Shape:
123456this paper, Top 27%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.50 over 4 reviews, above 73% of the others.
Reviewer_ptPzOpenReview ↗
Rating
5
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper studies how the sparsity of final-layer representations in LLMs changes as task difficulty increases. The authors evaluate models from the Qwen2.5 family (across multiple scales) and the Llama 3.2 family, and construct tasks with varying difficulty along four axes: reasoning complexity (mathematical reasoning), answer selection difficulty (size of the candidate set), knowledge conflict (conflicts with parametric knowledge), and context length. Across these settings, the paper reports that final-layer representations become increasingly sparse as task difficulty increases.

To investigate the origins of this phenomenon, the authors train toy language models on synthetic knowledge graphs and analyze representation sparsity under varying levels of model capacity and training progress. They evaluate tail-entity prediction on seen facts/entities, unseen facts, and unseen triples, and find that sparsification emerges once models have sufficient capacity and are adequately trained. They further study the evolution of sparsity during training, observing an initial increase followed by a decrease, and argue that this behavior helps explain why in-distribution examples exhibit denser representations than out-of-distribution examples. Finally, the paper demonstrates the use of the sparsity signal for in-context learning. Using Math-500, the authors select in-context examples based on model-perceived difficulty as measured by representation sparsity. This sparsity-guided example selection outperforms vanilla chain-of-thought prompting and randomly sampled few-shot chain-of-thought demonstrations.

Strengths and weaknesses

Strengths

  • Clear framing, detailed experiments
  • Empirical questions are validated
  • Interesting and useful study of representation sparsity on multiple LLMs

Weakness

  • The paper provides limited discussion of how the observed sparsification signals relate to the broader uncertainty quantification and out-of-distribution detection literature. In particular, there is little comparison to representation-based uncertainty measures (e.g., Mahalanobis distance, density estimation in latent space) or energy-based methods that similarly exploit information contained in hidden representations and logits. As a result, it is unclear whether the proposed sparsity signal captures a fundamentally new phenomenon or is correlated with existing uncertainty indicators.
Questions
  • See weakness
  • Also, is the increase in sparsity driven by suppression of a consistent set of features, or by a change in the identity of active features as task difficulty increases within the same domain? This could be useful to include in the paper.
  • What is AutoCoT in the ICL baseline?
Limitations

yes

Paper formatting concerns

None of significance

Final justification

I was leaning for acceptance prior to rebuttal and would like to keep my score.

1 comment

Response to the Reviewer

We sincerely thank the reviewer for the positive assessment and thoughtful questions. We agree that the relation to uncertainty/OOD indicators and the interpretation of active features should be stated more precisely.

1. Relation to uncertainty quantification and OOD detection

We agree that the manuscript does not sufficiently position representation sparsity relative to established uncertainty and OOD scores. Our claim is not that sparsity is statistically independent of, or universally superior to, these scores, and we do not present it as a calibrated OOD detector. Our contribution is the systematic observation and learning-dynamics analysis of how hidden-representation geometry changes with task difficulty or controlled distributional shift.

The signals characterize related but different properties:

  • Confidence, entropy, and conventional energy scores are functions of output probabilities or logits.
  • Mahalanobis distance and latent-density methods measure where a hidden state lies relative to an estimated in-distribution reference distribution.
  • Our sparsity statistics measure how activation energy is distributed across coordinates/features within the representation, without fitting an ID density.

These indicators may correlate, but they are not mathematically equivalent: one concerns location relative to a reference distribution, whereas the other concerns internal concentration. We will expand the related-work discussion on Mahalanobis-, density-, and energy-based methods and position sparsity as a complementary representation statistic, rather than claim independence from existing uncertainty measures.

We also already evaluated an output-confidence curriculum under the same MATH-500 protocol:

MethodSelection signalAccuracy (%)
Semantic-Retrieval CoT (currently labeled Auto-CoT)Semantic similarity75.20
Confidence-ICLOutput log-probability73.80
Length-ICLReasoning length75.00
SG-ICLHidden-state sparsity76.60

Here, output confidence is not a drop-in replacement for sparsity. We emphasize that this is evidence of operational non-equivalence in this application, not proof of statistical independence from every UQ/OOD score. A comprehensive detector comparison would require explicit ID/OOD labels, fitted reference distributions, and detection/calibration metrics, and is outside the scope of this mechanistic study.

2. Stable feature suppression or changing feature identity?

This is an important distinction. Our scalar metrics answer how concentrated a representation is, but not which features carry that concentration. Thus, the current evidence does not justify claiming that exactly the same feature set remains active as difficulty increases.

The controlled answer-choice and knowledge-conflict settings are consistent with selective suppression: the core question or prompt structure is largely preserved, while added distractors or conflicting information produce greater concentration. The most accurate interpretation is that harder inputs induce stronger feature selection, potentially combining suppression of weak/irrelevant features with turnover in the dominant features. Our central claim concerns increased concentration, not invariance of feature identity.

3. Clarification of the Auto-CoT baseline

In our implementation, Auto-CoT [1] performs demonstration selection based on semantic similarity. Candidate questions are first represented in a semantic embedding space and organized through semantic clustering. For each query, demonstrations are selected from the semantically similar cluster, so that the retrieved examples have meanings and problem structures similar to those of the query. The key distinction is that Auto-CoT selects demonstrations according to semantic similarity, but does not consider their representation sparsity or model-perceived difficulty. In contrast, SG-ICL additionally uses hidden-state sparsity as a model-internal difficulty signal, aiming to select demonstrations that are not only semantically relevant but also better aligned with the query in terms of difficulty.

We will clarify this implementation detail in the experimental setup to avoid ambiguity.

[1] Zhang, Z., Zhang, A., Li, M., & Smola, A. Automatic Chain of Thought Prompting in Large Language Models. In The Eleventh International Conference on Learning Representations (ICLR).

Reviewer_xqunOpenReview ↗
Rating
5
Clarity
4
Confidence
4
Originality
2
Quality
3
Significance
3
Read review
Summary

This paper investigates how the internal representations of LLMs change as a function of input difficulty. The central empirical claim is that the last hidden state becomes systematically sparser as task difficulty increases -- "harder is sparser." Sparsity is measured via Top-k Energy, Effective Rank, Hoyer Sparsity, and other concentration metrics. The observation is validated along four controlled difficulty axes: reasoning complexity (MATH-500, DeepMATH-103K), answer choice expansion (a new MMLU-Robust benchmark), knowledge conflict, and context length. To explain the mechanism, the authors train a toy Transformer on a synthetic knowledge graph and observe a two-phase learning dynamic: an early feature-selection phase (increasing sparsity, attributed to weight-decay-driven feature contraction) followed by a feature-consolidation phase (decreasing sparsity for mastered patterns). A theoretical analysis under a simplified cross-entropy + weight-decay model formalizes this trajectory. Finally, the paper proposes Sparsity-Guided Curriculum In-Context Learning (SG-ICL), which matches few-shot demonstrations to query difficulty via sparsity, showing improvements over CoT and Auto-CoT baselines on MATH-500.

Strengths and weaknesses

Strengths

This work addresses the central challenge of understanding how LLM internal representations respond to varying task difficulty. The paper has several notable strengths:

  • Thorough empirical validation. The experimental design is commendably broad: multiple model families (Qwen2.5, Llama 3.x), a wide range of sizes (1.5B to 70B), four distinct difficulty axes, and multiple sparsity metrics all converging on the same conclusion. This level of consistency across settings makes the core observation convincing and unlikely to be an artifact of any single benchmark or architecture.
  • Clear, well-organized writing. The three-RQ structure (phenomenon -> mechanism -> application) provides a natural narrative arc. Figure 1 effectively conveys the core finding in a single glance. The 36-page appendix demonstrates thoroughness and supports reproducibility.
  • MMLU-Robust benchmark. Introducing controlled difficulty by adding plausible distractors to MMLU while keeping the question stem unchanged is a clean experimental design that could be reused by others.
  • Controlled toy model experiment. Training a Transformer from scratch on a synthetic knowledge graph and showing that the sparsity-difficulty pattern only emerges with sufficient model capacity and training is a well-designed control that demonstrates the pattern is learned rather than architecturally imposed.

Weaknesses

W1. The core observation is partly expected from representation learning theory, and deeper insights are needed. The finding that models develop rich, distributed representations for familiar/mastered patterns while unfamiliar inputs yield sparser activations is consistent with well-established understanding of how neural networks form distributed representations (cf. Bengio et al., 2013, "Representation Learning: A Review and New Perspectives," which discusses how models learn distributed features that are densely activated for familiar data). The authors themselves acknowledge this interpretation (page 8: "Learning Reduces Sparsity for Familiar Inputs"). While the systematic empirical validation across settings is a genuine contribution, the underlying insight does not go substantially beyond what one would predict from first principles. For a stronger contribution, deeper mechanistic analysis would be needed -- for example: among the four difficulty axes studied, which factors contribute most to increased sparsity? Is there a quantitative relationship between the degree of sparsity and actual model accuracy across different benchmarks?

W2. Restricted to implicit reasoning and the last hidden state, with insufficient analysis of CoT and intermediate layers. The paper focuses exclusively on implicit reasoning (no chain-of-thought) and the last hidden state. The authors note that CoT produces "less stable" patterns but do not quantify or analyze this instability. Given that CoT is the dominant inference paradigm for reasoning tasks, this restriction substantially limits the paper's practical relevance. Additionally, Figure 5 shows that across layers, the sparsity pattern varies considerably -- notably, at 64K context length, sparsity is not always the highest, suggesting the relationship may be layer-dependent and more nuanced than the paper's narrative implies. A thorough layer-wise analysis would strengthen the claims.

W3. No comparison with other difficulty proxies. The paper does not compare sparsity against other internal signals that may correlate with task difficulty, such as output entropy, predictive uncertainty (confidence), or hidden-state norm. Notably, recent work -- "The Tell-Tale Norm" (ICML 2026 Spotlight) -- argues that the norm of hidden states serves as an indicator of difficulty or capability. The theoretical derivation in this paper also involves norm-related quantities. Without comparing sparsity to these alternative proxies, it is unclear whether sparsity provides unique diagnostic value or is merely one of many correlated signals. A discussion of the relationship between sparsity, norm, and entropy-based measures would substantially increase confidence in the contribution's distinctiveness.

W4. SG-ICL application is insufficiently validated. The practical application is evaluated on a single benchmark (MATH-500), yielding a modest improvement of ~1.4% over Auto-CoT. The curriculum SFT experiment on GSM8K shows a similarly marginal gain (~0.9%). Curriculum learning is also a promising application direction, but the evaluation is too narrow to support a general claim. We do not know how SG-ICL performs on safety benchmarks, OOD benchmarks, code generation, or other reasoning tasks. Broadening the evaluation across diverse benchmarks and model families would strengthen the practical contribution.

W5. Conceptual conflation of "difficulty" and "out-of-distribution." The empirical sections operationalize difficulty as in-distribution variation (e.g., MATH Level 1-5, where the model was likely exposed to all difficulty levels during pretraining), while the theoretical analysis and toy model experiments explain the pattern through OOD / data unfamiliarity (rule compositions not seen during training). These are related but distinct concepts -- a Level 5 MATH problem is hard but not necessarily OOD, while a novel rule composition is OOD but not necessarily "harder" in a human sense. The paper would benefit from a clearer conceptual distinction between difficulty-as-intrinsic-complexity and difficulty-as-distributional-novelty.

Questions
  1. (Re: W1) The two-phase dynamic (feature selection -> consolidation) is theoretically attributed to weight-decay-driven feature contraction in the early phase. If weight decay is the primary driver of the initial sparsification, what happens when weight decay is removed or significantly reduced? Does the harder-is-sparser pattern still emerge? Additionally, among the four difficulty axes (reasoning complexity, choice expansion, knowledge conflict, context length), which factors contribute most to sparsity increase? Can you quantify the relationship between sparsity magnitude and actual model accuracy across different benchmarks?

  2. (Re: W2) The restriction to implicit reasoning and the last hidden state is a significant scope limitation. Can you quantify the "instability" of the sparsity-difficulty relationship under Chain-of-Thought, using the same correlation analysis applied to implicit reasoning? Furthermore, Figure 5 shows that the sparsity pattern varies across layers and that 64K context length does not always produce the highest sparsity. Can you provide a systematic layer-wise analysis to demonstrate whether the pattern holds at intermediate layers or is specific to the final layer?

  3. (Re: W3) How does sparsity compare to other internal difficulty proxies -- specifically output-distribution entropy, predictive confidence et. al? Recent work such as "The Tell-Tale Norm" (ICML 2026 Spotlight) argues that hidden-state norm indicates capability/difficulty, and your own theoretical derivation involves norm-related quantities. Can you discuss the relationship between your sparsity measures and norm-based or entropy-based alternatives? Demonstrating that sparsity provides information beyond what simpler proxies capture would substantially increase my confidence in the contribution's novelty. I think it's meaningful.

  4. (Re: W4) SG-ICL and curriculum learning are evaluated on a single benchmark (MATH-500) with a single model. Can you provide results on at least 2-3 additional benchmarks (e.g., GSM8K with ICL, MMLU-Robust, a code generation task, or a safety/OOD benchmark) and with multiple model families to establish generality? The current evidence is insufficient to support the claim that sparsity-guided methods are broadly useful.

  5. (Re: W5) The paper uses "difficulty" and "OOD-ness" somewhat interchangeably, but these are conceptually distinct. MATH Level 5 problems are hard but likely in-distribution (the model saw similar problems during pretraining), while the toy model's novel rule compositions are genuinely OOD. Can you clarify which phenomenon you believe drives the sparsity increase -- intrinsic task complexity, distributional novelty, or both? If these are separable, which contributes more? A controlled experiment isolating these two factors would significantly strengthen the mechanistic narrative.

Limitations

yes

Paper formatting concerns

No

Final justification

Most of my concerns have been addressed. I have raised my score. to 5.

1 comment

We sincerely thank the reviewer for the positive review and the exceptionally rich and constructive feedback! We would like to answer your questions below. As a summary:

  1. The prediction attributed to representation-learning theory is not one that literature makes, and our finding is non-monotonic in a way first principles do not anticipate;
  2. Promising results that the harder-is-sparser ordering also holds under Chain-of-Thought;
  3. Hidden-state norm and output confidence are dissociable from sparsity, and neither reproduces the SG-ICL gain;
  4. SG-ICL replicates on a second family at 70B (+1.60), and we will describe it as a proof of concept rather than a general claim;
  5. The RQ2 design already separates difficulty from distributional shift, but the paper does not make that visible, and we will fix it.

Q1. Connection to representation learning theory

This is the right literature to hold us to, but our finding is different from the prediction attributed to it. Bengio et al. (2013) treat distributed representations through a counting argument about capacity: RBMs, sparse coding, auto-encoders and multi-layer networks "can all represent up to O(2^k) input regions using only O(N) parameters (with k the number of non-zero elements in a sparse representation) ... These are all distributed or sparse representations." The contrast is with local, one-hot codes such as k-means, not with sparse ones: sparse codes are counted as distributed, and capacity is indexed by non-zero coordinates. The review separately lists sparsity among its priors for a good representation, and it does not at any point relate activation density to how familiar an input is. The step from "distributed" to "densely activated for familiar data" does not come from that review.

More importantly, and this is what the question brought out, our finding is not monotonic. The natural expectation is that representations become steadily denser as the model masters the data; what we observe is sparsity first rising, then falling. On four OLMo-2 base models, the normalized ℓ1\ell_1 sparsity of Appendix A.1 falls to a trough at 4% to 16% of training and then rises monotonically (Welch t-test on 1,000 held-out sequences, t between 116 and 146):

ModelTroughFinalRise
OLMo-2-1B0.60881.3563+123%
OLMo-2-7B0.43230.8473+96%
OLMo-2-13B0.21170.6117+189%
OLMo-2-32B0.25000.6509+160%

A turning point at a consistent location across a thirty-two-fold range of model size is not something the intuition predicts; it has to be measured. The RQ2 construction points the same way (Q5).

On the specific questions. The sparsity-accuracy relation is already in Appendix A.8, Figure 10: on MATH-500 with Qwen2.5-7B, accuracy correlates with ℓ1\ell_1 sparsity at r = 0.897 and Top-10% Energy at r = -0.915, and we will move it to the main text. The four axes cannot be ranked causally, as their effect sizes are not on a common scale. On weight decay, the reviewer identifies a real imprecision: our analysis shows it contributes to early feature selection but does not establish necessity, and we will revise "weight-decay-driven" accordingly.

Q2. Chain-of-Thought and layer-wise behavior

We ran it: the harder-is-sparser ordering holds under Chain-of-Thought too. Last hidden state after CoT generation, MATH-500 with Qwen2.5-7B:

LevelnHoyer sparsityGiniKurtosis∥h∥2\lVert h \rVert_2
1430.47770.4892110.56158.98
2900.47850.4893110.49159.11
31050.47840.4903109.93157.69
41280.47970.4903110.83156.25
51340.48230.4909111.78153.67

Using the same level-wise correlation the paper applies to implicit reasoning, the correlations across the five levels are +0.90 for Hoyer sparsity, +0.97 for Gini and +0.65 for kurtosis: the same direction as Figure 2a.

By "less stable under CoT" we meant that CoT has far too many configurations to control at once, not that the effect is weaker there. That is why we scoped it out rather than treating it as a controlled axis, and we leave the full space to future work. The experiment above is a simple one and not a complete treatment, but it is promising that the ordering still holds.

The effect is also layer-dependent, and we do not claim every intermediate layer shows an equally strong ordering. Raw-coordinate sparsification is most pronounced near the final readout:

Layer8K16K32K64K
L240.2120.2100.2130.214
L260.2460.2450.2470.249
L280.2710.2720.2750.283

Layer-20 hidden states projected into an SAE feature space show concentration at an intermediate layer too:

DatasetAvg. tokensAvg. Top-1 SAE activation
GSM8K37.084.07
MMLU-Math59.793.02
MMLU-Pro-Math62.0106.12

Raw-coordinate sparsification therefore peaks near the final readout, while feature-level concentration is already visible earlier.

Q3. Comparison with norm-, confidence-, and entropy-based proxies

Norm and concentration are dissociable. Our Easy-Long control holds the hidden-state norm almost fixed while concentration differs by more than eleven percentage points:

Prompt typeAvg. tokensℓ1\ell_1 NormTop-10% Energy
Hard MATH, Level 355.510,33167.44%
Easy-Long narrativeapproximately 15010,36255.89%

Top-k Energy, Hoyer sparsity and normalized Effective Rank are invariant to global rescaling. We therefore read norm-based indicators, including the work the reviewer cites, as complementary: norm measures how large a representation is, sparsity measures how concentrated it is.

On output-side signals, we have added confidence and length curricula under the same MATH-500 protocol:

MethodSelection signalAccuracy
Auto-CoTSemantic similarity75.20%
Confidence/PPL-ICLOutput log-probability / perplexity73.80%
Length-ICLReasoning length75.00%
SG-ICLHidden-state sparsity76.60%

Perplexity is a monotonic transformation of average negative log-probability, so the confidence baseline is also a perplexity comparison, and replacing sparsity with it does not reproduce the gain.

To be precise about what this shows: operational non-equivalence, not statistical independence. Confidence, entropy, norm and sparsity all respond to difficult inputs and are expected to correlate; what the comparison shows is that they cannot be substituted for one another. That fits what each measures, since perplexity summarizes the output distribution after the unembedding whereas our metrics describe the geometry of the hidden state that produces it.

Q4. Broader validation of SG-ICL

SG-ICL replicates on a second family at 70B:

Model and benchmarkAuto-CoTSG-ICLGain
Qwen2.5-7B, MATH-50075.20%76.60%+1.40
Llama3-70B, MATH-50068.00%69.60%+1.60

Auto-CoT here uses semantic-similarity selection and SG-ICL adds sparsity matching, so the gain isolates difficulty matching beyond semantic relevance. The same direction appears at training time:

SettingStandard trainingSparsity-guided curriculum
Qwen2.5-1.5B, GSM8K SFT59.74%60.65%

The SFT figure is a single run and we do not claim significance for it; we will report it across seeds in the revision.

We agree on scope: SG-ICL shows the representation-level finding is actionable, not that it replaces existing prompting methods. We will describe it as a cross-model proof of concept and narrow the language accordingly.

Q5. Distinguishing task difficulty from distributional novelty

The RQ2 design already contains the controlled experiment the reviewer asks for. Its three difficulty levels are verified behaviorally by accuracy rather than assigned as labels:

DifficultyActual construction
Easy, D_memsampled from the training triples (memorization)
Medium, D_IDheld-out deducible triples, long supporting rule (3+ steps)
Hard, D_OODheld-out deducible triples, short supporting rule (1 to 2 steps)

Medium and Hard are both out of distribution, both removed from the training graph before training and matched in format and sequence length; what separates them is answer-set determinacy, since short rules are broad while long rules are selective. That step therefore varies difficulty with distributional status fixed, and it runs against a distance account: Hard uses shorter, compositionally nearer rules yet is the harder and sparser split. On Trans-32-32 at step 2,500:

DifficultyAccuracyTop-5 EnergyTop-10 EnergyEff. Rank
Easy (in-distribution)81.0029.6045.670.463
Medium (OOD-Long)63.0029.7545.860.461
Hard (OOD-Short)38.0030.1146.220.457

All three metrics move toward sparser representations as difficulty increases, and the ordering holds at every checkpoint in Table 1.

The reviewer is right that the paper does not make this visible: the construction sits in Appendix A.12, Table 6, while the Conclusion and Appendix A.13 state the result in terms of distributional shift, which claims more than the experiments support. We will bring the construction into Section 4.1 and adopt the reviewer's distinction throughout, separating task difficulty, distributional unfamiliarity, and processing stress for settings such as knowledge conflict and long context that need not be strictly out of distribution.

Again, we would like to thank the reviewer for a great discussion.

Reviewer_61kDOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
2
Read review
Summary

The paper shows that increasingly difficult inputs systematically lead to higher sparsity of internal representations in the final layers of LLMs, evidenced across different datasets, model sizes and model families. Through controlled experiments using synthetic data, the authors study how the representational sparsity emerges throughout the training of an LLM and provide a theoretical explanation for this phenomenon. Lastly, they demonstrate that sparsity scores can be leveraged for few-shot example selection, yielding improvements in task performance.

Strengths and weaknesses

Strengths

  • The paper studies difficulty across different dimensions (reasoning complexity, answer choice, knowledge conflict and context length) and quantifies representational sparsity using a comprehensive set of metrics such as Top-k energy, Effective Rank and Hoyer
  • The paper is well-structured and easy to comprehend, making the content accessible even for people who are less familiar with the background

Weaknesses

  • The observed increase in sparsity in the last layers for increasing difficulty seems relatively subtle. Furthermore, the paper does not provide a theoretical explanation for why this phenomenon is most pronounced in the last layers.
  • The paper does not disentangle input difficulty from other correlated factors such as input length (for all tasks apart from knowledge conflict it seems like difficulty strongly correlates with length).
  • Only the Qwen model family was evaluated on all datasets, and LLaMA only on a subset of tasks, limiting claims of generalizability.
  • The controlled experiments successfully replicate the sparsity only for the largest trained model, and the effect size is small.
  • The few-shot selection method combines semantic filtering and difficulty matching, but does not isolate their effects.
  • Some analyses such as the controlled experiments or the few-shot selection method would benefit from a statistical significance analysis to rule out stochastic artifacts.
Questions

Most importantly:

  • How does sparsity change w.r.t. the length of the input while keeping difficulty constant?
  • By how much does the semantic filtering alone of few-shot examples improve task performance?

Additionally:

  • For the SFT experiment in A.7, how high is the sampling variance? Are the results statistically significant?
  • Were the models in Table 1 trained until convergence? Based on Figure 6, it seems like the model converges only after around 4000 steps.
  • Do the hidden representations corresponding to earlier tokens in the sequence also show representational sparsity? And how does sparsity change across different model sizes?
Limitations

yes

Paper formatting concerns

No

Final justification

I have raised my rating to Borderline Accept, as the authors partially addressed several of my initial concerns. Nevertheless, a few issues remain unresolved:

  • The paper does not sufficiently ablate the contribution of the semantic filtering component of SG-ICL. This omission leaves it unclear whether the reported gains stem from to the semantic filtering step or to the difficulty-matching step.
  • The experimental evaluation relies on models from only two families, predominantly the Qwen series. This limited scope raises concerns about the generalizability of the findings across broader model architectures and families.
1 comment

Thank you so much for the insightful review! We would like to answer your questions and clarify some misunderstandings. In short:

  1. With prompt length held exactly fixed, the difficulty effect is undiminished (five metrics, all p < 1e-12, Cohen's d up to 0.80), so length is not what produces it;
  2. Sparsity-based difficulty matching adds +1.40 and +1.60 on top of semantic retrieval alone, on two model families;
  3. We agree the Appendix A.7 SFT result is a single run, and we do not claim significance for it;
  4. The harder-is-sparser ordering holds at steps 4,000 and 5,000, past the point where Figure 6 flattens;
  5. We measure at the final prompt token because it is the only position whose receptive field covers the whole input, and the effect holds across the 1B to 70B models we evaluate.

We would also like to correct two points in the weaknesses: the effect is not subtle, reaching Cohen's d = 0.86 on the knowledge-conflict comparison and d = 0.80 when prompt length is held exactly fixed, and Llama is in fact evaluated on three of the four difficulty axes, in the appendix rather than the main text.

Q1. Separating input length from task difficulty

The effect survives exact length matching. Knowledge conflict is the setting where the control can be made exact, since conflict and non-conflict prompts are built from the same template: pairs with identical token counts can be isolated and compared directly. We ran that comparison.

Out of 3,000 pairs (20 domains, 150 each, Qwen2.5-7B-Instruct), 187 pairs have identical prompt token counts. On that subset:

MetricNon-conflictConflictDifferencePaired t (p)Cohen's d
Top-5% Energy0.62490.6865+0.0616+11.00 (5.4e-22)+0.80
Top-10% Energy0.71370.7614+0.0476+10.99 (5.7e-22)+0.80
Effective Rank0.09520.0696-0.0256-9.22 (6.6e-17)-0.67
Hoyer sparsity0.39090.4354+0.0445+11.00 (5.3e-22)+0.80
ℓ1\ell_1 Norm2.87262.7933-0.0793-7.93 (2.0e-13)-0.58

All five metrics move toward greater sparsity under conflict, every comparison is significant at p < 1e-12, and the effect is essentially undiminished relative to the full sample: Top-10% Energy gives d = 0.86 across all 3,000 pairs and d = 0.80 with length held exactly fixed. Relaxing the match to a two-token tolerance gives 916 pairs and the same answer (Top-10% Energy +0.0470, d = 0.80).

Partialling out prompt length across all 3,000 pairs moves the conflict-sparsity correlation only from +0.566 to +0.551.

Length also fails to produce the effect when it is pushed in the opposite direction. Our Easy-Long control gives approximately 150-token easy prompts a Top-10% Energy of 55.89%, against 67.44% for approximately 55-token hard MATH prompts: the longer input is the denser one.

To be precise about what this shows: we do not claim that input length never affects sparsity, only that it is not what produces the difficulty effect, since the effect is undiminished when length is held exactly fixed and almost unchanged when it is partialled out.

Thank you for pushing this. The exact-match subset is a sharper control than any we had run, and we will emphasize it in the paper.

Q2. Isolating semantic filtering from difficulty matching

Sparsity-based difficulty matching adds +1.40 on Qwen2.5-7B and +1.60 on Llama3-70B on top of semantic retrieval alone.

In our implementation, the Auto-CoT baseline is the closest available proxy for the semantic-only component: it retrieves demonstrations from the query's semantically similar cluster, without using representation sparsity or difficulty matching. The comparison therefore isolates the additional contribution of sparsity-based matching:

Model and benchmarkFixed few-shotSemantic-only Auto-CoTSG-ICLGain of sparsity matching over semantic-only
Qwen2.5-7B, MATH-50074.0075.2076.60+1.40
Llama3-70B, MATH-50066.4068.0069.60+1.60

Semantic filtering alone improves over fixed demonstrations, while sparsity-based difficulty matching provides an additional gain on both model families. Therefore, SG-ICL's improvement is not solely attributable to semantic retrieval.

We will make this decomposition explicit in the method and experiment sections.

Q3. Sampling variance of the SFT experiment in Appendix A.7

It is a single run, so it carries no variance estimate and we do not claim statistical significance for it. We will run it across seeds and report the mean and standard deviation in the revision; if the gap (59.74% -> 60.65%) does not survive, we will say so and present the experiment as a proof of concept only.

The representational claims do not rest on it, and those are significant across every sparsity definition we use. On the full set of 3,000 knowledge-conflict pairs from Q1:

MetricEffectCohen's dWilcoxon p
Hoyer sparsity+0.0476+0.861.4e-287
Top-5% Energy+0.0663+0.864.2e-288
Top-10% Energy+0.0513+0.868.3e-288
Effective Rank-0.0274-0.718.8e-242

We report the Wilcoxon signed-rank p-values because the corresponding paired t-test statistics (|t| between 39 and 47) give p-values below double-precision underflow.

Q4. Were the models in Table 1 trained to convergence?

Yes. Accuracy has already reached its plateau at the checkpoints Table 1 reports: on Trans-32-32 the Easy split is at 78.00% by step 1,500 and stays between 78% and 83% through step 2,500, and Section 4.3 reports accuracy as stable at roughly 75% out to 5,000 steps. That is why those checkpoints were chosen.

The ordering also holds well past the point the reviewer identifies. Thank you for prompting the check; extending the Figure 6 run past where the curve flattens:

StepDifficultyAccuracyTop-5 EnergyTop-10 EnergyEff. Rank
4000Easy76.0028.0944.060.4796
4000Medium42.8628.1344.100.4794
4000Hard33.5028.1844.170.4786
5000Easy74.5027.8743.890.4814
5000Medium46.5627.8843.880.4812
5000Hard33.5027.9443.960.4806

Across all 26 checkpoints of the run, Easy versus Hard holds at 25 of 26 for Top-5% and Top-10% Energy and at 24 of 26 for Effective Rank and the ℓ1\ell_1 Norm; the strict three-way ordering is noisier, at 15 to 19 of 26, and we will report it at that resolution. Effective Rank is shown to four decimals because the splits separate below the precision Table 1 uses.

What continues to change after 4,000 steps is the level of sparsity, not accuracy, and that drift is the Phase II consolidation of Section 4.3. Table 1 compares difficulty levels within a checkpoint, so it is unaffected by where on the trajectory it is read. We will state the stopping criterion in the caption and report these later checkpoints alongside it.

Q5. Earlier token positions, and model scale

We did not measure earlier token positions. In a causal language model the final prompt token is the only position whose receptive field covers the entire input; an earlier position sees a shorter prefix, so it is not encoding the same problem and its sparsity is not comparable. The final layer is likewise the immediate input to the unembedding, and therefore the most behaviorally relevant readout: earlier layers largely aggregate context, while later layers concentrate decision-relevant information before prediction. This is also why the raw sparsity difference is most pronounced near the output, which the reviewer notes the paper leaves unexplained.

The effect is not confined to the final layer. An SAE analysis at Layer 20 shows the same concentration at the feature level:

DatasetAvg. tokensAvg. Top-1 SAE activation
GSM8K37.084.07
MMLU-Math59.793.02
MMLU-Pro-Math62.0106.12

Raw-coordinate sparsification is therefore strongest at the final readout, while feature-level concentration is already visible at an intermediate layer, and we will state that distinction in the paper.

Model scale. The effect is present at every size we test: Qwen2.5 at 1.5B/3B/7B/14B/32B/70B and Llama-3.2-1B/3B and Llama-3.1-70B, a range of 1B to 70B across two families, with the largest checked in Appendix A.6.2 and the smallest in Appendix A.11.

In the toy setting the effect additionally requires sufficient capacity, appearing in Trans-32-32 and not in the smaller configurations. We would gently push back on reading that as a limitation: it is the result Table 1 is designed to produce. Reviewer xqun read it the same way, as "a well-designed control that demonstrates the pattern is learned rather than architecturally imposed."

Two points in the weaknesses we would like to correct

  • "The observed increase in sparsity ... seems relatively subtle." Respectfully, we would like to disagree. On the knowledge-conflict pairs, for example, Cohen's d is 0.86 (0.80 with length held exactly fixed), a large effect under the usual convention, on per-example paired comparisons.architecture.
  • "Only the Qwen model family was evaluated on all datasets." Llama is evaluated on three of the four axes, in the appendix rather than the main text: knowledge conflict (Llama-3.1-70B, Figure 9a), MMLU-Robust (Llama-3.2-1B/3B, Appendix A.10.2), and context length (Llama-3.2-1B, Figure 16). Reasoning complexity is the one axis on Qwen alone, and we will add it in the revision.

We thank the reviewer for these questions, which have improved both the analysis and the way we state its scope.

Reviewer_MsAeOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper investigates how the representational sparsity of LLM hidden states changes with task difficulty. The authors measure sparsity using Top-k Energy, Effective Rank, and Hoyer Sparsity across four difficulty axes (i.e., reasoning complexity, answer choice expansion, knowledge conflict, and context length) and uncover a consistent trend: harder inputs yield sparser representations. They train a toy Transformer on a synthetic knowledge graph to study learning dynamics, revealing a two-phase trajectory of feature selection followed by consolidation. Based on these, they propose Sparsity-Guided Curriculum In-Context Learning (SG-ICL), which selects few-shot demonstrations matched to query difficulty via sparsity, outperforming CoT and Auto-CoT on the MATH-500 benchmark.

Strengths and weaknesses

Strengths:

  1. The experimental design is thorough. Four difficulty axes each isolate a distinct source of model stress.

  2. The RQ flow is natural, delivering a clear and solid presentation.

  3. Insightful findings about the two-phase learning dynamic, connecting representational density to data familiarity in an intuitive way.

Weaknesses:

  1. "Difficulty" and "distributional shift" are conflated. RQ2 attributes representational density to data familiarity, not difficulty per se. Yet the main claim is about difficulty. Since the four experimental axes do not control for one factor while varying the other, it is not clear which is the true driver. A targeted experiment disentangling the two would strengthen the paper.

  2. Output-level signals such as softmax entropy or perplexity also correlate with difficulty and require no hidden-state access. A comparison against a perplexity-based baseline would help clarify whether sparsity is genuinely more informative or simply a more expensive proxy for the same signal.

  3. The mechanistic analysis in RQ2 relies entirely on toy-scale Transformers (up to 1.34B parameters) trained on synthetic logical triples. The gap to real pretraining in data scale, distribution complexity, and model size is large enough that the two-phase dynamic may not hold. Validating on intermediate checkpoints of a real pretraining run would significantly strengthen the claim.

Questions

Are there specific problem types where the sparsity-difficulty trend breaks down, or is it fairly uniform across domains?

Limitations

yes

Paper formatting concerns

None

Final justification

The rebuttal addressed several concerns, but the definition of difficulty remains unclear to me. I maintain my current rating.

1 comment

Thank you so much for your careful reading and constructive assessments. We really appreciate your suggestions and would like to clarify some of our points further.

In short, our responses to the three questions are as follows:

  1. The RQ2 design does separate the two factors; the construction that shows this is in the appendix and we will move it into the main text;
  2. We have added the suggested perplexity- and confidence-based baselines; SG-ICL's advantage holds against both, so the gain is specific to the representation-based signal;
  3. We have also extended the analysis to real pre-training checkpoints, where the same two-phase dynamic reproduces across four models spanning 1B to 32B parameters.

Q1 (clarification): RQ2 already separates difficulty from distributional shift

Thank you so much for pointing out the distinction between difficulty and distributional shift used in RQ2 of the paper. In fact, we do control difficulty specifically in the paper, but it was unfortunately deferred to the appendix. In particular, it is specified in Appendix A.12 Table 6. Difficulty there is not a label we assign, but is verified behaviorally: accuracy decreases monotonically across the three levels in every model and checkpoint reported in Table 1.

Specifically, we consider three difficulty levels, reported as the three column groups of Table 1. The ordering is not a distributional-shift ordering, because the last two levels share the same distributional status:

DifficultyActual construction
Easy, D_memsampled from the training triples (memorization)
Medium, D_IDheld-out deducible triples with a long supporting rule (at least 3 steps)
Hard, D_OODheld-out deducible triples with a short supporting rule (1 to 2 steps)

Easy consists of triples seen during training, so it measures memorization. Medium and Hard are both out of distribution: both were removed from the training graph before training, and both are matched in format and in sequence length. What separates them is the determinacy of the answer set. Short rules are broad, so a query (h,r)(h, r) admits many deducible tails; long rules are selective, so the valid tail is close to unique. This runs opposite to a distributional-distance account: Hard is built from shorter rules and is therefore the compositionally nearer of the two splits, yet it is the harder and the sparser one.

The comparison between Medium and Hard therefore varies difficulty while holding distributional status fixed. Reporting all three levels on Trans-32-32:

StepDifficultyAccuracyL1 NormTop-5 EnergyTop-10 EnergyEff. Rank
1500Easy (in-distribution)78.001608.1030.2846.440.454
1500Medium (OOD-Long)57.001604.8030.5446.720.451
1500Hard (OOD-Short)37.001601.6830.8447.040.448
2000Easy (in-distribution)83.001611.3630.0046.110.458
2000Medium (OOD-Long)63.001608.2130.2346.390.455
2000Hard (OOD-Short)34.001605.2930.5546.700.452
2500Easy (in-distribution)81.001616.1129.6045.670.463
2500Medium (OOD-Long)63.001613.9529.7545.860.461
2500Hard (OOD-Short)38.001610.5030.1146.220.457

A representation is sparser when the L1 Norm is lower, the Top-k Energy is higher, and the Effective Rank is lower. All four sparsity metrics therefore move monotonically toward sparser representations as difficulty increases, at every checkpoint. The Medium to Hard step is the controlled one, since those two levels are matched in distributional status, and the ordering holds there as well.

Proposed revision. We will bring this construction into Section 4.1 and clarify the presentation of the three splits throughout, so that the design is visible in the main text rather than the appendix.

We also agree that distributional shift is a distinct axis worth studying in its own right. Our results suggest the two are related but not interchangeable: shift moves sparsity in the same direction, yet difficulty still orders the metrics when distributional status is held fixed. Characterizing the shift axis on its own would require the pretraining distribution to be specified, which we cannot do for these models, so we will present it as an open direction rather than as a claim.

We hope this clarifies the design of RQ2. The question prompted a change we should have made ourselves, and the section will be considerably clearer for it.

Q2 (baseline comparison): perplexity and confidence do not reproduce the gain

This is a great suggestion, and the comparison strengthens our result. Under an identical protocol on MATH-500, SG-ICL reaches 76.60%, ahead of the strongest existing baseline Auto-CoT at 75.20%, while curricula built on output log-probability and perplexity (73.80%) or on reasoning length (75.00%) do not reproduce that gain. The improvement is therefore specific to what hidden-state sparsity measures, rather than a generic benefit of ordering demonstrations by any difficulty proxy.

Under the same MATH-500 evaluation protocol and demonstration budget:

MethodSelection signalAccuracyDifference from Auto-CoT
Zero-shot CoTNone73.20%-2.00
Few-shot CoTFixed demonstrations74.00%-1.20
Auto-CoTSemantic-cluster retrieval75.20%0.00
Confidence/PPL-ICLOutput log-probability / perplexity73.80%-1.40
Length-ICLReasoning length75.00%-0.20
SG-ICLHidden-state sparsity76.60%+1.40

Our Confidence-ICL baseline ranks candidate demonstrations by their average token-level output log-probability. Since sequence-level perplexity is PPL = exp(- average token log-probability), ranking by average log-probability is equivalent, up to reversing the order, to ranking by perplexity, so this baseline is also a perplexity curriculum. We will rename it Confidence/PPL-ICL to make that explicit.

The reviewer asks whether sparsity is genuinely more informative than output-level signals, and we think it is, with one qualification worth stating upfront. The signals do correlate: perplexity, entropy and sparsity all respond to difficult inputs, and we make no claim of statistical independence. What the curriculum result adds is that they are not interchangeable in practice, since replacing sparsity with perplexity removes the gain entirely and places the curriculum below even fixed few-shot demonstrations. This fits what each quantity measures: perplexity summarizes the output distribution after the unembedding projection, while our metrics describe the geometry of the hidden state that produces it. Both are read from the same forward pass, so the difference between them is one of access rather than cost.

Finally, we would like to thank the reviewer for the suggestion to compare against other signals. The question generalizes well beyond perplexity: attention entropy, layer-wise sparsity, and SAE feature counts may all bear part of the same effect, and each deserves the same test. We believe our main contribution is to open that comparison rather than to settle it, by establishing that the representation side carries information the output side does not. Hidden-state sparsity may not be the only or the best signal of its kind, and we hope this work encourages others to look for better ones.

Q3 (real-pretraining evidence): the two-phase dynamic replicates on real pre-training checkpoints

We repeated our analysis on the real pre-training checkpoints from four OLMo-2 base models, from 1B to 32B parameters. Here for the sake of brevity we present the normalized ℓ1\ell_1 sparsity across the released checkpoints of each run. All four runs trace the same U-shape as the toy models. Other measures confirm the same findings and we will include them in the camera ready version of the paper.

ModelInitialTroughTrough at stepTrough at % of runFinalRise from trough
OLMo-2-1B0.79800.608870,0004%1.3563+123%
OLMo-2-7B0.89530.432386,0009%0.8473+96%
OLMo-2-13B0.79780.211797,00016%0.6117+189%
OLMo-2-32B0.80170.2500100,00014%0.6509+160%

The norm falls steeply early in training, which is the feature-selection phase, reaches a minimum, and then rises for the remainder of the run, which is consolidation. Every rise is monotone across the checkpoints that follow the trough and far exceeds the measurement noise (Welch t-test on 1,000 held-out sequences, t between 116 and 146). The trough also sits in a narrow band of absolute training steps, between 70K and 100K in all four runs, even though the runs themselves range from 596K to 1.9M steps.

Again, we would like to thank the reviewer for such constructive feedback. Validating on a real pretraining run was the right test to ask for, and it moves the two-phase claim from synthetic models to a real pretraining family spanning 1B to 32B parameters.

Comments on the paper

1 comment
Meta-review

The paper investigates how the representational sparsity of LLM hidden states changes with task difficulty using 3 different metrics to measure sparsity and 4 different axes to measure task difficulty (reasoning complexity, answer choice size, knowledge conflict, context length) and in empirical analysis on Llama 3.2 and Qwen 2.5 model families finds that the last hidden states become sparser as task difficulty increases. Based on this insight, it proposes a sparsity-guided curriculum in-context learning which is compared against CoT and AutoCoT on Math-500.

The reviewers find this paper to be well-structured and clearly written, and initially appreciated the experimental design (four axes of difficulty, three metrics of sparsity).

However, there were also many weaknesses raised by the reviewers. Most importantly, a more thorough embedding in the existing literature was needed (ideally even an empirical comparison), as mentioned by reviewers ptPZ, xqun, MsAe. Also, reviewers 61kD and xqun raised concerns about the significance of improvements. Lastly, I agreed with reviewer 61kD that it would be beneficial to the generalizability of the finding "harder is sparser" if it was validated on at least a third model family beyond the two investigated.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.