Abstract
Classification with Alternating Normalization (CAN) is a lightweight, non-parametric post-processing technique designed to rescue a classifier's performance on "hard" examples. By iteratively normalizing the predicted probabilities of ambiguous test cases against a reference set of high-confidence validation examples, CAN re-adjusts class distributions to resolve uncertainty. This method yields significant accuracy gains across diverse tasks without requiring model retraining.
Introduction
Even state-of-the-art classifiers struggle with "edge cases"—examples that sit near the decision boundary. These failures often stem from limited training data coverage or model over-fitting. Standard probabilistic classifiers output a distribution over classes, but when they are "in doubt," they often produce flat, ambiguous distributions (e.g., assigning 0.5 to two different classes).
Existing solutions usually involve retraining the model or complex calibration. CAN identifies a gap: a simple way to use the model’s own "certainty" about easy examples to help disambiguate its "uncertainty" about hard ones at inference time.
The CAN Framework
The core of the approach is Alternating Normalization (AN), a technique rooted in the Sinkhorn-Knopp algorithm and inspired by the Rational Speech Act (RSA) framework from linguistics.
The CAN process follows three main steps:
- Identify Hard Examples: The system uses "top-$k$-entropy" (entropy calculated only over the highest-probability classes) to flag ambiguous predictions.
- Construct a Reference Matrix: It creates a matrix ($L_0$) by concatenating the predicted distributions of a "reference set" (high-confidence examples from the validation set) with the "hard" test example.
- Iterative Normalization:
- Row Normalization: Re-scales probabilities across classes for each example, using a hyperparameter $\alpha$ to control convergence toward high-confidence states.
- Column Normalization: Re-scales probabilities across examples for each class, incorporating class priors from the training data.
By alternating between these steps, the "hard" example’s distribution is pushed away from the decision boundary based on the global structure of the reference set.
Experimental Evaluation
The authors evaluated CAN across diverse classification tasks:
- Ultrafine Entity Typing: A massive multi-label task with over 10,000 entity types.
- DialogRE: A dialogue-based relation extraction dataset.
- ImageNet Stress Test: Images were subjected to varying levels of Gaussian blur to simulate increasing classification difficulty.
Key Results
- Ultrafine Entity Typing: CAN improved the Macro F1 score of a multitask baseline by 2.15 points (from 31.32 to 33.47).
- DialogRE: The method provided consistent gains across BERT-based architectures, improving Macro F1 by roughly 0.7 to 0.9 points.
- Robustness: Simulations showed that accuracy gains remain positive across almost all ambiguity levels of the reference set.
Discussion and Insights
CAN treats the classifier like a "pragmatic listener" in a conversation. If a "speaker" (the input) is ambiguous, the listener uses the context of other known, clear "messages" (the reference set) to infer the most likely meaning.
Analysis revealed a "sweet spot" of difficulty: CAN is most helpful when the baseline model is struggling but not completely failing. If the input is too noisy (e.g., extreme blur in ImageNet), the original signal is too weak for CAN to recover. Furthermore, the authors found that focusing on the entropy of the top $k$ classes is a more effective trigger for the process than standard entropy.
Limitations and Future Work
While effective, CAN requires tuning three hyperparameters ($\alpha$, recursion depth $d$, and ambiguity threshold $\tau$). It also relies on a high-quality reference set; if the validation data is unrepresentative, normalization may be less effective. Future research may explore strategic reference set selection or integrating CAN logic directly into the training process.
Summary updated