Exit Transformer Classifiers Early with Entropy Thresholds
A transformer classifier normally sends every input through every layer, even when an intermediate representation already supports a concentrated class prediction. Entropy-based early exit changes that fixed-depth behavior. Prediction heads attached to intermediate layers estimate class distributions, and inference can stop once a distribution passes a configured entropy threshold. The mechanism makes model depth input-dependent. Some inputs may leave after relatively few layers, while uncertain inputs continue through more of the network. That flexibility also introduces a new source of error: an intermediate head can be confident and still be wrong.