TS-GEAR: Taobao Shangou GEnerative Ad Retrieval

cs.IR cs.AI cs.CL Guofeng Tong, Xu Zhang, Guangliang Yu, Haiqiang Wang, Guannan Cong, Xing Guo, Yang Zhou, Jingjing Duan, Shuang Li, Feng Shi, Hualei Liu · Nov 9, 2026
Local to this browser
What it does
TS-GEAR tackles generative retrieval for on-demand delivery, where merchant reachability is a hard geographic constraint rather than a soft ranking signal. The core idea is to encode merchant identities as Geo-Semantic IDs—hierarchical...
Why it matters
The paper further proposes a Query-Geo Target Attention encoder to disentangle location-aware behavior aggregation from query intent, and a Group Marginal Policy Optimization algorithm to align the retrieved set with business value rather...
Main concern
TS-GEAR is a strong industrial paper that cleanly maps three structural challenges in location-based generative retrieval to concrete architectural and algorithmic fixes. The Geo-Semantic ID and prefix-constrained decoding are particularly...
Community signal
0
0 up · 0 down
Sign in to vote with arrows
AI Review AI reviewed
Plain-language introduction

TS-GEAR tackles generative retrieval for on-demand delivery, where merchant reachability is a hard geographic constraint rather than a soft ranking signal. The core idea is to encode merchant identities as Geo-Semantic IDs—hierarchical geohash prefixes followed by residual-quantized semantic suffixes—so that autoregressive generation can structurally enforce delivery-range validity. The paper further proposes a Query-Geo Target Attention encoder to disentangle location-aware behavior aggregation from query intent, and a Group Marginal Policy Optimization algorithm to align the retrieved set with business value rather than single-sequence likelihood. With deployment at Taobao Shangou serving over 150 million queries daily, the work matters as one of the first fully productionized generative retrieval systems in local-life services.

Critical review
Verdict
Bottom line

TS-GEAR is a strong industrial paper that cleanly maps three structural challenges in location-based generative retrieval to concrete architectural and algorithmic fixes. The Geo-Semantic ID and prefix-constrained decoding are particularly elegant, and the online A/B gains (+3.8% ad impressions, +4.2% ad revenue) are meaningful. That said, the magnitude of improvement is heavily concentrated at wide delivery radii where the structural prefix constraint is most active, the public benchmark experiments are undermined by the absence of query and real-time location signals, and the GMPO advantage over standard GRPO appears only under beam-search decoding while vanishing under sampling.

“TS-GEAR (0.1B backbone) improved ad impressions by 3.8%, ad efficiency by 0.4%, and ad revenue by 4.2% (Table 5; all p<0.01 under two-tailed t-tests).”
paper · Section 4.3
“Removing the geo prefix ... pulls HR@50 at 10 km and 20 km back to baseline levels ... without the structural constraint the generated candidates spread across the whole ID space.”
paper · Section 4.2.3
What holds up

The Geo-Semantic ID design and its integration with prefix-level constrained decoding is the clearest advance. The ablation study rigorously isolates the contribution of each component, showing that removing the geographic prefix eliminates nearly all HitRate gains at 10–20 km while the User-Geo Gate contributes a smaller but consistent ordering benefit inside the reachable neighborhood. The scaling-law analysis and the online production metrics add credibility that the system is deployable at scale even with a lightweight 0.1B backbone.

“Removing the geo prefix ... pulls HR@50 at 10 km and 20 km back to baseline levels ... without the structural constraint the generated candidates spread across the whole ID space.”
paper · Section 4.2.3
“The encoder stacks 2 token-level Transformer blocks and one dual-path target-attention module, and the decoder stacks 12 blocks, with a hidden dimension of 512 ... Under the online latency constraint we deploy the 0.1B version.”
paper · Section 4.1.4
Main concerns

The public dataset evaluation is a significant weakness. Because Foursquare check-in data contain no search queries and no real-time user coordinates, the authors proxy the current location with the most recent check-in POI and replace every query with a default placeholder. This removes the very query-geo joint distribution the paper claims to model, making the 3–6% public-dataset gains weak evidence for the full system. Additionally, the geographic ValidRate metric is largely a structural consequence of the prefix code rather than learned behavior. The paper acknowledges that the prefix alone yields over 95% validity, which raises the question of whether a simpler baseline—plain SIDs with an inference-time geo mask and a geo-aware ranker—could close much of the gap without changing the generative formulation.

“Since current public POI data lack real search queries, we adopt the same non-search preprocessing used for the industrial dataset and set the query to a default placeholder... Since the public datasets provide only per-POI coordinates and no real-time user location, we take the coordinates of each user's most recent check-in POI as a proxy for the user's current location.”
paper · Section 4.1.1
“A post-hoc filter, or an inference-time distance mask over the unreachable candidates decoded from plain SIDs, could also push validity toward 100%, but such masking only renormalizes a distribution trained without geography: the surviving beam stays reachable, yet its ordering is location-agnostic.”
paper · Section 4.2.4
Evidence and comparison

The comparisons against TIGER, GNPR, and OneLoc are fair in terms of controlled model size and beam width, and the OneLoc baseline is indeed the closest prior work. However, the ablation showing GRPO versus GMPO suggests that the advantage of GMPO appears only under deterministic beam search; under sampling the two are "nearly indistinguishable." Because production serving uses beam search this distinction matters, but it also implies that the core issue is a beam-collapse pathology rather than a fundamental RL misalignment, and the practical fix may be less general than framed.

“GRPO and GMPO are nearly indistinguishable under the sampling protocol... and they separate only under beam search. Since production serving decodes with beam search, judging RL gains from the sampling protocol alone would overstate the gains realized online.”
paper · Section 4.2.5
Reproducibility

The experimental setup is documented with unusually specific industrial detail, including codebook sizes, geohash granularity, RL hyperparameters ($G=8$, $\lambda=0$, $\beta=0.01$), and hardware (PPU-ZW810E GPUs). Yet no code, data, or model checkpoints are released. The industrial dataset is proprietary, and the public benchmarks are heavily processed with no released preprocessing scripts. Reproduction is therefore blocked primarily by data access and the lack of open-source implementation.

“We train with the AdamW optimizer on 20 PPU-ZW810E GPUs, using an initial learning rate of $1.5\times 10^{-4}$ and a weight decay of 0.1... The encoder stacks 2 token-level Transformer blocks and one dual-path target-attention module, and the decoder stacks 12 blocks, with a hidden dimension of 512.”
paper · Section 4.1.4
“In the RL stage, the group size $G$ is set to 8, the advantage weight $\lambda$ to 0, the KL coefficient $\beta$ to 0.01, and the clip threshold $\epsilon$ to 0.2.”
paper · Section 4.1.4
Abstract

On-demand delivery platforms such as DoorDash and Uber Eats impose a constraint absent in traditional e-commerce: merchants beyond the user's delivery range are invalid candidates rather than merely low-ranked. Generative retrieval has recently shown strong potential in large-scale retrieval systems. Adapting it to this setting, however, poses three challenges. First, existing semantic IDs encode geography only as a soft signal, so reachability can only rely on a non-differentiable post-generation hard truncation. Second, user preferences vary substantially across both regions and queries, so aggregating historical behaviors without conditioning on geography and the current query yields biased interest estimates. Third, the retrieved candidate set is evaluated by its collective value, yet autoregressive training scores each sequence independently, with no set-level signal to discourage redundant near-duplicates. To address the challenges, we propose TS-GEAR, a unified generative retrieval framework for on-demand delivery: (1) Geo-Semantic ID splits merchant identifiers into geographic prefixes and semantic suffixes, making reachability a prediction target rather than a post-hoc filter; (2) Query-Geo Target Attention aggregates historical behaviors using the real-time query and location as dual targets, while encoding each behavior's own location into its attention key; (3) GMPO (Group Marginal Policy Optimization) rewrites advantages using a deduplicated group reward and marginal advantage within GRPO, avoiding auxiliary diversity objectives. Deployed online with a lightweight 0.1B backbone, TS-GEAR serves over 150 million queries per day in the search advertising pipeline of Taobao Shangou, consistently outperforming state-of-the-art generative retrieval methods on both HitRate and geographic validity, and achieving 3.8% gains in ad impressions and 4.2% in ad revenue.

Challenge the Review

Pick a starting point or write your own. Challenges run in the background, so you can keep reading while the AI investigates.

No challenges yet. Disagree with the review? Ask the AI to revisit a specific claim.