掩码语言模型上Glauber动力学的混合时间
Mixing Times of Glauber Dynamics on Masked Language Models
AI总结:
研究掩码语言模型迭代生成时的全局分布行为,通过Glauber动力学马尔可夫链分析其混合时间,揭示在不同温度下混合行为的相变现象。
摘要:
掩码语言模型(MLMs)定义了令牌的局部条件分布,但通常不对应任何一致的序列联合分布。这提出了一个根本性问题:当此类条件在生成中迭代使用时,会诱导出何种全局分布行为?本文通过将迭代的掩码令牌重采样建模为离散令牌序列上的Glauber动力学马尔可夫链来回答这一问题。我们首先证明MLM条件本质上是不相容的:引入了一个矩形测试来验证这种不相容性,并实证验证其在现代MLM中的普遍性。然后我们对由此诱导的马尔可夫链进行了理论分析。在有限的跨令牌影响下,我们建立了高温度收缩结果,表明混合时间为O(n log n),其中n是序列长度。相反,在均匀局部边际条件下,链表现出 metastability,低温下缓慢逃离语义盆地。实证上,我们展示了混合行为随温度和序列长度的变化呈现相变,与理论预测一致。我们进一步通过语义轨迹表征诱导的平稳行为,识别出持久结构如长寿命陷阱和复发语义盆地,政治内容作为可测量的案例研究。
英文摘要:
Masked language models (MLMs) define local conditional distributions over tokens but do not, in general, correspond to any consistent joint distribution over sequences. This raises a fundamental question: what global distributional behavior is induced when such conditionals are used iteratively for generation? We address this question by modeling iterative masked-token resampling as a Glauber dynamics Markov chain on the discrete space of token sequences. We first show that MLM conditionals are intrinsically incompatible: we introduce a rectangle test that certifies this incompatibility and empirically verify its prevalence across modern MLMs. We then provide a theoretical analysis of the induced Markov chain. Under bounded cross-token influence, we establish a high-temperature contraction result implying $O(n\log n)$ mixing time where $n$ is the sequence length. In contrast, we prove that under a uniform local margin condition, the chain exhibits metastability, with exponentially slow escape from semantic basins at low temperatures. Empirically, we demonstrate a phase transition in mixing behavior as a function of temperature and sequence length, consistent with the theoretical predictions. We further characterize the induced stationary behavior through semantic trajectories, identifying persistent structures such as long-lived traps and recurrent semantic basins, with political content serving as a measurable case study.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。