arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.05089cs.CLcs.AI
收藏

Legal-HNet:利用Hartley变换混合法律领域长上下文词元

Legal-HNet: Mixing Legal Long-Context Tokens with Hartley Transform

Thomson Reuters Labs(汤森路透实验室)

Daniele Giofré, Sneha Ghantasala

AI总结:

针对法律领域长文本处理中Transformer自注意力的局限,提出用Hartley、Fourier变换替代注意力层的词元混合机制,构建无注意力编码器加注意力解码器的混合Seq2Seq架构Legal-HNet,在法律摘要任务中以更低资源实现相近性能,降低训练门槛与碳足迹。

摘要:

Transformer架构自提出以来已在自然语言处理(NLP)应用中得到广泛采用,但它也存在局限性。尽管自注意力机制能够生成输入文本的丰富表征,但在法律等专业领域中其效果可能受限——例如,该领域的语言模型通常需要处理极长的文本。本文探索了用更简单的词元混合机制(Hartley变换和Fourier变换)替代基于注意力的层的方案。借助这些非参数技术,我们在法律领域场景下从头训练了可处理长输入文档的模型。我们还提出了一种新的混合Seq2Seq架构:由无注意力的编码器与基于注意力的解码器连接而成,该架构在现有摘要任务上表现优异,且计算和内存需求低得多。我们认为,采用这类更简单的架构,在生成式文本摘要任务的长关联场景下,即使无法取得更优性能,也能达到相近水平。这不仅让更多人能够从头训练模型,还有助于降低训练过程中的碳足迹。

英文摘要:

Since its introduction, the transformers architecture has seen great adoption in NLP applications, but it also has limitations. Although the self-attention mechanism allows for generating very rich representations of the input text, its effectiveness may be limited in specialized domains such as legal, where, for example, language models often have to process very long texts. In this paper, we explore alternatives to replace the attention-based layers with simpler token-mixing mechanisms: Hartley and Fourier transforms. Using these non-parametric techniques, we train models with long input documents from scratch in the legal domain setting. We also introduce a new hybrid Seq2Seq architecture, a no-attention-based encoder connected with an attention-based decoder, which performs quite well on existing summarization tasks with much less compute and memory requirements. We believe that similar, if not better performance, as in the case of long correlations of abstractive text summarization tasks, can be achieved by adopting these simpler infrastructures. This not only makes training models from scratch accessible to more people, but also contributes to the reduction of the carbon footprint during training.

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

↑