Fig. 6
From: A swin transformer-based hybrid reconstruction discriminative network for image anomaly detection

Residual attention mechanism for skip connections. The encoder features (left) and decoder features (right) are combined through an attention gate (center). The sigmoid activation generates spatial attention weights, selectively emphasizing encoder feature regions relevant for reconstruction.