Distributed optimization of deeply nested systems

Miguel Á. Carreira-Perpiñán, Weiran Wang

TL;DR

This paper introduces the Method of Auxiliary Coordinates (MAC), a novel optimization strategy for training complex, deeply nested systems like deep neural networks. MAC transforms the intractable nested optimization problem into a more manageable, unnested, constrained problem, enabling efficient, massively parallelizable training and even automated architecture search.

What Problem Does This Paper Address?

Modern machine learning, particularly in areas like computer vision and speech processing, relies heavily on "deep" or "nested" systems. These systems are composed of multiple layers, where the output of one layer serves as the input to the next, creating a complex, hierarchical transformation. Training these systems involves jointly optimizing all parameters across all layers to minimize an objective function (e.g., classification error). However, this joint optimization is notoriously difficult because the nested structure leads to highly non-convex problems. Traditional methods like backpropagation struggle with issues like vanishing gradients, slow convergence, and poor parallelization, often requiring significant manual tuning and resulting in suboptimal models. Furthermore, selecting the best architecture (e.g., number of layers or units) is a combinatorial challenge that typically involves costly trial-and-error.

Methods

The core innovation is the Method of Auxiliary Coordinates (MAC). MAC tackles the nested optimization problem by reformulating it as an equality-constrained problem in an augmented space. This is achieved by introducing "auxiliary coordinates" (denoted by Z) for the intermediate outputs of each layer. The original deeply nested objective function is then replaced by an unnested objective function involving both the original parameters (W) and these new auxiliary coordinates (Z), subject to constraints that enforce the relationship between Z and W.

This constrained problem is then solved using a quadratic-penalty (QP) method. The QP method iteratively optimizes a penalized version of the objective function, driving the penalty parameter (μ) towards infinity. The optimization within each QP step is performed using alternating optimization: first, the auxiliary coordinates (Z) are optimized while keeping the weights (W) fixed, and then the weights (W) are optimized while keeping the auxiliary coordinates (Z) fixed.

The key advantages of this approach are:

  • Decoupling: The alternating optimization breaks down the complex nested problem into simpler, uncoupled subproblems.
  • Parallelization: The W-step, in particular, can be trivially parallelized across many processors, as each layer's optimization becomes independent.
  • Reusability: Existing algorithms for training single layers or unnested problems can be directly reused within the W-step.
  • Architecture Search: MAC naturally lends itself to model selection by allowing the W-step to search for optimal architectures for individual layers.

Datasets

The paper evaluates MAC on the following datasets:

  • USPS dataset: A benchmark dataset of handwritten digit images (16x16 grayscale). Used for training a deep sigmoidal autoencoder.
  • COIL-20 dataset: A dataset of object images containing rotation sequences. Used for training a radial basis function (RBF) autoencoder.

Key Insights and Ideas

  • Auxiliary Coordinates as a Decoupling Mechanism: The introduction of auxiliary coordinates is not just a mathematical trick; it fundamentally breaks the functional nesting, transforming a difficult global optimization problem into a sequence of simpler, local ones.
  • Embarrassingly Parallel Training: The MAC framework allows for trivial parallelization of the W-step, making it highly suitable for modern distributed computing environments. This is a significant advantage over traditional backpropagation.
  • Automated Architecture Search: MAC can be extended to search for optimal architectures "on the fly" by incorporating model selection criteria into the W-step, reducing the reliance on manual, expert-driven design.
  • Competitive Performance: MAC/QP demonstrates competitive or superior performance compared to state-of-the-art methods, often achieving significant error reduction in far fewer iterations, even in serial settings.
  • Heterogeneous Architectures: The method is flexible enough to handle architectures where different layers might use specialized, non-gradient-based training algorithms (e.g., k-means for RBF networks).

Key Results

  • Speedup: Parallel MAC/QP implementation achieves an approximately linear speedup with the number of processors, reaching about 6x with 12 processors on the tested experiments.
  • Convergence: MAC/QP shows a much faster decrease in the objective function per iteration compared to SGD and CG, reaching good network performance much faster.
  • Architecture Learning: In experiments with RBF autoencoders, MAC was able to effectively learn the architecture by selecting the number of basis functions, often finding simpler models that achieved competitive or better overall objective function values. For example, one architecture search found a model with (M1, M3) = (1368,150) which, while having a slightly higher training error than a previous model, had a lower overall AIC-based objective.

Limitations and Future Work

  • Pathological Cases: The paper notes that, like any continuous optimization, convergence might occur to stationary points rather than true minimizers in pathological cases.
  • Choice of Auxiliary Coordinates: The paper suggests that the optimal way to introduce auxiliary coordinates for a given problem is an open question.
  • Choice of W and Z Step Optimizers: Exploring different algorithms for optimizing the W and Z steps (beyond Gauss-Newton for W and the described Z-step) is a direction for future research to further improve efficiency.
  • Theoretical Guarantees: While convergence to a stationary point is proven, achieving convergence to a global minimum in nonconvex settings remains a general challenge.

The authors envision MAC as a powerful tool that could replace or complement backpropagation for training nested systems, especially in the context of increasing computational power and data availability in cloud computing environments.

Summary updated

BibTeX
@inproceedings{carreiraperpinan2014distributed,
  author = {Miguel Á. Carreira-Perpiñán and Weiran Wang},
  title = {{Distributed optimization of deeply nested systems}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2014},
  url = {https://openreview.net/forum?id=EclDssbF8im},
}
Figure