The Power of Power Law: Asymmetry Enables Compositional Reasoning

Zixuan Wang, Xingyu Dang, Jason D. Lee, Kaifeng Lyu

TL;DR

This paper challenges the common assumption that uniform data distributions are optimal for training machine learning models, especially for complex reasoning tasks. The authors demonstrate that training with a power-law distribution, which naturally reflects the long-tail nature of many real-world datasets, significantly accelerates learning and enables models to tackle previously intractable compositional reasoning problems.

What Problem Does This Paper Address?

Many real-world datasets, including natural language, exhibit a power-law distribution where a few items are very frequent, and most are very rare (the "long tail"). A common intuition in machine learning is that to effectively learn these rare "long-tail" skills or knowledge pieces, one should re-weight the data to create a more uniform distribution, ensuring all items are seen equally often. This paper investigates this assumption, particularly for compositional reasoning tasks. These tasks require models to combine multiple simpler skills or knowledge components to solve a problem (e.g., multi-step arithmetic, state tracking). The authors question whether a uniform distribution is truly optimal for learning these complex, multi-step reasoning abilities, or if the inherent asymmetry of a power-law distribution might offer an advantage.

Methods

The authors employ a multi-pronged approach:

  • Empirical Studies: They train models on various compositional reasoning tasks (multi-step arithmetic, state tracking, multi-hop QA, grade-school math) using both uniform and power-law data distributions.
  • Theoretical Analysis: They introduce a minimalist theoretical task called "k-multiplicative composition" to rigorously analyze the learning dynamics. This task involves composing k scalar skills, where each skill is represented by a hidden scalar value.
  • Lower Bound Proofs: They prove a lower bound showing that learning compositional tasks under a uniform distribution requires prohibitively large amounts of data or computation.
  • Gradient Descent Analysis: They analyze the dynamics of gradient descent under a power-law distribution, demonstrating how it leads to a more favorable loss landscape and faster convergence.
  • Mechanistic Understanding: They investigate the "stage-wise" learning process induced by the power-law distribution, showing how frequent skills are learned first, acting as a stepping stone for rarer skills.

Datasets

The paper uses a combination of synthetic and natural language datasets:

  • Synthetic Datasets:
    • Multi-step Arithmetic: Generated expressions with operators (+, -, ×) and operands sampled from [1, 50].
  • State Tracking (S5): Based on the permutation group S5, requiring composition of permutation elements.
  • Multi-hop QA: Constructed from synthetic facts about relations between individuals, requiring multi-hop reasoning.
  • Grade School Math Problems: Generated problems with layered structures and arithmetic operations, with and without modular arithmetic.
  • Natural Language Datasets: While the core experiments use synthetic data to control variables, the paper discusses applications to natural language reasoning tasks, implying that the findings are relevant to real-world NLP data.

Key Insights and Ideas

  • Counterintuitive Advantage of Power Laws: The most striking finding is that training with a power-law distribution outperforms uniform distribution for compositional reasoning, directly contradicting the intuition that uniform data is always better for long-tail learning.
  • Asymmetry as a Feature, Not a Bug: The inherent asymmetry of the power-law distribution is shown to be beneficial. It creates a "beneficial asymmetry" that improves the loss landscape, making it easier for models to learn.
  • Stage-wise Learning: Power-law sampling induces a natural curriculum: models first learn high-frequency (easy) skills efficiently, which then act as building blocks to learn rare (hard) skills. This is a more effective learning strategy than trying to learn everything uniformly from the start.
  • Theoretical Separation: The authors provide theoretical proof that learning compositional tasks under uniform distribution is computationally hard (requiring exponential data/runtime), while power-law distribution offers a significantly more efficient learning pathway.
  • Escaping Flat Landscapes: Power-law distributions help models escape the "flat" initial loss landscape that often hinders optimization, especially in complex tasks.

Key Results

  • Significant Performance Gains: Models trained with power-law distributions consistently outperformed those trained with uniform distributions on various compositional reasoning tasks. For example, in arithmetic, power-law training achieved ~82% accuracy compared to ~64% for uniform training.
  • Enabling Unlearnable Tasks: For tasks like k-hop state tracking, which are unlearnable under uniform distribution without explicit curriculum or chain-of-thought, power-law training enabled efficient learning.
  • Theoretical Speedup: The theoretical analysis shows that learning compositional tasks under a power-law distribution requires O(d^(2a)) samples, compared to the prohibitive O(d^(k/2)) samples required under a uniform distribution.
  • Faster Convergence: Empirical results show that power-law training leads to significantly faster convergence to high accuracy on tasks like multi-hop QA and grade-school math problems.

Limitations and Future Work

  • Focus on Synthetic Data: While the paper argues for the relevance to natural language, most experiments are conducted on synthetic datasets to isolate the effect of data distribution. Future work could explore this more extensively on diverse real-world NLP tasks.
  • Granularity of Asymmetry: The paper suggests that the "granularity" of asymmetry matters, with fine-grained power laws being more effective. Further research could explore optimal asymmetry structures beyond simple power laws.
  • Order of Skills: The order in which skills are presented in the power-law distribution can influence learning speed. While power-law still helps with random or reversed orders, a structured order might further enhance performance.
  • Real-world Skill Composition: Future work could investigate re-weighting real-world data distributions to power laws or synthesizing data for missing skills to improve LLM capabilities.

Summary updated

BibTeX
@inproceedings{wang2026power,
  author = {Zixuan Wang and Xingyu Dang and Jason D. Lee and Kaifeng Lyu},
  title = {{The Power of Power Law: Asymmetry Enables Compositional Reasoning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=K83orsg2X9},
}
Figure