Papers › General Facial Representation Learning in a Visual-Linguistic Manner

General Facial Representation Learning in a Visual-Linguistic Manner

6 Dec 2021CVPR 2022 1arXiv:2112.03109archive 2025-07-28

Yinglin Zheng, Hao Yang, Ting Zhang, Jianmin Bao, Dongdong Chen, Yangyu Huang, Lu Yuan, Dong Chen, Ming Zeng, Fang Wen

How to learn a universal facial representation that boosts all face analysis tasks? This paper takes one step toward this goal. In this paper, we study the transfer performance of pre-trained models on face analysis tasks and introduce a framework, called FaRL, for general Facial Representation Learning in a visual-linguistic manner. On one hand, the framework involves a contrastive loss to learn high-level semantic meaning from image-text pairs. On the other hand, we propose exploring low-level information simultaneously to further enhance the face representation, by adding a masked image modeling. We perform pre-training on LAION-FACE, a dataset containing large amount of face image-text pairs, and evaluate the representation capability on multiple downstream tasks. We show that FaRL achieves better transfer performance compared with previous pre-trained models. We also verify its superiority in the low-data regime. More importantly, our model surpasses the state-of-the-art methods on face analysis tasks including face parsing and face alignment.

PaperPDFConference PDFCodeCode 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="2112.03109")

Code

Syntology Ran 1 of 5 code samples harvested from 2 repositories linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · honoured contract.

By repository: official repository: 4 samples from 1 repository, 0 ran; community (archive-listed): 1 sample from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

FacePerceiver/FaRL 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

5 samples harvested; 1 ran; 1 honoured the contract we drafted; 4 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
4unverified

Licence: 4 of the 5 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

denormalize_points FacePerceiver/FaRL/farl/network/geometry.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 339ad1e042f08ab4 · report
load_checkpoint FacePerceiver/FaRL/farl/network/common.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 0e35c1ec061b3bba · report
normalize_points FacePerceiver/FaRL/farl/network/geometry.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 05bb69e5ecc10ba7 · report
points2heatmap FacePerceiver/FaRL/farl/network/geometry.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · dbd98ec960ae58b3 · report
extract_face_mask willyfh/farl-face-segmentation/face_segmentation.py community (archive-listed) ran · honoured contract MIT (permissive) · 53c56f01948d23d6 · report

Tasks

Face AlignmentFace ParsingRepresentation Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Face Alignment 300W FaRL-B (epoch 64) NME_inter-ocular (%, Challenge) 4.42 #3 of 48 Archive leaderboard report
Face Alignment 300W FaRL-B (epoch 64) NME_inter-ocular (%, Common) 2.50 #3 of 48 Archive leaderboard report
Face Alignment 300W FaRL-B (epoch 64) NME_inter-ocular (%, Full) 2.88 #3 of 48 Archive leaderboard report
Face Alignment 300W FaRL-B (epoch 64) NME_inter-pupil (%, Challenge) 6.38 #3 of 48 Archive leaderboard report
Face Alignment 300W FaRL-B (epoch 64) NME_inter-pupil (%, Common) 3.46 #3 of 48 Archive leaderboard report
Face Alignment 300W FaRL-B (epoch 64) NME_inter-pupil (%, Full) 4.05 #3 of 48 Archive leaderboard report
Face Alignment 300W FaRL-B (epoch 16) NME_inter-ocular (%, Challenge) 4.45 #6 of 48 Archive leaderboard report
Face Alignment 300W FaRL-B (epoch 16) NME_inter-ocular (%, Common) 2.56 #6 of 48 Archive leaderboard report
Face Alignment 300W FaRL-B (epoch 16) NME_inter-ocular (%, Full) 2.93 #6 of 48 Archive leaderboard report
Face Alignment 300W FaRL-B (epoch 16) NME_inter-pupil (%, Challenge) 6.42 #6 of 48 Archive leaderboard report
Face Alignment 300W FaRL-B (epoch 16) NME_inter-pupil (%, Common) 3.53 #6 of 48 Archive leaderboard report
Face Alignment 300W FaRL-B (epoch 16) NME_inter-pupil (%, Full) 4.11 #6 of 48 Archive leaderboard report
Face Alignment AFLW-19 FaRL-B (epoch 16) AUC_box@0.07 (%, Full) 81.3 #2 of 23 Archive leaderboard report
Face Alignment AFLW-19 FaRL-B (epoch 16) NME_box (%, Full) 1.334 #2 of 23 Archive leaderboard report
Face Alignment AFLW-19 FaRL-B (epoch 16) NME_diag (%, Frontal) 0.821 #2 of 23 Archive leaderboard report
Face Alignment AFLW-19 FaRL-B (epoch 16) NME_diag (%, Full) 0.943 #2 of 23 Archive leaderboard report
Face Alignment WFW (Extra Data) FaRL-B (epoch 16) AUC@10 (inter-ocular) 61.16 #2 of 11 Archive leaderboard report
Face Alignment WFW (Extra Data) FaRL-B (epoch 16) FR@10 (inter-ocular) 1.76 #2 of 11 Archive leaderboard report
Face Alignment WFW (Extra Data) FaRL-B (epoch 16) NME (inter-ocular) 3.96 #2 of 11 Archive leaderboard report
Face Parsing CelebAMask-HQ FaRL-B Mean F1 89.56 #1 of 7 Archive leaderboard report
Face Parsing LaPa FaRL-B Mean F1 93.88 #1 of 11 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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