TS-GEAR: Taobao Shangou GEnerative Ad Retrieval
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.
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.
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.
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.
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.
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.
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.
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.