arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.09477stat.MLcs.LG
收藏

高效变换器概率模型的自回归推断

Efficient Autoregressive Inference for Transformer Probabilistic Models

Department of Computer Science, Aalto University, Finland(芬兰阿尔托大学计算机科学系);ELLIS Institute Finland(芬兰ELLIS研究所);Department of Computer Science, University of Helsinki, Finland(芬兰赫尔辛基大学计算机科学系);Verda;Department of Computer Science, University of Manchester, UK(英国曼彻斯特大学计算机科学系)

Conor Hassan, Nasrulloh Loka, Cen-You Li, Daolang Huang, Paul E. Chang, Yang Yang, Francesco Silvestrin, Samuel Kaski, Luigi Acerbi

AI总结:

本文提出一种高效自回归缓冲机制,结合集基和自回归方法,实现多预测联合分布推断,提升采样和密度评估效率,实验显示性能接近全上下文重编码,速度和内存使用更优。

摘要:

针对集基变换器模型在近似概率推断和元学习中单次边预测优势,但需联合分布多预测的不足,本文提出因果自回归缓冲机制。模型一次编码上下文并缓存,轻量因果缓冲捕捉生成目标间的依赖,每个新预测同时关注缓存上下文和之前预测的目标。此方法实现高效批量自回归采样和联合预测密度评估。训练通过掩码注意力整合集基和自回归模式。在合成函数、EEG时间序列、贝叶斯模型比较和表格回归任务中,方法性能接近全上下文重编码,联合采样和密度评估速度提升20倍,内存使用降低7倍。

英文摘要:

Set-based transformer models for amortized probabilistic inference and meta-learning, such as neural processes, prior-fitted networks, and tabular foundation models, excel at single-pass marginal prediction. However, many applications require joint distributions over multiple predictions. Purely autoregressive architectures generate these efficiently but sacrifice flexible set-conditioning. Obtaining joint distributions from set-based models requires re-encoding the entire context at each autoregressive step, which scales poorly. We introduce a causal autoregressive buffer that combines the strengths of both paradigms. The model encodes the context once and caches it; a lightweight causal buffer captures dependencies among generated targets, with each new prediction attending to both the cached context and all previously predicted targets added to the buffer. This enables efficient batched autoregressive sampling and joint predictive density evaluation. Training integrates set-based and autoregressive modes through masked attention at minimal overhead. Across synthetic functions, EEG time series, a Bayesian model comparison task, and tabular regression, our method closely matches the performance of full context re-encoding while delivering up to $20\times$ faster joint sampling and density evaluation, and up to $7\times$ lower memory usage.

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

↑