Deep equilibrium models (DEQs) have proven to be very powerful for learning data representations. The idea is to replace traditional (explicit) feedforward neural networks with an implicit fixed-point equation, which allows to decouple the forward and backward passes. In particular, training DEQ layers becomes very memory-efficient via the implicit function theorem. However, backpropagation through DEQ layers still requires solving an expensive Jacobian-based equation. In this paper, we introduce a simple but effective strategy to avoid this computational burden. Our method relies on the Jacobian approximation of Broyden's method after the forward pass to compute the gradients during the backward pass. Experiments show that simply re-using this approximation can significantly speed up the training while not causing any performance degradation.
翻译:深层平衡模型已被证明在数据表征学习方面非常强大。其核心思想是将传统(显式)前馈神经网络替换为隐式不动点方程,从而能够解耦前向传播与反向传播过程。特别地,通过隐函数定理,训练深层平衡层在内存使用上变得非常高效。然而,通过深层平衡层进行反向传播仍需求解基于雅可比矩阵的昂贵方程。本文提出了一种简单但有效的策略来避免这种计算负担。该方法在前向传播完成后,依赖Broyden方法的雅可比近似来计算反向传播过程中的梯度。实验表明,简单地复用该近似值能够显著加速训练,同时不会造成任何性能下降。