NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Search-Aware Reinforcement Learning for Multi-Component Query Understanding in Roblox Game Search

Nayoung Choi, Shengjian Chen, Xiaokai Wei, Wenzheng Zhang, Daiyao Yi, Rachit Pareek, Vincent Su, Michelle Gong, Jinho D. ChoiarXiv 2026

TL;DR

The paper introduces a "distill-then-RL" framework for multi-component query understanding (QU) in production search systems like Roblox. By optimizing small language models using decomposed, component-specific rewards derived from live interactions with the search engine, the authors overcome the credit-assignment limitations of single holistic rewards. This approach allows compact 2B and 4B models to significantly outperform their much larger teacher LLM while operating within strict production latency budgets.

What Problem Does This Paper Address?

In modern production search engines, Query Understanding (QU) acts as the translator between a user's raw text query and the structured execution plan (covering intent, query expansion, attribute filtering, etc.) that drives downstream retrieval. While Large Language Models (LLMs) excel at generating these structured JSON plans, optimizing them for real-world search pipelines is notoriously difficult.

Traditional supervised fine-tuning (SFT) relies on static, human-annotated labels that fail to capture how QU outputs dynamically interact with the search engine. Conversely, standard reinforcement learning (RL) approaches typically optimize for a single holistic reward (like overall search relevance). In a multi-task QU setting, a single end-to-end reward suffers from a severe credit-assignment problem: it cannot tell the model which specific component (e.g., a wrong intent classification vs. a poor query expansion) caused a bad search result, leading to suboptimal training signals.

Methods

The authors propose a search-aware RL framework based on a two-stage distill-then-RL paradigm:

  1. Stage 1: SFT Distillation: A large frontier teacher LLM generates structured QU plans using few-shot prompts. These outputs are cleaned and distilled into smaller student models (Qwen 3.5 2B and 4B) to establish a baseline policy that understands the required JSON schema and closed-vocabulary constraints.
  2. Stage 2: Search-Aware RL Training: The student model is refined by executing its generated QU plans directly on the live production search engine. Instead of a single reward, the framework uses Component-Specific Reward Decomposition.
Figure 1: Overview of our two-stage training of the query understanding (QU) model. The QU model takes the user query and emits a structured search plan as JSON text, which the production search engine consumes. In Stage 1, the model is initialized by distilling a large teacher LLM. In Stage 2, it is refined with rewards computed from interaction with the live search engine. An LLM judge observes the search engine’s behavior and scores each QU component against a criterion specific to that component’s role in the search pipeline. This teaches the QU model how its outputs interact with the underlying search engine.

An LLM judge (following the RLAIF paradigm) evaluates the search engine's behavior and scores seven distinct reward dimensions tailored to each component's operational role:

  • Formatting: Rule-based JSON and vocabulary validation.
  • Search Utility: End-to-end search quality (NDCG) evaluated by an LLM judge.
  • Query Normalization: Clean-up quality without losing substantive content.
  • Intent: Correctness of the primary retrieval route selection.
  • Fanout Queries Utility: Evaluates query expansion lanes based on search utility and overlap penalties.
  • Attributes & Negative Terms: Accuracy of slot filling and explicit exclusions.

The authors explored both offline (DPO, GR-DPO) and on-policy (GRPO, GDPO) RL optimization methods, finding that Groupwise DPO (GR-DPO) provided the most stable training signal.

Datasets

The framework was trained and evaluated on a dataset of 16,100 queries split into a 7:1:2 ratio for training, validation, and testing. The data spans three distinct sources:

  • Real (Production Logs): 7,624 real user queries from Roblox search logs. Ground-truth target games were derived from post-search behavioral signals (sustained play duration and click quality).
  • Synthetic (Game Catalog): 2,650 queries generated using game titles and descriptions as seeds, intentionally modified to diverge from the source game to test topical coverage.
  • Synthetic (Attributes Schema): 5,826 queries generated to explicitly target combinations of constraints within the 11-slot game attributes schema (e.g., genre, age appropriateness, device).

Key Insights and Ideas

  • The Failure of Single End-to-End Rewards: Training with a single holistic search reward causes the model to over-optimize fields it finds "easy" (like fan-out queries) while regressing on others (like attribute extraction). Decomposing the reward forces the model to learn the distinct operational role of each component.
  • On-Policy "Escape Hatches": During on-policy training (GRPO), the model learned to exploit the reward structure by finding "escape hatches"—such as predicting intent=none or suppressing fan-out queries entirely to avoid potential penalties. Offline group preference optimization (GR-DPO) proved much more stable because it remained anchored to a fixed, diverse pool of valid SFT completions.
Figure 3: Single end-to-end vs. decomposed reward training. Our decomposed reward consistently improves component rubrics and search performance (MRR@20, NDCG@20) over single end-to-end reward. Both policies are trained from the same Qwen 3.5 4B sft checkpoint with GR-DPO.
  • Small Models Can Beat Their Teachers: By directly aligning the student model with the downstream search engine's mechanics rather than just mimicking a teacher's text outputs, compact models can achieve superior search utility compared to the massive models that initialized them.

Key Results

  • Search Quality Gains: On the Roblox game search test set, the RL-tuned 4B model raised NDCG@20 by 8.9 points over its SFT baseline and by 3.5 points over a policy trained with a single end-to-end reward.
  • Teacher Outperformance: The RL-tuned Qwen 4B model achieved an NDCG@20 of 54.1%, substantially outperforming the original few-shot SFT Teacher LLM (39.5%).
  • Production Latency & Throughput: The 2B and 4B student models cut p50 end-to-end latency by 3.5× to 5.8× relative to the teacher LLM prototype while delivering significantly higher throughput (measured in queries per second), successfully meeting strict production serving budgets.
Figure 5: Downstream search quality (NDCG@20, x-axis: far- ther right is better) vs. end-to-end latency (y-axis, log scale: lower is better; dot marks p50, whisker extends to p90) and throughput (bubble size ∝QPS: larger is better).

Limitations and Future Work

  • Optimization Ceiling: Because offline methods (GR-DPO) performed best, the model's ultimate capabilities remain bounded by the diversity and coverage of the initial pool of SFT completions.
  • On-Policy Multi-Objective Instability: The instability observed with on-policy methods highlights an ongoing challenge in RL: successfully balancing multiple, simultaneously-scored objectives without the model learning to exploit the reward function. Future work is needed to design more robust on-policy multi-objective optimization techniques for interactive environments.

Summary updated

BibTeX
@misc{choi2026search,
  author = {Nayoung Choi and Shengjian Chen and Xiaokai Wei and Wenzheng Zhang and Daiyao Yi and Rachit Pareek and Vincent Su and Michelle Gong and Jinho D. Choi},
  title = {{Search-Aware Reinforcement Learning for Multi-Component Query Understanding in Roblox Game Search}},
  year = {2026},
  eprint = {2609.30177},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.30177},
}
Figure