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

表征语言模型间的线性对齐

Ventriloquist LLMs: Linear Alignment of Late-Stage Representations

Independent Researcher(独立研究者);Department of Computer Science(计算机科学系);Columbia University(哥伦比亚大学)

Matt Gorbett, Suman Jana

AI总结:

研究独立训练的大语言模型间是否存在线性对齐,并探索其在文本生成、嵌入分类、分布外检测及隐私保护跨孤岛推理中的应用。

摘要:

语言模型似乎越来越多地学习到相似的表示,尽管训练目标、架构和数据模态存在差异。这种独立训练模型之间新兴的兼容性为跨模型对齐下游目标带来了新的机会。此外,这种能力解锁了新的潜在应用领域,例如在安全、隐私或竞争约束禁止直接数据或模型共享的场景中。在这项工作中,我们研究了表示收敛在多大程度上实现了大语言模型之间的实用线性对齐。具体来说,我们学习独立模型最终隐藏状态之间的仿射变换,并在文本生成、嵌入分类和分布外检测中经验性地评估这些映射。我们发现,模型对之间的性能基本保持不变,并首次证明线性对齐有时能够实现跨独立训练模型的文本生成。我们进一步强调了线性对齐在隐私保护跨孤岛推理中的潜在应用。该框架在共享公共数据集上学习仿射变换,并使用同态加密来保护客户端查询。通过仅加密线性分类操作,该方法实现了亚秒级推理延迟。

英文摘要:

Independently trained language models often learn compatible late-stage representations, despite differences in training objectives, architectures, and data modalities. We ask how far this compatibility extends: can a simple affine map let one model's hidden states be read directly by another model's output head? In this work, we learn affine transformations between the final hidden states of independent models and evaluate them across embedding classification, out-of-distribution detection, and autoregressive text generation. Across model pairs, we find that downstream performance is largely preserved under alignment, with linearly mapped source representations retaining both the decision boundaries and the confidence structure of a target model's classifier. Additionally, we show for the first time that linear alignment sometimes enables text generation across independently trained models, decoding one model's hidden states through another's frozen output head without fine-tuning. This capability is far from universal, and characterizing when it holds is a contribution of our work. We find that success is governed by two factors: tokenizer overlap, which correlates strongly with generation quality, and source-model scale, below which quality degrades sharply. Transfer is also asymmetric, with strong-to-weak mappings substantially outperforming weak-to-strong ones, indicating that source representational capacity, rather than the target head, is the limiting factor. Finally, we characterize where in the network this compatibility arises. A layer-wise analysis localizes this compatibility to the final one or two layers, indicating a late-stage, output-space phenomenon rather than evidence of shared reasoning.

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

↑