Papers
Topics
Authors
Recent
Search
2000 character limit reached

QGFace: Joint Training for Mixed-Quality Faces

Updated 8 July 2026
  • QGFace is a quality-guided joint training approach that partitions face images using learned feature norms to assign tailored supervision for high- and low-quality samples.
  • It integrates margin-based classification for high-quality images with contrastive learning for low-quality images, leveraging a single shared encoder.
  • The method employs a proxy-updated real-time queue to maintain alignment of contrastive negatives, boosting low-quality recognition at a modest high-quality trade-off.

QGFace is a quality-guided joint training approach for mixed-quality face recognition that uses a single encoder to learn high-quality (HQ) and low-quality (LQ) face images simultaneously, while assigning different supervision signals according to each sample’s estimated quality. The method partitions training data by a learned quality indicator derived from feature norms, applies margin-based classification to HQ samples, applies self-supervised image-image contrastive learning to LQ samples, and introduces a proxy-updated real-time queue so that contrastive negatives remain aligned with the main encoder and classifier. It is evaluated on the low-quality datasets SCface and Tinyface, the mixed-quality dataset IJB-B, and five high-quality datasets, with the explicit objective of improving recognition under realistic mixed-quality conditions without ensembling, pre-trained extra backbones, or auxiliary teacher structures (Song et al., 2023).

1. Problem setting and conceptual premise

Mixed-quality face recognition is framed as the problem of identifying or verifying faces when image quality varies substantially because of camera resolution, subject–camera distance, illumination condition, and related factors. The central difficulty is that approaches optimized for HQ imagery and approaches optimized for LQ imagery tend to fail outside their intended regimes. In the formulation associated with QGFace, HQ-trained classifiers lose discriminability on very degraded inputs, while LQ-specialized methods generally sacrifice performance on HQ data (Song et al., 2023).

The design premise is that different quality regimes should not be trained under a single undifferentiated supervisory signal. Purely classification-based losses such as ArcFace and CosFace are described as relying on crisp, identity-bearing details and therefore stumbling on blurred or low-resolution images. Conversely, self-supervised or contrastive schemes can learn instance-level distinctions in impoverished images, but alone they do not provide the fine-grained cross-identity discrimination needed for retrieval or large-scale identification. QGFace therefore treats mixed-quality recognition as a routing problem: partition training data into HQ and LQ subsets via a learned quality indicator, then apply margin-based classification for HQ and InfoNCE-style contrastive learning for LQ.

This formulation makes quality a training-time control variable rather than a purely post hoc confidence estimate. The intended effect is not to build separate models for different quality regimes, but to make a single encoder competent across them.

2. Quality partition and routing mechanism

QGFace adopts the empirical observation of MagFace and AdaFace that a feature’s Euclidean norm correlates strongly with input quality. For sample ii, if hih_i is the embedding produced by the encoder, the raw quality-related statistic is

zi=hi2.z_i=\|h_i\|_2.

Let μz\mu_z and σz\sigma_z denote the running mean and standard deviation of zz over the training set. QGFace standardizes and clips the norm to obtain a bounded quality indicator z^i[1,1]\hat z_i \in [-1,1]:

z^i=clip ⁣(ziμzσz/c,1,1).\hat z_i=\operatorname{clip}\!\left(\frac{z_i-\mu_z}{\sigma_z/c},-1,1\right).

Here cc is a scale factor, exemplified as c=3c=3, chosen so that most standardized norms lie in hih_i0. During backpropagation, the gradient hih_i1 is blocked so that the network is not forced to inflate norms artificially for easier learning (Song et al., 2023).

A threshold hih_i2 is then used to partition training samples. In practice, hih_i3 is used. Samples with hih_i4 are routed to the HQ branch, and samples with hih_i5 are routed to the LQ branch. For contrastive learning, routing is defined on feature pairs rather than isolated samples: the pair quality is the lower of the two constituent quality indicators, and only pairs with hih_i6 are sent into the LQ branch.

This routing mechanism is the operational core of QGFace. It converts quality estimation into an explicit partition strategy while preserving a single shared backbone. A plausible implication is that the method treats quality not as a categorical label provided by annotation, but as a continuously estimated internal signal derived from representation geometry.

3. Shared encoder and HQ supervision

All samples, whether HQ or LQ, share a single ResNet-34 backbone that maps each face crop hih_i7 to a hih_i8-dimensional embedding hih_i9. The architecture is specified as input, followed by conv1, residual blocks 1–4, a global zi=hi2.z_i=\|h_i\|_2.0 average pool, and a zi=hi2.z_i=\|h_i\|_2.1-dimensional feature output. For the HQ branch, zi=hi2.z_i=\|h_i\|_2.2 is zi=hi2.z_i=\|h_i\|_2.3-normalized and passed into a margin-based softmax classifier zi=hi2.z_i=\|h_i\|_2.4. For the LQ branch, the same feature zi=hi2.z_i=\|h_i\|_2.5 and its augmented counterpart are used directly in the contrastive loss, with no extra MLP head (Song et al., 2023).

HQ supervision uses AdaFace, identified as a variant of additive-angular-margin softmax that adaptively modulates margins based on zi=hi2.z_i=\|h_i\|_2.6. The quality-dependent terms are

zi=hi2.z_i=\|h_i\|_2.7

with static margin zi=hi2.z_i=\|h_i\|_2.8, exemplified as zi=hi2.z_i=\|h_i\|_2.9, and global scale μz\mu_z0, exemplified as μz\mu_z1. Under this parameterization, high-quality samples with μz\mu_z2 receive a large additive margin of approximately μz\mu_z3, while borderline HQ samples receive a smaller effective margin. The stated effect is to balance easy versus hard positives automatically.

The HQ branch retains the standard face-recognition requirement for inter-identity discrimination at scale. Rather than redefining recognition around quality degradation alone, QGFace preserves the classifier-based regime where identity-bearing detail is sufficiently available.

4. LQ supervision, supervised masking, and the proxy-updated real-time queue

For LQ images, QGFace replaces identity classification with self-supervised instance-level contrastive learning. Each pair consists of an original face and one on-the-fly augmentation of that same face. The formulation uses a single augmentation per sample rather than two. The augmentation suite includes down/up-sampling, random crop and resize, rotation, color jitter in brightness, contrast, and saturation, and JPEG compression; horizontal flip appears in the training pipeline generally, while the LQ branch specifically uses the low-quality simulation operations (Song et al., 2023).

To avoid conflict with the HQ classification head, QGFace introduces a Supervised Contrastive Mask that excludes any negative whose identity matches the positive identity. The per-pair InfoNCE loss is written as

μz\mu_z4

where μz\mu_z5 is a queue of negative keys and μz\mu_z6 is again set to μz\mu_z7.

A central architectural contribution is the proxy-updated real-time queue. Classical MoCo uses a momentum encoder to populate a large negative queue, but the QGFace description argues that in the joint-training scenario this momentum encoder drifts away from the main model and yields whitened features that are no longer aligned with the HQ-supervised classifier. QGFace instead maintains a feature queue of the last μz\mu_z8 encoder outputs and a parallel proxy queue of the corresponding classifier weights. When a new key is pushed into the queue, its current classifier weight μz\mu_z9 is pushed as a proxy. At each iteration, stored features are refreshed according to

σz\sigma_z0

The queue size is set to σz\sigma_z1, the number of identities, so that the contrastive branch compares against as many negatives as the classification branch. The stated purpose is to keep queued negatives discriminative and consistent with the current classification boundary.

5. Joint objective, inference pathway, and optimization details

The combined training objective is the sum of the HQ classification loss over HQ-routed samples and the LQ contrastive loss over LQ-routed pairs:

σz\sigma_z2

No extra weighting is required in practice; the thresholding itself routes each sample to its designated supervision regime. During inference, both HQ and LQ faces pass only through the shared encoder. The classifier head and the queue are discarded, and matching uses pure cosine similarity on the embeddings (Song et al., 2023).

The specified training configuration uses VGGFace2, described as approximately σz\sigma_z3 million images and σz\sigma_z4 thousand identities. The backbone is ResNet-34 with output dimension σz\sigma_z5. Loss parameters are AdaFace classification plus contrastive InfoNCE, both with σz\sigma_z6, σz\sigma_z7, and threshold σz\sigma_z8. Optimization uses SGD with learning rate σz\sigma_z9 at the sixth epoch and zz0 at the ninth epoch, for a total of zz1 epochs, with momentum zz2 and weight decay zz3. Batch size is zz4, mixing HQ and LQ samples.

These design choices emphasize end-to-end joint training under a single backbone. The method is explicitly described as requiring no pre-trained teacher, no separate “teacher” or momentum encoder, and no separate super-resolution module.

6. Empirical behavior, benchmarks, and trade-offs

QGFace is evaluated on three benchmark categories: five HQ datasets—LFW, AgeDB-30, CFP-FP, CALFW, and CPLFW; two LQ datasets—SCface and TinyFace; and one mixed-quality dataset—IJB-B. SCface is evaluated as rank-1 identification against an HQ gallery at distances zz5 m, zz6 m, and zz7 m. TinyFace is evaluated by rank-1 retrieval. IJB-B is evaluated by zz8 verification with zz9 (Song et al., 2023).

Benchmark Metric AdaFace z^i[1,1]\hat z_i \in [-1,1]0 QGFace
SCface z^i[1,1]\hat z_i \in [-1,1]1 Rank-1 % 61.7 z^i[1,1]\hat z_i \in [-1,1]2 92.3
SCface z^i[1,1]\hat z_i \in [-1,1]3 Rank-1 % 97.2 z^i[1,1]\hat z_i \in [-1,1]4 99.5
SCface z^i[1,1]\hat z_i \in [-1,1]5 Rank-1 % 99.9 z^i[1,1]\hat z_i \in [-1,1]6 100.0
TinyFace Rank-1 % 64.0 z^i[1,1]\hat z_i \in [-1,1]7 69.9
IJB-B z^i[1,1]\hat z_i \in [-1,1]8 90.3% z^i[1,1]\hat z_i \in [-1,1]9 95.4%
HQ average over 5 sets Acc % 95.6% z^i=clip ⁣(ziμzσz/c,1,1).\hat z_i=\operatorname{clip}\!\left(\frac{z_i-\mu_z}{\sigma_z/c},-1,1\right).0 93.1%

The reported pattern is asymmetric across quality regimes. On low-quality and mixed-quality benchmarks, QGFace improves substantially relative to AdaFace; on the five-dataset HQ average, it drops by approximately z^i=clip ⁣(ziμzσz/c,1,1).\hat z_i=\operatorname{clip}\!\left(\frac{z_i-\mu_z}{\sigma_z/c},-1,1\right).1. The paper interprets this as a trade for large gains at low quality.

The ablation results further specify the mechanism of that trade-off. Without partitioning, using z^i=clip ⁣(ziμzσz/c,1,1).\hat z_i=\operatorname{clip}\!\left(\frac{z_i-\mu_z}{\sigma_z/c},-1,1\right).2 or z^i=clip ⁣(ziμzσz/c,1,1).\hat z_i=\operatorname{clip}\!\left(\frac{z_i-\mu_z}{\sigma_z/c},-1,1\right).3, the two losses conflict and mixed-quality performance drops. A pure momentum-encoder queue degrades both low- and high-quality results. The proxy-updated queue produces the best LQ gains with minimal HQ sacrifice. The best threshold is approximately z^i=clip ⁣(ziμzσz/c,1,1).\hat z_i=\operatorname{clip}\!\left(\frac{z_i-\mu_z}{\sigma_z/c},-1,1\right).4, which balances the two branches. These findings establish that the method’s benefit is not merely the addition of a contrastive term, but the interaction among partitioning, branch-specific objectives, and queue synchronization.

7. Relation to explicit face-quality assessment and possible extensions

QGFace estimates quality implicitly from feature norms, but the broader face-biometrics literature also contains explicit quality-assessment systems. FaceQvec defines a z^i=clip ⁣(ziμzσz/c,1,1).\hat z_i=\operatorname{clip}\!\left(\frac{z_i-\mu_z}{\sigma_z/c},-1,1\right).5-dimensional quality vector z^i=clip ⁣(ziμzσz/c,1,1).\hat z_i=\operatorname{clip}\!\left(\frac{z_i-\mu_z}{\sigma_z/c},-1,1\right).6 aligned with ISO/IEC 19794-5, with individual tests covering blur, eyes direction, illumination, contrast, pixelation, pose estimation, shadows, occlusions, other faces, white noise estimation, and expression, among others (Hernandez-Ortega et al., 2021).

An extension described in relation to FaceQvec couples such an explicit quality vector to QGFace. In that description, FaceQvec can feed directly into QGFace as a z^i=clip ⁣(ziμzσz/c,1,1).\hat z_i=\operatorname{clip}\!\left(\frac{z_i-\mu_z}{\sigma_z/c},-1,1\right).7-dimensional feature vector z^i=clip ⁣(ziμzσz/c,1,1).\hat z_i=\operatorname{clip}\!\left(\frac{z_i-\mu_z}{\sigma_z/c},-1,1\right).8 or as the pre-thresholded raw score vector z^i=clip ⁣(ziμzσz/c,1,1).\hat z_i=\operatorname{clip}\!\left(\frac{z_i-\mu_z}{\sigma_z/c},-1,1\right).9, enabling QGFace to use quality as auxiliary input, compare or fuse FaceQvec dimensions with learned quality dimensions, adapt thresholds per deployment, or treat each cc0 as a soft constraint when predicting enrollment or verification success. This is not part of the original QGFace training procedure, which relies on the scalar norm-derived indicator cc1, but it indicates a route toward attribute-aware quality profiling.

The relation between QGFace and FaceQvec also clarifies a broader distinction in face biometrics. QGFace uses quality to determine which supervision signal is most appropriate during representation learning; FaceQvec operationalizes quality as a structured, ISO-aligned vector of interpretable tests. This suggests a complementarity between implicit quality guidance for optimization and explicit quality auditing for deployment, threshold calibration, or failure analysis.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to QGFace.