DISC: Dynamic Decomposition Improves LLM Inference Scaling

Jonathan Light, Wei Cheng, Benjamin Riviere, Yue Wu, Masafumi Oyamada, Mengdi Wang, Yisong Yue, Santiago Paternain, Haifeng Chen

Abstract

Scaling Large Language Model (LLM) inference compute through search and decomposition has emerged as a powerful paradigm for solving complex reasoning tasks. However, existing methods typically rely on static decomposition strategies—such as splitting by tokens, lines, or sentences—which often misalign with the model's internal reasoning process. We present DISC (Dynamic decomposition Improves Scaling Compute), an algorithm that dynamically adjusts step sizes during generation based on statistical uncertainty. By focusing compute on critical logical junctions, DISC significantly enhances inference efficiency and accuracy across competitive programming and mathematical benchmarks. Our results demonstrate that DISC reduces error rates by up to 10.5% on LiveCodeBench and improves the performance of state-of-the-art models like DeepSeek-R1 with minimal computational overhead.

Introduction

"Inference scaling"—the practice of allocating additional compute at test time to explore multiple potential solutions—has become a cornerstone of modern reasoning models. To do this efficiently, search algorithms typically decompose a problem into smaller steps to navigate a tree of possibilities.

However, current methods are limited by static decomposition. They either treat an entire response as a single step (Best-of-N), evaluate every individual token (which is computationally prohibitive), or split based on human-centric heuristics like newlines or periods. This rigidity is fundamentally flawed: it wastes compute on mechanical, deterministic steps while undersampling the critical logical leaps where the model is most likely to diverge. Furthermore, what a human perceives as a "step" often differs from the autoregressive branching points that an LLM finds challenging. DISC addresses this by automatically identifying the optimal points to split a generation based on the model's own internal uncertainty.

Methodology: The DISC Algorithm

DISC is a recursive inference algorithm designed to adapt its step granularity on the fly. Unlike static methods, DISC uses a scalar Outcome Reward Model (ORM)—such as a unit test or a mathematical verifier—to guide its search process through a dynamic "proposal and verification" loop.

The Search Process

  1. Sample & Score: From a given prefix, the LLM generates multiple full completions. These completions are evaluated by the reward model.
  2. Propose a Step: DISC proposes a candidate step by taking a fraction of the highest-scoring completion.
  3. Evaluate via Z-Score: The algorithm generates new samples starting from this candidate step and calculates the z-score of the rewards. This statistical measure determines if there is a significantly higher probability of finding an improved reward compared to the previous state.
  4. Accept or Contract: If the z-score indicates a promising improvement, the step is accepted. If the step is rejected, DISC shrinks the proposed step size and retries, effectively "zooming in" on the specific token or phrase where the model requires more careful exploration.

DISC is highly flexible and can be integrated with various search strategies, including Greedy Search, Beam Search, and Monte Carlo Tree Search (MCTS).

Experimental Setup

The authors evaluated DISC across three rigorous benchmarks requiring complex logic and code generation:

  • APPS: A 200-problem subset of competition-level Python programming challenges.
  • MATH500: A standard 500-problem subset of the MATH benchmark for mathematical reasoning.
  • LiveCodeBench: 108 recent coding problems (Oct-Dec 2024) to ensure the models had not encountered the data during training.

Key Insights and Analysis

The Nature of Critical Steps

An intriguing finding of the study is that LLMs often encounter "critical steps" at points humans would find counterintuitive. DISC frequently identified transition words—such as "which," "therefore," or "wait"—as high-importance junctions. While these words are linguistically simple, for a next-token predictor, they represent massive forks in the road that dictate the entire downstream logic of the solution.

The Temperature Paradox

While most inference scaling methods (like Best-of-N) require high sampling temperatures (0.6–0.8) to ensure diversity, DISC performs optimally at lower temperatures (e.g., 0.2). Because DISC relies on precise statistical z-scores to make splitting decisions, lower temperatures reduce sample variance, making the algorithm's step-selection logic significantly more reliable.

Statistical Grounding

DISC demonstrates that using the z-score is superior to simply looking at raw reward averages. By balancing the mean reward with the variance, the z-score provides a statistically grounded estimate of the probability of improvement, allowing the model to commit to steps only when they truly enhance the solution path.

Results

  • Superior Accuracy: Compared to the best static baselines (TokenSplit, LineSplit, and Best-of-N), DISC reduced the pass@10 error rate by 5.0% on APPS, 6.7% on MATH500, and 10.5% on LiveCodeBench.
  • Token Efficiency: DISC achieves higher success rates while generating significantly fewer tokens than baseline methods, demonstrating a more intelligent allocation of compute.
  • Model Agnostic Performance: The algorithm provided massive gains across different architectures. On APPS, it boosted LLaMA-3.1-8B's pass@10 rate by a relative 300%. Even for state-of-the-art reasoning models like DeepSeek-R1, DISC improved accuracy by over 85% relative to the base model with only 10 samples.
  • Negligible Overhead: Despite the dynamic statistical checks, over 90% of the runtime is spent on LLM token generation. The algorithm itself introduces almost zero wall-clock overhead.

Limitations and Future Work

While DISC represents a significant step forward, it relies heavily on the availability of a reliable scalar reward signal. In domains like coding or math, unit tests provide this signal; however, applying DISC to open-ended text would require training auxiliary reward models or LLM-as-a-judge critics, which can introduce noise. Additionally, the current implementation is designed for single-pass generation and does not yet support multi-turn environments where intermediate steps might benefit from external feedback.

Future research will focus on integrating learned verifiers, expanding the framework to multi-turn interactions, and utilizing DISC-generated trajectories to produce high-quality synthetic data for fine-tuning future generations of reasoning models.

Summary updated

BibTeX
@inproceedings{light2025disc,
  author = {Jonathan Light and Wei Cheng and Benjamin Riviere and Yue Wu and Masafumi Oyamada and Mengdi Wang and Yisong Yue and Santiago Paternain and Haifeng Chen},
  title = {{DISC: Dynamic Decomposition Improves LLM Inference Scaling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=iY1zuKydO0},
}
Figure