TL;DR
What happens when you hand Large Language Models the blueprints to their own brains? AIRA-Compose lets autonomous AI research agents design, test, and refine novel neural architectures from scratch. By snapping together fundamental building blocks like Lego bricks, these agents discovered 14 new models that beat human-designed heavyweights like Llama 3.2—and scale significantly faster as compute grows.
What Problem Does This Paper Address?
For years, the Transformer has reigned supreme. However, its self-attention mechanism scales quadratically with sequence length, making long-context processing painfully expensive. Recently, researchers started interleaving Attention with linear-complexity State Space Models (SSMs) like Mamba to create hybrid language models that get the best of both worlds.
The catch? Designing hybrids creates a massive combinatorial explosion. Even a modest 16-layer model built from just three types of blocks yields roughly 43 million possible arrangements! Human intuition falls short in a space that vast, and traditional Neural Architecture Search (NAS)—using rigid algorithms like Bayesian Optimization—either hits computational walls or relies on clunky, incremental rules. The authors ask: Can reasoning-driven LLM agents hypothesize and navigate this design space better than both humans and rigid search algorithms?
Methods
AIRA-Compose builds upon an existing framework called Composer, which normally uses four steps: Search, Evaluate (on small proxy models), Aggregate (cluster top designs to smooth out noise), and Extrapolate (scale up to billions of parameters by "stacking" or "stretching" blocks).
What’s new here is that AIRA-Compose rips out the rigid search engine in steps 1 and 2 and replaces it with autonomous AI agents running inside a tree-search harness called AIRA-DOJO. Agents are tasked with assembling a 16-layer tiny proxy model (1M–20M parameters) using two search spaces:
- 2-Primitive: MLPs (
M) and Multi-head Attention (mA). - 3-Primitive: Adding Mamba SSM (
Mb) into the mix.
Instead of mutating strings blindly, the agents (powered by models like GPT-4o, o3-mini, and GPT-5) act like real scientists. Using a greedy best-first tree search, an agent drafts an architectural hypothesis (e.g., "Let's use a dual-attention front anchor to establish global KV bindings, followed by a Mamba corridor"), writes validation code, debugs errors, and improves its top-scoring designs based on empirical feedback. Once the agents finish exploring, the standard Composer pipeline aggregates the winning 16-layer patterns and scales them up to 350M, 1B, and 3B parameters.
Datasets
The authors adapt existing datasets into four newly structured AIRS-BENCH tasks—where submissions are 16-layer architecture strings rather than standard test predictions:
- Small-scale proxy search: Agents train and test tiny models on MAD (synthetic token-manipulation tasks like selective copying), BabiStories (synthetic children's stories), and a small subset of DCLM.
- Large-scale pretraining & evaluation: Winning scaled-up architectures are pretrained from scratch on 37.5B tokens of the DCLM corpus. They are evaluated on DCLM validation loss, 0-shot accuracy across 6 tasks (HellaSwag, WinoGrande, ARC-Easy/Challenge, PIQA, SciQ), and the 14-task few-shot DCLM Core benchmark.
Key Insights and Ideas
- Hypothesis-driven search beats brute force: In the 3-primitive space (~43M combinations), agents probed just 0.0052% of the space (2,248 unique architectures) yet uncovered patterns that rival or beat state-of-the-art human baselines. Reasoning lets agents leapfrog across the search landscape.
- Non-SOTA brains can build SOTA bodies: Because outputting a 16-block string is structurally simple, the authors didn't even need frontier models for every run—smaller models like
o3-miniandgpt-oss-20bnavigated the space effectively. - The Attention-Compute Trade-off: Across both Transformer and Hybrid families, agents found that attention-heavy designs win when trained on a fixed token budget (more representational power), while balanced Attention-to-MLP/Mamba ratios win when total compute (FLOPs) is strictly capped. Yet, surprisingly, those attention-heavy hybrids boast the steepest scaling slopes, meaning they improve much faster as you throw more compute at them.
Key Results
The search yielded 14 novel architectures across two families: AIRAformers (2-primitive) and AIRAhybrids (3-primitive).
- 1B Fixed-Token Pretraining (37.5B tokens): All 6 AIRAformers beat traditional NAS (Composer) baselines. On 6-task zero-shot normalized accuracy, AIRAformer-D and AIRAhybrid-D improve over Llama 3.2 (58.4%) by 2.4% (reaching 60.8%) and 3.8% (reaching 62.2%), respectively. AIRAhybrid-D also achieves a validation loss of 2.719, beating Llama 3.2 (2.815), Mamba (2.771), and approximated Nemotron-2 (2.732).
- Superior Scaling Laws (IsoFLOPs across 350M, 1B, 3B): When extrapolating compute-optimal frontiers, AIRAformer-C scales 54% faster than Llama 3.2 and 71% faster than the best Composer-found Transformer. Meanwhile, AIRAhybrid-C scales 23% faster than approximated Nemotron-2 and 37% faster than Composer's best hybrid.
- Latency Pareto Frontier: Profiled on H100 GPUs at 1B scale, AIRAhybrid-D variants push the Pareto frontier forward, achieving strictly lower validation loss and lower inference latency than Composer's best hybrid.
Limitations and Future Work
- The Proxy Gap: Evaluating tiny 16-layer models doesn't always faithfully predict billion-parameter dynamics. Giving agents multi-GPU harnesses to search directly at larger scales could close this gap.
- Half-Agentic Pipeline: Currently, humans/scripts still handle the aggregation and extrapolation steps. Future iterations aim to hand the entire end-to-end scaling pipeline over to agents.
- Constrained Creativity: Agents could only arrange pre-baked blocks. Letting them tune hyperparameters, activation functions, or normalization layers—and upgrading from greedy search to Evolutionary or Monte Carlo Tree Search (MCTS) scaffolds—could unlock truly alien, high-performing architectures.
Summary updated