CLMar 16, 2022

AdapLeR: Speeding up Inference by Adaptive Length Reduction

arXiv:2203.08991v1645 citationsh-index: 37Has Code
Originality Incremental advance
AI Analysis

This addresses latency issues for deploying language models in resource-limited settings, representing an incremental improvement over existing token selection methods.

The paper tackles the high computational cost of BERT models by proposing a method to dynamically eliminate less important tokens during inference, achieving speedups of up to 22x with minimal performance loss on classification tasks.

Pre-trained language models have shown stellar performance in various downstream tasks. But, this usually comes at the cost of high latency and computation, hindering their usage in resource-limited settings. In this work, we propose a novel approach for reducing the computational cost of BERT with minimal loss in downstream performance. Our method dynamically eliminates less contributing tokens through layers, resulting in shorter lengths and consequently lower computational cost. To determine the importance of each token representation, we train a Contribution Predictor for each layer using a gradient-based saliency method. Our experiments on several diverse classification tasks show speedups up to 22x during inference time without much sacrifice in performance. We also validate the quality of the selected tokens in our method using human annotations in the ERASER benchmark. In comparison to other widely used strategies for selecting important tokens, such as saliency and attention, our proposed method has a significantly lower false positive rate in generating rationales. Our code is freely available at https://github.com/amodaresi/AdapLeR .

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes