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

概率子空间流形用于大语言模型中的上下文推断

Probabilistic Subspace Manifolds for Contextual Inference in Large Language Models

Christopher Nightingale, Dominic Lavington, Jonathan Thistlethwaite, Sebastian Penhaligon, Thomas Belinski, David Boldo

AI总结:

本文提出将词元嵌入表示为概率子空间流形,以增强大语言模型的上下文推断能力,提高语义粒度、鲁棒性和跨领域适应性,并平衡计算开销。

摘要:

将词元嵌入表示为学习到的流形上的概率分布,可以实现更灵活的上下文推断,减少表示刚性,同时增强语义粒度。对比评估表明,概率嵌入改善了邻域一致性并减少了冗余,确保词元关系在微调迭代过程中保持更结构化的连贯性。在注意力机制中集成概率子空间有助于实现更自适应的上下文加权,使模型能够捕获在传统嵌入中可能被掩盖的潜在依赖关系。实验结果突出了对对抗性修改的鲁棒性增强,概率嵌入即使在基于扰动的评估场景下也能保持上下文完整性。性能评估表明,概率表示在特定领域应用中实现了更大的适应性,减少了在跨语言领域转换时进行大量重新训练的需求。计算权衡保持在操作可行的范围内,推理延迟的边际增加与增强的表示稳定性和上下文表达力的益处相平衡。编码结构化不确定性的能力在生成建模任务中提供了优势,特别是在需要表示框架来处理模糊或上下文相关的语言结构以在扩展序列中保持连贯性的情况下。

英文摘要:

Representing token embeddings as probability distributions over learned manifolds allows for more flexible contextual inference, reducing representational rigidity while enhancing semantic granularity. Comparative evaluations demonstrate that probabilistic embeddings improve neighborhood consistency and decrease redundancy, ensuring that token relationships remain more structurally coherent across fine-tuning iterations. The integration of probabilistic subspaces within attention mechanisms facilitates more adaptive contextual weighting, enabling models to capture latent dependencies that would otherwise be obscured in conventional embeddings. Experimental results highlight increased robustness against adversarial modifications, with probabilistic embeddings preserving contextual integrity even under perturbation-based evaluation scenarios. Performance assessments indicate that probabilistic representations achieve greater adaptability in domain-specific applications, mitigating the need for extensive retraining when shifting across linguistic domains. Computational trade-offs remain within operationally feasible limits, with marginal increases in inference latency balanced against the benefits of enhanced representation stability and contextual expressiveness. The capacity to encode structured uncertainty provides advantages in generative modeling tasks, particularly where maintaining coherence across extended sequences requires a representation framework capable of handling ambiguous or context-dependent linguistic constructs.

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

↑