GitSwarm: Decentralized Compounding Inference

Vedant Shah, Ankur Samanta, Paras Dahal, Mikhail Plekhanov, Carole-Jean Wu, Scott Yih, Remi Munos, Rob Fergus, Jakob Foerster, Ruslan Salakhutdinov, Sanjeev Arora, Jason Weston, Aaron Courville, Anirudh GoyalarXiv 2026

TL;DR

GitSwarm introduces compounding inference, a paradigm where LLM agents collaborate via a shared, branchable Git repository to solve long-horizon problems. By treating inference as an evolving body of reusable work rather than isolated trajectories, GitSwarm achieves state-of-the-art results in complex math, coding, and even autonomous neural architecture research.

What Problem Does This Paper Address?

Scaling inference-time computation (e.g., through repeated sampling or search) has become a primary driver for LLM performance. However, most current methods are ephemeral: if an agent fails to solve a task in one "episode," the intermediate work—partial solutions, failed experiments, or useful insights—is often lost.

This is particularly problematic for long-horizon tasks like scientific research or complex software engineering, where progress is rarely linear. The authors argue that for AI to tackle these challenges, computation must accumulate. We need a way for agents to build upon, refine, or even pivot from the work of their predecessors, much like human researchers use version control and citations.

Methods

The authors instantiate the compounding inference paradigm in a system called GitSwarm.

Unlike traditional multi-agent systems that rely on centralized planners or transient chat logs, GitSwarm uses a shared Git repository as a structured, persistent memory. The system consists of homogeneous, asynchronous agents that follow a decentralized protocol:

  1. Inspect: Agents view the Git graph and peer activity logs to understand the current state of the project.
  2. Scope: They identify a "gap" or a promising direction to explore.
  3. Branch & Work: They create a new branch from a chosen parent commit.
  4. Commit: They publish their work as an atomic commit. Crucially, they use a mandatory informed_by= field to declare semantic dependencies. This allows an agent to physically branch from one point while explicitly citing and reusing discoveries from other branches.
  5. Decentralized Readout: Instead of a single "judge" LLM, agents nominate existing candidates. The candidate with the most nominations is selected as the final output.
Overview of the GitSwarm schematic, showing how agents interact with the Git graph through reads and commits.

To help agents coordinate without a manager, GitSwarm provides a Dashboard (showing budget and resource usage) and an In-Flight Activity log (showing what peers are currently working on to avoid redundant effort).

The GitSwarm dashboard and in-flight activity log used by agents to coordinate.

Datasets

The authors evaluated GitSwarm across two distinct settings:

  • Long-Horizon Problem Solving:
    • IMOProofBench-Advanced: 30 high-level mathematical proof problems.
  • ProgramBench: 50 tasks requiring the reconstruction of complex programs from documentation and an execute-only reference binary.
  • Sustained Experimental Research: Three open-ended neural architecture search tasks where agents had to improve existing models:
  • Residual Matrix Transformer (RMT)
    • Looped Transformer (Huginn)
    • NanoChat (a small-scale language model training setup)

Key Insights and Ideas

  • The Value of "Failed" Work: One of the most striking findings was the reuse of failures. In the RMT research task, an agent's failed attempt to use a specific memory mechanism was cited 50 hours later by another agent. The second agent used that failure as evidence that a different, more complex "temporal mixer" was needed—which eventually became a core part of the winning architecture.
  • Task-Specific Collaboration Patterns: The way agents used the repository adapted to the task. In coding (ProgramBench), agents frequently synthesized work from multiple branches, leading to a "broad" ancestry where the final solution built on ~90% of the total work. In math (IMO), agents used the repo more for comparison and verification, resulting in "shallower" ancestry but high rates of peer review.
  • Decentralization Works: The system achieved these results without a central "manager" agent or predefined roles (like "coder" vs. "tester"). Homogeneous agents dynamically decided whether to explore, repair, or integrate based on the repository's state.

Key Results

GitSwarm demonstrated significant performance gains over strong baselines:

  • Math: On IMOProofBench-Advanced, GitSwarm solved all 30 problems (100%) in a single run using GPT-5.5-level models.
  • Coding: On ProgramBench, it achieved a 79.4% mean score, significantly outperforming the strongest reported baseline (65.1%) at a comparable compute budget.
  • Research: In the RMT task, GitSwarm improved the reference architecture's held-out loss from 3.147 to 2.890 within the same training token budget.
  • Accumulation: On ProgramBench, 94.7% of all contributions were subsequently built upon by later agents, proving that the Git-based memory effectively facilitated the accumulation of work.
Inference-time scaling curves showing GitSwarm's performance improving as more tokens/budget are allocated.

Limitations and Future Work

  • Computational Overhead: As the Git repository grows, the cost of agents "inspecting" the history increases. The authors noted that agents eventually started performing selective navigation rather than reading the entire graph to manage token costs.
  • Causal Attribution: While the study proves that reuse happens, it is difficult to isolate exactly how much a specific intermediate commit contributed to the final performance gain.
  • RL for Collaboration: The authors suggest that a natural next step is to train agents using Reinforcement Learning within this environment. This could incentivize agents to produce "high-utility" intermediate artifacts that are specifically designed to be easy for future agents to build upon.

Summary updated

BibTeX
@misc{shah2026gitswarm,
  author = {Vedant Shah and Ankur Samanta and Paras Dahal and Mikhail Plekhanov and Carole-Jean Wu and Scott Yih and Remi Munos and Rob Fergus and Jakob Foerster and Ruslan Salakhutdinov and Sanjeev Arora and Jason Weston and Aaron Courville and Anirudh Goyal},
  title = {{GitSwarm: Decentralized Compounding Inference}},
  year = {2026},
  eprint = {2610.04862},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.04862},
}
Figure