{"about":{"non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","site":"https://codewithpapers.app","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/paper/representation-learning-and-identity","title":"Representation Learning and Identity Adversarial Training for Facial Behavior Understanding","arxiv_id":"2407.11243","date":"2024-07-15","proceeding":null,"authors":["Mang Ning","Albert Ali Salah","Itir Onal Ertugrul"],"abstract":"Facial Action Unit (AU) detection has gained significant attention as it enables the breakdown of complex facial expressions into individual muscle movements. In this paper, we revisit two fundamental factors in AU detection: diverse and large-scale data and subject identity regularization. Motivated by recent advances in foundation models, we highlight the importance of data and introduce Face9M, a diverse dataset comprising 9 million facial images from multiple public sources. Pretraining a masked autoencoder on Face9M yields strong performance in AU detection and facial expression tasks. More importantly, we emphasize that the Identity Adversarial Training (IAT) has not been well explored in AU tasks. To fill this gap, we first show that subject identity in AU datasets creates shortcut learning for the model and leads to sub-optimal solutions to AU predictions. Secondly, we demonstrate that strong IAT regularization is necessary to learn identity-invariant features. Finally, we elucidate the design space of IAT and empirically show that IAT circumvents the identity-based shortcut learning and results in a better solution. Our proposed methods, Facial Masked Autoencoder (FMAE) and IAT, are simple, generic and effective. Remarkably, the proposed FMAE-IAT approach achieves new state-of-the-art F1 scores on BP4D (67.1\\%), BP4D+ (66.8\\%), and DISFA (70.1\\%) databases, significantly outperforming previous work. We release the code and model at https://github.com/forever208/FMAE-IAT.","url_abs":"https://arxiv.org/abs/2407.11243v2","url_pdf":"https://arxiv.org/pdf/2407.11243v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"representation-learning-and-identity","repo_url":"https://github.com/forever208/fmae-iat","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"facial-action-unit-detection","task_name":"Facial Action Unit Detection"},{"task_slug":"facial-expression-recognition","task_name":"Facial Expression Recognition (FER)"},{"task_slug":"representation-learning","task_name":"Representation Learning"}],"methods":[{"method_slug":"attention","method_name":"Attention"},{"method_slug":"softmax","method_name":"Softmax"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/facial-action-unit-detection-on-bp4d","task":"Facial Action Unit Detection","dataset":"BP4D","model":"FMAE-IAT","rank_in_archive_order":1,"of":10,"metrics":{"Average F1":"67.1"},"uses_additional_data":true},{"leaderboard":"/sota/facial-action-unit-detection-on-bp4d","task":"Facial Action Unit Detection","dataset":"BP4D","model":"FMAE","rank_in_archive_order":2,"of":10,"metrics":{"Average F1":"66.6"},"uses_additional_data":true},{"leaderboard":"/sota/facial-action-unit-detection-on-bp4d-1","task":"Facial Action Unit Detection","dataset":"BP4D+","model":"FMAE-IAT","rank_in_archive_order":1,"of":3,"metrics":{"Average F1":"66.8"},"uses_additional_data":true},{"leaderboard":"/sota/facial-action-unit-detection-on-bp4d-1","task":"Facial Action Unit Detection","dataset":"BP4D+","model":"FMAE","rank_in_archive_order":3,"of":3,"metrics":{"Average F1":"66.2"},"uses_additional_data":true},{"leaderboard":"/sota/facial-action-unit-detection-on-disfa","task":"Facial Action Unit Detection","dataset":"DISFA","model":"FMAE_IAT","rank_in_archive_order":2,"of":8,"metrics":{"Average F1":"70.1"},"uses_additional_data":true},{"leaderboard":"/sota/facial-action-unit-detection-on-disfa","task":"Facial Action Unit Detection","dataset":"DISFA","model":"FMAE","rank_in_archive_order":3,"of":8,"metrics":{"Average F1":"68.7"},"uses_additional_data":true},{"leaderboard":"/sota/facial-expression-recognition-on-affectnet","task":"Facial Expression Recognition (FER)","dataset":"AffectNet","model":"FMAE","rank_in_archive_order":3,"of":50,"metrics":{"Accuracy (8 emotion)":"64.79"},"uses_additional_data":true},{"leaderboard":"/sota/facial-expression-recognition-on-raf-db","task":"Facial Expression Recognition (FER)","dataset":"RAF-DB","model":"FMAE","rank_in_archive_order":2,"of":35,"metrics":{"Overall Accuracy":"93.45"},"uses_additional_data":true}],"syntology":{"syntology_url":"https://syntology.ai/paper/2407.11243","atlas_url":"https://app.syntology.ai/?focus=2407.11243","mcp":null,"developers":"https://syntology.ai/developers","held":true,"reason":"arxiv_id_in_atlas","checked_against":{"atlas_ids":549449,"atlas_ids_sha256":"afd72399dafd9906e9062927f70655952385a3d75488558e1f0484e950ab09b7","read_at":"2026-10-05T01:46:21Z"},"agent_calls":[{"tool":"get_citation_path","arguments":{"paper_1":"2407.11243"},"arguments_in":{"paper_2":"another paper's arXiv id or title"},"call":"get_citation_path(paper_1=\"2407.11243\", paper_2=\"…\")"},{"tool":"get_concepts_for_paper","arguments":{"arxiv_id":"2407.11243"},"call":"get_concepts_for_paper(arxiv_id=\"2407.11243\")"}],"by_repo":[{"repo":"forever208/fmae-iat","kind":"official","samples":0,"ran":0,"instrument":0,"unverified":0}],"by_repo_is":"one row per repository in the archive's code links, Syntology's graph links or the samples; samples 0 means no sample is linked to this paper, a statement about Syntology's coverage, not about the repository: with harvested_for_other_papers present, Syntology harvested the repository for that many other papers, and without it, Syntology harvested nothing from it; placed_by_identical_code counts samples whose link records no repository, placed here because identical code was harvested from this repository for another paper; ran counts executions on a synthesized input and instrument counts failures of Syntology's instrument, not of the code"},"code_links_note":null,"arxiv_metadata":null,"syntology_extracted_results":null,"record_sha256":"def8e7fa1055f99be2b117fad624c0cd395e69d80674737292bad3d6efd87b7e","record_changed_at":"2026-09-28","record_changed_at_basis":"first_hashed"}