arXiv:2604.12965cs.IR2026-04

用分层索引加速大规模推荐检索,提升效率与精度。

Efficient Retrieval Scaling with Hierarchical Indexing for Large Scale Recommendation

  • 通过交叉注意力与残差量化联合学习分层索引结构。
  • 在Meta真实场景中支持数十亿用户每日广告推荐,检索成本显著降低。
  • 发现中间节点对应高质量数据,微调可进一步提升性能。

随着训练数据量、计算资源和模型参数的增长,大规模工业级推荐检索模型不断涌现。然而,如何高效部署这些大型基础检索模型仍是未解决的关键挑战。现有快速方案如离线缓存或模型蒸馏,难以充分发挥基础模型的表征与推理能力。本文探索在基础检索模型记忆空间上学习分层组织结构的可能性。该结构可在保持精确性的同时降低检索开销。为此,我们提出一种联合使用交叉注意力与残差量化的方法来学习分层索引,并在Meta实现落地,支撑每日数十亿Facebook与Instagram用户的广告推荐。有趣的是,我们发现学习到的索引中间节点对应少量高质量数据,对该子集进行微调可进一步提升推理性能,为推荐系统中的“测试时训练”提供了具体实现。我们在内部及公开数据集上进行了强基线对比验证,结果表明该方法有助于推动下一代基础检索模型的发展。

原文摘要 · Abstract (English)

The increase in data volume, computational resources, and model parameters during training has led to the development of numerous large-scale industrial retrieval models for recommendation tasks. However, effectively and efficiently deploying these large-scale foundational retrieval models remains a critical challenge that has not been fully addressed. Common quick-win solutions for deploying these massive models include relying on offline computations (such as cached user dictionaries) or distilling large models into smaller ones. Yet, both approaches fall short of fully leveraging the representational and inference capabilities of foundational models. In this paper, we explore whether it is possible to learn a hierarchical organization over the memory of foundational retrieval models. Such a hierarchical structure would enable more efficient search by reducing retrieval costs while preserving exactness. To achieve this, we propose jointly learning a hierarchical index using cross-attention and residual quantization for large-scale retrieval models. We also present its real-world deployment at Meta, supporting daily advertisement recommendations for billions of Facebook and Instagram users. Interestingly, we discovered that the intermediate nodes in the learned index correspond to a small set of high-quality data. Fine-tuning the model on this set further improves inference performance, and concretize the concept of "test-time training" within the recommendation system domain. We demonstrate these findings using both internal and public datasets with strong baseline comparisons and hope they contribute to the community's efforts in developing the next generation of foundational retrieval models.

推荐系统检索加速分层索引测试时训练

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。