CODA: Difficulty-Aware Compute Allocation for Adaptive Reasoning

Siye Wu, Jian Xie, Yikai Zhang, Yanghua Xiao
3/9/2026
cs.CL

No official code found. Best implementation: Di-viner/coda (6 stars, Apache-2.0, last commit 2026-04-06).

Abstract

The emergence of large reasoning models demonstrates that scaling inference-time compute significantly enhances performance on complex tasks. However, it often falls into another trap: overthinking simple problems, where repetitive rationales yield minimal accuracy gains at a disproportionately high cost. This motivates adaptive reasoning: dynamically aligning reasoning depth with instance difficulty. In this paper, we study adaptive reasoning from an optimality perspective, formalizing it as a utility maximization problem where tokens are allocated until the marginal accuracy gain falls below the incremental cost. Based on this, we propose CODA (Compute Allocation by Difficulty Awareness), a method that operationalizes this principle by allocating tokens via a policy-internal difficulty signal. Specifically, CODA estimates difficulty via group-based rollouts and maps it to two non-negative gates that modulate a length-dependent shaping term on top of the binary base reward. The easy-side gate penalizes verbosity on simple instances, whereas the hard-side gate encourages more deliberative rollouts on challenging ones. Across model scales and benchmarks, CODA achieves adaptive reasoning without external annotations or user-provided budgets: on easy tasks, CODA reduces token costs by over 60% while maintaining strong accuracy, whereas on hard tasks it incentivizes more deliberative rollouts to maximize performance.

View on arXivView PDF

Code Implementations(1)

Di-viner/codaCommunity68%
Apache-2.0

CODA: Difficulty-Aware Compute Allocation for Adaptive Reasoning

60Jinja, ShellMar 4, 20266 months agoApache-2.0

Similar Papers

Cite this paper

@article{wu2026coda,
  title  = {CODA: Difficulty-Aware Compute Allocation for Adaptive Reasoning},
  author = {Siye Wu and Jian Xie and Yikai Zhang and Yanghua Xiao},
  year   = {2026},
  eprint = {2603.08659},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.08659v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.08659.svg)](https://codeofpaper.com/paper/2603.08659)

Discussion