更高的嵌入维度为简单排序任务创建更强的世界模型
Higher Embedding Dimension Creates a Stronger World Model for a Simple Sorting Task
AI总结:
研究在强化学习训练的变压器中嵌入维度对内部“世界模型”的影响,发现更高维度能产生更好的内部表示,经数百实验观察到两种机制,结果证明变压器构建结构化内部世界模型且模型大小可提升表示质量。
摘要:
我们研究了在通过强化学习训练以执行冒泡排序式相邻交换的变压器中,嵌入维度如何影响内部“世界模型”的出现。即使嵌入维度非常小,模型也能达到高精度,但更大的维度会产生更忠实、一致和稳健的内部表示。特别是,更高的嵌入维度加强了结构化内部表示的形成并带来更好的可解释性。经过数百次实验,我们观察到两种一致的机制:(1)注意力权重矩阵的最后一行单调地编码令牌的全局排序;(2)所选的换位与这些编码值的最大相邻差异对齐。我们的结果提供了定量证据,证明变压器构建了结构化的内部世界模型,并且模型大小除了最终性能外还提高了表示质量。我们发布了我们的指标和分析,可用于探究类似的算法任务。
英文摘要:
We investigate how embedding dimension affects the emergence of an internal "world model" in a transformer trained with reinforcement learning to perform bubble-sort-style adjacent swaps. Models achieve high accuracy even with very small embedding dimensions, but larger dimensions yield more faithful, consistent, and robust internal representations. In particular, higher embedding dimensions strengthen the formation of structured internal representation and lead to better interpretability. After hundreds of experiments, we observe two consistent mechanisms: (1) the last row of the attention weight matrix monotonically encodes the global ordering of tokens; and (2) the selected transposition aligns with the largest adjacent difference of these encoded values. Our results provide quantitative evidence that transformers build structured internal world models and that model size improves representation quality in addition to end performance. We release our metrics and analyses, which can be used to probe similar algorithmic tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。