Distributed optimization of deeply nested systems

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

Abstract

Intelligent processing of complex signals such as images is often performed by a hierarchy of nonlinear processing layers, such as a deep net or an object recognition cascade. Joint estimation of the parameters of all layers is a difficult optimization problem. We propose a general strategy for this called the Method of Auxiliary Coordinates (MAC). MAC replaces the original problem with a constrained problem where each layer is decoupled by introducing auxiliary variables for the hidden unit activations. This allows for massive parallelization, avoids the vanishing gradient problem, and enables the use of non-differentiable components.

Introduction

Training deep neural networks typically relies on backpropagation, which propagates error signals through multiple nonlinear layers via the chain rule. This approach faces three significant challenges: the vanishing gradient problem, where signals are lost in deep architectures; sequential dependencies that limit parallelization across layers; and the requirement for all components to be differentiable.

In this work, we introduce the Method of Auxiliary Coordinates (MAC). By "unfolding" the network into a series of constrained sub-problems, MAC transforms a complex, nested optimization into independent tasks that can be solved efficiently in parallel.

The Method of Auxiliary Coordinates (MAC)

The core innovation of MAC is the introduction of an auxiliary variable ($z$) for every hidden unit activation across all data points. Instead of minimizing a deeply nested function $f(g(x))$, we minimize a reformulated objective: $$\text{Error}(f(z)) + \mu \cdot \|z - g(x)\|^2$$ where $\mu$ is a penalty parameter. As $\mu \to \infty$, the auxiliary variable $z$ is forced to match the output of the preceding layer $g(x)$, recovering the original objective.

Architecture of a deeply nested system where auxiliary coordinates $z_i$ decouple the layers.

This formulation leads to a two-step alternating optimization process:

  • The W-step (Weights): Weights for each layer are updated independently while fixing the activations ($z$). This step is embarrassingly parallel across layers and even individual neurons.
  • The Z-step (Coordinates): Activations are updated while fixing the weights. This step is parallel across data points and ensures consistency between layers.

Experimental Evaluation

The MAC algorithm was evaluated on the USPS handwritten digit dataset and the COIL-20 object recognition dataset. These tests included deep sigmoidal autoencoders and heterogeneous architectures, such as RBF networks, to demonstrate the method's versatility.

Key Results

MAC demonstrates superior convergence properties and scalability compared to traditional first-order and second-order optimization methods.

Comparison of objective function convergence over runtime for SGD, CG, and MAC variants.
  • Convergence Speed: On deep autoencoders, MAC achieved significant error reduction in fewer iterations and less wall-clock time than Stochastic Gradient Descent (SGD) or Conjugate Gradient (CG) methods.
  • Parallel Scalability: Training speed scales nearly linearly with the number of processors. Unlike backpropagation, which is inherently sequential, MAC allows for simultaneous updates across the entire depth of the network.
  • Architecture Search: MAC allows for "on the fly" model selection. For instance, it successfully learned the optimal number of basis functions for RBF networks using the Akaike Information Criterion (AIC) during the optimization process, simplifying the model without sacrificing accuracy.

Discussion and Limitations

While MAC offers significant advantages in parallelization and handling non-differentiable units, it introduces memory overhead proportional to the number of hidden units and data points ($N \times \text{hidden units}$). Additionally, the performance is sensitive to the schedule of the penalty parameter $\mu$. Future work will explore applying MAC to Recurrent Neural Networks (RNNs) and other complex architectures where nesting is particularly problematic for traditional optimizers.

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