A Convexity-dependent Two-Phase Training Algorithm for Deep Neural Networks

Tomas Hrycej, Bernhard Bermeitinger, Massimo Pavone, Götz-Henrik Wiegand, Siegfried Handschuh · DOI

Abstract

The key task of machine learning is to minimize the loss function that measures the model fit to the training data. The numerical methods to do this efficiently depend on the properties of the loss function. The most decisive among these properties is the convexity or non-convexity of the loss function. The fact that the loss function can have, and frequently has, non-convex regions has led to a widespread commitment to non-convex methods such as Adam. However, a local minimum implies that, in some environment around it, the function is convex. In this environment, second-order minimizing methods such as the Conjugate Gradient (CG) give a guaranteed superlinear convergence. We propose a novel framework grounded in the hypothesis that loss functions in real-world tasks swap from initial non-convexity to convexity towards the optimum. This is a property we leverage to design an innovative two-phase optimization algorithm. The presented algorithm detects the swap point by observing the gradient norm dependence on the loss. In these regions, non-convex (Adam) and convex (CG) algorithms are used, respectively. Computing experiments confirm the hypothesis that this simple convexity structure is frequent enough to be practically exploited to substantially improve convergence and accuracy.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MNISTAdam+CG (vit-mlp)Train loss (MSE)0.0001split: train · fine-tuned · epochs=700 · backbone=vit-mlp · training-schedule=210 Adam + 490 CG
Source quote
L307: vit-mlp │ Adam+CG │ 0.0001 │ 0.9997 │ 0.0044 │ 0.9738 │ 3.8946
CIFAR-10Adam+CG (vit-mlp)Train loss (MSE)0.0041-0.01 vs baselinesplit: train · fine-tuned · epochs=700 · backbone=vit-mlp · training-schedule=210 Adam + 490 CG
Source quote
L317: vit-mlp │ Adam+CG │ 0.0041 │ 0.9703 │ 0.0991 │ 0.4354 │ 3.0817
CIFAR-100Adam+CG (vit-mlp)Train loss (MSE)0.0028split: train · fine-tuned · epochs=700 · backbone=vit-mlp · training-schedule=210 Adam + 490 CG
Source quote
L327: vit-mlp │ Adam+CG │ 0.0028 │ 0.7579 │ 0.0134 │ 0.1505 │ 29.7442
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
MNISTAdam (vit-mlp) baselineTrain loss (MSE)0.0008split: train · fine-tuned · epochs=700 · backbone=vit-mlp
Source quote
L306: vit-mlp │ Adam │ 0.0008 │ 0.9954 │ 0.0061 │ 0.9652 │ 3.8946
CIFAR-10Adam (vit-mlp) baselineTrain loss (MSE)0.0091split: train · fine-tuned · epochs=700 · backbone=vit-mlp
Source quote
L316: vit-mlp │ Adam │ 0.0091 │ 0.9431 │ 0.0997 │ 0.4281 │ 3.0817
CIFAR-100Adam (vit-mlp) baselineTrain loss (MSE)0.0041split: train · fine-tuned · epochs=700 · backbone=vit-mlp
Source quote
L326: vit-mlp │ Adam │ 0.0041 │ 0.7055 │ 0.0128 │ 0.1545 │ 29.7442
BibTeX
@misc{hrycej2025convexity,
  author = {Tomas Hrycej and Bernhard Bermeitinger and Massimo Pavone and Götz-Henrik Wiegand and Siegfried Handschuh},
  title = {{A Convexity-dependent Two-Phase Training Algorithm for Deep Neural Networks}},
  year = {2025},
  eprint = {2510.25366},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.25366},
}

Loading related content...

Figure