COSEE: Consistency-Oriented Signal-Based Early Exiting via Calibrated Sample Weighting Mechanism

Jianing He, Qi Zhang, Hongyun Zhang, Xuanjing Huang, Usman Naseem +1 more
12/17/2024
cs.LGcs.AI

No official code found. Best implementation: He-Jianing/COSEE (0 stars, last commit 2024-12-13).

Abstract

Early exiting is an effective paradigm for improving the inference efficiency of pre-trained language models (PLMs) by dynamically adjusting the number of executed layers for each sample. However, in most existing works, easy and hard samples are treated equally by each classifier during training, which neglects the test-time early exiting behavior, leading to inconsistency between training and testing. Although some methods have tackled this issue under a fixed speed-up ratio, the challenge of flexibly adjusting the speed-up ratio while maintaining consistency between training and testing is still under-explored. To bridge the gap, we propose a novel Consistency-Oriented Signal-based Early Exiting (COSEE) framework, which leverages a calibrated sample weighting mechanism to enable each classifier to emphasize the samples that are more likely to exit at that classifier under various acceleration scenarios. Extensive experiments on the GLUE benchmark demonstrate the effectiveness of our COSEE across multiple exiting signals and backbones, yielding a better trade-off between performance and efficiency.

View on arXivView PDF

Code Implementations(1)

He-Jianing/COSEECommunity100%

COSEE: Consistency-Oriented Signal-based Early Exiting based on Calibrated Sample Weighting Mechanism

00Shell, PythonDec 13, 20241 years ago

Cite this paper

@article{he2024cosee,
  title  = {COSEE: Consistency-Oriented Signal-Based Early Exiting via Calibrated Sample Weighting Mechanism},
  author = {Jianing He and Qi Zhang and Hongyun Zhang and Xuanjing Huang and Usman Naseem and Duoqian Miao},
  year   = {2024},
  eprint = {2412.13236},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.13236v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.13236.svg)](https://codeofpaper.com/paper/2412.13236)

Discussion