Back to paper library
Paper notesarXiv 2025ICCV 2025

LVFace

Grinding to LV3

Original paper

LVFace: Progressive Cluster Optimization for Large Vision Models in Face Recognition

Paper authors

Jinghan You · Shanglin Li · Yuanrui Sun …

Show all 7 authors

Jinghan You · Shanglin Li · Yuanrui Sun · Jiangchuan Wei · Mingyu Guo · Chao Feng · Jiao Ran

Publication
ICCV 2025Conference
First submitted to arXiv
arXiv:2501.13420
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@misc{facerecognitionlvface2025,
  title = {{LVFace: Progressive Cluster Optimization for Large Vision Models in Face Recognition}},
  author = {Jinghan You and Shanglin Li and Yuanrui Sun and Jiangchuan Wei and Mingyu Guo and Chao Feng and Jiao Ran},
  year = {2025},
  eprint = {2501.13420},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.13420}
}
On this page

After the ICCV 2021 Masked Face Recognition challenge (MFR) ended, InsightFace kept the evaluation server running and called it MFR-Ongoing. Anyone could convert a model to ONNX and upload it, the server ran it on a hidden test set, and the results went up on a leaderboard; in February 2025 the server was paused for lack of GPU resources, and the leaderboard froze where it stood.

The loss-function papers that made this board in recent years, UniFace, UniTSFace and TopoFR, all used a 200-layer ResNet (R200) trained on WebFace42M. Tasks like image classification and detection switched heavily to Vision Transformer (ViT) backbones long ago, yet the top of the face recognition board was still convolutional networks.

In December 2024, the top spot on the academic track went to an entry called FaceX, with ByteCV listed as its organization and a ViT-L backbone. That entry is this paper, LVFace, by Jinghan You, Shanglin Li, Yuanrui Sun, Jiangchuan Wei, Mingyu Guo, Chao Feng and Jiao Ran of ByteDance.

The authors' claim is that ViT does poorly on face recognition because of the way it's trained. The CNN-era habit of "one loss from start to finish" converges unstably when moved over to ViT. They split training into three stages, each with its own loss and negative-class setting, and use the similarity between features and class centers to decide when to level up to the next stage.

Defining the Problem

What a face-recognition ViT looks like

LVFace doesn't change the backbone; it's identical to the face ViT that InsightFace released (backbones/vit.py in the official repo is InsightFace's file, with just two lines of license comments added). Walk one face through it:

  1. Input: a face aligned with RetinaFace's five landmarks and cropped to 112×112.
  2. Patches: patch size 9×9, stride 9. 112÷9112\div9 doesn't divide evenly, so the convolution only fits a 12×12 grid, leaving the rightmost and bottom 4 pixels unused, for 144 patches in total.
  3. Projection: each patch is projected to a DD-dimensional vector, plus a learnable position encoding (the paper's Eq. (4)). There's no [CLS] token like the original ViT has.
  4. Transformer: LL layers of self-attention plus feed-forward networks (Eq. (5)). The face version of ViT-L has D=768D=768, 24 layers and 8 attention heads, with ReLU6 in the feed-forward networks.
  5. Output feature: all 144 tokens of the last layer are concatenated into 144×768=110,592144\times768=110{,}592 dimensions and compressed to 512 by "fully connected, BatchNorm, fully connected, BatchNorm" (Eq. (6)); this is the face embedding.

Why no [CLS]? The paper's reason is to keep the spatial information of each facial region. The faces are already aligned, so the left eye is always in about the same place, and concatenating the features of the 144 positions in order preserves "which token came from which part of the face," a design carried over from InsightFace. During training, 5% of the tokens are also randomly masked out (the mask_005 in the config name).

This ViT-L isn't the same size as the original. The original ViT-L is 1024 wide with 16 attention heads; the face version is 768 wide and works out to about 256 million parameters from the official definition, 85 million of which sit in that final fully connected layer over 110,592 dimensions.

Two million class centers

A classification head comes after the backbone. WebFace42M has 2,059,906 people, so the head's weights W=[w1,…,wC]\mathbf W=[\mathbf w_1,\dots,\mathbf w_C] are 2.05 million class centers of 512 dimensions, about 1.05 billion parameters, four times the ViT-L backbone.

LVFace uses the CosFace loss. The feature xi\mathbf x_i and every class center are normalized to unit length, θj\theta_j is the angle between them, and the correct class's logit has a margin mm subtracted before being multiplied by the scale ss:

L=log⁡(1+∑j≠yiescos⁡θjes(cos⁡θyi−m))\mathcal L=\log\left(1+\frac{\sum_{j\neq y_i}e^{s\cos\theta_j}}{e^{s(\cos\theta_{y_i}-m)}}\right)

This is softmax cross-entropy with the numerator and denominator divided through, the form all of the paper's equations use. s=64s=64, m=0.4m=0.4. Take some numbers. If a face's cosine with its own class center is 0.7 (an angle of about 46°), the correct class's logit is 64×(0.7−0.4)=19.264\times(0.7-0.4)=19.2; as soon as some other class center reaches a cosine of 0.4 with it, that logit is 25.6, higher than the correct class. The sum in the equation has 2.05 million terms, and every one of them pushes this face outward.

With a classification head this large, the usual approach is model parallelism, splitting the class centers across the GPUs, and then using Partial FC to sample only some of the negative class centers at each step. InsightFace's official ViT-L training on WebFace42M is exactly CosFace plus Partial FC with a sampling rate of 0.3.

Where ViT gets stuck

The paper's description of the bottleneck mostly cites two earlier works. As LVFace relays them, Zhong and Deng's Face Transformer showed that ViT converges poorly on face recognition and that more data didn't bring a matching improvement; TransFace (ICCV 2023) eased the problem with patch-level data augmentation and hard sample mining. The authors argue that ViT lacks the local inductive bias of convolution and has a high-dimensional feature distribution, so applying losses designed for CNNs, like ArcFace, directly makes the class clusters form unstably and the boundaries converge slowly.

That said, the paper itself includes no curves or failure cases of unstable ViT training; the evidence for the bottleneck comes entirely from citations.

The inspiration comes from large language models. LLM training runs in stages, such as "pre-training, supervised fine-tuning, then continued pre-training," each with a different objective. The authors ask whether face recognition training could also be split into a few stages, each solving just one thing.

Solving the Problem

Three stages

Original Figure 1, in two parts, left and right. (a) Existing Optimization: a semicircle represents the feature space, with two sectors as two classes, and the blue dashed arrow W_j and red dashed arrow W_i are the class centers. Normal samples outside the sectors are labeled Normal cases, and two red-framed faces at the top, labeled Hard cases, point to the border between the two classes, where the color is a gradient, showing a blurred boundary. (b) Progressive Cluster Optimization is split into three semicircles. STEP 1, titled Hard case sub-sampled, has the two hard-case faces at the top faded out; STEP 2, titled Fix cluster centroid, has the two class centers change from dashed to solid arrows; STEP 3, titled Hard case released, has the hard cases reappear, with the sectors narrower and darker. The legend below explains i-th Classifier, Learn/Optimize, Previous Classifier, Optimized Classifier, Previous Cluster Boundary and Optimized Cluster Boundary.
Original Figure 1, You et al., from PDF page 2, arXiv license, scholarly quotation.

This figure is the authors' motivation. Each sector is a class, and the arrows are class centers. The left side, (a), is ordinary all-at-once training, where hard samples (red frames, photos that look like someone else) get stuck between two classes and blur the boundary. The right side, (b), is LVFace's three steps: first minimize the influence of the hard samples so the class centers settle into place, then fix the centers, and only at the end put the hard samples back to tighten the boundary.

Original Figure 2, four circular two-dimensional feature spaces arranged left to right, the last three inside a blue box labeled Progressive Cluster Optimization (PCO). (a) Random Initialize: light blue crosses (positive samples), dark blue crosses (hard positive samples), orange squares (wrong positive samples) and gray Xs (negative samples) are scattered everywhere; the red dot is the class center, and the dashed circle is a very small class boundary. (b) Feature Alignment: the positive samples gather near the red dot, the dashed circle becomes very large, and only some of the negative samples in the outer ring are dark gray (Sampled NS), the rest light gray and labeled Omitted NS (dropped from training). (c) Centroid Stabilization: the dashed circle shrinks, the positive samples are more concentrated, and the hard positives are still at the circle's edge. (d) Boundary Refinement: the outer ring is entirely dark gray negative samples, labeled Full NS, and the dashed circle shrinks to its smallest. Below is the legend, with a few faces illustrating a positive sample, a masked hard positive, a wrong positive and negative samples.
Original Figure 2, You et al., from PDF page 5, arXiv license, scholarly quotation.

This figure draws the same thing from the viewpoint of a single class. Watch how the dashed circle (the class boundary) and the Xs in the outer ring (the negative samples) change: (a) random initialization, with everything mixed together; (b) feature alignment, where only some of the negatives are taken (dark gray), the positives first gather near the center, and the boundary is wide; (c) centroid stabilization, where the boundary starts to tighten; (d) boundary refinement, where all the negatives (Full NS) come in together and the boundary shrinks to its smallest. The authors call the whole process Progressive Cluster Optimization (PCO).

Stage one: only a tenth of the negatives

The Feature Alignment stage starts from random initialization. At each step only some of the negative class centers are sampled, which the paper calls negative class sub-sampling (NCS), Eq. (7):

S=NCS(C,r)=C⋅r,r=0.1S=\mathrm{NCS}(C,r)=C\cdot r,\qquad r=0.1

The loss is still CosFace, except that the denominator sums only over the SS sampled negative classes, Eq. (8):

La=log⁡(1+∑j≠iSescos⁡θjes(cos⁡θi−m))\mathcal L_a=\log\left(1+\frac{\sum_{j\neq i}^{S}e^{s\cos\theta_j}}{e^{s(\cos\theta_i-m)}}\right)

For WebFace42M, each step looks at only about 206K negative class centers, with the other 1.85 million sitting out for now. The correct classes that appear in the batch are always kept, which is how Partial FC works.

The authors give two reasons. First, with millions of classes, each class's positive samples are drowned out by negatives, and the positive signal is hard to learn; second, looking at fewer negatives also reduces the chance that "hard negatives that resemble the positive sample" pull the features off course early on. Partial FC already showed that taking only some of the negatives can train to about the same accuracy, and this step is in fact just Partial FC plus CosFace, with the sampling rate lowered from the 0.3 in InsightFace's ViT-L config to 0.1.

Stage two: steadying the centers with feature averages

By the Centroid Stabilization stage, the features already have basic discriminative power. The authors observe that some hard positive samples are more similar to someone else's class center than to their own, and the gradients they send back pull their own class center wi\mathbf w_i out of place.

Here they borrow the idea of EPL (Empirical Prototype Learning, Fan et al., 2024). The class center wi\mathbf w_i is learned through gradients, and those gradients don't come only from class ii's own samples; samples of other classes also push wi\mathbf w_i when they treat it as a negative. EPL additionally keeps a "feature expectation" ei\mathbf e_i for each class, a moving average of the features that class has seen recently. It's updated only with the class's own samples, directly during the forward pass, without any gradient.

The update rule is the paper's Eqs. (9)(10):

einew=αi eiold+(1−αi) xiαi=σ(cos⁡θie)\begin{aligned} \mathbf e_i^{\text{new}}&=\alpha_i\,\mathbf e_i^{\text{old}}+(1-\alpha_i)\,\mathbf x_i\\ \alpha_i&=\sigma\big(\cos\theta_i^{e}\big) \end{aligned}

θie\theta_i^{e} is the angle between the feature xi\mathbf x_i and ei\mathbf e_i, and σ\sigma is an activation function; LVFace doesn't say which one. Plugging in two common choices:

cos⁡θie\cos\theta_i^eSigmoid 1−αi1-\alpha_iSoftsign 1−αi1-\alpha_i
0.90.2890.526
0.50.3780.667
0.20.4500.833

Computed for this note from Eqs. (9) and (10) of the paper; softsign is the version EPL settled on after its ablation.

1−αi1-\alpha_i is the share the new sample gets in this update. Whichever one is used, as long as σ\sigma is monotonically increasing, a sample less like ei\mathbf e_i actually gets a larger share. EPL explains this by training phase. Early on, the features aren't learned yet and everything is fairly unlike the prototype, so the prototype updates quickly; later the features and prototypes are all close, so the prototype changes slowly. EPL also designs an adaptive margin for the prototype term that varies with similarity, giving low-similarity hard samples a smaller margin, which EPL's authors say suppresses the influence of hard samples; LVFace carried over only the prototype and uses a fixed margin.

With e\mathbf e in place, the loss gains a term, Eq. (11):

Ls=log⁡(1+∑j≠iSescos⁡θjes(cos⁡θi−m1)+∑j≠iSescos⁡θjees(cos⁡θie−m2))\begin{aligned} \mathcal L_s=\log\Bigg(1&+\frac{\sum_{j\neq i}^{S}e^{s\cos\theta_j}}{e^{s(\cos\theta_i-m_1)}}\\ &+\frac{\sum_{j\neq i}^{S}e^{s\cos\theta_j^{e}}}{e^{s(\cos\theta_i^{e}-m_2)}}\Bigg) \end{aligned}

The first term is the original CosFace, with class centers w\mathbf w; the second swaps the class centers for the feature expectations e\mathbf e, with margin m2m_2. The second term's gradient flows only to the features, which amounts to requiring each face to also stay close to its class's recent average look. The negatives are still only the SS sampled ones. The paper gives no values for m1m_1 and m2m_2; the experimental setup only says m=0.4m=0.4.

Stage three: releasing all the negatives

Boundary Refinement switches NCS off; Eq. (12) looks the same as Eq. (11), except that both denominators sum over all CC classes. The authors' reasoning is that stage two has already steadied the positive class centers, so bringing in a large number of negatives at this point only presses each class's boundary inward and tightens the class, without causing convergence problems again.

The cost of using every negative is worth working out. Following InsightFace's convention (the batch size is per GPU, and the class centers are split evenly over 64 GPUs), each GPU holds about 32,186 class centers. With a global batch of 384×64=24,576384\times64=24{,}576, each GPU has to compute 24,576×32,18624{,}576\times32{,}186, about 790 million logits, per step, against only 79 million when sampling 10% (this note's own estimate). The paper's batch shrinks to 128 for the last 60 epochs, which brings this number down to around 260 million. The authors claim the computation saved in the first two stages offsets the extra spent in stage three, so the total training cost is comparable to the usual approach, but they give no numbers.

When to level up: the cosine stage scheduler

How do the three stages switch over? Instead of fixed epoch counts, the authors look at how close the features are to their class centers, using what they call the Cosine Stage Scheduler (CSS), Eq. (13):

s(t)=1∣B(t)∣∑Ii∈B(t)(fθ(Ii)⋅wyi(t)∥fθ(Ii)∥2 ∥wyi(t)∥2)2s^{(t)}=\frac{1}{|\mathcal B^{(t)}|}\sum_{\mathcal I_i\in\mathcal B^{(t)}}\left(\frac{f_\theta(\mathcal I_i)\cdot\mathbf w_{y_i}^{(t)}}{\|f_\theta(\mathcal I_i)\|_2\,\|\mathbf w_{y_i}^{(t)}\|_2}\right)^{2}

That is, the squared cosine between each face in the batch and its own class center, averaged. Once s(t)≥δ1=0.2s^{(t)}\ge\delta_1=0.2, training moves to stage two; at ≥δ2=0.35\ge\delta_2=0.35, to stage three.

How big are these two numbers? At random initialization, the cosine between two random directions in 512-dimensional space is roughly normal with mean 0 and variance 1/5121/512, so s(t)s^{(t)} starts out at only 1/512≈0.0021/512\approx0.002. If every face in the batch had the same cosine, δ1=0.2\delta_1=0.2 would correspond to a cosine of 0.447, an angle of 63.4°, and δ2=0.35\delta_2=0.35 to a cosine of 0.592, an angle of 53.7°.

Squaring and then averaging leans toward the samples that are already well learned. Suppose half the faces have a cosine of 0.6 and the other half 0.2. The average cosine is only 0.4, but s=(0.36+0.04)/2=0.2s=(0.36+0.04)/2=0.2, which just reaches δ1\delta_1. Squaring also scores negative cosines the same as positive ones, though by this point in training the positive samples' cosines are almost all positive.

The paper doesn't say whether s(t)s^{(t)} is a single batch's value or a moving average, nor how the two thresholds were chosen or what happens with other values. Algorithm 1 does spell out the initialization: the backbone fθ∼N(0,0.01)f_\theta\sim\mathcal N(0,0.01) and the class centers W∼U(−1,1)\mathbf W\sim\mathcal U(-1,1).

Training setup

  • Data: WebFace42M (42.5 million images, 2 million people), used only to train the largest model, LVFace-L; the other experiments use Glint360K (17 million images, 360K people).
  • Preprocessing: RetinaFace alignment to 112×112, horizontal flips.
  • Optimization: AdamW with learning rate 10−310^{-3}, β=(0.9,0.999)\beta=(0.9,0.999), weight decay 0.1 and polynomial decay; mixed precision, 64 GPUs.
  • Batch: 384 per batch for the first 60 epochs, 128 for the last 60.
  • Loss: s=64s=64, m=0.4m=0.4.

Side by side with InsightFace's public WebFace42M ViT-L config:

ItemInsightFace ViT-LLVFace-L
LossCosFace, m=0.4m=0.4CosFace, m=0.4m=0.4
Neg. sampling0.3 (throughout)0.1, 0.1, 1
OptimizerAdamW, lr 0.001, wd 0.1Same
Batch384/GPU × 64 GPUs384 → 128, 64 GPUs
Length40 epochs60 + 60 epochs

Compiled from InsightFace's configs/wf42m_pfc03_40epoch_64gpu_vit_l.py and Section 5.2 of the paper.

Apart from PCO itself, the biggest difference between LVFace and InsightFace's baseline config is the training length. The batch schedule the paper describes adds up to 120 epochs, three times InsightFace's config.

Same numbers, two recipes

This paper has three versions on arXiv. The first, from January 2025, was titled "LVFace: Large Vision model for Face Recogniton," and its method had two stages: ArcFace (s=64s=64, m=0.5m=0.5) with negative sampling for the first 40 epochs, then EPL-style class expectations added and sampling switched off for the last 60; there was no CSS and no ablation of any kind. The second version, in March, changed to the current three stages, CosFace and CSS, and added the Glint360K experiments and the ablations; the third version, in August, is largely the same.

The WebFace42M row of results, Mask 93.56, Children 94.31, MR-All 98.49 and IJB-C 97.25/98.06, along with the four numbers for the four ethnic groups, is identical down to the last digit in the first and third versions. On the leaderboard, the same set of numbers carries a submission time of December 9, 2024. (new loss, same numbers) The paper doesn't say which version's recipe trained this row.

Discussion

Test sets and metrics

  • IJB-B/IJB-C: IJB-B has 1,845 people and IJB-C extends it to 3,531, both mixing still photos and video frames. Matching is done per template, a template being a set of photos or frames of one person; the evaluation code first averages the frame features within each video, then sums the pieces and normalizes them into one vector. TAR@FAR is reported; for example, TAR@FAR=10−510^{-5} means first setting the threshold so that only one in a hundred thousand pairs of different people is falsely accepted, and then seeing what fraction of same-person pairs pass.
  • MFR-Ongoing: according to the challenge report, the mask test set has 6,964 people, each with one masked and two unmasked photos, reported at TAR@FAR=10−410^{-4}; the children test set has 14,344 children aged 2 to 16 and 157,280 photos, also at 10−410^{-4}; the multi-racial test set is split into four groups, African, Caucasian, South Asian and East Asian, with 242K people and 1.6 million images in total, reported at the stricter TAR@FAR=10−610^{-6}, and MR-All is the four groups combined. The leaderboard ranks by 0.25×Mask+0.75×MR-All0.25\times\text{Mask}+0.75\times\text{MR-All}.

WebFace42M: first on the leaderboard

MethodMaskChildrenE-AsianMR-All
UniFace92.4393.1190.0197.92
UniTSFace92.8793.5190.7698.16
TopoFR93.9693.5792.8598.13
Partial FC90.88–89.9797.85
LVFace93.5694.3191.0298.49

Compiled from Table 1 of the paper; all trained on WebFace42M, with R200 backbones in the first three rows and ViT-L in the last two; the numbers are MFR-Ongoing TAR (%).

Of the seven MFR sub-items, LVFace wins five. The two it loses both go to TopoFR, masks at 93.56 vs. 93.96 and East Asian at 91.02 vs. 92.85. For the other three ethnic groups (African, Caucasian, South Asian), LVFace scores 98.79, 99.26 and 99.26, all the highest in the table. On IJB-C, LVFace gets 97.25% (10−510^{-5}) and 98.06% (10−410^{-4}); the closest at 10−510^{-5} is Partial FC's 97.23%, and at 10−410^{-4} TopoFR's 98.01% and Partial FC's 98.00%.

The Partial FC row in the table is the ViT-L published in InsightFace's README (sampling rate 0.3, trained for 40 epochs), MR-All 97.85 and IJB-C 97.23/98.00, the numbers matching exactly. With the same backbone and the same data, LVFace gains 0.64 on MR-All and only 0.02 and 0.06 at the two IJB-C thresholds. Considering that it trains three times as long, this small IJB-C margin is hard to credit to PCO.

On the leaderboard itself, according to the screenshot in the official repo, LVFace's weighted score is 0.25×93.560+0.75×98.490=97.2580.25\times93.560+0.75\times98.490=97.258; second place is an entry submitted in July 2023 with a blank organization field, Mask 93.036 and MR-All 98.632, weighted 97.233, only 0.025 behind. That entry's MR-All is higher than LVFace's, so the paper's claim of "securing the highest overall MR-All score" only holds within the paper's own comparison table.

Glint360K: same-backbone comparison

The smaller-scale experiments are all on Glint360K, with CNNs and ViTs of matching GFLOPs grouped together. The table below lists only the B and L groups:

MethodIJB-C 10−510^{-5}IJB-C 10−410^{-4}IJB-B 10−410^{-4}
ArcFace R10095.3896.8995.69
AdaFace R10096.2497.1995.87
TransFace-B96.1897.45–
LVFace-B97.0097.7096.51
ArcFace R20095.7197.2095.89
AdaFace R20095.9697.3396.12
TransFace-L96.2997.61–
LVFace-L97.0297.6696.51

Compiled from Table 2 of the paper; TAR@FAR (%). R100 and ViT-B are about 11 to 12 GFLOPs, R200 and ViT-L about 23 to 25 GFLOPs.

Within this table, LVFace is the highest in all six columns of the two sizes; the stricter 10−510^{-5} opens the widest margins, 0.82 and 0.73 over TransFace. The smaller S size has an exception, where TransFace-S's 97.33 at IJB-C 10−410^{-4} is above LVFace-S's 97.31; at the L size, TransFace-L's 89.71 at 10−610^{-6} is also above LVFace-L's 89.51.

This table is missing a row. The Glint360K numbers for ArcFace and AdaFace in the six R50, R100 and R200 rows (both IJB-C thresholds and IJB-B) are identical, digit for digit, to the same block of Table 2 in the TopoFR paper; that block ends each group with a TopoFR row, which didn't make the trip over to LVFace. (TopoFR is right there in LVFace's own Table 1.) Adding it back:

MethodIJB-C 10−510^{-5}IJB-C 10−410^{-4}IJB-B 10−410^{-4}
TopoFR R10096.5797.6096.34
LVFace-B97.0097.7096.51
TopoFR R20096.7197.8496.56
LVFace-L97.0297.6696.51

TopoFR numbers from Table 2 of the TopoFR paper (arXiv 2410.10587v2); LVFace numbers from Table 2 of the paper.

In the B group, LVFace wins all three columns. In the L group, LVFace wins only at 10−510^{-5} and loses to TopoFR R200 at 10−410^{-4} and on IJB-B. The paper's claim of state-of-the-art performance "across all backbone scales" stops holding once this row is added back.

Scale: Glint360K can't carry ViT-L

ModelIJB-C 10−510^{-5}IJB-C 10−410^{-4}IJB-B 10−410^{-4}
LVFace-T95.6396.6795.41
LVFace-S96.5297.3196.14
LVFace-B97.0097.7096.51
LVFace-L97.0297.6696.51
LVFace-L (W42M)97.2598.0696.74

Compiled from Table 3 of the paper; the first four rows are trained on Glint360K, and W42M means WebFace42M.

From T to B the scores rise steadily, then stall from B to L, with 10−410^{-4} even dipping slightly, and at 10−610^{-6} B's 90.06 is also above L's 89.51. Only when the same ViT-L moves to WebFace42M, with 2.5 times the images and 5.7 times the people, do all three columns climb again. The authors read this as Glint360K's scale holding back large models, which points the same way as the original ViT paper's observation that ViT only beats CNNs given enough data.

Ablations: how much each part of PCO contributes

The cleanest comparison swaps the base loss, with ViT-B on Glint360K and everything else held equal:

MethodIJB-C 10−510^{-5}IJB-C 10−410^{-4}IJB-B 10−410^{-4}
ArcFace96.1197.1296.01
ArcFace + PCO96.6897.4496.40
CosFace96.1597.2895.99
CosFace + PCO97.0097.7096.51

Compiled from Table 4 of the paper.

PCO adds 0.57, 0.32 and 0.39 percentage points to ArcFace and 0.85, 0.42 and 0.52 to CosFace. It works with both base losses, and CosFace benefits more, which is why CosFace was picked afterward. Every cell is a single training run, and the paper gives no variance from repeated experiments.

Next, the stages added one at a time, LVFace-L on WebFace42M, measured on MFR:

MethodMaskChildE-AsianAll
ViT-L89.5091.5387.7897.27
Stage 189.9991.7987.9797.52
Stage 291.7292.9989.1398.22
Stage 393.5694.3191.0298.49

Compiled from Table 5 of the paper; stage 3 is the complete LVFace.

MR-All goes from 97.27 to 98.49, with the three stages contributing 0.25, 0.70 and 0.27; the mask score gains 4.06 in total. Stage two contributes the most, and that's the step that adds the feature expectations.

This table starts from a low baseline. The "ViT-L" baseline here has an MR-All of only 97.27, 0.58 below the same ViT-L that InsightFace published (97.85, the Partial FC row in the WebFace42M comparison above); doing only stage one (the equivalent of CosFace plus Partial FC at 10%) gives 97.52, still below InsightFace's public version. The paper doesn't say what loss this baseline used or how long it trained. Taking the public version as the starting point, PCO's gain on MR-All is 0.64, about half of what this table shows.

Plenty of ablations are missing too: the sampling rate rr, the two thresholds δ1\delta_1 and δ2\delta_2, the two margins m1m_1 and m2m_2, the activation function σ\sigma, and the effect of shrinking the batch from 384 to 128 all go untested. What the paper uses to show each stage's effect is a t-SNE sketch of 8 identities. The abstract and conclusion mention LVFace's "compatibility with mainstream VLMs and LLMs," and nothing in the paper measures that either.

Official code and weights

The official repo bytedance/LVFace was released in August 2025, and the README states that it is the "official PyTorch implementation for the inference of LVFace." The repo has inference, ONNX export, IJB evaluation and the backbone definition, but no training code and not a single line implementing PCO. The weights are on Hugging Face, only the T, S, B and L sizes trained on Glint360K, with IJB-C scores matching Tables 2 and 3 of the paper.

For the paper's flagship model, the WebFace42M one, the README's weight table says "come soon." issue #3 (September 2025) asked when B would be released and whether L would be, and people kept following up in December 2025 and in January, May and June 2026; the maintainers never replied once. (that cell hasn't changed in over a year)

issue #5 (June 2026) is a serious reproduction report. The asker trained ViT-L on WebFace42M following Algorithm 1 and Section 5.2 and saw the features collapse early on, with every embedding shrinking to almost the same vector and validation accuracy stuck at 50%. The report lists eight details the paper leaves out, such as whether the class centers get a separate optimizer and learning rate, which layers the N(0,0.01)\mathcal N(0,0.01) initialization applies to, how ei\mathbf e_i is initialized, whether σ\sigma is a sigmoid, the values of m1m_1 and m2m_2, whether s(t)s^{(t)} is per batch or a moving average, and whether 384 is per GPU or the global batch. There's been no reply so far.

The licensing is a bit of a mess too. The code is MIT; the README's license paragraph first says "There is no limitation for both academic and commercial usage," and the next sentence says the models downloaded from the repo "follow the above license policy (which is for non-commercial research purposes only)," while the Hugging Face model card says MIT. This paragraph was adapted from InsightFace's README, where one more sentence sits between those two: "The training data containing the annotation (and the models trained with these data) are available for non-commercial research purposes only." It was lost in the copy, so the two remaining sentences no longer follow from each other. Glint360K itself also states that it and the models trained on it are for non-commercial research only. If you want to put it in a product, get this sorted out first.

One last practical pitfall. inference_onnx.py only resizes the input image to 112×112, converts it to RGB and normalizes it to [−1,1][-1,1], with no face detection and no alignment. The README's example feeds a photo path or URL straight in, but the model was trained on faces aligned with five landmarks, and similarities computed on unaligned photos are meaningless.

Conclusion

LVFace's backbone is InsightFace's face ViT, taken as is; what it changes is the training process, first aligning the features with a tenth of the negatives, then steadying the centers with per-class feature expectations, and finally releasing all the negatives to tighten the boundaries. ViT-L on WebFace42M took first place on the MFR-Ongoing academic track, 0.025 ahead of second; against InsightFace's public model with the same backbone, it gains 0.64 on MR-All and is nearly flat on IJB-C, while training three times as long.

What you can get today is the Glint360K version's inference weights; the S, B and L sizes score between 97.3 and 97.7 at IJB-C 10−410^{-4}, in the same class as the large TopoFR and AdaFace models. Before feeding faces in, align them to 112×112 using five landmarks from RetinaFace or SCRFD. If you want to train it yourself, start from InsightFace's ViT config, where stage one is just a matter of setting the sampling rate to 0.1; for stage two you'll have to experiment with m2m_2, σ\sigma and the way s(t)s^{(t)} is computed on your own, and the list in issue #5 makes a ready-made to-do list.

From the first version to the third, the loss changed, the number of stages changed, even the title changed, and not one of the nine numbers in the WebFace42M row moved.