TL;DR
When we want an LLM agent to solve a really hard problem, we often let it brainstorm dozens of reasoning paths at test time and pick the best one. However, standard Reinforcement Learning (RL) trains models to optimize individual answers in isolation, leaving them surprisingly bad at judging a crowded room of their own ideas. AutoPortfolio fixes this mismatch by teaching the model to explicitly rank and reallocate confidence across entire sets of candidate solutions during training, unlocking cleaner, verifier-free scaling at inference time.
What Problem Does This Paper Address?
Picture a student taking a tough math exam. Instead of writing down the first thing that comes to mind, they work out $N$ different scratchpad attempts and submit the one that looks most solid. In AI, this test-time compute strategy is called sample-then-select.
Here is the catch: there is a fundamental mismatch between how we train reasoning agents and how we deploy them. Standard RL methods—even group-normalized ones like GRPO—evaluate trajectories individually. They use groups of rollouts merely as a statistical baseline to stabilize updates, rather than teaching the model how to rank candidates against each other.
When you crank up the sampling budget $N$ at test time, two competing things happen. Yes, a brilliant solution is more likely to appear in the pool. But LLM agents also love to latch onto repetitive, high-probability failure modes—generating dozens of correlated, confident-sounding wrong answers. Without calibrated within-set ranking, the true needle gets buried in a haystack of redundant distractors.
Methods
AutoPortfolio aligns training directly with sample-then-select deployment through two tightly coupled components:
- Set-Conditional Policy Training: In standard KL-regularized RL, the mathematically "optimal" policy distribution over all possible reasoning paths is intractable to compute. AutoPortfolio sidesteps this by restricting and re-normalizing both the reward-shaped target distribution and the model's current probabilities onto the finite set of $N$ sampled trajectories. This turns learning into a zero-sum game within the candidate pool: probability mass is explicitly pushed away from low-reward distractors and pulled toward high-reward paths.
- Balanced PL-CE Objective: To match the policy's within-set ranking to the ideal Plackett-Luce (PL) ranking (a classic probabilistic model for permutations), the authors combine two Cross-Entropy (CE) losses:
- Forward CE (Mode-Covering): Penalizes the model for dropping any plausible, reward-aligned reasoning path, preserving healthy diversity.
- Reverse CE (Mode-Seeking): Sharpens probability mass around the absolute best trajectories so low-quality distractors are aggressively pruned.
- Mass-Aggregated Inference-Time Scaling: At test time, multiple distinct reasoning trajectories might arrive at the exact same final answer. Instead of relying on an external verifier model or brittle max-probability heuristics, AutoPortfolio sums the learned probabilities of all trajectories that yield the same unique answer (modulated by a temperature-like knob $\lambda$), selecting the top-$K$ distinct answers as the final portfolio.
Datasets
The authors evaluate their models across 12 existing benchmarks (no new datasets are introduced), spanning two domains:
- Mathematical Reasoning: GSM8K, MATH, MATH-500, AIME 2024, AIME 2025, and the competition-level Omni-MATH.
- Knowledge-Intensive Reasoning: Multi-hop and expert Q&A benchmarks including HotpotQA, 2WikiMultiHopQA, MuSiQue, Bamboogle, GPQA-Diamond, and WebWalkerQA.
Key Insights and Ideas
- Zero-sum mass reallocation beats isolated scoring: Because probabilities are re-normalized over the sampled set during training, gradients depend on relative quality within the pool. Improving one trajectory automatically dampens its inferior competitors.
- Diversity and sharpness don't have to fight: Standard RL often suffers from mode collapse—latching onto one narrow way to solve a problem. Blending Forward and Reverse CE lets the model keep multiple valid reasoning strategies alive while still concentrating enough confidence to rank the winner clearly.
- Unifying voting and max-confidence: At inference time, setting the aggregation parameter $\lambda=1$ naturally recovers the exact answer-level marginal distribution learned during training. Lowering $\lambda$ mimics majority voting (favoring broad support), while raising $\lambda$ mimics max-probability selection (favoring peak confidence).
Key Results
AutoPortfolio was tested on Qwen2.5-7B-Instruct and Llama3.1-8B-Instruct backbones against strong tool-using agents and agentic RL baselines (GRPO, ARPO, AEPO):
- Across-the-board accuracy gains: With $N=10$ samples on Qwen2.5-7B, AutoPortfolio boosts the 12-benchmark average from 64.7% to 69.6% on Pass@3, and from 53.1% to 59.3% on Pass@1 over the strongest RL baseline (AEPO). On Llama3.1-8B, it jumps from 60.0% to 65.5% (Pass@3) and 49.0% to 54.6% (Pass@1).
- Doing more with half the compute: Under identical Mass Aggregation selection, Qwen2.5-7B trained with AutoPortfolio using just $N=5$ rollouts matches or beats GRPO, ARPO, and AEPO running $N=10$ rollouts.
- Surpassing baseline "Oracles": As token budgets scale ($N$ up to 32), AutoPortfolio's selected Pass@10 doesn't just beat ARPO's selected answers—it actually surpasses ARPO's Oracle@$N$ upper bound (whether any of ARPO's $N$ samples were right), proving it improves both underlying generation and selection.
- Minimal training overhead: Despite listwise set alignment, training cost is virtually identical to standard GRPO (334.7 GiB vs. 333.3 GiB max GPU memory; 978s vs. 950s step time).
Limitations and Future Work
Not discussed in the paper. (Note: While the first 10 pages constitute the main body of the paper, no explicit limitations or future directions section is included in the provided text, though appendices are referenced for further theoretical and experimental details.)
Summary updated