Manuscript Offprint

arXiv:2610.22290

EliteReplay: Preserving Diverse Solutions in RL Post-Training via Quality-Diversity Search

Hanane Nour Moussa, Doeun Lee, Sachin Kumar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Reinforcement learning has become a common post-training technique to improve the accuracy of LLMs on verifiable tasks. However, such training can narrow the set of solutions the model can produce. Several approaches have attempted to address this behavior-sharpening effect, but they often optimize metrics that do not reflect the diversity of correct solutions. Ideally, we want a model that can produce multiple good solutions, not only a single reliable one. We propose ELITEREPLAY, a post-training recipe that pairs GRPO with an “elite” archive built by quality-diversity search. Before training, we use the frozen base model to collect solutions that span distinct approaches; during training, GRPO is combined with a replay loss on this archive. The result is a post-trained model that improves accuracy while preserving more of the base model’s solution diversity. On multiple text-to-SQL tasks, ELITEREPLAY achieves the highest pass@128 than all baselines, producing up to 77% more distinct correct strategies than the strongest baselines. It preserves most of the base model’s correct strategies, outperforming existing methods in strategy retention. This diversity translates into practical benefits on ambiguous questions, where ELITEREPLAY covers both interpretations nearly twice as often as the strongest baseline on AmbiQT 1^{1}.

1 Introduction

Reinforcement learning with verifiable rewards (RLVR) has become a standard post-training technique for large language model (LLM) reasoning (Shao et al., 2024; Guo et al., 2025). However, studies show that common RLVR methods such as Group Relative Policy Optimization (GRPO) improve performance via sharpening, i.e. concentrating probability on a few behaviors the base model

Figure

Figure 1: Accuracy versus strategy diversity at k=128k = 128. Each point is a post-trained model on BIRD (indistribution) and Spider (out-of-distribution). ELITEREPLAY reaches the highest pass@128 while producing far more distinct correct strategies.

already had (Yue et al., 2025; Zhao et al., 2025; Huang et al., 2025). RL post-training therefore improves reliability (pass@1), but often by reducing reach (pass@k) (Oh et al., 2026).

Several works seek to recover this lost reach by improving pass@k relative to the base model (Tajwar et al., 2026; Li et al., 2026b,a; Walder and Karkhanis, 2025). Since recovering reach may require retaining alternative ways of solving problems, pass@k has also become a common proxy for diversity (Dang et al., 2025; Song et al., 2025; Chen et al., 2025; Yu, 2025; Jiang et al., 2026). Yet pass@k only asks whether some sample is correct, not whether the correct samples differ. A model can therefore achieve high pass@k by reliably producing a single strategy for each question while losing the alternatives the base model once exhibited.

Retaining these alternative ways of solving a problem, its solution diversity, is important whenever the approach matters alongside the final answer. Different correct solutions may follow distinct reasoning paths, differ in computational efficiency, or encode different interpretations of an ambiguous request. Systems that rely on repeated

1^{1}All artifacts can be found at https://github.com/skai-research/EliteReplay sampling and selection also benefit from having meaningful variety (Li et al., 2022; Pourreza et al., 2025). As Figure 1 shows, methods with nearly identical pass@128 can differ substantially in the number of distinct correct strategies they produce.

Preserving a diverse set of good solutions is the central concern of quality-diversity (QD) optimization. Rather than seeking a single optimum, QD algorithms such as novelty search (Lehman and Stanley, 2011) and MAP-Elites (Mouret and Clune, 2015) maintain an archive of high-performing solutions spread across a space of behavior descriptors. In the deep RL literature, such archives have been coupled with policy-gradient learners to broaden exploration, enabling the discovery of new behaviors in policies trained from scratch (Khadka and Tumer, 2018; Pourchot and Sigaud, 2019; Ecoffet et al., 2021). Post-training a language model, however, presents a different challenge, since the base model already exhibits a variety of correct strategies that RL can suppress. At the same time, language models offer a natural advantage for QD search, as the base model itself can propose meaningful variations through repeated sampling (Lehman et al., 2023; Romera-Paredes et al., 2024; Bradley et al., 2024; Samvelyan et al., 2024).

We study whether quality-diversity archives can preserve solution diversity during GRPO training. Our method, ELITEREPLAY, first runs MAP-Elites with the frozen base model to build an elite archive: a set of verified solutions, with at most one solution per cell of a grid indexed by a behavior descriptor. It then trains with GRPO while adding a small replay loss on this archive.

Measuring diversity requires distinguishing how solutions are obtained, not just whether they are correct. We therefore evaluate diversity at the level of solution strategies, using a structural description of how each solution solves the question, computed deterministically from the solution itself. This allows us to measure U@k, the number of unique correct strategies among k samples, alongside effective diversity (Shypula et al., 2025), the probability that two random samples are both correct and different, which captures improvements in reliability without sacrificing diversity.

We evaluate ELITEREPLAY on text-to-SQL, a natural testbed where questions can admit multiple correct queries and natural-language ambiguity is common. As shown in Figure 1, ELITEREPLAY achieves 74.8% pass@128 on BIRD (Li et al., 2023), comparable to MaxRL's 73.7%, while producing 9.1 distinct correct strategies per question compared to just 6.2. On the out-of-distribution Spider (Yu et al., 2018), it achieves 93.2% pass@128, outperforming the strongest baseline by 6.3 percentage points while producing up to 77% more distinct correct strategies. ELITEREPLAY also retains 62% and 60% of the base model's correct strategies on BIRD and Spider, respectively, at least 23 percentage points more than any baseline. This preserved diversity also benefits ambiguous questions, with ELITEREPLAY covering both interpretations on 27.0% of AmbiQT (Bhaskar et al., 2023) questions, compared to 14.2% for the strongest baseline.

Our contributions are:

• We propose ELITEREPLAY, which anchors RL to an elite archive constructed through quality-diversity search using the base model ( §2§2).

• We evaluate RL post-training through strategy-level diversity, measuring unique correct strategies (U@k), effective diversity, and retention of the base model’s strategies ( §3§3).

• We show that ELITEREPLAY preserves more diverse correct strategies while maintaining strong pass@k, retains most base-model strategies, and better covers ambiguous questions ( §5§5).

References (15)