AIRA-Compose: Agentic Discovery of Neural Architectures

Alberto Pepe, Chien-Yu Lin, Despoina Magka, Bilge Acun, Yannan Nellie Wu, Anton Protopopov, Carole-Jean Wu, Yoram BachrachNeurIPS 2026

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).

Figure 2: The AIRA-Compose pipeline. We recast Composer into equivalent AIRS-BENCH tasks. These tasks instruct agents to combine predefined computational primitives to assemble a 16-layer small scale architecture. Tasks are run employing the AIRA-DOJO harness with 6 LLMs as core reasoning models. Search results are then ranked, aggregated and scaled to 350M, 1B and 3B parameters size.

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:

  1. 2-Primitive: MLPs (M) and Multi-head Attention (mA).
  2. 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.

Figure 3: Greedy GPT-5 search (partial) on the 3-primitive NAS task within AIRA-Compose. The agent drafts five initial solutions and iteratively explores the architecture space via a greedy tree search. At each node, the agent reasons on different design choices, writes a candidate archi- tecture and evaluates it. Red arrows indicate debug operations, while blue arrows indicate improve operations. At each improvement, the agent proposes a new architecture informed by the parent’s reasoning and score. We report a snippet of the agent’s design rationale, the submitted architecture, the agent’s internal validation accuracy, and the true test accuracy from the isolated scoring script.

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-mini and gpt-oss-20b navigated 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).

Figure 1: AIRA-Compose. Selected agent-discovered architectures compared to baselines and traditional NAS (Composer-found) models. (a–b) Downstream evaluations of architectures scaled- up to 1B scale with fixed token budget: (a) validation loss and (b) zero-shot average normalized accuracy across 6 tasks. (c–d) Compute-optimal scaling frontiers extrapolated from 350M/1B/3B isoFLOP experiments for (c) the 2-primitive and (d) the 3-primitive case, showing the best scaling architectures. Agent-powered NAS navigates the combinatorial search space effectively, discovering architectures that surpass both hand-designed and Composer-found baselines at scale.
  • 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

Abstract

We introduce AIRA-Compose — a framework that enables AI research agents to autonomously explore and discover novel neural architectures. AIRA-Compose leverages the previously-proposed Composer abstraction to define a combinatorial design space over fundamental model primitives (Attention, MLP, and Mamba), then uses a guided search policy to efficiently navigate this space for novel neural architecture design. Our approach operates in two stages: (1) agents iteratively designs and evaluates candidate architectures at the million-parameter scale, then (2) top-performing candidates are scaled to billion parameters for pre-training. Overall, AIRA-Compose discovers 14 novel architectures spanning two families — AIRAformers (Transformer-based) and AIRAhybrids (Transformer-Mamba Hybrid-based). When pre-trained at 1B scale under a fixed token budget, agent-discovered top-performing architectures consistently outperform both Llama 3.2 and Composer-found alternatives. On downstream tasks, AIRAformer-D and AIRAhybrid-D improve accuracy by 2.4% and 3.8% over Llama 3.2, respectively. AIRA-Compose also finds novel model architectures that achieve steeper, more efficient compute-optimal scaling frontiers. AIRAformer-C scales 54% and 71% faster than Llama 3.2 and the best Composer-found Transformer, while AIRAhybrid-C scales 23% and 37% faster than the modified Nemotron-2 and the best Composer-found hybrid, respectively. For the first time, AIRA-Compose demonstrates that AI research agents can discover hybrid architectures that surpass hand-designed baselines on the accuracy–compute frontier. It establishes a flexible paradigm for LLMs to discover next generation foundation models, marking a step towards recursive self-improvement.
BibTeX
@inproceedings{pepe2026aira,
  author = {Alberto Pepe and Chien-Yu Lin and Despoina Magka and Bilge Acun and Yannan Nellie Wu and Anton Protopopov and Carole-Jean Wu and Yoram Bachrach},
  title = {{AIRA-Compose: Agentic Discovery of Neural Architectures}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=SnDDQz5O4F},
}
Figure