Newton Losses: Using Curvature Information for Learning with Differentiable Algorithms

Felix Petersen, Christian Borgelt, Tobias Sutter, Hilde Kuehne, Oliver Deussen +1 more
10/24/2024
cs.LG

No official code found. Best implementation: Felix-Petersen/newton-losses (2 stars, last commit 2024-12-08).

Abstract

When training neural networks with custom objectives, such as ranking losses and shortest-path losses, a common problem is that they are, per se, non-differentiable. A popular approach is to continuously relax the objectives to provide gradients, enabling learning. However, such differentiable relaxations are often non-convex and can exhibit vanishing and exploding gradients, making them (already in isolation) hard to optimize. Here, the loss function poses the bottleneck when training a deep neural network. We present Newton Losses, a method for improving the performance of existing hard to optimize losses by exploiting their second-order information via their empirical Fisher and Hessian matrices. Instead of training the neural network with second-order techniques, we only utilize the loss function's second-order information to replace it by a Newton Loss, while training the network with gradient descent. This makes our method computationally efficient. We apply Newton Losses to eight differentiable algorithms for sorting and shortest-paths, achieving significant improvements for less-optimized differentiable algorithms, and consistent improvements, even for well-optimized differentiable algorithms.

View on arXivView PDF

Code Implementations(1)

Newton Losses: Using Curvature Information for Learning with Differentiable Algorithms

21Dec 8, 20241 years ago

Similar Papers

Cite this paper

@article{petersen2024newton,
  title  = {Newton Losses: Using Curvature Information for Learning with Differentiable Algorithms},
  author = {Felix Petersen and Christian Borgelt and Tobias Sutter and Hilde Kuehne and Oliver Deussen and Stefano Ermon},
  year   = {2024},
  eprint = {2410.19055},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.19055},
  url    = {http://arxiv.org/abs/2410.19055v1},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.19055.svg)](https://codeofpaper.com/paper/2410.19055)

Discussion