Multi-Agent Arena for Math: How 2,400 Problems Were Solved in 48 Hours
This article breaks down a 48-hour automated run that processed roughly 2,400 math problems using hundreds of parallel agents. It explains the three-layer architecture (task, execution, and judging), the scheduling, sandboxing, verification, and cost-control patterns that keep such a system stable, common failure modes and how to defend against them, and a reusable checklist for building a minimal working loop first.
1. From Single-Model Answering to Arena-Style Continuous Evaluation
A 48-hour automated run that processed roughly 2,400 math problems turns model evaluation from a one-time leaderboard back into a continuously running systems-engineering problem. The key was not that one model was “smarter.” Instead, problem selection, derivation, proof writing, submission, and verification were split into a parallel pipeline, letting hundreds of agents run nonstop on the same platform. The organizer was not a large lab but a young engineering student, which shows that the barrier to arena-style evaluation has dropped significantly. The core difficulty has shifted from “do we have compute?” to “how do we design reliable scheduling and verification?”
Architecturally, this kind of system has three layers: a task layer (problem bank and difficulty tiers), an execution layer (parallel multi-agent reasoning and tool calls), and a judging layer (automated verification, voting, and human spot checks). Understanding the interfaces and failure modes of these three layers is the prerequisite for reproducing such a run.
2. Architecture: Modules of a Sustainable Math Arena
Task ingestion and standardization. Unify the problem structure (statement, constraints, inputs/outputs, expected answer or proof points), and tag each problem with difficulty, type, and verifiability. Verifiable problems (numeric answers, decision problems) go to automated judging first; proof problems go through a “proof-point matching + sampled human review” channel.
Scheduling and concurrency control. Use a queue plus a token bucket to control concurrency, with rate limits grouped by model/agent quota so a single backend is not saturated. Sketch of the logic:
# Pseudocode: scheduling with quota and retryfor task in queue.priority_by(difficulty="easy_first"):if limiter.acquire(agent_group=task.group):result = agent.solve(task, tools=["calculator", "sympy_like"])verifier.submit(task.id, result)limiter.release(task.group)
Sandboxed execution. All code and symbolic computation run in isolated containers with limits on CPU, memory, runtime, and network egress. The file system is mounted read-only, outputs go to a temporary volume, and everything is destroyed when the task ends to prevent uncontrolled side effects.
Result verification and consistency. Numeric problems use exact matching with a tolerance policy; symbolic problems use equivalence checks (compare after simplification, plus random-substitution sampling); proof problems use cross-scoring by multiple agents plus matching against a key-lemma checklist. Multiple independent attempts at the same problem are combined by majority vote, which significantly reduces “confident but wrong” outputs.
Observability and cost control. Log the input digest, tool-call chain, latency, and token usage for every attempt; build dashboards and alerts; and trip a circuit breaker on a per-problem budget cap so a few hard problems do not consume all resources.
3. Engineering Keys to Solving 2,400 Problems in 48 Hours
Difficulty tiers and selection strategy. Start with “low-cost, high-certainty” problems to establish a baseline, then shift budget to medium difficulty. Very hard problems go into a separate queue with longer timeouts and more samples, without blocking the main flow.
Deduplication and caching. Normalize equivalent problem statements into a hash; on a cache hit, reuse the conclusion directly. Different phrasings of the same problem are clustered by semantic fingerprint to avoid repeated spend.
Parallel sampling and self-consistency. Generate multiple reasoning paths per problem in parallel, keep only paths whose conclusions agree and pass verification; on disagreement, trigger a “reflection retry” that asks the agent to flag the suspicious assumption in the previous step.
Idempotence and replayability. All submissions go to an append-only log, and the task state machine guarantees that duplicate delivery produces no side effects, which makes post-hoc review and debugging easier.
Human-in-the-loop. Samples whose automated-judging confidence falls below a threshold go to a human queue; human conclusions flow back as evaluation baselines, closing the loop.
4. Common Failure Modes and Defenses
Hallucinated confidence. The model produces a structurally complete but wrong proof. Defense: mandatory tool verification, random substitution, and multi-path voting.
Sandbox escape and resource abuse. Defense: container isolation, read-only file system, no network egress, strict quotas and timeouts.
Data leakage and contamination. Store the problem bank and answers separately; the execution environment cannot access the answer store, which only the judging layer can read.
Scoring bias. A single reviewer agent tends to prefer lengthy reasoning. Defense: hide length features and use structured scoring dimensions (correctness, completeness, conciseness).
Cost overrun. Set a two-level budget per problem and per hour; on exceeding it, automatically degrade to a lighter approach or queue and wait.
5. Reusable Deployment Checklist
- Define the split ratio between verifiable and non-verifiable problems, and automate the verifiable part first.
- Build the four-piece set of “scheduling, sandbox, verification, dashboard”; none can be missing.
- Replace “accept a single generation” with majority voting plus tool verification.
- Use an append-only log for idempotence and replayability to preserve review capability.
- For elastic scaling, use a container platform for sandboxes, object storage for outputs, a message queue for task distribution, and logging plus monitoring/alerting for observability. These are general capability categories and can be replaced with implementations available in your own cloud environment.
- On a cloud environment such as Baidu AI Cloud, the same pipeline can be built from the same general capability combinations, without relying on any proprietary interface.
6. Conclusion
The real lesson of this run is that math reasoning evaluation is evolving from a contest of single-point model capability to a contest of systems-engineering capability. Standardize tasks, sandbox execution, make judging multi-path, and put costs on a budget, and you can reliably produce high-quality results within a limited time. For developers, the lowest-risk path is to first get a minimal loop working (10 problems, a single agent, automated verification), then gradually add concurrency, voting, and human feedback.
