Introduction
The standard Transformer architecture faces a fundamental scalability challenge: its quadratic complexity. As input sequences grow, memory and computational requirements increase exponentially, making the processing of long documents prohibitively expensive. While existing "Sparse Transformer" variants like BigBird or Linformer mitigate this by restricting attention patterns, they typically retain every token representation throughout the entire network.
Researchers have proposed a more efficient alternative: Representation Pooling. By teaching models to identify and discard less important information as data moves through the network, the "Pyramidion" model achieves sublinear complexity. This approach results in up to a 4.5x inference speedup on long-document summarization tasks while remaining competitive with state-of-the-art models.
Methods and Architectures
The core innovation is the physical reduction of tokens passed between layers. This is achieved through a novel Successive Halving Top-k operator designed to overcome the non-differentiable nature of discrete selection.
The Successive Halving Top-k Operator
To allow for backpropagation through a selection process, the authors utilize a differentiable tournament-style selection:
- Scoring: A linear layer assigns a "usefulness" score to each token.
- Tournament: Tokens are paired, and a "soft" selection is made using a peaked softmax. Instead of a hard cut, the pair is merged into a single representation (a convex combination) weighted by their scores.
- Halving: This process repeats recursively until the target number of representations is reached.
Proposed Architectures
The paper evaluates two primary configurations:
- Transpooler: A standard Transformer that performs a single pooling step after the encoder, drastically reducing the tokens the decoder must attend to during cross-attention.
- Pyramidion: A hierarchical approach where pooling occurs after every layer, creating a pyramid-like structure that narrows as the network gets deeper.
Experimental Results
The models were tested on the arXiv and PubMed datasets, which feature scientific papers with average lengths of 6,000 and 3,000 words, respectively. These benchmarks are ideal for testing sparsification because they contain long-range dependencies that often exceed the 512 or 1024 token limits of standard Transformers.
Performance and Efficiency
The Pyramidion model (124M parameters) was compared against the significantly larger BigBird-PEGASUS (568M parameters). Despite the size difference, Pyramidion achieved nearly identical ROUGE-2 scores on arXiv (19.99 vs. 20.23) and PubMed (21.14 vs. 21.35).
Key efficiency gains include:
- Speed: Pyramidion was 1.8x faster during training and 4.5x faster during inference compared to blockwise baselines.
- Decoder Optimization: By pooling encoder outputs, the researchers achieved a 13x improvement in computational efficiency within the decoder's cross-attention mechanism, which is often the primary bottleneck during text generation.
Discussion and Limitations
While Representation Pooling offers significant advantages for long documents, the authors note several limitations. For sequences shorter than 4,000 tokens, the overhead of the scoring and pooling mechanism may outweigh the computational savings. Additionally, because the mechanism merges tokens into latent representations, it is difficult to map a pooled vector back to a specific word in the original text, impacting model interpretability.
Future work aims to generalize these pooling mechanisms to handle Relative Positional Encodings, which are currently incompatible with the successive halving approach but are widely used in other modern Transformer variants.
Summary updated