Manuscript Offprint

arXiv:2609.10221

Why Sample What You Can Enumerate? Exact Policy Optimization for Genomic Tool Selection

Haoyue Liu, Xiaoyu Ma, Ye Chen, Zhichao Wang, Xiaoying Tang

ABSTRACT

Reinforcement learning over a frozen reasoner has become a common recipe for teaching a policy which external tools to invoke. We show that this recipe becomes structurally mismatched in specialist scientific settings where the complete tool-subset space is enumerable. There, a small set of recurring computational capabilities covers the domain, so the space of tool subsets is combinatorial yet small enough to enumerate, and GRPO still estimates an action expectation from a handful of sampled rollouts. Worse, the approximation degrades as training succeeds: as the policy concentrates on preferred subsets it resamples them, sampled rewards collide, and the group-normalized advantage vanishes. On genomic reasoning the fraction of questions yielding no reward signal rises from 0.2% under a uniform reference policy to 20.8% after GRPO training. As a remedy, we introduce FGPO (Full-Group Policy Optimization), which (1) scores every tool subset and optimizes the exact action expectation, so each update sees the complete action space, and (2) precomputes the reward of each question–subset pair into an exhaustive table, removing frozen-reasoner calls from the training loop entirely. Across five frozen reasoners and three genomic benchmarks, FGPO outperforms GRPO in all 15 settings by 6.75 points on average and up to 14.20, while a standard on-demand GRPO schedule would require 2.4×2.4\times as many frozen-reasoner reward evaluations and, on GenomeQA, FGPO cuts invoked tools per question from 2.36 to 1.40.

1 INTRODUCTION

Large language models can interpret specialized scientific questions but cannot reliably perform the precise computations many of them require. Genomic reasoning is a representative case: an LLM understands promoters, transcription-factor binding and splice sites, yet answering such questions demands explicit computation over raw nucleotide sequences: motif scanning, splice-site scoring, composition analysis (Jin et al., 2024). External tools supply exactly these capabilities, and a productive line of work therefore trains a policy to select which tools a frozen reasoner should receive, optimizing that policy with reinforcement learning: VisTA for visual tools (Huang et al., 2025), AuTAgent for audio tools (Tong et al., 2026), and reward-shaped variants (Qian et al., 2026; Jin et al., 2025), almost always with GRPO (Shao et al., 2024).

Despite its success elsewhere, this recipe carries an unavoidable drawback in the specialist regime studied here. Because a domain reuses a small set of recurring capabilities, a compact library covers it; and even where the global registry is large, the per-query active set is small: on BFCL, an adaptive shortlist of about seven tools (7.4 ± 2.5) from a 370-tool registry retains 90.3% correct-tool coverage, nearly matching 90.8% with fifty (Repantis et al., 2026). Our four genomic tools admit only 24=162^{4}=16 subsets, making the action expectation exactly computable, yet GRPO still approximates it through sampled rollouts. Selection genuinely matters at this scale. As illustrated in Figure 1a, the frozen reasoner scores 39.28% without tools while a per-question oracle over the same library reaches 77.41%, leaving 38.1 points of recoverable headroom that invoking all tools (49.39%) does not capture. But sampling that space is not merely wasteful: it degrades precisely as optimization

Figure

Figure 1: Why sample when enumeration is possible? (a) Individual tools, All-Tools, No-Tool, and a per-question oracle on the 3,590 GenomeQA test questions; the oracle reveals 38.1 points of recoverable headroom. (b) Closed-form probability that all GG rollouts receive identical reward, forming a dead group with zero reward advantage. (c) Accuracy when the same training construction observes only kk uniformly sampled actions per visit.

succeeds. A group teaches the policy nothing when its sampled rewards coincide, since every normalized advantage is then zero, and a concentrating policy resamples the same subsets. Figure 1b shows this dead-group rate climbing from 0.2% under a uniform reference policy to 20.8% after GRPO training, reaching 79.6% under the differential reward GRPO trains with; Figure 1c shows accuracy rising monotonically as the optimizer is shown more of the action space. This motivates the central question of this paper:

References (42)