DyKnow-RAG: Dynamic Knowledge Utilization Reinforcement Framework for Noisy Retrieval-Augmented Generation in E-commerce Search Relevance

Tingqiao Xu, Shaowei Yao, Chenhe Dong, Yiming Jin, Zerui Huang, Dan Ou, Haihong TangarXiv 2025 · DOI

Abstract

Large Language Models (LLMs) in e-commerce search often face challenges with "long-tail" queries and rapidly evolving product trends. While Retrieval-Augmented Generation (RAG) can mitigate these issues by providing external context, e-commerce data is frequently noisy, containing promotional content and irrelevant tags that can degrade model performance. We propose DyKnow-RAG, a reinforcement learning framework designed to teach LLMs to dynamically filter noise and decide when to rely on internal knowledge versus external context. Utilizing a dual-rollout strategy and posterior-driven reward scaling within a Group Relative Policy Optimization (GRPO) framework, DyKnow-RAG achieves superior relevance judgment in a single pass. Our evaluation on Taobao's live traffic shows a significant increase in Macro F1 and substantial lifts in online business metrics.

1. Introduction

In large-scale e-commerce platforms, search engines must maintain high precision in matching queries to products. Standard RAG approaches often struggle with the "noisy" nature of product descriptions and community reviews. Furthermore, production environments impose strict latency constraints, precluding multi-step cleaning or summarization processes. Existing models often suffer from a "RAG penalty," where noisy retrieved text leads to incorrect relevance judgments. DyKnow-RAG addresses these challenges by treating external context as a policy-controlled resource, enabling the model to "filter-while-generating" without additional latency.

2. Methodology

The DyKnow-RAG framework consists of a three-stage training pipeline designed to instill robust reasoning and dynamic context utilization.

The DyKnow-RAG framework architecture, illustrating the three-stage training process: Supervised Initialization, GRPO-Oriented Data Filtering, and Implicit RAG Process Reward.

2.1 Structured Chain-of-Thought (CoT) Initialization

The model undergoes Supervised Fine-Tuning (SFT) using a CoT template. This template requires the model to output a relevance label, a context usage decision (Adopt/Partial/Ignore), and a detailed rationale. This structured output forces the model to explicitly reason about the utility of the retrieved context.

2.2 Uncertainty-Prioritized Data Filtering

To maximize the efficiency of reinforcement learning, the framework identifies "borderline" cases where the SFT model's confidence is low (logits < 0.7). These difficult instances are prioritized for human annotation and inclusion in the RL training pool.

2.3 Implicit RAG Process Reward via Dual-Group GRPO

The core of DyKnow-RAG is the use of Group Relative Policy Optimization (GRPO) with a dual-rollout strategy. For each query, the model generates two sets of responses: one with external context and one without. Rewards are calculated based on accuracy gaps between these groups. If the context improves accuracy, the reward for using it is scaled up; if it introduces noise leading to errors, the model is rewarded for ignoring it. This posterior-driven scaling teaches the model an implicit gating behavior.

3. Experimental Setup

The framework was evaluated using:

  • Offline Test Set: 21,616 query–item pairs from Taobao, focusing on difficult categories such as negations and QA-style queries.
  • RL Training Set: 50,000 instances from search logs with four-tier relevance labels (Excellent, Related, Mismatch, Irrelevant).
  • Context: The top-1 retrieved chunk from an offline product encyclopedia and evaluation corpus.

4. Results and Discussion

DyKnow-RAG demonstrates significant performance gains over baseline models. Offline results show a Macro F1 of 60.45, compared to 58.14 for SFT-only and 57.06 for vanilla RAG SFT.

Ablation studies and qualitative comparison between SFT-RAG and DyKnow-RAG. Tables 4-6 show the impact of chunk count, scaling strategies, and RAG usage at inference.

4.1 Online Impact

In live A/B testing on Taobao, DyKnow-RAG provided substantial improvements in GSB (Good/Same/Bad) metrics:

  • +10.37% GSB for QA-style queries.
  • +7.75% GSB for knowledge-intensive queries.

4.2 Robustness and Efficiency

The model exhibits "robust fallback," maintaining high performance even when external context is unavailable at inference time. By using GRPO, the framework avoids the memory overhead of a separate value network, making it suitable for large-scale deployment. Crucially, the single-pass architecture meets the millisecond-level latency requirements of real-time search.

5. Conclusion

DyKnow-RAG successfully addresses the noise sensitivity of RAG in e-commerce by framing knowledge utilization as a reinforcement learning problem. By rewarding the model for correct reasoning regardless of context quality, it learns to treat external data dynamically. Future work will explore multi-chunk integration and more advanced reasoning architectures while adhering to production latency constraints.

Summary updated

BibTeX
@misc{xu2025dyknow,
  author = {Tingqiao Xu and Shaowei Yao and Chenhe Dong and Yiming Jin and Zerui Huang and Dan Ou and Haihong Tang},
  title = {{DyKnow-RAG: Dynamic Knowledge Utilization Reinforcement Framework for Noisy Retrieval-Augmented Generation in E-commerce Search Relevance}},
  year = {2025},
  eprint = {2510.11122},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.11122},
}
Figure