When Independent Sampling Outperforms Agentic Reasoning

Yihe Dong, Boris Shigida
5/8/2026
cs.LG

No confident code implementation found for this paper.

Abstract

We study how to allocate inference-time compute for competitive programming under fixed budgets. Evaluating 216 Codeforces problems across Divisions 1-3, we compare agent-based reasoning with repeated independent sampling (k-shot) as a function of both cost and number of model calls.

Show full abstract

Across models and difficulty levels, k-shot consistently achieves a better accuracy-cost and accuracy-query tradeoff. This gap persists despite prompt caching in agent frameworks, indicating lower per-call effectiveness. Our results show that, for self-contained algorithmic tasks, independent exploration can outperform deeper agentic reasoning under realistic resource constraints. We also provide a budget-allocation analysis when the inference budget is fixed, and prove that a cost-optimal solver minimizes the principled metric log failure likelihood per dollar.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{dong2026when,
  title  = {When Independent Sampling Outperforms Agentic Reasoning},
  author = {Yihe Dong and Boris Shigida},
  year   = {2026},
  eprint = {2605.08478},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.08478v1}
}

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/2605.08478.svg)](https://codeofpaper.com/paper/2605.08478)

Discussion