Adapting Pretrained Text-to-Text Models for Long Text Sequences
About
We present an empirical study of adapting an existing pretrained text-to-text model for long-sequence inputs. Through a comprehensive study along three axes of the pretraining pipeline -- model architecture, optimization objective, and pretraining corpus, we propose an effective recipe to build long-context models from existing short-context models. Specifically, we replace the full attention in transformers with pooling-augmented blockwise attention, and pretrain the model with a masked-span prediction task with spans of varying length. In terms of the pretraining corpus, we find that using randomly concatenated short-documents from a large open-domain corpus results in better performance than using existing long document corpora which are typically limited in their domain coverage. With these findings, we build a long-context model that achieves competitive performance on long-text QA tasks and establishes the new state of the art on five long-text summarization datasets, often outperforming previous methods with larger model sizes. Our code has been released at https://github.com/facebookresearch/bart_ls.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Summarization | PubMed (test) | ROUGE-150.3 | 107 | |
| Question Answering | NarrativeQA (test) | -- | 61 | |
| Document Summarization | GovReport (test) | ROUGE-162 | 50 | |
| Query-based meeting summarization | QMSum (test) | ROUGE-137.9 | 26 | |
| Long document summarization | arXiv (test) | ROUGE-2 Score22.1 | 24 | |
| Summarization | BookSum Chapter Level | ROUGE-138.5 | 14 | |
| Question Answering | QASPER Extractive (test) | F148.7 | 8 | |
| Query Focused Summarization | QMSum (test) | ROUGE-137.9 | 7 | |
| Dialogue Summarization | TVMegaSite | ROUGE-151.8 | 6 | |
| Narrative Summarization | ForeverDreaming | ROUGE-139.1 | 6 |