The Achilles' Heel of Angular Margins: A Chebyshev Polynomial Fix for Speaker Verification
Yang Wang, Yiqi Liu, Chenghao Xiao, Chenghua Lin
TL;DR
The paper addresses instability in angular-margin losses for speaker verification caused by the unbounded derivative of $\arccos$ as embeddings align with class prototypes. It introduces ChebyAAM, a stable alternative that replaces $\arccos$ with a Chebyshev polynomial approximation $f_{\mathrm{cheb}}(x,m)$, computed efficiently via Clenshaw's algorithm. Across VoxCeleb, SITW, and CN-Celeb, ChebyAAM consistently improves verification metrics (EER and mDCF) across multiple backbones, with degree 30 often yielding the best results. The work demonstrates that polynomial-angle approximations provide a robust, model-agnostic path for designing future metric-learning losses in speaker verification, reducing training instability while sharpening hard-example gradients.
Abstract
Angular margin losses, such as AAM-Softmax, have become the de facto in speaker and face verification. Their success hinges on directly manipulating the angle between features and class prototypes. However, this manipulation relies on the arccos function to recover the angle, introducing a significant yet overlooked source of training instability. The derivative of arccos explodes at its boundaries, causing gradient peaks during optimisation. Furthermore, the formulation fails to generate a sufficiently sharp gradient for hard-to-classify examples. We address these issues by proposing ChebyAAM, a loss that replaces the arccos operation with its Chebyshev polynomial approximation. This substitution eliminates gradient explosion and applies a stronger corrective signal to hard examples, leading to more effective optimisation. Experiments on three benchmarks (VoxCeleb, SITW, and CN-Celeb) demonstrate that our method resolves the instability and consistently improves performance. Our work suggests that approximating angular operations, rather than calculating them explicitly, offers a more robust path for designing future metric learning losses. Code is available at https://github.com/ExtraOrdinaryLab/vibe.
