TL;DR
When you train a reinforcement learning (RL) policy on a distribution of tasks, it learns to compromise—optimizing for the average problem rather than any specific one. This paper shows that instead of spending hours training bigger models to push that ceiling slightly higher, you can shatter it at deployment: a tiny model trained in a couple of minutes, paired with a few seconds of inference-time search, easily outperforms a 21× larger model trained for over seven hours.
What Problem Does This Paper Address?
Most RL practitioners deploy a trained model "zero-shot"—you feed it a problem, and it spits out a solution in one go. The catch is that a policy trained across a distribution of problems must hedge its bets. It becomes decent on average, great on some instances, and poor on others.
Crucially, training longer or scaling up the network doesn't fix this, because the compromise is what the training objective optimizes for. On a small Traveling Salesman Problem (TSP), a pointer network trained to convergence finds the exact shortest tour on only ~22% of instances. Making the network 63× larger (from 20.9k to 1.3M parameters) moves that number by less than a single percentage point. Switching to a stronger self-attention encoder trained for 7.3 hours shifts the ceiling up to 61%, but the ceiling remains.
Methods
This paper (from the NeurIPS 2026 Education Track) distills the core ideas of Chalumeau et al. (NeurIPS 2025) into a self-contained, 90-minute CPU-runnable Jupyter notebook (inference_time_strategies.ipynb) and a minimal helper module (tsp_lab.py).
Rather than relying on a single zero-shot guess, inference-time strategies spend extra compute at deployment on the specific instance at hand, escaping the training compromise without any retraining. The material walks through four strategies, comparing them fairly at an equal budget of "attempts" (candidate evaluations):
- Stochastic sampling: Simply draws many candidate solutions from the policy's probability distribution and keeps the best.
- Simulation-guided beam search (SGBS): Grows a search tree of partial solutions, using the policy to guide which branches are worth exploring.
- Online fine-tuning: Temporarily adapts the policy's weights to the specific problem instance on the fly.
- COMPASS: Searches a continuous latent space of diverse policies (using CMA-ES, an evolutionary search algorithm) to find a specialized policy for the current instance.
Datasets
No external datasets are used. Everything is generated on the fly using a synthetic TSP instance generator in tsp_lab.py. Because the problem is kept small, every instance can be solved to exact optimality using a classical Held–Karp solver, giving learners a true ground-truth baseline to measure against.
Key Insights and Ideas
- Training bakes in a compromise; search escapes it: Zero-shot performance is capped by the need to generalize across a distribution. Spending seconds of compute at inference time lets the model specialize to the exact problem in front of it.
- Scale isn't everything: Increasing parameters by 63× barely budges zero-shot performance (<1% gain). Meanwhile, a few seconds of inference-time search on a tiny, 2-minute-trained model beats a 7.3-hour heavyweight.
- Even strong models leave performance on the table: The 7.3-hour attention model isn't just undertrained—it's stuck at its zero-shot ceiling. Giving that model a few seconds of beam search jumps its exact-solve rate from 61.0% to 99.0%.
- Know when to spend your compute: Inference-time search is only viable when you have a fast, faithful scorer to evaluate candidate solutions (like checking tour length in TSP). Without one, you can't reliably tell which of your search attempts is actually better.
Key Results
- Zero-shot baselines: Pointer networks (20.9k to 1.3M parameters) plateau at 21.5%–22.5% exact solutions (with tours 4.8% longer than optimal on average). A self-attention encoder trained for 7.3 hours plateaus at 61.0%.
- Inference-time strategies on a 2-minute base policy: All four strategies surpass the 7.3-hour model. SGBS beats it within 62 attempts, COMPASS within 128 attempts, and the best strategy reaches 94.5% exact solutions.
- Inference-time search on the 7.3-hour model: A few seconds of beam search boosts it from 61.0% to 99.0%.
- Context at scale: While this teaching module uses a toy TSP problem, the authors note that the underlying method delivers up to 126% improvement (and 45% on average) across 17 complex multi-agent tasks for just seconds of extra wall-clock time.
Limitations and Future Work
The primary limitation highlighted by the author is scorer availability: inference-time strategies only work when you can quickly and accurately score candidate solutions at deployment. Additionally, this paper's hands-on material focuses on a small, exactly solvable TSP toy problem for pedagogical clarity; readers looking to apply these techniques to large-scale, complex multi-agent RL are directed to the companion research paper.
Summary updated