mlsanityData to 14 Oct 2026

Focus on Likely Classes for Test-Time Prediction

arXiv 2505.03819 ↗First posted 2 May 2025cs.LG cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

We ask: Can focusing on likely classes of a single, in-domain sample improve accuracy? Prior work argued "no", we answer "yes" on average. Standard entropy minimization yields largest gains, and we further dissect why by looking at its two core mechanisms: increasing likely and decreasing unlikely class predictions. Simply maximizing logits of the two most likely classes explains most of its benefits and, in some cases, even outperforms entropy minimization. Thus, decreasing classes is a secondary concern. Our controlled experiment and theory investigate the most puzzling case, why simply optimizing the logits of the two most likely classes leads to accuracy gains. Our small scale networks suggest that the degree of uncertainty of a prediction, followed by model choice, and to a lesser extent dataset choice moderate the success chances of the optimization. We show that the true class tends to have larger gradients independent of whether the prediction is correct or not. Our theory thoroughly investigates one of multiple possible explanations from the angle of shared features. Our evaluation focuses on 26 large language models and 12 text datasets, and 18 image recognition models trained on ImageNet. It demonstrates gains of 0.6 percent on average for entropy minimization on uncertain samples using no extra data aside from the given test sample using a fixed learning rate. We also suggest gradient-ray ensembling. When traversing input/embedding space by applying the same gradient with differing learning rates and aggregating probabilities for the same sample further improves accuracy significantly to 0.75 percent relying on a coarse range for learning rates, thus improving accuracy and eliminating the need to find a precise learning rate at the expense of computation.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 46 of its 64 references that are in the map. First posted on arXiv 2 May 2025.

Builds on

46 of 64 references.

References · 46

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  3. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
  4. 2013Intriguing properties of neural networkscited by 5,155
  5. 2017On Calibration of Modern Neural Networkscited by 4,960
  6. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
  7. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  8. 2016Pointer Sentinel Mixture Modelscited by 3,096
  9. 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,621
  10. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
  11. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
  12. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
34 more
  1. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  2. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
  3. 2018Reconciling modern machine learning practice and the bias-variance trade-offcited by 927
  4. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
  5. 2019Deep Double Descent: Where Bigger Models and More Data Hurtcited by 672
  6. 2018Born Again Neural Networkscited by 546
  7. 2022Continual Test-Time Domain Adaptationcited by 525
  8. 2023Towards Stable Test-Time Adaptation in Dynamic Wild Worldcited by 415
  9. 2014Understanding Deep Image Representations by Inverting Themcited by 403
  10. 2022Decoupled Knowledge Distillationcited by 388
  11. 2022Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Modelscited by 382
  12. 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 377
  13. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
  14. 2023A Comprehensive Survey on Test-Time Adaptation under Distribution Shiftscited by 359
  15. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 355
  16. 2023Function Vectors in Large Language Modelscited by 308
  17. 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 161
  18. 2024Efficient Test-Time Adaptation of Vision-Language Modelscited by 141
  19. 2024Evaluation of OpenAI o1: Opportunities and Challenges of AGIcited by 127
  20. 2024Entropy is not Enough for Test-Time Adaptation: From the Perspective of Disentangled Factorscited by 106
  21. 2024Stable LM 2 1.6B Technical Reportcited by 90
  22. 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 88
  23. 2020Self-training Avoids Using Spurious Features Under Domain Shiftcited by 69
  24. 2021Test-Time Adaptation to Distribution Shift by Confidence Maximization and Input Transformationcited by 68
  25. 2024Calibrating Language Models with Adaptive Temperature Scalingcited by 58
  26. 2018Classification Uncertainty of Deep Neural Networks Based on Gradient Informationcited by 43
  27. 2023Feature Alignment and Uniformity for Test Time Adaptationcited by 42
  28. 2024Efficiently Learning at Test-Time: Active Fine-Tuning of LLMscited by 42
  29. 2025Generative to Agentic AI: Survey, Conceptualization, and Challengescited by 33
  30. 2020Reflective-Net: Learning from Explanationscited by 13
  31. 2023Test-Time Adaptation Induces Stronger Accuracy and Agreement-on-the-Linecited by 11
  32. 2023ComPile: A Large IR Dataset from Production Sourcescited by 10
  33. 2022Protoformer: Embedding Prototypes for Transformerscited by 6
  34. 2021Reconsidering the Past: Optimizing Hidden States in Language Modelscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.