The Extrapolation Power of Implicit Models

Juliette Decugis, Alicia Y. Tsai, Max Emerling, Ashwin Ganesh, Laurent El Ghaoui · DOI

Introduction

Standard neural networks, while highly effective at interpolation, often fail when encountering data outside their training distribution. This limitation is a significant hurdle for general machine intelligence, particularly in domains like finance or physics where extreme events are common. This paper explores implicit models—architectures that define internal states through equilibrium equations rather than a fixed sequence of layers—and demonstrates their superior ability to extrapolate to unseen data.

The Rigidity of Explicit Models

Traditional "explicit" models, such as Transformers, LSTMs, and MLPs, utilize a fixed computational graph. They process every input through a predetermined number of layers, regardless of the input's complexity or its deviation from the training set. The authors argue that this structural rigidity leads to overfitting on the training distribution, causing performance to collapse during extrapolation tasks.

Implicit Deep Learning and Depth Adaptability

Implicit models, specifically Deep Equilibrium Models (DEQs), offer a dynamic alternative. Instead of a fixed layer-by-layer pass, these models find a "fixed point" $x$ such that:

$$x = \phi(Ax + Bu)$$

where $u$ is the input and $\phi$ is a non-linear activation.

A key advantage of this approach is depth adaptability. The model iterates until it reaches convergence. For harder or out-of-distribution (OOD) samples, the model naturally performs more iterations. This effectively allows the model to "grow" its computational depth on the fly to handle increased complexity. Furthermore, the parameter matrix $A$ enables closed-loop feedback, allowing information to revisit nodes and self-correct within a single forward pass—a mechanism reminiscent of biological neural systems.

Experimental Evaluation

The researchers evaluated implicit models across three challenging domains:

  1. Mathematical Extrapolation: Tasks like identity mapping and arithmetic (addition/subtraction) where the distribution shift can be precisely measured.
  2. Financial Time Series: Predicting AMC stock volatility, specifically focusing on the unprecedented "meme stock" surge of early 2021.
  3. Geophysical Prediction: Locating earthquake sources using data from the Pacific Ring of Fire and testing on geographically distant regions.

Key Results and Insights

The results highlight a significant performance gap between implicit and explicit architectures. In arithmetic tasks, implicit models maintained near-zero loss even as distribution shifts caused the errors of Transformers and specialized Neural Arithmetic Logic Units (NALUs) to explode by factors as high as $10^{10}$.

Comparison of extrapolation performance on addition tasks.

In real-world applications, the implicit model outperformed baselines by a factor of 1.67 in Mean Absolute Percentage Error (MAPE) when predicting the 2021 AMC volatility spike. This success is attributed to the model's ability to "work harder" on unfamiliar data; for instance, in rolling argmax tasks, the model increased its iteration count from ~90 for in-distribution data to 175 for shifted data.

AMC stock volatility and the 2021 'meme stock' spike.

Conclusion and Future Directions

Implicit models represent a promising shift toward more robust AI. By prioritizing dynamic depth and internal feedback over sheer parameter scale, they achieve high accuracy on OOD tasks with significantly fewer parameters than traditional models. However, challenges remain regarding the computational cost of iteration and the stability constraints required to ensure convergence. Future work will explore their performance on longer sequences and more complex multi-modal tasks.

Summary updated

BibTeX
@misc{decugis2024extrapolation,
  author = {Juliette Decugis and Alicia Y. Tsai and Max Emerling and Ashwin Ganesh and Laurent El Ghaoui},
  title = {{The Extrapolation Power of Implicit Models}},
  year = {2024},
  eprint = {2407.14430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.14430},
}
Figure