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

简化自然语言中任意条件概率的建模

Simplifying the Modeling of Arbitrary Conditionals in Natural Language

Mila — Quebec AI Institute(Mila — 魁北克人工智能研究所);McGill University(麦吉尔大学);Université de Montréal(蒙特利尔大学)

Yinhan Lu, Eric Elmoznino, Léo Gagnon, Sarthak Mittal, Tejas Kasetty, Guillaume Lajoie

AI总结:

提出AC-GPT,通过简单修改标准因果Transformer,实现单次前向传播中评估和采样任意条件(包括过去、未来和混合上下文),保持左到右顺序和下一词预测目标,无需退化标准性能。

摘要:

因果Transformer通过联合分布的自回归分解对序列进行建模,这使得高效的从左到右解码和条件似然计算成为可能。然而,它们无法高效地从任意条件中采样或评估——例如,以过去和未来标记为条件的文本块。最近的工作旨在通过新颖的架构解决这个问题,但通常导致对此类条件概率的次优建模和退化的生成。我们提出了任意条件GPT(AC-GPT),它引入了一个对标准因果Transformer的简单修改,使得在单次前向传播中能够评估和采样任意条件——包括过去、未来和混合上下文。与先前的方法不同,我们的方法保留了标准的从左到右顺序和下一词预测目标,这对于自然语言上的强性能和高效训练都是必不可少的。关键的是,这种兼容性允许现有的LLM被微调以进行任意条件建模。我们的实证结果表明,我们的方法在建模任意条件概率方面优于基线,且不会降低标准的从左到右性能。

英文摘要:

Causal Transformers model sequences through an autoregressive factorization of the joint distribution, which enables efficient left-to-right decoding and conditional likelihood computation. However, they cannot tractably sample from or evaluate arbitrary conditionals -- e.g., a block of text conditioned on past and future tokens. Recent work aims to solve this problem through novel architectures, but they often lead to sub-optimal modeling of such conditionals and degraded generations. We propose Arbitrary Conditionals GPT (AC-GPT) which introduces a simple modification to standard causal Transformers to enable evaluating and sampling from arbitrary conditionals -- including past, future, and mixed contexts -- within a single forward pass. Unlike prior approaches, our method preserves the standard left-to-right ordering and next-token prediction objective essential for both strong performance and efficient training on natural language. Crucially, this compatibility allows existing LLMs to be fine-tuned for arbitrary conditioning. Our empirical results indicate that our method outperforms baselines on modeling arbitrary conditionals, without degrading standard left-to-right performance.

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

↑