A differentiable surrogate optimization framework for adaptive thresholds in multi-metric face verification
Abstract
Face verification systems conventionally rely on fixed, pre-defined thresholds to classify pairs of facial embeddings, a practice that lacks robustness under varying real-world conditions. However, learning adaptive thresholds has been hindered by the non-differentiable nature of the comparison operation, which prevents end-to-end optimization through gradient-based methods. This paper presents a novel framework, termed differentiable surrogate optimization (DSO), to address this limitation. The proposed approach introduces a continuous, margin-based surrogate loss function that acts as a differentiable proxy for the hard decision boundary, thereby enabling a lightweight neural network to learn and dynamically predict context-aware thresholds for multiple similarity metrics, including Euclidean distance, Cosine distance, and Euclidean norm (L2-norm), based on FaceNet embeddings. Experimental results demonstrate that the proposed system effectively learns to produce a broad distribution of context-aware thresholds, whose means align with regions of high-class ambiguity. The framework achieves an area under the curve (AUC) exceeding 0.94 across all metrics, confirming its discriminative capability. These results validate DSO as a feasible and interpretable solution for developing self-adjusting face verification systems.
Keywords
Deep learning; Face recognition; FaceNet; Loss function; Machine learning
Full Text:
PDFDOI: http://doi.org/10.11591/ijai.v15.i6.pp5581-5591
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 Anan Nugroho, Ahmad Zein Al Wafi, Muhammad Iqbal, Mona Subagja

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
IAES International Journal of Artificial Intelligence (IJ-AI)
ISSN/e-ISSN 2089-4872/2252-8938
This journal is published by the Institute of Advanced Engineering and Science (IAES).