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

对抗性测试作为可解释性工具:Transformer 中初等函数的基于长度的过拟合

Adversarial Testing as a Tool for Interpretability: Length-based Overfitting of Elementary Functions in Transformers

Charles University(查理大学)

Patrik Zavoral, Dušan Variš, Ondřej Bojar

AI总结:

本文通过对抗性测试研究 Transformer 在初等字符串编辑任务中的长度过拟合问题,发现模型对短序列泛化较好但对长序列表现较差,并揭示模型在算法与结构特征冲突时倾向于优先遵循结构特征。

摘要:

Transformer 模型倾向于过拟合训练数据的各个方面,例如整体序列长度。我们使用一组定义的错误指标研究初等字符串编辑函数,以解释序列到序列 Transformer 的行为。我们表明,对较短序列的泛化通常是可能的,但确认较长序列存在严重问题,尽管经常获得部分正确的答案。此外,我们发现序列的其他结构特征,例如子段长度,可能同样重要。我们假设模型同时学习任务的算法方面和结构方面,但当它们发生冲突时,Transformer 往往不幸地优先遵循结构方面。

英文摘要:

The Transformer model has a tendency to overfit various aspects of the training data, such as the overall sequence length. We study elementary string edit functions using a defined set of error indicators to interpret the behaviour of the sequence-to-sequence Transformer. We show that generalization to shorter sequences is often possible, but confirm that longer sequences are highly problematic, although partially correct answers are often obtained. Additionally, we find that other structural characteristics of the sequences, such as subsegment length, may be equally important. We hypothesize that the models learn algorithmic aspects of the tasks simultaneously with structural aspects but adhering to the structural aspects is unfortunately often preferred by Transformer when they come into conflict.

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

↑