arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.05924cs.LG
收藏

DiScoFormer: 基于Transformer的即插即用密度与得分估计

DiScoFormer: Plug-In Density and Score Estimation with Transformers

Department of Mathematics, University of Washington, Seattle, USA;Math AI Lab, University of Washington, Seattle, USA;Allen Institute for Artificial Intelligence, Seattle, USA;Paul G.\ Allen School of Computer Science \& Engineering, University of Washington, Seattle, USA

Vasily Ilin, Peter Sushko, Ranjay Krishna

AI总结:

提出DiScoFormer,一种可一次训练、任意推理的等变Transformer,通过自注意力机制实现跨分布和样本规模的密度与得分估计,证明其泛化核密度估计并优于KDE。

摘要:

从样本中估计概率密度及其得分仍然是生成建模、贝叶斯推断和动力学理论中的核心问题。现有方法分为两类:经典核密度估计(KDE)可泛化到不同分布,但受维度灾难影响;现代神经得分模型精度高,但需为每个目标分布重新训练。我们提出DiScoFormer(密度与得分Transformer),一种“一次训练,任意推理”的等变Transformer,将独立同分布样本映射到密度值和得分向量,可泛化到不同分布和样本规模。理论上,我们证明自注意力可以恢复归一化KDE,从而建立其作为核方法函数泛化的地位;实验上,单个注意力头学习多尺度、类核的行为。该模型在密度估计上收敛更快、精度高于KDE,并为得分去偏KDE、Fisher信息计算和Fokker-Planck型偏微分方程提供高保真即插即用得分预言机。

英文摘要:

Estimating probability density and its score from samples remains a core problem in generative modeling, Bayesian inference, and kinetic theory. Existing methods are bifurcated: classical kernel density estimators (KDE) generalize across distributions but suffer from the curse of dimensionality, while modern neural score models achieve high precision but require retraining for every target distribution. We introduce DiScoFormer (Density and Score Transformer), a ``train-once, infer-anywhere" equivariant Transformer that maps i.i.d. samples to both density values and score vectors, generalizing across distributions and sample sizes. Analytically, we prove that self-attention can recover normalized KDE, establishing it as a functional generalization of kernel methods; empirically, individual attention heads learn multi-scale, kernel-like behaviors. The model converges faster and achieves higher precision than KDE for density estimation, and provides a high-fidelity plug-in score oracle for score-debiased KDE, Fisher information computation, and Fokker-Planck-type PDEs.

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

↑