arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.09252cs.LGstat.ML
收藏

TPP-SD:使用推测解码加速 Transformer 点过程采样

TPP-SD: Accelerating Transformer Point Process Sampling with Speculative Decoding

Center for Applied Statistics and School of Statistics, Renmin University of China(应用统计中心和统计学院,中国人民大学);School of Information, Renmin University of China(信息学院,中国人民大学);School of Cyber Science and Engineering, Wuhan University(网络安全与工程学院,武汉大学);Alibaba Group(阿里巴巴集团)

Shukai Gong, Yiyang Fu, Fengyuan Ran, Quyu Kong, Feng Zhou

AI总结:

本文提出 TPP-SD,将语言模型推测解码用于 Transformer 时间点过程采样,以小模型并行草拟、大模型并行验证,在保持分布一致的同时实现 2–6 倍加速。

摘要:

我们提出 TPP-SD,这是一种通过改造来自语言模型的推测解码(SD)技术来加速 Transformer 时间点过程(TPP)采样的新颖方法。通过识别 TPP 的稀疏化算法与语言模型推测解码之间的结构相似性,我们开发了一个高效采样框架,该框架利用较小的草稿模型生成多个候选事件,随后由较大的目标模型并行验证。TPP-SD 保持与自回归采样相同的输出分布,同时实现显著加速。在合成数据集和真实数据集上的实验表明,我们的方法生成的样本与标准方法来自相同分布,但速度提升达 2–6 倍。我们的消融研究分析了草稿长度和草稿模型规模等超参数对采样效率的影响。TPP-SD 弥合了强大的 Transformer TPP 模型与快速序列采样的实际需求之间的差距。

英文摘要:

We propose TPP-SD, a novel approach that accelerates Transformer temporal point process (TPP) sampling by adapting speculative decoding (SD) techniques from language models. By identifying the structural similarities between thinning algorithms for TPPs and speculative decoding for language models, we develop an efficient sampling framework that leverages a smaller draft model to generate multiple candidate events, which are then verified by the larger target model in parallel. TPP-SD maintains the same output distribution as autoregressive sampling while achieving significant acceleration. Experiments on both synthetic and real datasets demonstrate that our approach produces samples from identical distributions as standard methods, but with 2-6$\times$ speedup. Our ablation studies analyze the impact of hyperparameters such as draft length and draft model size on sampling efficiency. TPP-SD bridges the gap between powerful Transformer TPP models and the practical need for rapid sequence sampling.

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

↑