Constraining Representations Yields Models That Know What They Don't Know
Not on the map. Why?
Abstract (arXiv)
A well-known failure mode of neural networks is that they may confidently return erroneous predictions. Such unsafe behaviour is particularly frequent when the use case slightly differs from the training context, and/or in the presence of an adversary. This work presents a novel direction to address these issues in a broad, general manner: imposing class-aware constraints on a model's internal activation patterns. Specifically, we assign to each class a unique, fixed, randomly-generated binary vector - hereafter called class code - and train the model so that its cross-depths activation patterns predict the appropriate class code according to the input sample's class. The resulting predictors are dubbed Total Activation Classifiers (TAC), and TACs may either be trained from scratch, or used with negligible cost as a thin add-on on top of a frozen, pre-trained neural network. The distance between a TAC's activation pattern and the closest valid code acts as an additional confidence score, besides the default unTAC'ed prediction head's. In the add-on case, the original neural network's inference head is completely unaffected (so its accuracy remains the same) but we now have the option to use TAC's own confidence and prediction when determining which course of action to take in an hypothetical production workflow. In particular, we show that TAC strictly improves the value derived from models allowed to reject/defer. We provide further empirical evidence that TAC works well on multiple types of architectures and data modalities and that it is at least as good as state-of-the-art alternative confidence scores derived from existing models.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 56 of its 75 references that are in the map. First posted on arXiv 30 Aug 2022.
Builds on
56 of 75 references.
References · 56
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2013Intriguing properties of neural networkscited by 5,114
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
- 2018Deep Anomaly Detection with Outlier Exposurecited by 939
- 2017Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learningcited by 918
38 more
- 2015Distillation as a Defense to Adversarial Perturbations against Deep Neural Networkscited by 675
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
- 2017Countering Adversarial Images using Input Transformationscited by 517
- 2017Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networkscited by 484
- 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
- 2020Efficient Intent Detection with Dual Sentence Encoderscited by 419
- 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
- 2017Mitigating Adversarial Effects Through Randomizationcited by 382
- 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 378
- 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 351
- 2020Uncovering the Limits of Adversarial Training against Norm-Bounded Adversarial Examplescited by 275
- 2017Detecting Adversarial Samples from Artifactscited by 244
- 2021Improving Robustness using Generated Datacited by 233
- 2017On Detecting Adversarial Perturbationscited by 232
- 2020Classification-Based Anomaly Detection for General Datacited by 210
- 2018To Trust Or Not To Trust A Classifiercited by 205
- 2018Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learningcited by 203
- 2021Fixing Data Augmentation to Improve Adversarial Robustnesscited by 201
- 2019OCGAN: One-class Novelty Detection Using GANs with Constrained Latent Representationscited by 199
- 2018Spatially Transformed Adversarial Examplescited by 195
- 2019Benchmarking Natural Language Understanding Services for building Conversational Agentscited by 166
- 2018Latent Space Autoregression for Novelty Detectioncited by 149
- 2018AutoZOOM: Autoencoder-based Zeroth Order Optimization Method for Attacking Black-box Neural Networkscited by 137
- 2020DialoGLUE: A Natural Language Understanding Benchmark for Task-Oriented Dialoguecited by 89
- 2019AdvPC: Transferable Adversarial Perturbations on 3D Point Cloudscited by 84
- 2020OpenAttack: An Open-source Textual Adversarial Attack Toolkitcited by 84
- 2022Head2Toe: Utilizing Intermediate Representations for Better Transfer Learningcited by 83
- 2017Mitigating Evasion Attacks to Deep Neural Networks via Region-based Classificationcited by 56
- 2020Backpropagated Gradient Representations for Anomaly Detectioncited by 54
- 2021DOCTOR: A Simple Method for Detecting Misclassification Errorscited by 52
- 2018Beyond One-hot Encoding: lower dimensional target embeddingcited by 42
- 2019Practical Hidden Voice Attacks against Speech and Speaker Recognition Systemscited by 34
- 2021A statistical framework for efficient out of distribution detection in deep neural networkscited by 27
- 2020GraN: An Efficient Gradient-Norm Based Detector for Adversarial and Misclassified Examplescited by 18
- 2020Generalizing Universal Adversarial Attacks Beyond Additive Perturbationscited by 17
- 2021PnPOOD : Out-Of-Distribution Detection for Text Classification via Plug andPlay Data Augmentationcited by 12
- 2019Error-Correcting Output Codes with Ensemble Diversity for Robust Learning in Neural Networkscited by 11
- 2018Generalizable Adversarial Examples Detection Based on Bi-model Decision Mismatchcited by 7
50 most cited of 56 All 56 (JSON)
Built on by
Not cited yet.