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
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Interpretability & Model Adaptation › Chain-of-Thought Reasoning in Transformers · Type: new method · Keywords: LLM representations, sparsity, task difficulty, in-context learning, few-shot selection
Areas: LLM Reasoning › Efficient Reasoning › In-Context Learning; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Compositional Reasoning
Summary
The paper finds that LLM hidden representations become sparser as task difficulty increases and introduces a sparsity-guided curriculum for in-context learning (SG-ICL) that improves performance on MATH-500.
Explained to a 5-year-old
We look at how big language models think when they see hard questions. When the question is harder, the model's brain activity becomes sparser, like fewer lights turn on. This pattern happens for many models and types of questions. The researchers used this pattern to pick good examples for learning, which helped the model solve math problems better. This helps us make models that learn more efficiently.
Explained to a 5-year-old, longer
The researchers studied big language models and noticed something interesting about how they work. When a question is easy, the model uses many neurons, like a bright room full of lights. When a question is hard, fewer neurons fire, making the activity sparser. This pattern was seen across many different models and kinds of tasks. The scientists found that familiar patterns cause dense activity, while unfamiliar patterns cause sparse activity. They used this sparsity signal to choose the best examples for learning, which helped the model solve math problems better. This new way of picking examples is called a sparsity-guided curriculum. It works better than the usual methods like chain-of-thought and Auto-CoT. The study shows that looking at sparsity can give us useful clues about how models think and how to improve them.
For a technical reader
The paper shows that as tasks get harder, the internal activations of LLMs become sparser. This sparsity can be measured at the dataset level and correlates with task difficulty across models. The authors demonstrate that sparsity reflects data familiarity: familiar patterns yield dense activations, unfamiliar ones yield sparse. They then use this sparsity signal to select few-shot examples for in-context learning, which they call SG-ICL. SG-ICL improves performance on a math benchmark compared to standard chain-of-thought and Auto-CoT methods.
Problem
How do the internal representations of large language models respond to increasing task difficulty?
Method
The approach conducts dataset-level analyses of hidden-state sparsity across tasks of varying difficulty, studies how representational density relates to data familiarity, and leverages sparsity to select demonstrations for in-context learning.
Results
The approach shows improved performance on MATH-500 compared to standard CoT and Auto-CoT baselines.
Contributions
The paper discovers a systematic sparsity-difficulty relationship in LLM hidden representations, shows that sparsity reflects data familiarity, and proposes a sparsity-guided curriculum for in-context learning.
Practical relevance
The findings can guide the design of more effective prompting and few-shot learning strategies for LLMs.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction