SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.08478 · 2026

When Independent Sampling Outperforms Agentic Reasoning

Yihe Dong, Boris Shigida

arXiv · PDF · Open in the Atlas

Code that ran

14 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 13 failures of our instrument; 3 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.08478.json · badge: /api/ran/2605.08478.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
princeton-pli/competitive-programming-agents canonical (classifier label)
classifier basis: census
14 ran · 3 no recorded run
FunctionStatusWhere it lives
decide_whether_sol_is_unique Ran
ran, violated the contract we drafted
princeton-pli/competitive-programming-agents/competitive-programming-agents/select_problems.py
pointer only (licence: NONE) · get_code("8e38553286ef52e6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_attempt_costs Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/report.py
pointer only (licence: NONE) · get_code("1ff1c956aa524c28")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_latex_code_for_figures Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
princeton-pli/competitive-programming-agents/competitive-programming-agents/report_utils.py
pointer only (licence: NONE) · get_code("4764b5d394a66922")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_clean_problem_dict Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/select_problems.py
pointer only (licence: NONE) · get_code("293433d5c6daeaf9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_instance_id Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/convert_to_swebench_dataset.py
pointer only (licence: NONE) · get_code("c67c8234b84f7adb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_instance_id Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/problem_statements_data.py
pointer only (licence: NONE) · get_code("67f2ada85a36980c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_problem_statements_for_contest Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/select_problems.py
pointer only (licence: NONE) · get_code("70e5a498f5e57448")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_and_process_dataset Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/oneshot_baseline.py
pointer only (licence: NONE) · get_code("5e7f850c9afb0837")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_config Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/oneshot_baseline.py
pointer only (licence: NONE) · get_code("d8439cb96d070daf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_dataset Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/oneshot_baseline.py
pointer only (licence: NONE) · get_code("7f02ece824a4f2bb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_latex_table Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/report.py
pointer only (licence: NONE) · get_code("b332e80622c79115")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_oneshot_runs Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/report.py
pointer only (licence: NONE) · get_code("69d6e305ed28783d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

to_swebench_format Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/convert_to_swebench_dataset.py
pointer only (licence: NONE) · get_code("491b39993e821a38")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

to_swebench_format Ran
ran; our contract draft was wrong, not the code
princeton-pli/competitive-programming-agents/competitive-programming-agents/problem_statements_data.py
pointer only (licence: NONE) · get_code("2ca0eb1d9409a127")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_all_eligible_submissions Not yet run
unverified (harvested, no recorded run)
princeton-pli/competitive-programming-agents/competitive-programming-agents/parse_cf.py
pointer only (licence: NONE) · get_code("9de00d0d90d948df")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_contest_standings Not yet run
unverified (harvested, no recorded run)
princeton-pli/competitive-programming-agents/competitive-programming-agents/parse_cf.py
pointer only (licence: NONE) · get_code("511a6913905e796c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_user_submissions Not yet run
unverified (harvested, no recorded run)
princeton-pli/competitive-programming-agents/competitive-programming-agents/parse_cf.py
pointer only (licence: NONE) · get_code("5b615d159c21e001")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, princeton-pli/competitive-programming-agents when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 17 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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. 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. 1 * Equal contribution 1 Our code is publicly available at https://github.com/princeton-pli/competitive-programming-agents.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.08478")
get_code_for_paper("2605.08478")
have("2605.08478")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.08478.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.08478.svg)](https://syntology.ai/paper/2605.08478)

Connect an agent — have() is free.