Credit-Budgeted ICPC-Style Coding: When Agents Must Pay for Every Decision
Organizations: Shanghai Jiao Tong University · Shanghai Innovation Institute
Abstract
Current evaluations of autonomous coding agents assume an unrealistic, infinite-resource environment. However, real-world software engineering is a resource-bound competition. As we scale toward large agent swarms, ignoring compute and time costs risks catastrophic budget exhaustion. To shift the focus from isolated accuracy to cost-aware problem-solving, we introduce USACOArena, an interactive ACM-ICPC-style arena driven by a strict "credit" economy. Every generated token, local test, and elapsed second depletes a fixed budget, forcing agents to make strategic trade-offs. Our comprehensive profiling reveals that frontier single agents and swarms currently fail to optimally balance accuracy with these constraints, exhibiting divergent, path-dependent behaviors. Ultimately, USACOArena provides an essential dynamic training ground for developing highly efficient, resource-aware agent architectures.
Figures & tables
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Main Result | Low Credit | High Credit | Free Test | High Test | Free Hint | High Hint | Flat Score | Exp. Score |
|---|---|---|---|---|---|---|---|---|---|
| (Table 10 config) | (10M) | (40M) | ($0) | ($1k) | ($0) | (100 ) | |||
| Gemini-2.5-pro | 13.2 | 8.3 | 13.0 | 10.7 | 9.7 | 12.0 | 13.0 | 5.0 | 19.7 |
| GPT-5-Codex | 12.0 | 4.3 | 4.3 | 5.7 | 4.3 | 3.7 | 3.7 | 3.3 | 16.3 |
| GLM-4.5 | 3.2 | 1.0 | 0.7 | 1.0 | 1.0 | 1.0 | 1.7 | 1.3 | 1.0 |
| Qwen3-235B | 2.8 | 1.7 | 1.7 | 3.3 | 1.7 | 1.3 | 2.7 | 1.3 | 0.0 |
| Claude-4-Sonnet | 1.0 | 2.0 | 3.3 | 2.7 | 2.0 | 3.0 | 2.0 | 2.0 | 5.3 |
| Problem ID | Level | Result | Test Cases | Cons. Credit | LLM Calls | Sub. |
|---|---|---|---|---|---|---|
| 1526 | platinum | WA | 1/20 | 10167024 | 48 | 37 |
| 1525 | platinum | WA | 1/15 | 10306989 | 45 | 36 |
| 1524 | platinum | TLE | 1/16 | 10018138 | 63 | 49 |
| 1523 | gold | TLE | 1/20 | 10151386 | 57 | 47 |
| 1522 | gold | AC | 15/15 | 1446214 | 6 | 1 |
| 1521 | gold | AC | 25/25 | 2818862 | 18 | 8 |
| Model | Result | Cons. Credit | LLM Calls | Submissions | Qualified |
|---|---|---|---|---|---|
| Gemini-2.5-Pro | AC | 373,173 | 3 | 2 | Yes |
| GPT-5-Codex | AC | 26,986 | 3 | 1 | Yes |
| Claude-4-Sonnet | AC | 57,405 | 3 | 2 | Yes |
| DeepSeek-V3.1 | AC | 69,514 | 19 | 7 | Yes |
| DeepSeek-V3 | AC | 536,880 | 130 | 47 | Yes |
| Kimi-K2-0905 | AC | 449,065 | 35 | 17 | Yes |
| Model | Result | Cons. Credit | LLM Calls | Submissions | Qualified |
|---|---|---|---|---|---|
| Gemini-2.5-Pro | AC | 472,262 | 4 | 2 | Yes |
| GPT-5-Codex | AC | 177,127 | 9 | 1 | Yes |
| Claude-4-Sonnet | WA | 10,035,455 | 168 | 90 | No |
| TLE | 10,037,109 | 508 | 232 | ||
| TLE | 10,013,656 | 227 | 127 | ||
| DeepSeek-V3.1 | AC | 497,429 | 121 | 46 | Yes |
| Model | Result | Cons. Credit | LLM Calls | Submissions | Qualified |
|---|---|---|---|---|---|
| Gemini-2.5-Pro | AC | 104,275 | 2 | 1 | Yes |
| GPT-5-Codex | AC | 19,739 | 3 | 1 | Yes |
| Claude-4-Sonnet | AC | 57,486 | 3 | 2 | Yes |
| DeepSeek-V3.1 | AC | 14,048 | 5 | 1 | Yes |
| DeepSeek-V3 | AC | 6,918 | 4 | 1 | Yes |
| Kimi-K2-0905 | AC | 213,684 | 18 | 9 | Yes |
| Model | Result | Cons. Credit | LLM Calls | Submissions | Qualified |
|---|---|---|---|---|---|
| Gemini-2.5-Pro | AC | 137433 | 3 | 1 | Yes |
| GPT-5-Codex | AC | 37583 | 4 | 1 | Yes |
| Claude-4-sonnet | AC | 813746 | 20 | 9 | Yes |
| DeepSeek-V3.1 | AC | 1153921 | 257 | 47 | Yes |
| DeepSeek-V3 | AC | 239910 | 55 | 17 | Yes |
| Kimi-K2 | AC | 1366068 | 95 | 23 | Yes |
| Model | Avg. Rank | Avg. Score | Avg. Consumed Credit | Inference Credit | Hint Credit | Penalty Credit |
|---|---|---|---|---|---|---|
| Gemini-2.5-pro | 1.30 0.47 | 14.00 3.88 | 13,762,787 4.3M | 13.76M 4.3M | 2.5K 2.5K | 4.1K 1.9K |
| GPT-5-Codex | 1.70 0.47 | 9.39 7.59 | 4,707,464 3.1M | 4.71M 3.1M | 1.1K 2.0K | 0.3K 0.3K |
| Qwen3-235b | 4.00 1.59 | 1.61 0.92 | 11,732,391 6.9M | 11.17M 6.5M | 560.2K 375.7K | 3.6K 2.6K |
| GLM-4.5 | 4.35 1.57 | 2.33 2.28 | 7,249,215 4.0M | 7.06M 3.9M | 161.7K 93.2K | 22.7K 16.8K |
| DeepSeek-V3 | 5.70 1.13 | 0.11 0.32 | 194,050 0.2M | 0.17M 0.2M | 19.8K 24.9K | 1.2K 1.3K |
| DeepSeek-V3.1 | 6.00 1.30 | 0.06 0.24 | 253,013 0.4M | 0.23M 0.4M | 21.9K 32.7K | 1.4K 2.7K |
| Agent | Win Rate | Avg. Score | Avg. Credit | Attempted | Submission |
| Consumed | Problems | Precision (%) | |||
| Experiment 1: Generalist vs. Specialist | |||||
| GPT-5 (Base) | 100% | 20.3 | 14M | 26 | 12.9% |
| GPT-5-Codex | 0% | 8.0 | 8M | 16 | 68.2% |
| Experiment 2: Specialist vs. Agentic Framework | |||||
| GPT-5-Codex | 0% | 5 | 4M | 16 | 44.4% |
| Provider | Model | Input Cost | Output Cost |
|---|---|---|---|
| OpenAI | GPT-5-2025-08-07 | $1.25 | $10.00 |
| GPT-5-Codex | $1.25 | $10.00 | |
| Gemini 2.5 Pro | $1.25 | $10.00 | |
| Anthropic | Claude-Sonnet-4-20250514 | $3.00 | $15.00 |
| DeepSeek | DeepSeek-v3 | $0.27 | $1.10 |
| DeepSeek-v3.1 | $0.27 | $1.10 |
| Parameter | Description | Default Value |
| Basic Setup | ||
| max_credits_per_participant | Maximum credits per participant | 20,000,000 |
| Scoring System | ||
| bronze_score | Points for Bronze problems | 1 |
| silver_score | Points for Silver problems | 2 |
| gold_score | Points for Gold problems | 5 |
Software Engineering Agents
Software Engineering Agents are AI systems that use code, tools, and feedback to perform software development tasks.
See all 344 papers