Ockhamareto: Pareto-Gated Segment-Level Credit Assignment for Concise Unit-Test Generation with Reinforcement Learning

๐Ÿ“… 2026-08-25
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
Ockhamareto้€š่ฟ‡็ป“ๅˆๅฅฅๅกๅง†ๅ‰ƒๅˆ€ๅŽŸๅˆ™ๅ’Œๅธ•็ดฏๆ‰˜ๆœ€ไผ˜ๆ€ง๏ผŒๅˆฉ็”จๅผบๅŒ–ๅญฆไน ็”Ÿๆˆ็ฎ€ๆด็š„ๅ•ๅ…ƒๆต‹่ฏ•๏ผŒๆœ‰ๆ•ˆๆ้ซ˜bugๆ•่Žท็އๅนถๅ‡ๅฐ‘ๆต‹่ฏ•ๆ•ฐ้‡ใ€‚
๐Ÿ“ Abstract
We introduce \textbf{Ockhamareto}, a single-shot GRPO framework for unit-test generation and selection, based on the principles of \emph{Ockham's Razor} and \emph{Pareto Optimality}. Ockhamareto has two principal components: (i)~a \emph{Pareto-gated Bonus} that rewards only rollouts non-dominated in~(mutation, $-$\#tests) space, and (ii)~\emph{Token-level Segment Credit}, which attributes each test's marginal mutation kills back to the tokens of its unit-test block. On the \emph{UnLeakedTestBench~(ULT)}, Ockhamareto \emph{strictly Pareto-dominates} the strongest RL baseline~(\emph{MIST-RL}). Furthermore, it dominates on {\em each and all} optimization objectives, catching more bugs ($49.9\%$ vs $31.3\%$ mutation score at $N{=}5$), using \emph{fewer} tests ($2.60$ vs $4.67$ on average), thereby achieving $3.4\times$ the per-test trade-off improvement. The advantage is found in all four benchmarks~(\emph{HumanEval+}, \emph{MBPP+}, \emph{CodeContests}, \emph{TestGenEval-Lite}): Ockhamareto leads both mutation and coverage metrics on every one, always with the smallest suite. Ockhamareto also outperforms the state-of-the-art at all model scales, adding $+30$--$35$~pp mutation at 4B, 9B, and 27B model sizes. We also show that the knee point of the optimal trade-off between efficiency and effectiveness on the Pareto front is not correlated with obvious more easily computed proxy metrics, such as function size. This finding motivates the Pareto front computation; it is needed to identify this crucial engineering trade-off for each function under test.
Problem

Research questions and friction points this paper is trying to address.

unit-test generation
Pareto Optimality
Ockham's Razor
mutation score
test efficiency
Innovation

Methods, ideas, or system contributions that make the work stand out.

Pareto-Gated Bonus
Token-level Segment Credit
Ockham's Razor
Pareto Optimality
GRPO framework