How to Build a Multi-Agent Arena: A Technical Breakdown of 2,400 Math Problems Solved in 48 Hours

    This article breaks down how an open, reproducible, and extensible multi-agent competition and evaluation infrastructure can be engineered, based on an event where more than 300 AI agents solved over 2,400 math problems in 48 hours. It explains the five-layer architecture (access, task, execution, validation, and observability), a minimal HTTP contract for onboarding heterogeneous agents, sandbox isolation practices, three-tier automatic grading for mathematical proofs, scheduling and cost-control strategies, and fairness mechanisms. Cloud deployment guidance and key takeaways for teams building agent evaluation or automated research platforms are also included.

    1. Background: A Global Math Sprint Started by One Person

    In 48 hours, more than 2,400 math problems were solved one by one. At the same time, over 300 AI agents from around the world gathered on the same site, continuously selecting problems, deriving solutions, writing proofs, and submitting answers. More importantly, any developer could join the competition by changing only a small amount of configuration code to connect an agent they had deployed.

    The arena was not built by a well-funded research institution, but by an 18-year-old engineering undergraduate. This contrast shows that the engineering barrier to multi-agent collaboration and automated evaluation has dropped to a level that individual developers can handle.

    Note that this article does not evaluate any specific model or platform. Instead, it abstracts this kind of event into a general engineering problem: how to build an open, reproducible, and extensible infrastructure for agent competition and evaluation.

    2. Abstracting a Math Competition into an Engineering System

    A sustainable multi-agent arena can usually be split into five layers:

    1. Access layer: A unified protocol that lets heterogeneous agents register, claim problems, and submit in the same way.
    2. Task layer: Problem bank management, difficulty tiering, deduplication, and quota allocation.
    3. Execution layer: A sandboxed runtime responsible for code execution, symbolic derivation, and file read/write.
    4. Validation layer: Automatic grading, including numerical comparison, symbolic equivalence checking, and proof review.
    5. Observability layer: Logs, metrics, leaderboards, cost accounting, and alerts.

    Once these five layers are decoupled, the system can “swap models without changing the architecture and add nodes without changing the code.”

    3. Access Layer: Onboarding Heterogeneous Agents with Minimal Configuration

    The biggest value of an open arena is low onboarding cost. The common approach is to define a minimal HTTP contract, where any agent only needs to implement three actions to participate:

    1. # Illustrative interface definition, not any vendor-specific API
    2. def register(agent_id: str, capabilities: dict) -> Token: ...
    3. def claim(token: Token, budget_ms: int) -> Problem | None: ...
    4. def submit(token: Token, problem_id: str, proof: str) -> Verdict: ...

    Three engineering constraints usually come with it:

    • Stateless first: The server does not keep sessions; state is externalized to cache or object storage for horizontal scaling.
    • Quota and rate limiting: A token bucket controls each agent’s concurrency and submission frequency, preventing a single node from hogging resources.
    • Idempotent submission: Use problem_id + agent_id + round as the idempotency key to prevent duplicate scoring caused by network retries.

    4. Execution Layer: The Sandbox Is the Security Baseline

    Letting agents execute arbitrary code means handing execution permission to external input, so isolation cannot be skipped. The common industry combination is: containerized runtime + read-only root filesystem + non-privileged user + system call allowlist + strict CPU/memory/time limits. Networking is disabled by default and only allowed through a controlled proxy when external data is needed.

    1. # Illustrative sandbox resource configuration
    2. runtime:
    3. user: nobody
    4. readonly_rootfs: true
    5. network: none
    6. limits:
    7. cpu: "1"
    8. memory: "512Mi"
    9. timeout: "120s"

    Engineering also needs to handle “zombie tasks”: set a heartbeat and timeout reclamation for each execution, and treat a timeout as incomplete to avoid long-running tasks causing queue buildup.

    5. Validation Layer: Automatic Grading of Math Problems Is Harder Than Expected

    Math proofs cannot be compared directly like multiple-choice answers. Three levels of validation are usually needed:

    • Level 1: Numerical and structured answer comparison, normalizing and then comparing types such as rational numbers, intervals, and sets.
    • Level 2: Symbolic equivalence checking, using general computer algebra capabilities to determine whether expressions are identically equal, rather than string equality.
    • Level 3: Formal proof checking, transcribing natural-language proofs into a machine-verifiable formal language and having a proof assistant kernel verify them step by step.

    The third level is the most expensive, so in practice a hybrid strategy of “sampled formalization + full lightweight checks” is common: only high-scoring candidates and disputed submissions undergo full formal review.

    6. Scheduling and Cost Control: Keeping 300 Agents from Colliding

    With more than 300 agents running 24/7, the real bottleneck is not peak compute but queuing and waste. Practical strategies include:

    • Priority queues: Weight by problem difficulty and remaining time, giving harder problems longer time limits.
    • Budget-aware scheduling: Set token and time budgets per problem; terminate and mark as “unsolved” when the budget is exceeded.
    • Deduplication and caching: Repeated attempts on the same problem by the same agent directly hit cached results.
    • Elastic scaling: Execution nodes are stateless and scale automatically based on queue length; scale down to the minimum when idle to control cost.
    • Cost attribution: Record the caller, problem, elapsed time, and consumption for each call to form an auditable bill.

    7. Observability and Fairness

    For an arena to remain trustworthy over time, it must be publicly verifiable:

    • Retain full request logs and grading evidence to support post-hoc appeals and recomputation;
    • Display three dimensions on the leaderboard—“pass rate,” “average time,” and “cost per unit”—to avoid gaming a single metric;
    • Apply dual risk control (rules + model) to abnormal submissions such as overly long outputs, suspected hardcoded answers, and repeated templates;
    • Connect key metrics to monitoring and alerts, so queue backlog, grading failure rate, and sandbox escape alerts can all trigger notifications.

    8. A General Reference for Cloud Deployment

    To quickly build a similar system in the cloud, you usually only need to combine general capabilities: a container platform hosts stateless execution nodes, object storage holds problem and proof artifacts, a message queue handles task distribution and peak shaving, logging and monitoring services provide observability, and a key management service stores access credentials. General cloud product categories from providers such as Baidu AI Cloud can serve as the foundation for this architecture, but specific choices should still be evaluated against your budget and compliance requirements.

    9. Takeaways

    What developers should care about most is not the number “2,400 problems in 48 hours,” but that it validated a path: open protocol + sandboxed execution + automatic grading + controllable cost can compress evaluation capabilities that once belonged to large institutions into engineering practices that an individual can maintain. For teams preparing to build agent evaluation, automated research assistance, or algorithm competition platforms, the lowest-risk approach is to get a minimal loop running first, then gradually tighten validation and risk control.