
DAN
Documents and OCR681 ops7M params
A ResNet-18 facial expression classifier with four attention heads trained to attend to different face regions.
Image classification · 156 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
DAN, the Distract your Attention Network, recognizes facial expressions from face images. It starts from two observations: several expression classes share similar underlying facial appearance, and an expression shows itself through multiple facial regions at once. The authors argue that a model with only a single attention head has difficulty concentrating on various parts of the face at the same time.
The network is divided into three components. The Feature Clustering Network is a residual backbone, ResNet18 in all the paper's experiments, trained with an affinity loss that moves features closer to their class center and pushes the centers of different classes apart. The Multi-head Attention Network contains a few parallel heads, each a spatial attention unit followed by a channel attention unit. The spatial unit uses 1 × 1, 1 × 3, 3 × 1 and 3 × 3 convolution kernels to capture local features at multiple scales. The Attention Fusion Network adds a partition loss that instructs the heads to focus on different regions, then merges the attention feature vectors into one and computes class confidence with a linear layer.
Four attention heads are used throughout the paper's experiments. The paper reports accuracy of 62.09% on AffectNet-8, 65.69% on AffectNet-7, 89.70% on RAF-DB and 53.18% on SFEW 2.0.
Key idea. DAN shows that several attention heads, trained with a partition loss to attend to non-overlapping face regions, recognize expressions better than a single attention module.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{wen2023distractattentionmultiheadcross,
title={Distract Your Attention: Multi-head Cross Attention Network for Facial Expression Recognition},
author={Zhengyao Wen and Wenzhong Lin and Tao Wang and Ge Xu},
year={2023},
eprint={2109.07270},
archivePrefix={arXiv},
primaryClass={cs.CV},
doi={https://doi.org/10.3390/biomimetics8020199},
url={https://arxiv.org/abs/2109.07270},
}