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

StructFormer:基于文档结构的掩码注意力及其对语言模型预训练的影响

StructFormer: Document Structure-based Masked Attention and its Impact on Language Model Pre-Training

Indian Institute of Technology Bombay(印度孟买理工学院);Adobe Research, India(奥多比印度研究院)

Kaustubh Ponkshe, Venkatapathy Subramanian, Natwar Modani, Ganesh Ramakrishnan

AI总结:

本研究针对Transformer处理长序列的计算限制,实证评估全局注意力对BERT预训练的影响,通过创建结构感知文本语料库与纯文本对照语料库进行预训练,发现融入文档结构的模型在文档理解等抽象任务中表现更优。

摘要:

当前大多数语言模型(LMs)的最先进技术依赖于基于Transformer的架构及其无处不在的注意力机制。然而,随着输入序列变长,计算需求呈指数级增长,这限制了Transformer处理短段落的能力。最近的研究试图通过引入选择性注意力机制(特别是局部和全局注意力)来解决这一限制。虽然稀疏注意力机制在理论上已被证实与全注意力一样具有图灵完备性,但其对预训练的实际影响仍未被探索。本研究着重于实证评估全局注意力对BERT预训练的影响。主要步骤包括通过arXiv数据创建一个广泛的结构感知文本语料库,以及一个纯文本对照语料库。我们在这两个数据集上进行预训练,研究注意力模式的变化,并评估其对下游任务的影响。我们的分析强调了将文档结构纳入语言模型的重要性,证明了这些模型在更抽象的任务(如文档理解)中表现出色的能力。

英文摘要:

Most state-of-the-art techniques for Language Models (LMs) today rely on transformer-based architectures and their ubiquitous attention mechanism. However, the exponential growth in computational requirements with longer input sequences confines Transformers to handling short passages. Recent efforts have aimed to address this limitation by introducing selective attention mechanisms, notably local and global attention. While sparse attention mechanisms, akin to full attention in being Turing-complete, have been theoretically established, their practical impact on pre-training remains unexplored. This study focuses on empirically assessing the influence of global attention on BERT pre-training. The primary steps involve creating an extensive corpus of structure-aware text through arXiv data, alongside a text-only counterpart. We carry out pre-training on these two datasets, investigate shifts in attention patterns, and assess their implications for downstream tasks. Our analysis underscores the significance of incorporating document structure into LM models, demonstrating their capacity to excel in more abstract tasks, such as document understanding.

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

↑