Multi-Agent Semi-Siamese Training for Long-tail and Shallow Face Learning

Hailin Shi, Dan Zeng, Yichun Tai, Hang Du, Yibo Hu, Tao MeiACM TOMM 2021 · DOI

Abstract

State-of-the-art face recognition models typically rely on "deep" datasets containing hundreds of images per identity. However, real-world applications frequently encounter "shallow" data (identities with only two images) and "long-tail" distributions (a few head classes with many images and many tail classes with very few). Multi-Agent Semi-Siamese Training (MASST) is a novel framework designed to address these challenges. By utilizing a rotating stack of gallery agents and momentum-based updates, MASST smooths the optimization landscape and introduces architectural diversity as a proxy for missing intra-class variation. Experimental results demonstrate substantial gains in verification accuracy on challenging benchmarks like BLUFR and MegaFace, while maintaining zero additional cost during inference.

Introduction: The Challenge of Data Scarcity

Most high-performance face recognition systems are trained on massive, well-curated datasets like MS-Celeb-1M. In practice, however, data often follows two unfavorable distributions:

  1. Shallow Data: Identities may have as few as two images (e.g., a government ID photo and a single surveillance frame). This lack of variety often leads to "feature collapse," where the model fails to learn robust representations that generalize across different poses or lighting conditions.
  2. Long-tail Data: A small number of identities dominate the dataset, while the vast majority have minimal representation. This imbalance biases decision boundaries toward well-represented classes and degrades performance on the "tail."

Standard training objectives, such as Softmax, often result in a jagged and unstable loss landscape when applied to these distributions, making convergence difficult and overfitting likely.

Methodology: Multi-Agent Semi-Siamese Training

MASST builds upon the concept of Semi-Siamese Training (SST) but introduces a more robust multi-agent architecture to stabilize learning. The framework consists of two primary components:

  • The Probe Network: This is the primary model being trained, updated via standard Stochastic Gradient Descent (SGD).
  • Stack of Multiple Gallery Agents: Instead of a single gallery branch, MASST maintains a stack of multiple agents ($\phi_{g_1}, \dots, \phi_{g_n}$). In each iteration, one agent is rotated out to generate prototypes for the gallery queue.
  • Momentum Updates: The gallery agents are updated using a moving average of the probe network’s weights. An auxiliary term is included in the update rule to ensure that the agents maintain slight differences from one another, preventing them from converging into a single redundant state.
The MASST training framework architecture.

This architecture allows the model to handle a massive number of identities without the memory overhead of a massive final fully connected layer, as it utilizes a feature queue extracted by the rotating agents.

Theoretical Insights: Smoothing the Optimization Landscape

A key contribution of MASST is its theoretical impact on the optimization process. The authors demonstrate that the multi-agent approach improves Lipschitz continuity, ensuring that small changes in input do not lead to erratic swings in output.

Mathematically, this is linked to the Hessian matrix (the second-order derivative of the loss function). By using multiple agents, MASST prevents the curvature of the loss landscape from becoming too extreme. In shallow data scenarios where physical diversity is missing, the slight variations between gallery agents act as "architectural diversity," providing the probe network with a more stable and informative signal.

Conceptual optimization paths (a-d) and performance metrics.

As shown in the conceptual diagrams above, standard methods often result in "winding" or unstable optimization paths (b, c). MASST (d) provides a smoother trajectory toward the global minimum, which is reflected in the lower standard deviation (SD) of performance metrics across different data distributions.

Experimental Results

MASST was evaluated against several benchmarks, showing dramatic improvements over conventional training:

  • Shallow Data Performance: On the BLUFR benchmark at a strict False Accept Rate of $10^{-5}$, MASST achieved 81.53% verification accuracy, a massive leap from the 27.05% achieved by conventional softmax.
  • Long-tail Robustness: On the MegaFace benchmark, MASST maintained high accuracy even as the "tail" of the dataset became increasingly sparse, whereas standard models saw performance plummet to near 20%.
  • Versatility: MASST is a training framework rather than a specific loss function. It was shown to enhance the performance of various modern objectives, including ArcFace, AM-Softmax, and AdaCos.

Conclusion

MASST effectively mitigates the issues of feature collapse and unstable optimization inherent in shallow and long-tail face data. By simulating diversity through its multi-agent architecture, it allows models to learn robust features from minimal samples. Crucially, because only the probe network is used during deployment, these accuracy gains come with zero additional inference cost. Future research may explore the framework's resilience to noisy labels and its applicability to other computer vision tasks like object detection.

Summary updated

BibTeX
@article{shi2021multi,
  author = {Hailin Shi and Dan Zeng and Yichun Tai and Hang Du and Yibo Hu and Tao Mei},
  title = {{Multi-Agent Semi-Siamese Training for Long-tail and Shallow Face Learning}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2021},
  doi = {10.1145/3594669},
}
Figure