Distill Globally, Adapt Locally: Reasoning Distillation and Product-Type Test-Time Training for Scalable Trade-Up Recommendation
Reading guide · Based on sections of the original paper
Why read this
Useful for e-commerce relation-classification teams who want to replace costly LLM pair scoring with a cheap student and need to know when rationale supervision and per-category adaptation actually help.
What the authors found
- On the 8,352-pair human golden benchmark, the shallow four-class reasoning-distilled student reached AUC 0.924, versus 0.912 for a same-architecture four-class label-only student. The paired bootstrap ΔAUC was +0.013. The authors also report that collapsing to binary labels erased the rationale benefit (0.911 vs 0.911), and the deep label-only binary model scored lower (0.887). 5.2 Main Results
- Per-product-type adapters at K=32 (928 expert examples across 29 types) raised AUC from 0.924 to 0.941 and AP from 0.920 to 0.940. A pooled adapter trained on the same examples reached only 0.929. Macro within-type AUC rose from 0.910 to 0.925. Label-only adaptation was nearly identical to reasoning-guided adaptation (0.940). 5.3 PT-TTT
- On a roughly 100K-pair proxy workload on one eight-GPU machine, the student was about 5,000× faster than direct LLM inference. Its cost reduction of about 10,000× is an estimate, not a measured full-catalog figure. 5.4 Scalability
Main limitation
The authors note that support and golden sets are pair-disjoint but not product- or brand-disjoint, so leakage across shared entities could inflate the adaptation gains. They also do not fully separate adaptation from simple per-category calibration, and evaluation covers only 29 seen product types. 6 Discussion, Limitations, and Future Works
Where to start
5.3 PT-TTT · Read the pooled-LoRA and macro per-type AUC controls to judge whether the per-category gain reflects real specialization, and see why the rationale term adds almost nothing at adaptation time.
Abstract
Trade-up recommendation identifies higher-quality alternatives that preserve a customer's purchase intent while offering upgraded benefits. Large language models (LLMs) can reason about such distinctions, but applying them directly to hundreds of millions of product pairs is operationally impractical. We introduce a two-level framework that distills LLM reasoning into an efficient non-generative student and adapts its decision boundary to product-type-specific trade-up criteria. At Level 1, a retrieval-augmented few-shot LLM teacher generates structured relation labels and natural-language rationales. These rationales supervise a compact embedding-pair classifier through alignment and contrastive objectives; at inference, the student uses only two precomputed 768-dimensional product embeddings, with no LLM calls or text generation. On a fixed human-annotated benchmark of 8,352 pairs, a 15.5M-parameter four-class reasoning-distilled student achieves AUC 0.924 (95% CI [0.918, 0.929]), compared with 0.912 for the four-class label-only student. At Level 2, product-type test-time training (PT-TTT) uses few-shot demonstrations to optimize lightweight category-specific adapters over the frozen student. PT-TTT improves AUC from 0.924 to 0.941 and average precision from 0.920 to 0.940. On a 100K-pair proxy catalog, the distilled student on a single eight-GPU machine is approximately 5,000x faster and 10,000x lower in estimated cost than direct LLM inference.