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

正则化、半监督与监督:一种合理的基于注意力的解释

Regularization, Semi-supervision, and Supervision for a Plausible Attention-Based Explanation

University of Rennes 2(雷恩第二大学)

Duc Hau Nguyen, Cyrielle Mallart, Guillaume Gravier, Pascale Sébillot

AI总结:

针对注意力图解释不合理的问题,提出正则化、半监督和监督三种约束,提升注意力图合理性,并发现上下文化层对找到合理标记至关重要。

摘要:

注意力机制为自然语言处理中机器学习的大部分最新进展做出了贡献。此外,它产生了一个注意力图,显示每个输入在其决策中的比例影响。实证研究假设注意力图可以作为模型输出的解释。然而,这种解释是否有助于普通人理解和接受模型输出(解释的合理性)仍然值得质疑。最近的研究表明,RNN编码器中的注意力权重几乎不合理,因为它们分散在输入标记上。因此,我们提出在学习目标函数中增加3个额外约束,以提高注意力图的合理性:正则化以增加注意力权重的稀疏性,半监督以通过启发式方法监督注意力图,以及通过人工标注进行监督。结果表明,所有技术都能在一定程度上提高注意力图的合理性。我们还观察到,针对人工标注的具体指令可能对分类性能产生负面影响。除了注意力图,文本分类任务的实验结果还表明,无论约束如何带来收益,上下文化层在找到合理标记的正确空间方面都起着至关重要的作用。

英文摘要:

Attention mechanism is contributing to the majority of recent advances in machine learning for natural language processing. Additionally, it results in an attention map that shows the proportional influence of each input in its decision. Empirical studies postulate that attention maps can be provided as an explanation for model output. However, it is still questionable to ask whether this explanation helps regular people to understand and accept the model output (the plausibility of the explanation). Recent studies show that attention weights in the RNN encoders are hardly plausible because they spread on input tokens. We thus propose 3 additional constraints to the learning objective function to improve the plausibility of the attention map: regularization to increase the attention weight sparsity, semi-supervision to supervise the map by a heuristic and supervision by human annotation. Results show that all techniques can improve the attention map plausibility at some level. We also observe that specific instructions for human annotation might have a negative effect on classification performance. Beyond the attention map, the result of experiments on text classification tasks also shows that no matter how the constraint brings the gain, the contextualization layer plays a crucial role in finding the right space for finding plausible tokens.

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

↑