Don't Use a Cannon to Kill a Fly: An Efficient Cascading Pipeline for Long Documents
Abstract
The computational cost of transformer-based models has a quadratic dependence on the length of the input sequence. This makes it challenging to deploy these models in domains in which long documents are especially lengthy, such as the legal domain. To address this issue, we propose a three-stage cascading approach for long document classification. We begin by filtering out likely irrelevant information with a lightweight logistic regression model before passing the more challenging inputs to the transformer-based model. We evaluate our approach using CUAD, a legal dataset with 510 manually-annotated, long contracts. We find that the cascading approach reduces training time by up to 80% while improving baseline performance. We hypothesize that the gains in performance stem from localizing the classification task of the transformer model to particularly difficult examples.
BibTeX
@inproceedings{li2023don,
author = {Zehua Li and Neel Guha and Julian Nyarko},
title = {{Don't Use a Cannon to Kill a Fly: An Efficient Cascading Pipeline for Long Documents}},
booktitle = {ICAIL},
year = {2023},
url = {https://openreview.net/forum?id=XPvo67d3NU},
}Ask Althea to put this paper to the test.
Loading related content...