End-to-End Long Document Summarization using Gradient Caching
Authors:
Open Access
- 10 October 2025
- journal article
- Published by MIT Press in Transactions of the Association for Computational Linguistics
- Vol. 13, 1271-1297
Abstract
Training transformer-based encoder-decoder models for long document summarization poses a significant challenge due to the quadratic memory consumption during training. Several approaches have been proposed to extend the input length at test time, but training with these approaches is still difficult, requiring truncation of input documents and causing a mismatch between training and test conditions. In this work, we propose CachED (Gradient Caching for Encoder-Decoder models), an approach that enables end-to-end training of existing transformer-based encoder-decoder models, using the entire document without truncation. Specifically, we apply non-overlapping sliding windows to input documents, followed by fusion in decoder. During backpropagation, the gradients are cached at the decoder and are passed through the encoder in chunks by re-computing the hidden vectors, similar to gradient checkpointing. In the experiments on long document summarization, we extend BART to CachED BART, processing more than 500K tokens during training and achieving superior performance without using any additional parameters.Keywords
All Related Versions
This publication has 27 references indexed in Scilit:
- Efficient Long-Text Understanding with Short-Text ModelsTransactions of the Association for Computational Linguistics, 2023
- SummN: A Multi-Stage Summarization Framework for Long Input Dialogues and Documents: A Multi-Stage Summarization Framework for Long Input Dialogues and Documents2022
- SummScreen: A Dataset for Abstractive Screenplay Summarization2022
- SummEval: Re-evaluating Summarization EvaluationTransactions of the Association for Computational Linguistics, 2021
- Efficient Content-Based Sparse Attention with Routing TransformersTransactions of the Association for Computational Linguistics, 2021
- Leveraging Passage Retrieval with Generative Models for Open Domain Question Answering2021
- Efficient Attentions for Long Document Summarization2021
- QMSum: A New Benchmark for Query-based Multi-domain Meeting Summarization2021
- ETC: Encoding Long and Structured Inputs in Transformers2020
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension2020