A Comparative Study of Efficient Neural Architectures for Facial Expression Recognition
Abstract
We study facial expression recognition (FER) under the twin constraints of low-resolution inputs and on-device inference. We benchmark compact convolutional baselines—ResNet-50/152—and an attentionenhanced ResNet-50 with squeeze-and-excitation modules and class re-weighting. We also adopt a lightweight transformer, Iwin-T, that interleaves windowed selfattention with depthwise separable convolution to balance global context modeling and local inductive bias under limited computational resources. Using classweighted cross-entropy on FER2013 with an 8:1:1 train–validation–test split, Iwin-T attains 68.09% Top1 accuracy, surpassing ResNet-50 (63.22%), ResNet152 (66.60%), and the attention augmented ResNet50 (67.19%). Beyond raw accuracy, we analyze training dynamics including loss/accuracy oscillations and training–validation divergence, and identify scheduling choices that improve stability under tight memory and compute budgets. Our findings suggest a practical guideline for edge-oriented FER: (i) a well-tuned ResNet-50 remains a robust default choice for stable deployment; (ii) channel attention and class re-weighting provide simple yet effective accuracy gains; (iii) when optimization can be carefully stabilized, Iwin-T delivers the best accuracy–efficiency trade-off for lowresolution FER tasks.
References
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016.
- Jie Hu, Li Shen, and Gang Sun. Squeeze-andexcitation networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7132–7141, 2018.
- Simin Huo and Ning Li. Iwin transformer: Hierarchical vision transformer using interleaved windows, 2025.
- Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 10012–10022, 2021.
- Ian J. Goodfellow et al. Challenges in representationlearning: A report on three machine learning contests, 2013.
- Bin Li and Dimas Lima. Facial expression recognition via resnet-50. International Journal of CognitiveComputing in Engineering, 2: 57–64, 2021.
- Surya Petluru and Pradeep Singh. Transfer learningbased facial expression recognition with modifiedresnet50, 2022.
- Ryan Satria Wijaya et al. Comparative study ofyolov5, yolov7 and yolov8 for robust outdoor detection.Journal of Applied Electrical Engineering, 8(1): 37–43, 2024.
- Andrew Howard et al. Searching for mobilenetv3, 2019.
- Danyang Tu, Xiongkuo Min, Huiyu Duan, GuodongGuo, Guangtao Zhai, and Wei Shen. Iwin: Humanobject interaction detection via transformer with irregular windows, 2022.
- Daixin Li, Hai Nan, and Kai Zhao. Revolutionizingface recognition: Leveraging frformer and swin transformer. In Proceedings of the International Conferenceon Computer Information and Big Data Applications(ICCIBA), pages 581–589, 2024.
- Dazhi Yao and Yunxue Shao. A data efficient transformer based on swin transformer. The Visual Computer, 40(4): 2589–2598, 2023.
- François Chollet. Xception: Deep learning with depthwise separable convolutions. In Proceedings of theIEEE Conference on Computer Vision and PatternRecognition (CVPR), pages 1800–1807, 2017.
- Nitish Shirish Keskar et al. On large-batch training fordeep learning: Generalization gap and sharp minima, 2017.
- Simon S. Du et al. Gradient descent learns one-hiddenlayer cnn: Don't be afraid of spurious local minima, 2018.