[2603.26389] Maintaining Difficulty: A Margin Scheduler for Triplet Loss in Siamese Networks Training
About this article
Abstract page for arXiv paper 2603.26389: Maintaining Difficulty: A Margin Scheduler for Triplet Loss in Siamese Networks Training
Computer Science > Machine Learning arXiv:2603.26389 (cs) [Submitted on 27 Mar 2026] Title:Maintaining Difficulty: A Margin Scheduler for Triplet Loss in Siamese Networks Training Authors:Roberto Sprengel Minozzo Tomchak, Oge Marques, Lucas Garcia Pedroso, Luiz Eduardo Oliveira, Paulo Lisboa de Almeida View a PDF of the paper titled Maintaining Difficulty: A Margin Scheduler for Triplet Loss in Siamese Networks Training, by Roberto Sprengel Minozzo Tomchak and 3 other authors View PDF HTML (experimental) Abstract:The Triplet Margin Ranking Loss is one of the most widely used loss functions in Siamese Networks for solving Distance Metric Learning (DML) problems. This loss function depends on a margin parameter {\mu}, which defines the minimum distance that should separate positive and negative pairs during training. In this work, we show that, during training, the effective margin of many triplets often exceeds the predefined value of {\mu}, provided that a sufficient number of triplets violating this margin is observed. This behavior indicates that fixing the margin throughout training may limit the learning process. Based on this observation, we propose a margin scheduler that adjusts the value of {\mu} according to the proportion of easy triplets observed at each epoch, with the goal of maintaining training difficulty over time. We show that the proposed strategy leads to improved performance when compared to both a constant margin and a monotonically increasing margin s...