SpacTor-T5: Pre-training T5 Models with Span Corruption and Replaced Token Detection
Ke Ye, Heinrich Jiang, Afshin Rostamizadeh, Ayan Chakrabarti, Giulia DeSalvo, Jean-François Kagy, Lazaros Karydas, Gui Citovsky, Sanjiv Kumar
TL;DR
SpacTor targets the inefficiency of self-supervised pre-training by introducing a hybrid span corruption and replaced token detection objective for encoder-decoder models, augmented with a two-stage curriculum that transitions from the hybrid objective to plain span corruption. The method uses a generator–discriminator setup to create plausible token replacements and to detect replacements, while also denoising corrupted spans, with a final loss blending three terms. Empirically, SpacTor matches standard SC performance while reducing pre-training iterations by about 50% and FLOPs by about 40% on several NLP benchmarks, and scales to larger models with substantial compute savings. The results demonstrate that a staged training schedule mitigates the negative effects of noise from the generator, enabling efficient pre-training without sacrificing downstream performance, and point toward broader applicability to other architectures and data regimes.
Abstract
Pre-training large language models is known to be extremely resource intensive and often times inefficient, under-utilizing the information encapsulated in the training text sequences. In this paper, we present SpacTor, a new training procedure consisting of (1) a hybrid objective combining span corruption (SC) and token replacement detection (RTD), and (2) a two-stage curriculum that optimizes the hybrid objective over the initial $τ$ iterations, then transitions to standard SC loss. We show empirically that the effectiveness of the hybrid objective is tied to the two-stage pre-training schedule, and provide extensive analysis on why this is the case. In our experiments with encoder-decoder architectures (T5) on a variety of NLP tasks, SpacTor-T5 yields the same downstream performance as standard SC pre-training, while enabling a 50% reduction in pre-training iterations and 40% reduction in total FLOPs. Alternatively, given the same amount of computing budget, we find that SpacTor results in significantly improved downstream benchmark performance.
