LARF: Learning-aligned Reasoning Framework for Search Relevance

Tian Tang, Guo Chen, Reed Li, Hao Wang, Yu Lu, Haijin Liang, Haibo ShiarXiv 2026

TL;DR

Large Language Models (LLMs) are fantastic at reasoning through whether a search result actually answers a complex query, but having them "think out loud" is way too slow for live search engines. This paper introduces LARF, a three-stage training pipeline that teaches an LLM deep, multi-dimensional search judgment, sharpens its ability to tell subtly different relevance grades apart, and then amputates the slow text-generation step right before deployment. You get the nuanced judgment of a deliberative reasoning model at the lightning speed of a standard classifier.

What Problem Does This Paper Address?

In modern AI-native search systems (think Perplexity, ChatGPT Search, or Tencent’s Yuanbao), judging whether a retrieved web page matches a user’s query isn't just about matching keywords. A good judge has to weigh semantic alignment, source authority, content quality, and timeliness, ultimately mapping all of that onto a fine-grained scale (here, 0 to 5, from Completely Irrelevant to Perfectly Relevant).

Training LLMs to do this hits a three-way wall:

  1. Standard fine-tuning is shallow: Mapping (query, document) -> score doesn't teach the model why a document earned a 3 instead of a 4.
  2. Reinforcement Learning (RL) is blurry at the finish line: Standard RL methods (like GRPO) reward the entire chain-of-thought (CoT) trajectory. They encourage verbose rambling and provide only a weak, indirect signal to the single final token that actually dictates the relevance score, leaving neighboring grades (like 3 vs. 4) easily confused.
  3. Reasoning is slow: Generating multi-step rationales token-by-token takes seconds per document—an eternity when an online search engine needs to score dozens of candidates in milliseconds.

Methods

To get deep reasoning during training and fast classification during serving, the authors propose LARF (Learning-Aligned Reasoning Framework), a three-stage pipeline:

Overview of the three-stage LARF pipeline: Cold-Start SFT, Discriminative GRPO, and Dual-head Distillation.
  1. Cold-Start SFT with Guided CoT: Instead of brute-forcing a massive dataset, the authors curate a smart one-third subset balancing diverse topics, varied relevance grades, and "hard" boundary cases (where baseline models fail or show high uncertainty). They then use a team of specialized LLM agents—one each for quality, relevance, authority, and timeliness—plus a coordinator and hallucination checker, to synthesize clean, structured rationales aligned with human labels.
  2. Discriminative GRPO with Margin Alignment: Next, they apply Group Relative Policy Optimization (GRPO), a standard RL algorithm, but overhaul the objective with two novel twists. First, a multi-dimensional reward scores sub-attribute accuracy, relative document ranking within the same query, and adherence to human annotation rules (e.g., "outdated pages cannot score high on timeliness"). Second, they attach a hinge-style margin loss directly onto the logits of the final decision digit (0–5), explicitly pushing the correct grade's probability away from its strongest competing neighbor.
  3. Dual-Head Knowledge Distillation: Finally, they attach two parallel heads to the transformer backbone: five lightweight classification heads (one per relevance dimension) and a generative text head. During distillation, the generative head forces the shared backbone to retain its reasoning smarts. At deployment, the generative head is pruned entirely, leaving a fast, single-pass classifier.

Datasets

The authors evaluate LARF on a newly curated, human-annotated industrial web search benchmark from Tencent:

  • Training Set (~300K query-document pairs): Annotated hierarchically with an overall 6-tier relevance score (0–5) alongside four sub-dimension scores (semantic relevance, timeliness, content quality, source authority).
  • Test Set (~16K pairs): Deliberately packed with hard negatives and edge cases—such as spelling errors, missing tokens, and tricky semantic variants—to stress-test decision boundaries.

Key Insights and Ideas

  • Less data + better reasoning beats brute-force scale: Training on just one-third of the dataset—strategically mined for hard boundary cases and enriched with multi-agent rationales—outperforms training on 100% of the raw dataset.
  • Fixating on the final token matters: In LARF's RL stage, adding the terminal-token margin loss delivered the biggest single jump in accuracy. Trajectory-level RL gets the model in the right ballpark, but explicit logit separation is what resolves near-ties between adjacent grades.
  • Generation as a "training-time regularizer": If you just slap a classification head onto the RL model without training the auxiliary generative head alongside it, accuracy drops. The act of predicting rationales during distillation molds better internal representations, even if you throw the text generator away before serving.
  • Framework > Parameter Count: An 8B model trained with LARF outperforms an off-the-shelf 235B reasoning model across every metric, proving that domain-aligned boundary optimization beats raw model size.

Key Results

  • Offline Accuracy & Ranking: Over its Qwen3-8B backbone, LARF-8B boosts exact 6-class accuracy by 5.78 percentage points (45.20% to 50.98%) and list-wise NDCG by 5.05 points (74.51 to 79.56). Scaling LARF to a 235B backbone pushes accuracy to 53.23% and NDCG to 80.03.
  • Massive Speedup: Pruning the generative head cuts inference latency on 64× H20 GPUs from 5.68s to 0.97s per pair—an 82.9% latency reduction (5.86× speedup)—while actually improving accuracy over autoregressive decoding (50.98% vs. 49.35%).
  • Tiny Student, Live Impact: Distilled into a compact LARF-1.7B student, the model retains ~90% of its 8B teacher's accuracy (beating standard 8B baselines). In live A/B testing on Tencent's Yuanbao AI Search, LARF-1.7B increased user High Satisfaction Rate by 1.77%, boosted Relative Satisfaction by 3.63%, and cut Low Satisfaction Rate by 3.22%.

Limitations and Future Work

While the authors do not dedicate a standalone section to limitations, an apparent constraint is the heavy upfront offline engineering required: multi-agent rationale synthesis, custom rule-checkers, and multi-attribute human annotations. For future work, the authors plan to extend LARF to multi-modal relevance judgments (e.g., images/video in search), investigate shorter teacher rationales to cut training overhead, and incorporate online RL driven by real-time user feedback to create a self-improving search loop.

Summary updated

BibTeX
@misc{tang2026larf,
  author = {Tian Tang and Guo Chen and Reed Li and Hao Wang and Yu Lu and Haijin Liang and Haibo Shi},
  title = {{LARF: Learning-aligned Reasoning Framework for Search Relevance}},
  year = {2026},
  eprint = {2611.32125},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32125},
}
Figure