CLLGMay 23, 2024

CEEBERT: Cross-Domain Inference in Early Exit BERT

arXiv:2405.15039v129 citationsh-index: 16ACL
Originality Incremental advance
AI Analysis

This addresses latency issues for users of large language models in cross-domain scenarios, but it is incremental as it builds on existing early exit methods.

The paper tackled the problem of high inference latency in large pre-trained language models like BERT by proposing CeeBERT, an online learning algorithm that dynamically determines early exits for samples to balance accuracy and latency, achieving speed-ups of 2x to 3.5x with minimal accuracy drop.

Pre-trained Language Models (PLMs), like BERT, with self-supervision objectives exhibit remarkable performance and generalization across various tasks. However, they suffer in inference latency due to their large size. To address this issue, side branches are attached at intermediate layers, enabling early inference of samples without requiring them to pass through all layers. However, the challenge is to decide which layer to infer and exit each sample so that the accuracy and latency are balanced. Moreover, the distribution of the samples to be inferred may differ from that used for training necessitating cross-domain adaptation. We propose an online learning algorithm named Cross-Domain Inference in Early Exit BERT (CeeBERT) that dynamically determines early exits of samples based on the level of confidence at each exit point. CeeBERT learns optimal thresholds from domain-specific confidence observed at intermediate layers on the fly, eliminating the need for labeled data. Experimental results on five distinct datasets with BERT and ALBERT models demonstrate CeeBERT's ability to improve latency by reducing unnecessary computations with minimal drop in performance. By adapting to the threshold values, CeeBERT can speed up the BERT/ALBERT models by $2\times$ - $3.5\times$ with minimal drop in accuracy.

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