HASTE: Hierarchical and Attribute-aware Supervision for Generative Recommendation
Organizations: Glance Bengaluru, India · Glance Vilnius, Lithuania · Glance London, United Kingdom
Abstract
Generative recommendation models have shown promising results by representing items as semantic IDs and generating these IDs autoregressively. We introduce an approach showing that explicitly incorporating hierarchical and attribute-level supervision into generative recommendation can simultaneously improve training efficiency and long-tail recommendation performance. Existing approaches typically optimize semantic ID prediction with a standard causal cross-entropy objective, which does not explicitly exploit the hierarchical structure of semantic IDs and can require substantial training to learn effective item representations. Moreover, data-sparse tail items often suffer from poor representations due to limited supervision, resulting in weaker long-tail recommendation performance. We address these challenges with HASTE (Hierarchical and Attribute-aware Supervision for generaTive rEcommendation), a unified training framework that introduces hierarchical and attribute-specific supervision. HASTE's Hierarchical Loss explicitly exploits the multi-level structure of semantic IDs, providing supervision at each level of the item hierarchy and substantially accelerating training convergence. Its Attribute-Specific Losses encourage the model to preserve fine-grained item attributes, leveraging the language model's inherent semantic knowledge to improve representations and recommendations for tail items. We extensively evaluate HASTE on a fashion recommendation benchmark and across multiple domains of the Amazon dataset. HASTE improves recommendation performance across datasets and item-frequency regimes. Notably, the Hierarchical Loss achieves approximately 2x faster convergence than the standard causal cross-entropy objective, substantially improving training efficiency while maintaining strong recommendation quality.
Figures & tables
| Dataset | Metric | Sequential | Generative | LLM-Based | Ours (CE loss) | Ours (Hier loss) | |||
|---|---|---|---|---|---|---|---|---|---|
| SASRec ( Kang and McAuley, 2018 ) | BERT4Rec ( Sun et al., 2019 ) | TIGER ( Rajput et al., 2023 ) | HSTU ( Zhai et al., 2024 ) | IDGenRec ( Tan et al., 2024 ) | OneRec-Think ( Liu et al., 2025 ) | ||||
| Beauty | Recall@5 | 0.0402 | 0.0232 | 0.0405 | 0.0424 | 0.0484 | 0.0563 | 0.0325 | 0.0588 (+4.4%) |
| Recall@10 | 0.0607 | 0.0396 | 0.0623 | 0.0652 | 0.0693 | 0.0791 | 0.0672 | 0.0823 (+4.0%) | |
| NDCG@5 | 0.0254 | 0.0146 | 0.0267 | 0.0280 | 0.0337 | 0.0398 | 0.0326 | 0.0387 (-2.8%) | |
| NDCG@10 | 0.0320 | 0.0199 | 0.0337 | 0.0353 | 0.0404 | 0.0471 | 0.0358 | 0.0503 (+6.8%) | |
| Sports | Recall@5 | 0.0199 | 0.0102 | 0.0215 | 0.0268 | 0.0270 | 0.0288 | 0.0249 | 0.0322 (+11.8%) |
| Method | Split | Amazon Fashion-140k | Internal-fashion | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Recall | NDCG | Recall | NDCG | ||||||
| @5 | @10 | @5 | @10 | @5 | @10 | @5 | @10 | ||
| CE | Overall | 0.0243 | 0.0324 | 0.0236 | 0.0452 | 0.0255 | 0.0319 | 0.0376 | 0.0425 |
| Tail | 0.0134 | 0.0169 | 0.0245 | 0.0298 | 0.0267 | 0.0342 | 0.0387 | 0.0393 | |
| HL | Overall | 0.0297 (+22.2%) | 0.0345 (+6.5%) | 0.0316 (+33.9%) | 0.0486 (+7.5%) | 0.0284 (+11.4%) | 0.0351 (+10.0%) | 0.0412 (+9.6%) | 0.0468 (+10.1%) |
| Tail | 0.0168 (+25.4%) | 0.0215 (+27.2%) | 0.0297 (+21.2%) | 0.0354 (+18.8%) | 0.0301 (+12.7%) | 0.0387 (+13.2%) | 0.0435 (+12.4%) | 0.0459 (+16.8%) | |
| Dataset | CE Steps | HL Steps | Speedup |
|---|---|---|---|
| Toys | 92000 | 42000 | 2.19 |
| Sports | 100000 | 53000 | 1.89 |
| Beauty | 85000 | 44000 | 1.93 |
| Average | – | – |
| SID Supervision | NDCG@10 | vs. CE |
|---|---|---|
| Causal CE | 0.0328 | – |
| 0.0355 | +0.0027 | |
| 0.0410 | +0.0082 | |
| 0.0435 | +0.0107 | |
| 0.0492 | +0.0164 |
| Supervision | Recall@10 | NDCG@10 | vs. CE (%) |
|---|---|---|---|
| CE | 0.0571 | 0.0328 | – |
| HL w/ SW | 0.0624 | 0.0386 | +9.3 / +17.7 |
| HL w/ CG | 0.0678 | 0.0402 | +18.7 / +22.6 |
| HL w/ SS | 0.0598 | 0.0357 | +4.7 / +8.8 |
| HL w/ SW, CG, SS | 0.0824 | 0.0492 | +44.3 / +50.0 |
| Statistic | Toys | Beauty | Sports | Fashion-140k | Internal-fashion |
|---|---|---|---|---|---|
| Items (catalog) | 11,924 | 12,101 | 18,357 | 141,300 | 163,724 |
| User sequences | 19,412 | 22,363 | 35,598 | 21,326 | 103,047 |
| Total events | 167,597 | 198,502 | 296,337 | 71,059 | 1,640,953 |
| Seq. length (min/med/mean/max) | 5/6/8.63/550 | 5/6/8.88/204 | 5/6/8.32/296 | 3/3/3.33/15 | 3/6/15.92/100 |
| Total conversations | 1,390,005 | 1,720,660 | 2,508,966 | 1,407,009 | 103,047 |
| Train / Validation / Test | 1,278,805/69,500/19,412 | 1,583,007/86,033/22,363 | 2,308,249/125,448/35,598 | 1,294,448/70,350/21,326 | 6,255,087/339,950/203,971 |
| Sports | Beauty | Toys | |
|---|---|---|---|
| Items | 18,357 | 12,101 | 11,924 |
| Users (sequences) | 35,598 | 22,363 | 19,412 |
| Title coverage | 99.5% | 99.9% | 99.5% |
| Description coverage | 90.5% | 98.3% | 98.5% |
| Brand coverage | 67.2% | 82.8% | 85.6% |
| Price coverage | 80.4% | 95.2% | 92.9% |
| Attribute | Count | Coverage |
|---|---|---|
| Items | 141,300 | — |
| Sequences | 21,326 | — |
| product_type | 141,220 | 99.9% |
| gender | 138,332 | 97.9% |
| brand | 130,177 | 92.1% |
| occasion | 130,066 | 92.0% |
| Statistic | Toys | Beauty | Sports | Fashion-140k | Internal-fashion |
|---|---|---|---|---|---|
| Representation | 1024-d text | 1024-d text | 1024-d multimodal | ||
| Unique 3-tuple SIDs | 11,615 | 11,649 | 17,361 | 127,844 | 153,046 |
| Collision rate | 2.6% | 3.7% | 5.4% | 9.5% | 6.5% |
| Hyperparameter | Setting |
|---|---|
| Base weights | |
| Gating floor | 0.2 |
| Gating sharpness | 1.0 |
| Max scheduled-sampling rate | 0.3 |
| Scheduled-sampling anneal steps | 200,000 |
| Blend anneal steps | 300,000 |
| Group | Sub-type ( ) | User turn | Assistant turn |
| SID text (decoding) | sid_to_title (11,865) | Product {sid_58,401,722,768} has title: | Doctor Who – Master Laser Screwdriver |
| sid_to_description (10,736) | Item {sid_30,341,570,768} is described as: | Only Playhut structures provide children with hours of interactive adventure. EZ Twist technology allows for instant setup and quick fold-down… | |
| sid_to_context (11,865) | Tell me about product {sid_107,383,713,768}: | Title: Crayola Tub of Fun; Description: Crayola Tub of Fun; Category: Toys & Games | |
| sid_to_category (11,924) | Product {sid_122,381,749,768} belongs to category: | Toys & Games Games Board Games | |
| sid_to_brand (10,199) | Product {sid_77,477,593,768} is made by: | Parker Brothers | |
| Text SID (encoding) | title_to_sid (11,865) | The product “Bandai Tamashii Stage Act.5 for Mechanics Clear” has SemanticID: | {sid_56,289,628,768} |
| Variant | Base weights | schedule | Gate floor / | |
|---|---|---|---|---|
| CE | – / – | |||
| HL w/ SW | – / – | |||
| HL w/ CG | over steps | / | ||
| HL w/ SS | – / – | |||
| HL w/ SW, CG, SS (full) | over steps | / |