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

提升组合泛化能力的数据因素

Data Factors for Better Compositional Generalization

UNC Chapel Hill(北卡罗来纳大学教堂山分校)

Xiang Zhou, Yichen Jiang, Mohit Bansal

AI总结:

本研究针对从头训练模型在组合泛化诊断数据集上表现差、而大通用数据集训练模型泛化性好的矛盾,通过实验分析数据因素对Transformer组合泛化的影响,揭示复杂度增益的双维度及不同难度样本的作用,提出均衡混合样本可实现最强泛化。

摘要:

近期针对组合泛化的诊断数据集,例如SCAN(Lake和Baroni,2018)与COGS(Kim和Linzen,2020),暴露出在这些数据集上从头训练的模型存在严重问题。然而,与这种糟糕表现形成对比的是,在规模更大、更通用的数据集上训练的最先进模型展现出了更强的泛化能力。在本研究中,为调和这一矛盾,我们通过在多种具备不同数据因素(包括数据集规模、模式复杂度、样本难度等)的训练集上训练Transformer模型,开展了一项实证分析。首先,我们发现数据集复杂度的提升能够让模型在多种不同的泛化挑战中表现出更优的泛化行为。为进一步理解这种性能提升,我们阐明了更复杂数据集带来增益的两个维度:它们提供了更多样化的样本,使得组合理解更具成效;同时,由于样本重复频率降低,它们也能避免模型对样本形成无法泛化的记忆。最后,我们探究了不同难度等级的训练样本如何以不同方式影响泛化能力。在合成数据集上,简单样本比困难样本更能激发更强的组合性。在更大规模的真实语言数据集上,尽管困难样本可能因保障合理的数据覆盖度而变得更为重要,但简单样本与困难样本的均衡混合能够诱导出最强的泛化能力。本研究的代码与数据可在https://github.com/owenzx/data4comp获取。

英文摘要:

Recent diagnostic datasets on compositional generalization, such as SCAN (Lake and Baroni, 2018) and COGS (Kim and Linzen, 2020), expose severe problems in models trained from scratch on these datasets. However, in contrast to this poor performance, state-of-the-art models trained on larger and more general datasets show better generalization ability. In this work, to reconcile this inconsistency, we conduct an empirical analysis by training Transformer models on a variety of training sets with different data factors, including dataset scale, pattern complexity, example difficulty, etc. First, we show that increased dataset complexity can lead to better generalization behavior on multiple different generalization challenges. To further understand this improvement, we show two axes of the benefit from more complex datasets: they provide more diverse examples so compositional understanding becomes more effective, and they also prevent ungeneralizable memorization of the examples due to reduced example repetition frequency. Finally, we explore how training examples of different difficulty levels influence generalization differently. On synthetic datasets, simple examples invoke stronger compositionality than hard examples do. On larger-scale real language datasets, while hard examples become more important potentially to ensure decent data coverage, a balanced mixture of simple and hard examples manages to induce the strongest generalizability. The code and data for this work are available at https://github.com/owenzx/data4comp

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

↑