Skip to main content
QUICK REVIEW

[Paper Review] Adapting Pretrained Text-to-Text Models for Long Text Sequences

Wenhan Xiong, Anchit Gupta|arXiv (Cornell University)|Sep 21, 2022
Topic ModelingComputer Science5 citations
TL;DR

This paper presents a recipe to adapt pretrained text-to-text models like BART for long-context tasks by introducing pooling-augmented blockwise attention, pretraining on randomly concatenated short documents from CommonCrawl, and using a masked-span prediction objective with variable-length spans. The resulting model achieves state-of-the-art performance on five long-text summarization benchmarks and competitive results on long-context QA, outperforming larger models.

ABSTRACT

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.

Motivation & Objective

  • To develop an effective, efficient method for adapting existing short-context pretrained models to long-sequence NLP tasks.
  • To investigate the impact of model architecture, pretraining corpus, and optimization objective on long-context performance.
  • To determine whether synthetic long documents from open-domain corpora outperform real long-document collections in pretraining.
  • To evaluate the effectiveness of different pretraining objectives for long-context learning.
  • To build a strong, efficient long-context model that matches or exceeds larger models on downstream tasks.

Proposed method

  • Replaces standard full self-attention in transformers with pooling-augmented blockwise attention to reduce quadratic complexity and enable long-sequence processing.
  • Constructs pseudo-long documents by randomly concatenating short documents from the CommonCrawl corpus (C4) to form a large-scale, diverse pretraining corpus.
  • Pretrains the model using a masked-span prediction objective that includes spans of varying lengths, improving generalization across sequence lengths.
  • Integrates global tokens and pooling layers into the encoder to enhance long-range dependency modeling without altering the base model's parameterization.
  • Leverages existing short-context model weights and fine-tunes via further pretraining, avoiding costly training from scratch.
  • Employs a standard text-to-text framework, enabling direct transfer to downstream tasks like summarization and question answering.

Experimental results

Research questions

  • RQ1Does pooling-augmented blockwise attention outperform other long-range attention mechanisms in long-context tasks?
  • RQ2Is pretraining on randomly concatenated short documents from a large open-domain corpus more effective than using existing long-document corpora?
  • RQ3Which pretraining objective—masked-span prediction, primary sentence prediction, or model-based span prediction—yields the best performance on long-context tasks?
  • RQ4Can a model adapted from a short-context pretrained model achieve state-of-the-art results on long-text summarization without training from scratch?
  • RQ5What is the relative contribution of architecture, corpus, and objective to long-context model performance?

Key findings

  • Pooling-augmented blockwise attention significantly outperforms other long-range mechanisms like global tokens and sliding-window attention across multiple long-context tasks.
  • Pretraining on randomly concatenated short documents from C4 yields better performance than using curated long-document corpora such as book collections, despite the latter being domain-specific.
  • The masked-span prediction objective with variable-length spans achieves the best balance of performance on both short- and long-output tasks, outperforming other objectives.
  • The adapted model achieves new state-of-the-art results on five long-text summarization benchmarks, with relative ROUGE-2 improvements exceeding 10% on three datasets.
  • Despite its relatively modest size, the model outperforms larger models on long-context question answering, demonstrating the effectiveness of the adaptation recipe.
  • The model's performance gains are consistent across diverse downstream tasks, validating the proposed pretraining recipe as broadly effective.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.