ADMMiRNN: Efficient ADMM for RNN Training
- The paper introduces ADMMiRNN, which recasts RNN training as a block-wise constrained optimization problem via ADMM to overcome vanishing/exploding gradients.
- It leverages proximal penalties and closed-form updates to decompose the problem, resulting in robust, initialization-insensitive convergence.
- Parallel implementations—both synchronous and asynchronous—enhance scalability and speed up convergence on sequence modeling tasks.
ADMMiRNN is a training framework for Recurrent Neural Networks (RNNs) based on the Alternating Direction Method of Multipliers (ADMM). It is designed to circumvent classical gradient-based difficulties in RNN optimization, notably vanishing/exploding gradients and extreme sensitivity to initialization. ADMMiRNN reformulates RNN training as a constraint-splitting problem using the unfolded RNN computational graph and applies a block-wise ADMM approach, enabling stable and efficient convergence. Parallel extensions, including both synchronous and asynchronous variants, further address scalability and efficiency concerns. Experimental results demonstrate ADMMiRNN’s superior stability and convergence properties on standard sequence modeling tasks compared to conventional optimizers (Tang et al., 2020).
1. Motivation and Core Challenges
RNNs suffer from two central obstacles in gradient-based training: (1) vanishing gradients, in which backpropagated signals exponentially decay through the unfolded RNN as the singular values of the recurrent Jacobian fall below one, and (2) exploding gradients, where singular values above one induce exponential amplification. This dynamic is further exacerbated by sensitivity to initial weight and bias values; small variations can drastically alter the recurrent Jacobian spectrum, destabilizing training trajectories. Standard optimizers such as SGD, Adam, and RMSProp propagate gradients through each timestep, inheriting both these failure modalities.
ADMMiRNN addresses these challenges by recasting RNN training as an equality-constrained optimization problem using explicit local variables for each timestep’s pre-activation, state, and output. This enables the application of ADMM, which separates the original problem into simpler subproblems and avoids explicit backpropagation, thereby robustly mitigating vanishing/exploding gradients and improving initialization insensitivity. Proximal penalty terms in each subproblem further regularize optimization, and the structure naturally admits parallelism (Tang et al., 2020).
2. Mathematical Framework
Consider an unfolded RNN of sequence length with parameters
Defining the state evolution and output as \begin{align} a_t &= u\,x_t + w\,s_{t-1} + b \ s_t &= f(a_t) \ o_t &= v\,s_t + c \end{align} and with loss and regularizer , the standard objective is
This is converted to an ADMM-suitable form by introducing explicit variables and constraints 0, 1, and 2, which are relaxed into the augmented Lagrangian
3
as detailed in the definition (AL), with penalty and relaxation parameters 4. The full variable vector is split into eight blocks: 5, 6, 7, 8, 9, 0, 1, 2.
Each block is updated iteratively, alternating between a backward and forward sweep, and the dual multipliers are updated according to standard ADMM rules. All subproblems in this block decomposition have strongly convex quadratic (or simple) objective functions, and there are closed-form solutions or easily computed updates for each block.
3. Block-wise Updates and Solver Structure
To maintain computational efficiency and avoid expensive matrix operations, each variable block update is linearized with a proximal term. Denote the current iteration by 3, and the next by 4.
The 5-update exemplifies the structure: 6 and is solved in closed form. The 7, 8, 9, and 0 updates follow similar proximal quadratic structure. For the timestep-specific auxiliary variables 1, the subproblems decouple across 2 and can be parallelized.
The update schedule for all blocks can be summarized as follows (see Algorithm 1 in (Tang et al., 2020)):
- Backward sweep: 3
- Forward sweep: 4
- Dual multiplier update
This approach removes all explicit backpropagation through time; each update step is either a small quadratic problem or an element-wise proximal computation.
4. Convergence Properties
ADMMiRNN satisfies several theoretical guarantees under standard assumptions, specifically Lipschitz continuity of the loss gradient and boundedness:
- Descent and Boundedness (Theorem 1): If each penalty 5, where 6 is the Lipschitz constant, the Lagrangian decreases at each iteration, and all iterates remain bounded.
- Global Convergence (Theorem 2): Under the same conditions, every limit point of the sequence of iterates is a stationary point of the augmented Lagrangian, satisfying KKT conditions.
- Sublinear Rate (Theorem 3): The best-so-far gap 7, achieving asymptotic sublinear ergodic convergence.
Asynchronous variants with bounded staleness 8 and strongly convex loss functions also retain 9 convergence to the KKT set (Theorem 4).
5. Parallel and Distributed Implementations
The independence of many subproblems at each ADMM step allows for both synchronous and asynchronous parallelization.
- Synchronous Parallel ADMMiRNN (SP-ADMMiRNN): The eight variable blocks are partitioned among 0 workers. Updates are performed in parallel per block, with a barrier synchronization at each iteration. Workers exchange and synchronize variables at each global step.
- Asynchronous Parallel ADMMiRNN (AP-ADMMiRNN): Workers independently pull the current state, update their block, and return the result without global synchronization. Bounded staleness 1 ensures update freshness. All communication follows a master–worker protocol, with the master handling block distribution, gathering updates, and merging iterates (see Algorithms 2 and 3 in (Tang et al., 2020)).
Table: Modes of Parallelization
| Mode | Worker Coordination | Convergence Guarantee |
|---|---|---|
| SP-ADMMiRNN | Barrier at each sweep | Global, as in central |
| AP-ADMMiRNN | Asynchronous, staleness bounded by 2 | 3 to KKT under strong convexity |
6. Experimental Results
Benchmarks were conducted on MNIST (sequence-mode), IMDb sentiment analysis, and synthetic text classification tasks with variable sequence lengths. The principal findings are:
- Convergence Speed: ADMMiRNN achieves near-zero training loss within a few dozen iterations. Comparators (SGD, Adam, RMSProp) require hundreds to thousands of iterations for comparable results.
- Test Accuracy: On MNIST, over 99% accuracy is achieved within approximately 100 iterations, whereas baselines either plateau lower or converge more slowly. On IMDb, ADMMiRNN shows rapid and smooth ascent of sentiment classification accuracy.
- Stability: Across 10 independent initializations per optimizer, ADMMiRNN exhibits virtually zero standard deviation in loss/accuracy, compared to significant variability with SGD-style optimizers.
- Resilience to Sequence Length: On the synthetic text task, conventional RNNs show loss escalation with increasing sequence length, attributed to vanishing/exploding gradients. ADMMiRNN’s loss remains flat as sequence length grows.
- Parallel Efficiency: On three-worker configurations, SP-ADMMiRNN reduces runtime by approximately 40% and AP-ADMMiRNN by 70%, with convergence profiles preserved.
7. Practical Aspects and Implementation Guidelines
- Penalty Parameters: Penalties 4 must satisfy 5 (Lipschitz constant). Typical empirical values are within 6. The output penalty 7 is most sensitive; excessive values can slow or destabilize convergence.
- Constraint Relaxation Parameter 8: Governs the strictness of constraint satisfaction at early timesteps. Moderate values (9) balance convergence speed and solution quality.
- Proximal Parameter 0: Must ensure 1 for quadratic subproblem convexity; choose 2.
- Activation Function Approximation: For 3 activations and small pre-activations, 4 yields closed-form updates for the 5- and 6-blocks.
- Computational Complexity: Each step involves 7 small matrix problems with no backpropagation through time; memory and computation cost scale linearly with sequence length.
- Initialization: Any standard random initialization is admissible. Global convergence results hold irrespective of the scale of the initial recurrent weights.
ADMMiRNN implements stable, gradient-free, block-wise ADMM training for RNNs, circumventing gradient pathologies, offering provable convergence, and supporting efficient parallelization (Tang et al., 2020).