MOMO: Mixture of Model Optimization

Sachin Konan   Zhuang Liu

Princeton University

TL;DR

Several models find what no single model found.

Reinforcement learning can train a language model to keep improving its own solutions to a single hard problem. But each model eventually settles into its own habits, and further training rarely changes them. MOMO takes the best solutions one model has found and hands them to other models, which continue training from their own weights. With three open models of about 30B parameters, MOMO sets new records on circuit placement, qubit routing and the Erdős minimum overlap problem.

Three models climb to separate local peaks of a reward landscape. MOMO continues from the best peak with another model and reaches a higher peak. The MOMO procedure. Every model trains in round 1. The best model's state buffer then seeds every other model in the next round, while that model sits out.
Figure 1. On the left, each model alone climbs to its own peak. Continuing the best one with a different model reaches solutions that no single model found. On the right, MOMO runs in rounds. After each round, the best model's buffer of solutions seeds every other model.

Setup

A model learns to improve its own solutions to one problem.

We give a model a problem description and an evaluator. The model writes code, and running the code either produces a valid solution or fails. There is no training set, only the one problem, and only the best solution found counts. So instead of sampling fresh answers, the model edits solutions it has already found, and the edits that score higher are reinforced. This is test-time training, the setting of TTT-Discover. The weights change while the search runs.

A state buffer keeps every scored program together with the program it came from. Each step picks promising programs from the buffer, asks the model for many edits of each, scores them, and keeps the best children.

The refinement loop. The model takes parents from the state buffer, proposes candidates, and the evaluator scores them. The policy is updated and the best children go back into the buffer.
Figure 2. One refinement step. The evaluator's score is the reward for a policy-gradient update, and the best children join the buffer.

Motivation

Each model settles into its own way of solving a problem.

Search with language models tends to converge. Independent runs of the same research agent plateau in separate "idea basins". Concurrent work escapes them by forking the agent into branches that keep its workspace but start with a fresh context, then continuing from the best branch (Fork-and-Flush). Reinforcement learning with verifiable rewards narrows a model onto fewer kinds of correct solutions, even when its accuracy holds, which replaying one example of each solution mode can undo (Re:Max). And sampling answers in parallel often beats refining one answer after another, mostly because conditioning on earlier answers explores less (Gu et al.).

We see the same pattern when a model is trained on a single problem. On the Erdős minimum overlap problem, we trained four models under two objectives (GRPO and TTT-Discover), and Qwen also with a KL penalty or with random restarts. Then we looked at the techniques in the best programs at the end of each run. Each run relies on a few techniques, and the mix depends mostly on the model. Qwen and Gemma both settle on a smooth surrogate solved with SLSQP. Muse compiles its inner loops with Numba, which the others almost never do. Changing the objective barely moves Qwen and Gemma. Restarting a run does make its techniques more varied, but it throws away what the run has found.

Smooth max SLSQP FFT correlation L-BFGS-B Differential evolution Numba JIT
Technique frequencies in the best programs. Qwen and Gemma favor smooth max with SLSQP, Muse uses Numba, the objective changes the mix mostly for Muse and GPT-OSS, and restarts diversify Qwen.
Figure 3. Techniques used by the 32 best programs at the end of training. On the left, four models under two objectives. On the right, Qwen with different regularizers. Each tile sums to one.

Fork-and-Flush keeps an agent's work but restarts its context. We wanted the same for a model trained on one problem, and a different model is a stronger change than a fresh context. This suggested a different kind of restart. Keep the best solutions found so far, but continue from them with a different model.


Method

MOMO restarts across models, not within one.

MOMO reuses the refinement loop above and runs it for several models in rounds. In the first round, every model refines on the problem alone, from its own buffer. When the round ends, we take the model whose buffer holds the best solution.

In the next round, every other model continues from a copy of that buffer. We reset the copy's visit counts, so the next model chooses where to search for itself rather than following where the previous model searched. Each model keeps its own trained weights from the round before, so it brings what it has already learned to someone else's solutions. Only its optimizer state is reset. The model whose buffer was copied sits the round out. We ran three rounds.

MOMO, in pseudocode
# refine() is the loop in Figure 2. Each call starts with a fresh optimizer.
winner = None

for steps in round_steps:
    for model in models:
        if model == winner:
            continue  # the winner sits this round out

        if winner is None:
            start = buffers[model]  # round 1, its own buffer
        else:
            start = copy(buffers[winner])
            reset_visit_counts(start)

        weights[model], buffers[model] = refine(problem, weights[model], start, steps)

    winner = model_with_best_solution(buffers)

return best_solution(buffers[winner])

The solutions move from model to model, and the weights stay with each model. Models share nothing else, so MOMO itself does not change when another model family joins. We use three open models of about 30B parameters, Qwen3.5-27B, Gemma-4-31B and Muse-Glimmer-30B, each trained with LoRA and the same recipe.


Results

New records on three of four problems.

We ran MOMO for three rounds on two mathematical constructions (Erdős minimum overlap and the first autocorrelation inequality, AC1) and two hardware problems (circuit placement and qubit routing). On every problem, the best solution came from a lineage that passed through at least two models. On AC1, MOMO improves in every round and beats SimpleTES, but it stays behind the best agents.

MOMO trees per problem. Each row is a round and each box sequence a lineage of models. Gold outlines mark new state-of-the-art results on Erdős, placement and routing.
Figure 4. Each row is a round, and each sequence of boxes is a lineage, for example Gemma followed by Qwen. A gold outline marks a new state of the art, and an asterisk the best solution in each tree.

Mathematical discovery

A new bound on the Erdős minimum overlap problem.

Split the numbers 1, …, 2n into two sets of equal size, shift one set, and count how many of its numbers land on the other. The problem asks for the split whose worst shift overlaps least. Its limiting constant C5 is unknown, and any valid step function gives an upper bound, so lower is better. MOMO proves C5 ≤ 0.3808567, below the previous record, and is the first method since TTT-Discover to set it by training weights rather than by search alone.

Upper bound on C5 over recent methods. MOMO is lowest. Three seeds with Qwen and Muse. MOMO reaches a lower bound than either model trained alone in every seed.
Figure 5. On the left, the record over recent methods, from AlphaEvolve to EinsteinArena. On the right, three seeds with Qwen and Muse. MOMO beats training either model alone in each seed.

The winning lineage is Qwen, then Muse, then Qwen again, and each model contributed something different. Qwen optimized a smooth surrogate. Muse moved the function to a finer grid and restarted from noisy copies of the best one. Qwen then replaced Muse's random local search with a single optimization round, which gave the final gain. The resulting construction looks unlike the previous record.

Step functions of the previous state of the art, the best single model, and MOMO's record.
Figure 6. The previous record (left) uses many pieces in a few blocks. MOMO's record (right) uses far fewer pieces spread over more blocks. The middle panel is the best single model.

Hardware optimization

MOMO beats the circuit placement challenge winners under the challenge's own evaluator.

The Partcl/HRT Macro Placement Challenge asks for a program that places a chip's large blocks, such as memories, without overlap. Each placement gets a proxy cost that combines wirelength, density and routing congestion, averaged over 17 IBM designs. The model has to write a placement algorithm, not a single placement.

Figure 7. Gemma alone, Qwen alone and Gemma → Qwen (MOMO), each placing ibm06 for 300 seconds from the same start layout. First the shared start layout is built. Blocks and cell clusters are drawn at true size. Dark clusters moved in the last 9 seconds, thin lines show how far things moved from the start, and red marks crowded wiring. Playback is slower at the start of the search, where most of the change happens.

This comparison was run after the challenge closed, so MOMO was not a contest entry. To compare fairly with the two winners, ArchGen and AbuPlace, we re-ran their released code unmodified next to MOMO's program, gave every method the same time per design (3,000 seconds, under the challenge's one-hour limit), and scored every result with the challenge's own evaluator. Our re-runs of the winners land within 0.15% of their leaderboard scores.

Table 1. All methods re-run and scored with the challenge's evaluator. Means over the 17 designs and over repeated runs. The placement program was found by Qwen continuing Gemma's programs.
MethodMean proxy cost, 17 IBM designs ↓Leaderboard
ArchGen1st place, human-designed0.95200.9507
AbuPlace2nd place, human-designed0.95130.9522
MOMOGemma → Qwen, 300 s search0.9297n/a
MOMOGemma → Qwen, 3,000 s0.9131n/a
Proxy cost per IBM design relative to the better of the two winners. MOMO is lower on 14 of 17 designs.
Figure 8. Proxy cost on each design, relative to the better of the two winners on that design. MOMO is ahead on 14 of 17 designs.

Gemma alone was the strongest single model. Qwen, continuing Gemma's programs, put more weight on routing congestion, which is where the remaining cost was.

IBM07 placements over estimated routing congestion for AbuPlace, Gemma alone and Qwen continuing Gemma.
Figure 9. IBM07 placements over the estimated routing congestion, with hotspots in red. From left to right, AbuPlace, Gemma alone, and Qwen continuing Gemma.

Each model alone writes a placement program that is itself an optimizer. Below, the best program of Gemma alone, of Qwen alone, and of Qwen continuing Gemma's programs (Gemma → Qwen) each place the same chip from the same start for 300 seconds, and we replay one run of each. We show ibm06 and nvdla. Gemma → Qwen ends lowest, 0.9% below the better single model on ibm06 and 2.1% below the better single model on nvdla. These are single runs.

start
Placements at five points in one run of each of the three programs.
Figure 10. The runs of Figure 7, step by step. Blocks and cell clusters are at true size and position. Thin lines join each one to where it was when the search began, and dashed outlines mark where moved blocks started. On ibm06 and nvdla the replay first shows the shared start layout being built. Under each chip, the colored line is the lowest cost so far and the gray line is the cost of the layout being tried.

On ibm06, most of the cost drop is congestion for all three programs. The lead of Gemma → Qwen over both single models is mostly congestion. On nvdla, most of the cost drop is density for all three programs. The lead of Gemma → Qwen over both single models is mostly density.

Change in wirelength, density and congestion over one run of each of the three programs.
Figure 11. The three parts of the cost over the same runs, as the change from the shared start, with each part weighted as in the cost. By default each panel is zoomed to the differences between programs, with its own y-axis, so the steep drop of the first seconds runs off the top. "Full range" puts all three panels on one axis. The numbered moments are described below the chart, each with that program's layout and lines from where things were when the window began.

With added spacing, MOMO also passes the full OpenROAD flow.

A low proxy cost does not guarantee that later chip design steps succeed. The challenge's second tier checks this by running placements through the full OpenROAD flow on four public NG45 designs. It builds the power grid, routes every wire, and measures timing. We first fixed a one-line bug in the challenge's flow script that left every block unplaced, for all methods. Out of the box, MOMO's placements then failed on three of the four designs. In our runs, the failures came where the program packs memory blocks into tight columns. Once the flow spaces them 12 µm apart, the strips left between stacked blocks were too thin for the power grid to reach. ArchGen and OpenROAD's own macro placer fail the same way on the two ariane designs.

Histograms of vertical gaps between stacked macros on ariane133 for MOMO, ArchGen, AbuPlace and MOMO with spacing.
Figure 12. The gap from each block to the block stacked above it on ariane133, after the flow's 12 µm spacing. The dashed line marks the 36 µm spacing we added.

The fix leaves the search program untouched. We give it blocks enlarged by 36 µm vertically and 12 µm horizontally, so every layout it accepts keeps that spacing, while the cost is still computed with the real sizes. With this, MOMO passes the power grid on all four designs, has the lowest proxy cost on all four, and completes every design that any method completes. Its timing is mixed. It ties or beats AbuPlace on the two ariane designs and trails the other methods on mempool_tile, and every method fails global routing on nvdla.

Proxy cost on four NG45 designs. MOMO is lowest on all four.
Figure 13. Proxy cost on the four NG45 designs. MOMO here keeps the 36 µm spacing and searches for only 300 seconds, a tenth of the winners' budget.
Table 2. Timing after the full OpenROAD flow, in ns. Each cell gives the worst slack, the margin of the slowest path, and the total negative slack summed over failing paths. Higher is better, and a nonnegative worst slack means the design meets its clock. Single runs. On nvdla no method gets through global routing with this OpenROAD version.
Methodariane133ariane136mempool_tilenvdla
MOMOwith spacing −1.584 / −97.2+0.219 / 0−2.183 / −15,054routing fails
AbuPlace −1.584 / −98.9+0.172 / 0−2.094 / −14,434routing fails
ArchGen power grid failspower grid fails−2.122 / −14,719routing fails
OpenROAD macro placer power grid failspower grid fails−1.983 / −13,868routing fails

Hardware optimization

The fewest SWAPs on the SimpleTES routing benchmark.

A quantum circuit often asks two qubits to interact when they are not neighbors on the processor. A router fixes this by inserting SWAP operations, and each SWAP costs three CNOT gates, so fewer is better. We use SimpleTES's routing benchmark, with 24 circuits on each of three processor layouts. The model writes the Rust policy that picks the initial layout and every SWAP.

Table 3. SWAPs added across 24 circuits per processor. Lower is better.
MethodQ20HeronWillowTotal SWAPs ↓
SABREheuristic22,71450,18638,352111,252
LightSABREheuristic20,06345,82736,802102,692
SimpleTESGemini 3 Pro13,47042,39631,48187,347
Hyraagent12,62341,53431,96686,123
MOMOGemma → Muse → Gemma12,81041,54031,75286,102

Gemma alone already beats every previous routing program except the Hyra agent. Muse, continuing Gemma's programs, mostly weakened a decay penalty in Gemma's policy, and Gemma, taking Muse's programs back, polished it further. Together they edge past Hyra.

Routing reward over lineage steps for Gemma, then Gemma to Muse, then Gemma to Muse to Gemma, passing Hyra.
Figure 14. Routing reward over the search, one line per round. The right panel enlarges rounds 2 and 3.

Limitations

Most results are single runs.

Most of our searches are single runs per configuration. We repeated the Erdős experiment over three seeds, and MOMO beat single-model training in each, but the other problems have one run each. MOMO does not win everywhere. On AC1 it stays behind the best agents, and on circuit placement a third round added nothing. Our OpenROAD results are single runs on four public designs, without the challenge's hidden designs or its reference baselines. They show that MOMO's placements can pass the flow, not that they would win the challenge's second tier.

We have not measured how the gains grow with the number of models, and matching the placement programs' runtime does not match the compute spent to discover them. Since models share only their solutions, more model families and more rounds are cheap to try.


Citation

Cite MOMO

momo.bib
@misc{konan2026momo,
  title  = {MOMO: Mixture of Model Optimization},
  author = {Konan, Sachin and Liu, Zhuang},
  year   = {2026}
}
MOMO · Konan, Liu · Princeton University · 2026