DuoLM:基于语言模型的快速高效个性化推荐框架
DuoLM: Fast and Effective Personalized Recommendation with Language Models
AI总结:
本文提出DuoLM框架,结合紧凑推荐模型与高效运行时,通过端到端训练及多种推理加速技术,在保持推荐质量的同时大幅提升个性化推荐的服务吞吐量。
摘要:
语言模型可从丰富的物品内容、用户历史及反馈中生成个性化推荐,但用全文输入评估大量候选物品会产生大量在线计算开销,限制服务吞吐量。本文提出DuoLM,一种快速高效的个性化推荐框架,将紧凑推荐模型与高效服务运行时相结合:编码器大语言模型(LLM)学习紧凑物品表示用于离线复用,个性化排序LLM将该表示与用户历史、反馈结合生成推荐;通过推荐监督和教师蒸馏对两个模型进行端到端训练,运行时进一步通过用于嵌入访问的虚拟令牌ID、共享历史计算及CUDA图重放加速推理。基准测试结果显示,该框架的推荐质量可与专家教师模型相当,在单块H100上每秒可生成约26400个候选评分,吞吐量约为采用vLLM和自动前缀缓存部署的教师模型的60倍。
英文摘要:
Language models can make personalized recommendations from rich item content, user history, and feedback. However, evaluating many candidates with full-text inputs incurs substantial online computation and limits serving throughput. We introduce DuoLM, a framework for fast and effective personalized recommendation that integrates a compact recommendation model with an efficient serving runtime. An encoder LLM learns compact item representations for offline reuse, while a personalized ranker LLM combines them with user history and feedback for recommendation. We train both models end to end with recommendation supervision and teacher distillation. The runtime further accelerates inference through virtual token IDs for embedding access, shared history computation, and CUDA Graph replay. Benchmark results show that our framework achieves recommendation quality comparable to that of the expert teacher model. On a single H100, it delivers approximately 26,400 candidate scores per second, about $60\times$ the throughput of the teacher served with vLLM and automatic prefix caching.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。