计算机科学 > 机器学习
[提交于 2026年9月1日]
标题:One-Layer Transformer Provably Learns Multiclass One-Nearest Neighbor in Context
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We extend recent work establishing an equivalence between one-layer transformers and nearest-neighbor classifiers in the binary setting to the multiclass case. By leveraging the simplex encoding, we show that one-layer transformers with an argmax classification head behave identically to a one-nearest-neighbor classifier in the multiclass setting. This closes a gap left by prior work, whose multiclass result relied on a non-standard rounding-based approach rather than the typical argmax head used in practice.
提交历史
来自:Yutong Wang[v1] 2026年9月1日 星期二 14:35:23 UTC