Understanding Generalization through Decision Pattern Shift

Huiqi Deng, Yibo Li, Quanshi Zhang, Peng Zhang, Hongbin Pei, Xia Hu

Abstract

Understanding why deep neural networks (DNNs) fail to generalize to unseen samples remains a long-standing challenge. Existing studies mainly examine changes in externally observable factors such as data, representations, or outputs, yet offer limited insight into how a model’s decision evidence evolves from training to test. To address this gap, we introduce **Decision Pattern Shift (DPS)**, a new perspective that examines generalization through the stability of internal decision patterns and quantifies their deviations from those learned during training. Specifically, we represent each sample’s decision pattern as a GradCAM-based channel-contribution vector, which captures how different feature channels collectively support a prediction, and propose the DPS metric to measure its discrepancy from the class-average pattern. Empirical analyses across multiple datasets and architectures show that, (i) decision patterns form a highly structured, class-consistent space with strong intra-class cohesion and low inter-class confusion, enabling quantitative analysis of channel-wise decision evidence; (ii) DPS exhibits a strong linear correlation with the generalization gap in most settings, linking generalization degradation to shifts in decision evidence; (iii) the DPS spectrum reveals distinct distributional patterns across diverse generalization scenarios (covering ideal generalization, in-distribution degradation, domain shift, out-of-distribution, and shortcut learning), providing a unified explanation of their failure modes. These findings provide new insights into model generalization and open up new possibilities for failure-mode diagnosis and channel-level defect localization.
BibTeX
@inproceedings{deng2026understanding,
  author = {Huiqi Deng and Yibo Li and Quanshi Zhang and Peng Zhang and Hongbin Pei and Xia Hu},
  title = {{Understanding Generalization through Decision Pattern Shift}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=bNwHDu1zwM},
}
Figure