arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.27747cs.IRcs.AI
收藏

基于位置感知的drafting用于LLM生成列表式推荐的推理加速

Position-Aware Drafting for Inference Acceleration in LLM-Based Generative List-Wise Recommendation

University of Science and Technology of China(中国科学技术大学);Zhongguancun Academy(中关村学院);Independent Researcher(独立研究员)

Jiaju Chen, Chongming Gao, Chenxiao Fan, Haoyan Liu, Qingpeng Cai, Peng Jiang, Xiangnan He

AI总结:

本文提出PAD-Rec,通过引入位置感知drafting机制,提升生成式推荐的推理效率,实验显示在四个真实数据集上达到3.1倍的时钟速度提升,并保持推荐质量。

摘要:

基于大型语言模型(LLM)的生成式列表式推荐已迅速发展,但解码仍为序列化过程,导致延迟问题。为加速推理而不改变目标分布,推测解码(SD)利用小型draft模型同时提出多个下一个token,并通过目标LLM验证并接受最长前缀,每轮跳过多个步骤。然而在生成推荐中,每个项目由多个语义ID token表示,通常带有分隔符,当前draft通常将这些token统一处理。这忽视了两个实际事实:(i)一个token的语义取决于其在项目中的位置,(ii)不确定性随着推测深度增加而增加。不建模这些影响,SD的速度提升可能受限。我们引入PAD-Rec,位置感知drafting用于生成推荐,一个轻量模块,通过向draft模型添加两个互补信号增强。项目位置嵌入显式编码每个token的在项目中的位置,增强结构意识。步骤位置嵌入编码draft步骤,允许模型适应深度依赖的不确定性并提高提案质量。为了和谐这些信号与基础特征,我们添加简单的门:一个可学习的系数用于项目槽位和一个基于上下文的门用于draft步骤。该模块可训练,易于与标准draft模型集成,并增加可忽略的推理开销。在四个真实数据集上的广泛实验显示,达到3.1倍的时钟速度提升,并在强SD基线上获得约5%的平均时钟速度提升,同时大致保持推荐质量。

英文摘要:

Large language model (LLM)-based generative list-wise recommendation has advanced rapidly, but decoding remains sequential and thus latency-prone. To accelerate inference without changing the target distribution, speculative decoding (SD) uses a small draft model to propose several next tokens at once and a target LLM to verify and accept the longest prefix, skipping multiple steps per round. In generative recommendation, however, each item is represented by multiple semantic-ID tokens, often with separators, and current drafts typically treat these tokens uniformly. This overlooks two practical facts: (i) a token's semantics depend on its within-item slot, and (ii) uncertainty tends to increase with speculation depth. Without modeling these effects, SD's speedups can be limited. We introduce PAD-Rec, Position-Aware Drafting for generative Recommendation, a lightweight module that augments the draft model with two complementary signals. Item position embeddings explicitly encode the within-item slot of each token, strengthening structural awareness. Step position embeddings encode the draft step, allowing the model to adapt to depth-dependent uncertainty and improve proposal quality. To harmonize these signals with base features, we add simple gates: a learnable coefficient for item slots and a context-driven gate for draft steps. The module is trainable, easy to integrate with standard draft models, and adds negligible inference overhead. Extensive experiments on four real-world datasets show up to 3.1x wall-clock speedup and about 5% average wall-clock speedup gain over strong SD baselines, while largely preserving recommendation quality.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑