In e-commerce, "query rewriting" is the critical bridge connecting user intent (e.g., "drinks for fat person") to advertiser bidwords (e.g., "low sugar healthy drinks"). While Large Language Models (LLMs) excel at semantic understanding, they often lack awareness of commercial value. Researchers from Alibaba and Tsinghua University have introduced VALUE (Value-Aware Large language model for qUery rewriting via wEighted trie), a framework that integrates real-time economic signals into the LLM decoding process.
The Relevance-Value Challenge
Sponsored search systems must balance two often-conflicting goals: semantic relevance and commercial value (measured by effective Cost Per Mille, or eCPM). Existing generative models face three primary hurdles:
- Relevance-Value Tension: The most semantically similar keyword may not be the most valuable. Standard fine-tuning can lead to "catastrophic forgetting" of semantic nuances when trying to optimize for value.
- Dynamic Markets: Bid prices fluctuate constantly. Retraining massive LLMs to reflect these shifts is computationally prohibitive.
- Alignment Noise: Standard techniques like Direct Preference Optimization (DPO) can overfit to noisy, transient price fluctuations.
The VALUE Framework
The VALUE framework addresses these challenges by decoupling economic optimization from semantic learning through a two-pronged approach.
Weighted Trie and Collaborative Inference
Instead of embedding commercial knowledge directly into the LLM's weights, VALUE utilizes a "Weighted Trie" during the inference stage. This allows the system to respond to market changes in minutes by updating the Trie without touching the LLM's parameters.
The Weighted Trie is a specialized search tree that stores real-time eCPM signals at every token node. During decoding, the system performs Collaborative Inference, merging the LLM’s semantic distribution with a value distribution derived from the Trie.
A key innovation is the "Anchor" strategy, which uses a depth-dependent factor to prioritize semantic relevance for initial tokens and gradually increase the weight of value signals as the keyword completion progresses. This ensures the final rewrite remains grounded in the user's original intent while maximizing value.
Weighted Direct Preference Optimization (WDPO)
To refine the model during training, the authors introduced WDPO. Unlike standard DPO, which treats all preference pairs equally, WDPO applies a weight function to emphasize pairs with large, stable value gaps while down-weighting those affected by transient market noise. This makes the model significantly more robust to "price jitter."
Experimental Results
The VALUE framework was evaluated using a training set of 110 million records derived from Alibaba’s logs and a stratified test set of 30,000 queries.
Online Performance
VALUE was deployed in Alibaba's advertising system during the 2024 "Double Eleven" shopping festival. Live A/B tests demonstrated:
- 1.64% increase in Revenue Per Mille (RPM).
- 1.53% increase in total consumption.
Offline Benchmarks
VALUE outperformed baselines like DeepNB and BEQUE, achieving a Hit Rate@500 of 91.91%, compared to 86.38% for a standard SFT+Trie approach. Notably, the model showed the strongest gains in "tail" (rare) queries, with a +2.66% RPM increase, where traditional retrieval methods often struggle.
Conclusion and Future Work
By decoupling economic signals from semantic weights via the Weighted Trie, VALUE allows for near-instantaneous adaptation to market changes. Future work will explore scaling the Trie for even larger bidword spaces and integrating user-specific personalization into the online serving framework.
Summary updated