arXiv:2610.31140cs.CVOct 2026

Manuscript Offprint

arXiv:2610.31140

GM-GReFEL: Geometry-Guided Spatiotemporal State-Space Learning for Robust Dynamic Facial Expression Recognition

Yudhistira Arditya Pratama, Yi-Zeng Hsieh

Yudhistira Arditya Pratama and Yi-Zeng Hsieh, Senior Member, IEEE

Abstract—Recognizing facial expressions in unconstrained video suffers from two coupled problems: self-attention grows quadratically in cost with clip length, and crowdsourced labels are noisy. We present GM-GReFEL, a spatiotemporal state-space network with a geometry-aware decision stage. Its Modulated GroupMamba backbone replaces a spatiotemporal Vision Transformer. Six channel groups are scanned separately, four over the frame plane and two over time, so the cost grows linearly with sequence length ( O(N)\mathcal{O}(N)); after each layer, a Channel Affinity Modulation gate mixes the groups again. On top of the backbone, a GReFEL reliability module turns the normalized entropy of each prediction into a mixing weight between the classifier output and a vote from trainable geometric anchors, so that facial geometry counts for more when the network is unsure. The model is initialized by static-to-dynamic weight transfer and trained with a Triple Loss. In five-fold cross-validation, the best fold scores 66.57%/76.46% UAR/WAR on DFEW, 0.3 points or less below the strongest compared method, and 45.66%/62.27% on MAFW, ahead of all compared methods; on FERV39k the mean over five splits, 42.30%/52.66%, is competitive. The five-fold means are 64.07%/74.54% on DFEW, on par with recent large pre-trained models, and 38.90%/54.37% on MAFW, below the best of them. A paired t-test on DFEW indicates a modest benefit of temporal modeling (+1.61 UAR points, one-sided p = 0.031). Attention stays on plausible facial regions, and latency is close to a ViT-B/16 baseline (47.4 vs. 46.8 ms per clip). Code: https://github.com/ardiytama/GroupMamba-DFER.

Index Terms—Video-based emotion recognition, selective state-space model, GroupMamba, landmark-based reliability, entropy calibration, cross-validation, affective video analysis.

I. INTRODUCTION

HUMAN emotion unfolds over time: a spontaneous smile builds from a neutral baseline, peaks, and relaxes, while a flash of disgust may last only a few frames. Static facial expression recognition (SFER) on cropped single frames [16] discards this temporal structure, which is why dynamic facial expression recognition (DFER) analyzes continuous video instead. Large in-the-wild benchmarks such as FERV39k [1], DFEW [2], and MAFW [3] have made the task considerably harder by adding unconstrained illumination, camera motion, and occlusion.

Two obstacles remain largely unresolved. The first is computational. Spatiotemporal Vision Transformers [4], [5] link distant frames directly, but self-attention scales as O(N2)\mathcal{O}(N^{2}) in the number of tokens N, forcing a trade-off between clip length, spatial resolution, and GPU memory. Selective state-space models such as Mamba [6] match the long-range capacity of attention at O(N)\mathcal{O}(N) cost and have been adapted to images [7], [8] and video [9], but not around the geometric priors specific to facial expression. The second obstacle is label noise. Crowdsourced annotators frequently disagree on ambiguous or transitional expressions [11], [12], and a network trained with plain cross-entropy absorbs this noise, producing the well-documented bias toward majority classes such as “Happy” and “Neutral” [26], [27].

We argue that the two problems should be solved jointly: an efficient backbone without a noise-robust decision layer still overfits corrupted labels, while a robust decision layer on a quadratic backbone still cannot observe enough of the clip. GM-GReFEL couples a linear-complexity spatiotemporal state-space engine with a reliability mechanism grounded in facial geometry. Our contributions are as follows.

• Modulated GroupMamba engine. Each layer partitions the channels into six groups, scans four of them across the frame and two across time with a Visual Single Selective Scan, and merges them again through a Channel Affinity Modulation gate. Texture and motion thus get separate pathways while the cost of the extractor stays linear in N.

• Entropy-guided geometric reliability. We carry GReFEL [13] over from images to video. How uncertain a prediction is, measured by its normalized entropy, decides per sample how much the output relies on the classifier and how much on a cosine-similarity vote against trainable class anchors; under occlusion, blur, or ambiguity the anchors dominate.

• Static-to-Dynamic transfer and Triple Loss. Spatial weights and anchors learned on still images are inflated into the video model, the temporal parameters start close to zero, and two extra loss terms (anchor orthogonality and center loss) are meant to stop the anchors from collapsing.

• Comprehensive and transparent evaluation. On its best fold, GM-GReFEL gives the highest UAR and WAR among all compared methods on MAFW and comes within 0.3 points of the strongest method, S4D, on DFEW. We report the five-fold mean next to every best-fold figure: it is comparable to recent pre-trained models

Y. A. Pratama and Y.-Z. Hsieh are with the Department of Electrical Engineering, National Taiwan University of Science and Technology, Taipei 106335, Taiwan (e-mail: M11307808@mail.ntust.edu.tw; yzhsieh@mail.ntust.edu.tw). Corresponding author: Yi-Zeng Hsieh.

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

on DFEW and lower on MAFW, and the FERV39k result is competitive. The evaluation is supported by a paired t-test on DFEW, component and hyperparameter ablations, Grad-CAM and t-SNE analyses, and a compute comparison against a ViT-B/16 baseline.

References (45)