mlsanityData to 7 Oct 2026

Constraining Representations Yields Models That Know What They Don't Know

arXiv 2208.14488 ↗First posted 30 Aug 2022cs.LG cs.AI cs.CVcited by 0

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

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  5. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  6. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  7. 2013Intriguing properties of neural networkscited by 5,114
  8. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
  9. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
  10. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
  11. 2018Deep Anomaly Detection with Outlier Exposurecited by 939
  12. 2017Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learningcited by 918
38 more
  1. 2015Distillation as a Defense to Adversarial Perturbations against Deep Neural Networkscited by 675
  2. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
  3. 2017Countering Adversarial Images using Input Transformationscited by 517
  4. 2017Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networkscited by 484
  5. 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
  6. 2020Efficient Intent Detection with Dual Sentence Encoderscited by 419
  7. 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
  8. 2017Mitigating Adversarial Effects Through Randomizationcited by 382
  9. 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 378
  10. 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 351
  11. 2020Uncovering the Limits of Adversarial Training against Norm-Bounded Adversarial Examplescited by 275
  12. 2017Detecting Adversarial Samples from Artifactscited by 244
  13. 2021Improving Robustness using Generated Datacited by 233
  14. 2017On Detecting Adversarial Perturbationscited by 232
  15. 2020Classification-Based Anomaly Detection for General Datacited by 210
  16. 2018To Trust Or Not To Trust A Classifiercited by 205
  17. 2018Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learningcited by 203
  18. 2021Fixing Data Augmentation to Improve Adversarial Robustnesscited by 201
  19. 2019OCGAN: One-class Novelty Detection Using GANs with Constrained Latent Representationscited by 199
  20. 2018Spatially Transformed Adversarial Examplescited by 195
  21. 2019Benchmarking Natural Language Understanding Services for building Conversational Agentscited by 166
  22. 2018Latent Space Autoregression for Novelty Detectioncited by 149
  23. 2018AutoZOOM: Autoencoder-based Zeroth Order Optimization Method for Attacking Black-box Neural Networkscited by 137
  24. 2020DialoGLUE: A Natural Language Understanding Benchmark for Task-Oriented Dialoguecited by 89
  25. 2019AdvPC: Transferable Adversarial Perturbations on 3D Point Cloudscited by 84
  26. 2020OpenAttack: An Open-source Textual Adversarial Attack Toolkitcited by 84
  27. 2022Head2Toe: Utilizing Intermediate Representations for Better Transfer Learningcited by 83
  28. 2017Mitigating Evasion Attacks to Deep Neural Networks via Region-based Classificationcited by 56
  29. 2020Backpropagated Gradient Representations for Anomaly Detectioncited by 54
  30. 2021DOCTOR: A Simple Method for Detecting Misclassification Errorscited by 52
  31. 2018Beyond One-hot Encoding: lower dimensional target embeddingcited by 42
  32. 2019Practical Hidden Voice Attacks against Speech and Speaker Recognition Systemscited by 34
  33. 2021A statistical framework for efficient out of distribution detection in deep neural networkscited by 27
  34. 2020GraN: An Efficient Gradient-Norm Based Detector for Adversarial and Misclassified Examplescited by 18
  35. 2020Generalizing Universal Adversarial Attacks Beyond Additive Perturbationscited by 17
  36. 2021PnPOOD : Out-Of-Distribution Detection for Text Classification via Plug andPlay Data Augmentationcited by 12
  37. 2019Error-Correcting Output Codes with Ensemble Diversity for Robust Learning in Neural Networkscited by 11
  38. 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.