Reweighting Framewise Attention in Video Transformers for Facial Expression Understanding
About
Understanding facial expressions in videos requires modeling subtle and localized facial dynamics under unconstrained conditions. Although recent Vision Transformer (ViT)-based video models have shown strong performance through large-scale self-supervised pretraining, their attention mechanisms often emphasize dominant global motions and coarse temporal dynamics, limiting sensitivity to fine-grained facial variations. To address this limitation, we propose MiRA (Marginal-induced Attention Redistribution), a plug-in frame-marginal attention redistribution framework for ViT backbones that enhances spatio-temporal selectivity toward subtle facial dynamics without introducing additional trainable parameters. MiRA derives frame-level confidence and intra-frame concentration statistics from self-attention maps to estimate frame-wise marginal importance and redistribute attention toward spatiotemporally localized facial cues. We first introduce a principled exact mode based on post-softmax attention redistribution. To further improve efficiency, we propose flashLite mode, a lightweight pre-softmax approximation that integrates frame-marginal redistribution into FlashAttention kernels while preserving the effectiveness of the exact formulation. Experimental results on challenging Facial Expression Recognition (FER) benchmarks demonstrate consistent improvements over strong ViT baselines.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Dynamic Facial Expression Recognition | DFEW (5-fold cross-val) | UAR68.25 | 63 | |
| Dynamic Facial Expression Recognition | FERV39k | UAR45.12 | 59 | |
| Facial Expression Recognition | MAFW (5-fold cross-validation) | UAR48.22 | 17 | |
| Facial Expression Recognition | DFEW (fold-1) | UAR63.88 | 7 | |
| Facial Expression Recognition | MAFW (fold-1) | UAR39.67 | 7 | |
| Micro-facial Expression Recognition | SAMM | Top-1 Accuracy73.29 | 6 | |
| Micro-facial Expression Recognition | MMEW | Top-1 Accuracy31.48 | 6 |