Skip to main content
QUICK REVIEW

[Paper Review] Self-Tuning Networks: Bilevel Optimization of Hyperparameters using Structured Best-Response Functions

Matthew Mackay, Paul Vicol|arXiv (Cornell University)|Mar 7, 2019
Advanced Neural Network ApplicationsComputer Science58 references54 citations
TL;DR

STNs learn online hyperparameters by approximating the best-response with a compact hypernetwork-based gate, enabling discrete and stochastic hyperparameters and yielding schedules that improve performance on PTB, CIFAR-10, and more.

ABSTRACT

Hyperparameter optimization can be formulated as a bilevel optimization problem, where the optimal parameters on the training set depend on the hyperparameters. We aim to adapt regularization hyperparameters for neural networks by fitting compact approximations to the best-response function, which maps hyperparameters to optimal weights and biases. We show how to construct scalable best-response approximations for neural networks by modeling the best-response as a single network whose hidden units are gated conditionally on the regularizer. We justify this approximation by showing the exact best-response for a shallow linear network with L2-regularized Jacobian can be represented by a similar gating mechanism. We fit this model using a gradient-based hyperparameter optimization algorithm which alternates between approximating the best-response around the current hyperparameters and optimizing the hyperparameters using the approximate best-response function. Unlike other gradient-based approaches, we do not require differentiating the training loss with respect to the hyperparameters, allowing us to tune discrete hyperparameters, data augmentation hyperparameters, and dropout probabilities. Because the hyperparameters are adapted online, our approach discovers hyperparameter schedules that can outperform fixed hyperparameter values. Empirically, our approach outperforms competing hyperparameter optimization methods on large-scale deep learning problems. We call our networks, which update their own hyperparameters online during training, Self-Tuning Networks (STNs).

Motivation & Objective

  • Motivate hyperparameter optimization as a bilevel problem where training weights depend on hyperparameters.
  • Propose a scalable, memory-efficient best-response approximation for neural networks.
  • Develop Self-Tuning Networks that update hyperparameters online without differentiating training loss w.r.t. hyperparameters.
  • Demonstrate that STNs yield hyperparameter schedules improving performance on large-scale datasets.

Proposed method

  • Formulate the bilevel problem with upper-level objective F and lower-level objective f and introduce the best-response w*(λ).
  • Approximate the best-response with a parametric function φ, and optimize λ using the approximate best-response (Equation 3).
  • Propose a memory-efficient best-response module where the per-layer weight/bias is Ŵφ(λ)=Welem+(Vλ)⊙rowWhyper and b̂φ(λ)=belem+(Cλ)⊙bhyper (Equation 10).
  • Argue exactness of a gated best-response in a two-layer linear network with L2 Jacobian regularization (Theorem 2).
  • Provide a linear (affine) gating variant for small hyperparameter ranges, ensuring correct Jacobian under quadratic lower-level loss (Theorem 3).
  • Describe adaptive sampling of hyperparameter neighborhoods σ with an entropy term to balance exploration and local fidelity (Equation 15).

Experimental results

Research questions

  • RQ1Can a compact, differentiable approximation of the best-response map W*(λ) be learned to enable gradient-based hyperparameter optimization?
  • RQ2Do online-adjusted hyperparameters yield schedules that outperform fixed hyperparameters across large-scale neural architectures?
  • RQ3Can the approach handle discrete and stochastic hyperparameters without differentiating the training loss with respect to hyperparameters?
  • RQ4Is the proposed STN architecture scalable to deep networks and practical for standard benchmarks (PTB, CIFAR-10)?

Key findings

  • STNs discover hyperparameter schedules during training that outperform fixed hyperparameter values, e.g., in PTB and CIFAR-10 experiments.
  • Compared to grid search, random search, and Bayesian optimization, STNs achieve better validation/test performance more quickly on PTB and CIFAR-10 tasks.
  • A locally approximated best-response using affine gating remains effective for quadratic lower-level losses, preserving correct gradient information (Theorem 3).
  • The affine best-response architecture (Ŵφ(λ), b̂φ(λ)) is memory-efficient, requiring O(Dout(2Din+n)) parameters for weights and O(Dout(2+n)) for biases (Equation 11).
  • STNs produce interpretable hyperparameter schedules, e.g., varying dropout components over training to form curricula that improve generalization.
  • On PTB, STN-based LSTM achieves a validation perplexity of 70.30 and test perplexity of 67.68, outperforming grid, random, and Bayesian methods in Table 2.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.