FaceLiVT: Face Recognition using Linear Vision Transformer with Structural Reparameterization For Mobile Device

Novendra Setyawan, Chi-Chia Sun, Mao-Hsiu Hsu, Wen-Kai Kuo, Jun-Wei HsieharXiv 2025 · DOI

Abstract

FaceLiVT is a hybrid face recognition model designed for mobile deployment, balancing the efficiency of Convolutional Neural Networks (CNNs) with the global context of Vision Transformers (ViTs). By integrating a novel Multi-Head Linear Attention (MHLA) mechanism and structural reparameterization, FaceLiVT achieves state-of-the-art accuracy while significantly outperforming pure Transformer and hybrid models in inference speed. On mobile hardware, FaceLiVT-S achieves a latency of 0.47 ms, representing a 21x speedup over standard ViT architectures.

Introduction

Deploying high-accuracy face recognition on mobile devices requires navigating the trade-off between representational power and computational efficiency. Traditional CNNs are efficient but suffer from a limited receptive field, failing to capture long-range spatial dependencies. Conversely, Vision Transformers (ViTs) utilize self-attention to capture global context but suffer from quadratic computational complexity ($O(N^2)$) relative to image resolution, making them unsuitable for real-time mobile applications.

FaceLiVT addresses these challenges by introducing a hybrid architecture that leverages linear attention and structural reparameterization to provide the "best of both worlds": the global modeling of Transformers and the hardware-friendly efficiency of CNNs.

Architecture and Methodology

The FaceLiVT architecture is organized into four distinct stages designed to process features from local textures to global structures.

Overview of the FaceLiVT architecture, including the RepMixer block and Multi-Head Linear Attention (MHLA) mechanism.

1. Hybrid Stage-wise Design

The model utilizes a stage-wise approach:

  • Stages 1 & 2: Employ RepMix, a convolutional token mixer that efficiently extracts local features.
  • Stages 3 & 4: Utilize Multi-Head Linear Attention (MHLA) to capture the global context necessary for high-level facial representation.

2. Multi-Head Linear Attention (MHLA)

Standard Multi-Head Self-Attention (MHSA) is computationally expensive. FaceLiVT replaces this with MHLA, which uses a sequence of linear operations to evaluate spatial relationships with $O(N)$ complexity. This reduction is critical for maintaining high throughput in the deeper layers of the network.

3. Structural Reparameterization

To optimize inference speed without sacrificing training-time expressivity, FaceLiVT uses structural reparameterization. During training, the RepMixer blocks consist of multiple branches (e.g., $3\times3$ and $1\times1$ depthwise convolutions). Before deployment, these branches—along with Batch Normalization (BN) layers—are mathematically fused into a single, optimized convolutional layer, resulting in zero additional latency during inference.

Experimental Results

The model was trained on the Glint360K dataset (17M images) and evaluated across several benchmarks, including LFW, CFP-FP, AgeDB-30, and the challenging IJB-B/C datasets.

Performance comparison of FaceLiVT against state-of-the-art CNN, ViT, and hybrid models.

Performance on Mobile Hardware

Testing on an iPhone 15 Pro (via CoreML) demonstrated FaceLiVT's superior efficiency:

  • Latency: The FaceLiVT-S-(LA) variant achieved a latency of 0.47 ms, which is 8.6x faster than EdgeFace and 21.2x faster than ViT-S.
  • Accuracy: On the LFW benchmark, the model achieved 99.7% accuracy. On IJB-C, it reached a True Accept Rate (TAR) of 92.7% (at FAR=1e-4), outperforming many heavier models.
  • Efficiency: With only 5.05M parameters and 160 MFLOPs, FaceLiVT is highly optimized for background authentication and real-time mobile tasks.

Conclusion

FaceLiVT demonstrates that linear attention and reparameterization are key to enabling Transformer-level performance on mobile devices. By strategically using CNNs for early-stage feature extraction and linear Transformers for late-stage global modeling, the architecture achieves a new state-of-the-art in mobile face recognition. Future work will focus on enhancing the robustness of MHLA under heavy occlusions while maintaining its linear-time efficiency.

Summary updated

BibTeX
@misc{setyawan2025facelivt,
  author = {Novendra Setyawan and Chi-Chia Sun and Mao-Hsiu Hsu and Wen-Kai Kuo and Jun-Wei Hsieh},
  title = {{FaceLiVT: Face Recognition using Linear Vision Transformer with Structural Reparameterization For Mobile Device}},
  year = {2025},
  eprint = {2506.10361},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.10361},
}
Figure