Target Propagation via Regularized Inversion

Vincent Roulet, Zaid Harchaoui

TL;DR

Target Propagation (TP) replaces back-propagated gradients with layer-wise virtual targets, but previous implementations required unstable, computationally expensive auxiliary networks to learn backward inverses. This paper proposes a simpler, theoretically grounded TP framework using analytical, regularized layer inversions and first-order linearizations. On recurrent neural networks (RNNs) with long sequences, this approach stabilizes training, matches backpropagation's computational cost, and often converges faster on challenging long-range tasks.

What Problem Does This Paper Address?

Standard gradient backpropagation through time (BPTT) often struggles in deep or recurrent architectures due to the well-known exploding and vanishing gradient problems. Target Propagation (TP) offers an alternative: instead of passing loss gradients backward via the chain rule, it propagates "virtual targets" back through layer-inversion mappings.

However, prior TP methods faced two core challenges:

  1. Heuristic reverse models: Most modern variants (such as Difference Target Propagation) approximate inverse operations by training auxiliary "reverse" neural networks. It is unclear whether these networks ever learn true mathematical inverses, and optimizing them adds notable overhead.
  2. Poor conditioning: Inverting neural network layers directly without regularization is ill-posed and numerically unstable.

The authors aim to place target propagation on firm mathematical footing by deriving closed-form regularized inverses and clarifying the relationship between TP, linear approximations, and Gauss-Newton optimization.

Methods

The paper develops an analytical, regularized inversion framework tailored to sequential models (RNNs and GRUs):

  • Closed-Form Regularized Inversion: Rather than training reverse layers, the authors solve a variational objective minimizing the reconstruction error $\|f_{\theta,t}(v_{t-1}) - v_t\|_2^2$. For standard activations (tanh, ReLU, sigmoid), this yields an analytical Tikhonov-regularized pseudo-inverse: $$f_{\theta, t}^{-1}(v_t) = (W_{hh}^\top W_{hh} + r I)^{-1} W_{hh}^\top \left(a^{-1}(\pi(v_t)) - W_{xh}x_t - b_h\right)$$ where $r > 0$ provides damping/regularization and $\pi$ projects targets onto the activation function's valid range.

  • Linearized Inverse Propagation: Instead of directly setting $v_{t-1} = f^{-1}(v_t)$, the update linearizes the inverse around the forward activation $h_t$: $$v_{t-1} = h_{t-1} + \left[\partial_h f_{\theta,t}^{-1}(h_t)\right]^\top (v_t - h_t)$$ This first-order formulation naturally integrates into modern automatic differentiation frameworks.

  • Computational Efficiency: Computing $(W_{hh}^\top W_{hh} + r I)^{-1}$ costs $\mathcal{O}(p^3)$ (where $p$ is the hidden state size). Because the recurrent weights are shared across all time steps, this matrix inversion happens only once per sequence. When sequence length $\tau \gg p$, this cost amortizes, making TP's time complexity roughly equal to standard backpropagation: $\mathcal{O}(\tau(dp + p^2 + pq))$.

Datasets

The authors evaluate their method on established synthetic and sequential image classification benchmarks:

  • Synthetic Tasks:
  • Temporal Order Problem: Identifying the order of two marker symbols placed far apart in sequences of length $T = 60$ and $T = 120$.
  • Adding Problem: Summing two flagged real values in a sequence ($T = 30$).
  • Sequential Image Benchmarks (scanned pixel-by-pixel):
  • Sequential MNIST (length 784) and Permuted Sequential MNIST (pMNIST, length 784).
  • Sequential CIFAR-10 (length 3,072: $32 \times 32 \times 3$).
  • Sequential FashionMNIST (length 784, evaluated using a GRU).

No new datasets were introduced.

Key Insights and Ideas

  • Demystifying Difference Target Propagation: The "magic" cancellation formula introduced in Difference Target Propagation (Lee et al., 2015) was designed as an ad-hoc fix for inverse errors. The authors demonstrate that it is mathematically equivalent to a zeroth-order finite-difference approximation of their first-order linearized inverse Jacobian.
  • Regularization is non-negotiable: While recent theory conceptualized TP as an unregularized Gauss-Newton approximation, grid sweeps reveal that setting the regularization parameter $r = 0$ causes optimization to diverge immediately. Regularization ($r > 0$) is vital for numerical conditioning.
  • Effective on Long Sequences: TP excels when sequence lengths are large relative to the hidden dimension, outperforming backpropagation where long-term temporal dependencies typically cause gradient degradation.

Key Results

  • Long-Term Temporal Ordering: On the Temporal Order task with sequence length $T=60$, TP converged to 100% accuracy significantly faster than BP. At length $T=120$, TP reached 100% accuracy within 40,000 iterations, whereas standard BP failed to learn.
  • Sequential Image Classification:
  • On unpermuted sequential MNIST, TP reached ~74% accuracy after $4 \cdot 10^4$ iterations.
  • On permuted MNIST (which destroys local spatial correlations and tests long-range dependency modeling), TP achieved ~86% accuracy, training noticeably faster and smoother than BP.
  • On sequential CIFAR-10, neither simple model achieved high accuracy, but TP learned faster than BP.
  • On FashionMNIST with a GRU, TP performed on par with BP, demonstrating compatibility with gated architectures.
  • Task Discrepancy: On the continuous-output adding problem, TP performed worse than BP, mirroring findings from prior TP literature that target propagation currently handles classification/discrete targets better than continuous regression targets.

Limitations and Future Work

  • Continuous Outputs / Regression: The method underperforms standard gradient backpropagation on continuous regression benchmarks like the adding problem.
  • Optimization Ecosystem: Experiments utilized a simple stochastic gradient descent outer loop. The authors note that integrating adaptive optimizers (e.g., Adam-style momentum and scaling) specifically designed for TP updates remains an open challenge.
  • Future Directions: Promising avenues include extending regularized target propagation to continuous-time dynamical systems (Neural ODEs) and scaling beyond recurrent cells to deep feedforward and attention architectures.

Summary updated

BibTeX
@article{roulet2023target,
  author = {Vincent Roulet and Zaid Harchaoui},
  title = {{Target Propagation via Regularized Inversion}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
}
Figure