Latest / Daily Paper Cast / It Takes Two to Match: Co-Evolving Generative Retriever with Reinforcement Learning
Transcript
- 0:03Evan: Welcome to Daily Paper Cast.
- 0:05Ashley: Today we’ll be discussing a paper from Hugging Face’s daily paper list dated September 3, 2026, which has received 60 upvotes.
- 0:14Evan: The paper is titled 'It Takes Two to Match: Co-Evolving Generative Retriever with Reinforcement Learning'.
- 0:21Ashley: This work was authored by Runpeng Dai from the University of North Carolina at Chapel Hill and Kaili Huang from Apple, with Runpeng Dai serving as the corresponding author.
- 0:33Evan: Alright, let’s dive into what this paper's about.
- 0:36Retrieval plays a pivotal role in modern search and recommendation systems.
- 0:40At its core, retrieval selects a subset of relevant items or documents from a vast pool, which are then ranked or auctioned downstream.
- 0:48Ashley: Exactly.
- 0:49The retrieval stage is critical because its decisions are largely irreversible—if relevant items are missed here, they can't be recovered later.
- 0:58On the flip side, irrelevant items making it through can bog down the ranking and auction processes.
- 1:04Evan: Which, as you can imagine, makes finding a balance between precision and recall essential.
- 1:10Traditional lexical retrieval methods, like BM25, rely on explicit term matches and inverted indexes.
- 1:17But these methods often fall short in capturing deeper semantic relationships between queries and items.
- 1:24Ashley: Exactly, Evan.
- 1:25Thus, the community has explored various methods to transcend exact lexical matches.
- 1:30Dense retrieval, for instance, maps queries and items into a shared continuous representation space, using vector similarity to find matches.
- 1:39Generative retrieval, on the other hand, is a more recent approach where semantic identifiers are generated directly, replacing similarity-based matching with autoregressive forecasting.
- 1:50Evan: That brings us to this paper's novel contribution.
- 1:53The authors present a framework called Co-Evolving Generative Retrieval, shortened to CoGR.
- 1:59Unlike typical generative methods which predominantly focus on query-side augmentation, CoGR aims to train large language models to generate keywords for both queries and items.
- 2:10Ashley: Correct.
- 2:11The beauty of CoGR lies in its two-stage training process.
- 2:14The first stage, known as supervised fine-tuning, aligns the keyword space between query and item generators.
- 2:21This stage ensures that generated keywords are semantically related, laying a solid foundation for meaningful retrieval.
- 2:28Evan: And what happens in the second stage?
- 2:31Ashley: The second stage involves co-evolving reinforcement learning.
- 2:35Here, the query-side and item-side generators are alternately optimized using GRPO—Generalized Policy Optimization.
- 2:43Each side is trained against a fixed reference index from the other side to iteratively refine the keyword generation process.
- 2:50Evan: Interesting approach.
- 2:52By alternately optimizing the generators, they aim to create an adaptive system where both keyword spaces can evolve and align more accurately over time.
- 3:02Ashley: Yeah, and empirical results show this process works.
- 3:05CoGR was tested against ten baselines across three categories: sparse, dense, and generative retrieval.
- 3:12On both an internal APP Marketplace dataset and the public WANDS product-search benchmark, CoGR significantly outperformed the strongest baselines, improving the F1 score by 10.9% and 36.1%, respectively.
- 3:27Evan: That's a notable improvement.
- 3:29This paper definitely provides a promising new direction for retrieval in search and recommendation systems, balancing the trade-offs between recall and precision quite well.
- 3:39Ashley: And with its innovative co-evolving training pipeline, CoGR demonstrates stable progression with increasingly aligned keyword spaces throughout training.
- 3:48Evan: That wraps up the Introduction section of the paper.
- 3:51Next, we'll delve into the specific methods used in CoGR's training pipeline.
- 3:57Evan: Welcome back.
- 3:58Let's dive into the methods behind CoGR, the co-evolving generative retrieval framework.
- 4:04Ashley: Sure thing.
- 4:06CoGR's method contains two primary phases: supervised fine-tuning, and co-evolving reinforcement learning.
- 4:13These phases work together to align query and item keyword spaces for effective retrieval.
- 4:18Evan: Let's break this down step by step.
- 4:21What do we need to know about Phase 1, supervised fine-tuning?
- 4:25Ashley: Phase 1, supervised fine-tuning, primarily serves to establish an aligned keyword space.
- 4:32Initially, the items are each assigned a set of keywords using a base language model.
- 4:37These keywords are sampled to create an initial keyword set for each item.
- 4:41Evan: Got it.
- 4:42What happens next with the queries?
- 4:45Ashley: For queries, we pool keywords from all the relevant items and select the top keywords based on their frequency to create the query-side target keyword set.
- 4:54By creating this overlap in keywords between queries and their relevant items, the system ensures that the query and item keyword spaces are aligned from the start.
- 5:04Evan: And how is this used to fine-tune the models?
- 5:07Ashley: These paired (query, keywords) and (item, keywords) datasets are then used to fine-tune the query-side and item-side keyword generators.
- 5:17This yields initial policies for both sides, denoted as G_q_SFT for queries and G_i_SFT for items.
- 5:28Evan: Alright, so that sets the stage for Phase 2: co-evolving reinforcement learning.
- 5:33What does that involve?
- 5:34Ashley: Phase 2 begins where Phase 1 leaves off, taking the pre-trained models and further optimizing them using reinforcement learning.
- 5:42This phase alternates between optimizing the query-side generator and the item-side generator.
- 5:48Let's start with the query-side reinforcement learning.
- 5:51Evan: How does query-side reinforcement learning work?
- 5:54Ashley: Given an item index generated by the frozen item-side LLM, the query-side generator produces a keyword set for each query.
- 6:03These keywords are matched against the item index, and the retrieved items are evaluated for precision and recall.
- 6:09The retrieval F1 score—balancing precision and recall—serves as the reward for the query-side generator.
- 6:16Evan: And they keep track of the generated keywords to make sure they are effective?
- 6:21Ashley: Yes, exactly.
- 6:23There’s a maximum keyword budget, and any keyword set exceeding this budget gets no reward.
- 6:28The GRPO training principle is followed here, where multiple keyword sets are sampled for each query, and the rewards are normalized to optimize the query generator.
- 6:37Evan: What about the item-side reinforcement learning?
- 6:40Ashley: Item-side reinforcement learning aims to refine the keywords for items.
- 6:44A counterfactual index is constructed by replacing just one item's keywords while keeping all others unchanged.
- 6:51The query-side index is frozen, and the item-side generator's keyword set is applied to see how much it affects overall retrieval quality.
- 6:59The marginal reward is calculated based on the change in F1 score caused by the new keyword set.
- 7:04Evan: It seems like there’s a lot of alternation going on.
- 7:07Ashley: Indeed.
- 7:08This alternation means each side gets optimized against a stable environment, avoiding a dynamic target that could complicate learning.
- 7:17Through alternating reinforcement learning, the system progressively adapts the keyword spaces for queries and items.
- 7:24Evan: What do you mean by optimizing against a stable environment exactly?
- 7:28Ashley: Well, during each update round, the opposite-side index remains fixed.
- 7:33This stability ensures that the generator isn’t chasing a moving target but rather refining its outputs with a consistent reference point.
- 7:41Evan: That makes sense.
- 7:42Now, what about efficiency?
- 7:45How do they efficiently compute these changes?
- 7:47Ashley: Naïvely computing item-side rewards would be computationally expensive because it would involve rebuilding the index and running retrieval for all queries each time.
- 7:57Instead, they cache the retrieval states and only recompute for the queries affected by the keyword changes.
- 8:03This significantly reduces the computational burden.
- 8:07Evan: Now, based on what you’ve explained, this seems like a very flexible framework.
- 8:12Can this method be adapted or extended in any way?
- 8:15Ashley: The reward system in CoGR can be adapted to other RL algorithms like Proximal Policy Optimization (PPO).
- 8:23And the system can also be adjusted to prioritize business-specific outcomes over pure retrieval metrics.
- 8:30For instance, the reward signal could integrate business metrics like revenue gains.
- 8:35Evan: And how about practical implementations?
- 8:38I assume they tested this framework on real datasets?
- 8:41Ashley: Yes, they evaluated CoGR with two industrial search datasets: an internal APP Marketplace dataset and the public WANDS benchmark.
- 8:51Both datasets consist of de-identified user queries and provide categorical relevance annotations converted into binary relevant and irrelevant labels.
- 9:01Evan: And from the results we mentioned earlier, it’s clear that CoGR outperformed the other methods, right?
- 9:06Ashley: Correct.
- 9:07Across these datasets, CoGR achieved better F1 scores compared to other sparse, dense, and generative retrieval baselines.
- 9:16This confirms the effectiveness of their two-stage training and co-evolving approach.
- 9:21Evan: That wraps up the Method section.
- 9:23Next, we'll discuss the experimental results and insights from this approach.
- 9:29Evan: Alright, let's move on to the experiments and results.
- 9:32How did CoGR perform in its evaluations?
- 9:36Ashley: The authors evaluated CoGR on two main datasets: the internal APP Marketplace search dataset and the public WANDS product-search benchmark.
- 9:46Both datasets consist of de-identified user queries with categorical relevance annotations which are converted into binary relevant and irrelevant labels.
- 9:55Evan: So, what kind of retrieval baselines did they compare CoGR against?
- 10:00Ashley: They compared CoGR against three representative families of retrieval methods: sparse retrieval, dense retrieval, and generative retrieval.
- 10:09These included traditional methods like BM25 for sparse retrieval; DPR, ANCE, and Qwen3-Embedding-4B for dense retrieval; and DSI, DSI-QG, RIPOR, and DeepRetrieval for generative retrieval.
- 10:24Evan: That's a wide range of baselines.
- 10:26How did CoGR perform compared to these methods?
- 10:29Ashley: CoGR significantly outperformed all baselines across both datasets.
- 10:34Specifically, it achieved the highest F1 scores consistently, demonstrating remarkable improvements.
- 10:40On the internal APP Marketplace dataset, CoGR improved the F1 score over the strongest baseline by 10.9%.
- 10:48On the WANDS dataset, it showed an even more impressive improvement of 36.1% over the strongest baseline.
- 10:55Evan: Wow, those are substantial improvements.
- 10:58Do they break down the performance details further?
- 11:01Ashley: Yes, they report detailed metrics including precision, recall, mean reciprocal rank (MRR), normalized discounted cumulative gain (NDCG), and F1 scores at different retrieval cutoffs.
- 11:15For instance, at the top-100 retrieval cutoff, CoGR consistently achieved the highest precision, recall, and F1 scores across both datasets.
- 11:25Evan: What about the dynamics of the co-evolving training process?
- 11:28Do they provide insights into how the training progressed?
- 11:32Ashley: They do.
- 11:33Figure 3 in the paper illustrates the evaluation F1 scores over cumulative training steps.
- 11:39Starting from the SFT-initialized generators, the F1 scores showed a steady increase as query-side and item-side generators alternated in learning.
- 11:48The scores notably increased from approximately 0.16 before co-evolving to around 0.40 after five rounds of alternation.
- 11:57Evan: That's impressive to see such a stable improvement.
- 12:00Did the paper discuss the significance of co-evolving both sides of the retrieval process?
- 12:06Ashley: The experiments indicated that co-evolving both query and item generators was crucial for strong performance.
- 12:12CoGR substantially outperformed versions where only one side was trained while the other remained static.
- 12:18This dynamic co-evolving process was essential for learning a well-aligned retrieval system.
- 12:24Evan: That makes sense.
- 12:25So, it's clear that the iterative optimization of both generators played a crucial role.
- 12:31Any other notable findings from their analysis?
- 12:33Ashley: Yes, the paper also includes an ablation study examining the robustness and relevance of several design choices.
- 12:40For example, they tested the effect of using different reward functions and whether or not to include the supervised fine-tuning stage.
- 12:48Results showed that each design component contributed to the model's overall effectiveness and stability.
- 12:54Evan: Got it.
- 12:55Lastly, were there any qualitative insights or specific examples of how CoGR improved retrieval quality?
- 13:02Ashley: Indeed.
- 13:03The authors provided examples of generated keywords demonstrating how they evolve during training.
- 13:08Initially, keywords were broad and generic, like 'mobile' or 'fun'.
- 13:13Over time, they became more specific and relevant, such as 'investment tracking' or 'survival horror'.
- 13:19This showed that the co-evolving process refined the specificity and alignment of keywords, improving overall retrieval quality.
- 13:27Evan: That's fascinating.
- 13:28It really shows how adaptive and refined the framework can become with proper training.
- 13:34Ashley: Exactly.
- 13:35That’s the end of the Experiment section.
- 13:37Next, we’ll dive into the discussions and conclusions drawn from these results.
- 13:43Evan: Now, let's delve into the related works that provide context for CoGR.
- 13:48Ashley, take us through the landscape of retrieval methods explored in this paper.
- 13:53Ashley: Sure thing, Evan.
- 13:54The related works section in this paper spans across three major categories: sparse retrieval, dense retrieval, and generative retrieval, each contributing to the foundation upon which CoGR is built.
- 14:06Evan: Let's start with sparse retrieval.
- 14:09What's the traditional approach here?
- 14:11Ashley: Classical sparse retrieval methods like TF-IDF and BM25, focus on lexical matching.
- 14:18These methods rely on explicit term matches using inverted indexes to rank documents.
- 14:23The paper references works like docTTTTTquery and SPLADE, which retain this inverted-index interface but improve it with learned term weights and lexical expansions.
- 14:33Evan: And how do dense retrieval methods differ?
- 14:36Ashley: Dense retrieval maps queries and items into a shared continuous representation space.
- 14:42Matching is then done through vector similarity.
- 14:44Representative methods in this category include DPR, ANCE, RocketQA, and GTR.
- 14:51These methods involve dual encoders and often use advanced negative sampling techniques to improve retrieval accuracy.
- 14:58Evan: Interesting.
- 14:59How about generative retrieval, which seems relatively new?
- 15:03Ashley: Generative retrieval is indeed a newer paradigm.
- 15:06It replaces nearest-neighbor search with autoregressive generation of document identifiers.
- 15:12Systems like DSI, GENRET, and ASI explore different approaches to document tokenization and identifier optimization.
- 15:20These methods aim to generate unique identifiers for documents directly from queries, streamlining the retrieval process.
- 15:27Evan: How does this generative approach work in practice?
- 15:31Ashley: For example, DSI assigns semantic IDs to documents and trains a sequence-to-sequence model to generate these IDs from queries.
- 15:39NCI improves this framework by adding query augmentation and prefix-aware decoding.
- 15:45More recent methods like GLEN and NOVO learn lexical identifiers from retrieval supervision, which can be more flexible and interpretable.
- 15:53Evan: It seems each category has its strengths.
- 15:56How does CoGR build on these methods?
- 15:58Ashley: CoGR unites elements from all these approaches.
- 16:02It trains large language models to generate keywords for both queries and items, functioning within a keyword-based retrieval framework.
- 16:10This dual-generation process is optimized via a two-stage method involving supervised fine-tuning and co-evolving reinforcement learning, combining the precision of sparse methods with the semantic depth of dense and generative retrieval.
- 16:24Evan: And how does reinforcement learning fit into all this?
- 16:28Ashley: Great question.
- 16:29Recent works have incorporated reinforcement learning to enhance retrieval by optimizing LLMs with verifiable rewards.
- 16:37For instance, DeepRetrieval trains an LLM query generator directly from retrieval-metric rewards.
- 16:43CoGR adapts this approach by implementing a co-evolving reinforcement learning framework that optimizes both query-side and item-side generators.
- 16:52Evan: Does the paper cite any specific works on this?
- 16:56Ashley: Yes, it does.
- 16:57Works like those by Jiang et al.
- 16:59on DeepRetrieval, and others on RLVR—Reinforcement Learning with Verifiable Rewards—are highlighted.
- 17:06These methods use LLMs to generate pseudo-documents or rewritten queries that improve retrieval performance when integrated with traditional sparse or dense retrievers.
- 17:16Evan: Fascinating.
- 17:17Are there any notable improvements the paper acknowledges from these previous works?
- 17:22Ashley: Certainly.
- 17:23One notable improvement is the integration of business metrics into the reward signal, going beyond pure retrieval metrics.
- 17:30This aligns the optimization process more closely with practical business outcomes, which isn't commonly addressed in prior research.
- 17:38Evan: That definitely sounds like a practical advancement.
- 17:41Did the authors identify any trends or future directions in their related works section?
- 17:46Ashley: They did.
- 17:47The paper notes trends like the increasing flexibility and scaling of LLMs in retrieval tasks and the potential for self-evolving systems.
- 17:56Future directions might involve expanding beyond retrieval metrics to include direct business metrics like revenue or ads relevance.
- 18:03The related work emphasizes the ongoing evolution of hybrid LLM systems that can integrate generation and retrieval in more sophisticated ways.
- 18:12Evan: A lot to consider for future research.
- 18:15That concludes the Related Work section.
- 18:17Next, we’ll move on to the concluding discussions and broader impacts.
- 18:23Evan: To wrap up today's episode, let's summarize the key contributions and takeaways from this paper.
- 18:29Ashley: Sure.
- 18:29The paper introduces CoGR, a novel framework for co-evolving generative retrieval using reinforcement learning.
- 18:36CoGR stands out because it generates keywords for both queries and items, allowing for direct matching using keyword-based infrastructure.
- 18:44Evan: Exactly.
- 18:45The two-stage training pipeline—starting with supervised fine-tuning to establish an aligned keyword space, followed by co-evolving reinforcement learning—ensures that the system progressively improves and aligns query and item representations.
- 19:00Ashley: CoGR showed significant improvements in retrieval performance.
- 19:04When tested on the internal APP Marketplace dataset and the WANDS benchmark, it outperformed strong baselines, delivering a 10.9% and 36.1% improvement in F1 scores, respectively.
- 19:17Evan: The paper also highlights the importance of co-evolving both query and item generators, demonstrating that this dynamic process leads to better-aligned keyword spaces and overall retrieval performance.
- 19:30Ashley: Additionally, by alternating the optimization process between query- and item-side generators, CoGR ensures that each iteration refines the keyword sets effectively, adapting them to serve retrieval tasks better.
- 19:44Evan: Beyond just retrieval metrics, CoGR's framework can be adapted to include direct business outcomes, making it highly relevant for industrial applications where practical impact matters.
- 19:56Ashley: This approach opens up new possibilities for creating agile and robust retrieval systems.
- 20:02It points to future research directions, like incorporating business metrics into the reward functions and further refining the co-evolution process.
- 20:11Evan: That concludes our discussion on CoGR.
- 20:14Thanks for joining us on Daily Paper Cast.
- 20:17Ashley: We hope you found today's insights valuable.
- 20:20Be sure to tune in tomorrow for another deep dive into cutting-edge research from the world of AI and machine learning.
- 20:27Evan: Until next time, keep exploring, and stay curious!