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

Daniele Giofré, Sneha Ghantasala
11/9/2023
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{giofr2023legalhnet,
  title  = {Legal-HNet: Mixing Legal Long-Context Tokens with Hartley Transform},
  author = {Daniele Giofré and Sneha Ghantasala},
  year   = {2023},
  eprint = {2311.05089},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.05089v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.05089.svg)](https://codeofpaper.com/paper/2311.05089)

Discussion