Papers › MAE-DFER: Efficient Masked Autoencoder for Self-supervised Dynamic Facial Expression...

MAE-DFER: Efficient Masked Autoencoder for Self-supervised Dynamic Facial Expression Recognition

5 Jul 2023arXiv:2307.02227archive 2025-07-28

Licai Sun, Zheng Lian, Bin Liu, JianHua Tao

Dynamic facial expression recognition (DFER) is essential to the development of intelligent and empathetic machines. Prior efforts in this field mainly fall into supervised learning paradigm, which is severely restricted by the limited labeled data in existing datasets. Inspired by recent unprecedented success of masked autoencoders (e.g., VideoMAE), this paper proposes MAE-DFER, a novel self-supervised method which leverages large-scale self-supervised pre-training on abundant unlabeled data to largely advance the development of DFER. Since the vanilla Vision Transformer (ViT) employed in VideoMAE requires substantial computation during fine-tuning, MAE-DFER develops an efficient local-global interaction Transformer (LGI-Former) as the encoder. Moreover, in addition to the standalone appearance content reconstruction in VideoMAE, MAE-DFER also introduces explicit temporal facial motion modeling to encourage LGI-Former to excavate both static appearance and dynamic motion information. Extensive experiments on six datasets show that MAE-DFER consistently outperforms state-of-the-art supervised methods by significant margins (e.g., +6.30\% UAR on DFEW and +8.34\% UAR on MAFW), verifying that it can learn powerful dynamic facial representations via large-scale self-supervised pre-training. Besides, it has comparable or even better performance than VideoMAE, while largely reducing the computational cost (about 38\% FLOPs). We believe MAE-DFER has paved a new way for the advancement of DFER and can inspire more relevant research in this field and even other related tasks. Codes and models are publicly available at https://github.com/sunlicai/MAE-DFER.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2307.02227")

Code

Syntology Ran 9 of 14 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 7 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

sunlicai/mae-dfer officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 9 ran; 1 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
7ran
5unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from sunlicai/mae-dfer. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

crop_clip sunlicai/mae-dfer/functional.py official repository ran MIT (permissive) · bc39b8ed5fefa7eb · report
get_num_layer_for_avit sunlicai/mae-dfer/optim_factory.py official repository ran fingerprinted MIT (permissive) · 220573d3a318e31b · report
get_num_layer_for_vit sunlicai/mae-dfer/optim_factory.py official repository ran fingerprinted MIT (permissive) · a3448702d6025ce6 · report
get_resize_sizes sunlicai/mae-dfer/functional.py official repository ran MIT (permissive) · 2b53e457d5632b4e · report
get_sinusoid_encoding_table sunlicai/mae-dfer/modeling_finetune.py official repository ran · honoured contract MIT (permissive) · 9b2250a3d13ed688 · report
mixup_target sunlicai/mae-dfer/mixup.py official repository ran MIT (permissive) · 8733e0d87f232d11 · report
one_hot sunlicai/mae-dfer/mixup.py official repository ran · our draft was wrong MIT (permissive) · 4728dc2025227bba · report
rand_bbox sunlicai/mae-dfer/mixup.py official repository ran MIT (permissive) · 3913c620f6926f42 · report
resize_clip sunlicai/mae-dfer/functional.py official repository ran MIT (permissive) · 981936c73d3cdd12 · report
get_loss_scale_for_deepspeed sunlicai/mae-dfer/engine_for_finetuning.py official repository unverified MIT (permissive) · 29416043c7035e7c · report
get_model sunlicai/mae-dfer/run_mae_pretraining.py official repository unverified MIT (permissive) · cbc7a2132a7cd33f · report
get_parameter_groups sunlicai/mae-dfer/optim_factory.py official repository unverified MIT (permissive) · 0ef0019514eaaa09 · report
tensor_normalize sunlicai/mae-dfer/kinetics.py official repository unverified MIT (permissive) · 14b3b13b2e7ee844 · report
train_class_batch sunlicai/mae-dfer/engine_for_finetuning.py official repository unverified MIT (permissive) · c7976ea27edc377a · report

Tasks

Dynamic Facial Expression RecognitionFacial Expression Recognition

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformerVision Transformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections