Reflective-net: learning from explanations

Johannes Schneider, Michalis Vlachos

Abstract

Current deep learning models primarily operate through a single forward pass, analogous to human "fast thinking." This paper introduces Reflective-net, an architecture that implements a "self-reflection" loop. By utilizing its own explanations—generated via a modified multi-channel GradCAM—as additional input features, the model can deliberate on its initial decisions. Experimental results across standard benchmarks like CIFAR and TinyImageNet demonstrate that this reflective process significantly boosts classification accuracy and improves training efficiency.

Introduction

In Thinking, Fast and Slow, Daniel Kahneman distinguishes between System 1 (fast, intuitive) and System 2 (slow, deliberate) cognitive processes. While modern deep neural networks excel at System 1 tasks, they lack the capacity for System 2 reflection. Explainable AI (XAI) tools like GradCAM are typically used for human interpretation rather than model improvement. Reflective-net bridges this gap by allowing a model to "mine" its own explanations to refine its internal feature representations and final predictions.

Methods

Reflective-net employs a two-step inference process designed to mimic deliberate reasoning.

The Reflective Architecture

The process begins with a "Fast Pass" where a standard classifier ($C_O$) generates an initial prediction. Following this, the system generates a "Reflection"—a multi-channel semantic explanation ($R^c$) for a specific class. Unlike standard GradCAM heatmaps, which are single-channel and often lose spatial detail, this modified approach preserves richer information from intermediate layers. Finally, the original input image and this multi-channel explanation are concatenated and processed by a "Reflective-Net" ($C_R$) to produce the final output.

Reflective-net architecture overview showing the two-step inference process.

Technical Implementation

A key innovation is the use of multi-channel explanations. By grouping feature maps into $d$ channels (e.g., $d=32$), the model gains access to higher-level semantic concepts like "wheels" or "eyes" rather than simple pixel importance. As shown in the detailed architecture, these explanation channels are integrated into the network by appending them to intermediate convolutional layers.

Detailed implementation of Reflective-net showing how the 32-channel explanation is appended to internal convolutional layers.

Training Strategy

To prevent the model from over-relying on the explanation, the authors use "What-If" training. During this phase, the model is presented with explanations for various classes—correct, predicted, or random. This forces the network to distinguish between supportive and misleading evidence, acting as a powerful regularizer.

Key Results and Insights

Reflective-net was evaluated on several benchmarks, including CIFAR-10/100, SVHN, and TinyImageNet, using VGG and ResNet backbones.

  • Accuracy Improvements: On CIFAR-100, Reflective-net achieved a 2.6% improvement over the baseline. On the more complex TinyImageNet, it saw a 2.3% gain.
  • Efficiency: The reflective loop often leads to faster convergence, suggesting that explanations provide a "shortcut" for the model to learn meaningful features.
  • The Oracle Potential: When provided with an explanation for the ground-truth class at test time (an "oracle" scenario), accuracy on CIFAR-100 jumped by 15.5%. This indicates significant untapped potential in guiding model attention.
  • Semantic Depth: The study found that increasing the "depth" ($d$) of the explanation is crucial; 1-channel heatmaps provided significantly less benefit than multi-channel semantic maps.

Conclusion

Reflective-net demonstrates that models can benefit from their own explanations. By incorporating a reflection loop, deep learning systems can move closer to System 2 reasoning. While the current implementation introduces computational overhead due to the required backward pass for explanation generation, future work exploring attention mechanisms and applications in NLP could further optimize and expand the reach of reflective learning.

Summary updated

BibTeX
@article{schneider2024reflective,
  author = {Johannes Schneider and Michalis Vlachos},
  title = {{Reflective-net: learning from explanations}},
  journal = {Data Min. Knowl. Discov.},
  year = {2024},
  doi = {10.1007/s10618-023-00920-0},
}
Figure