Parameter-Efficient Neural CDEs via Implicit Function Jacobians

Alexey Zaytsev, Ilya Kuleshov, Alexey Zaytsev 0002arXiv 2025 · DOI

Introduction

Neural Controlled Differential Equations (NCDEs) have established themselves as a robust framework for modeling irregular time series. By treating data as a continuous path rather than a discrete sequence, NCDEs offer a mathematically principled way to handle missing values and varying sampling rates. However, a significant bottleneck limits their scalability: the "parameter tax." Standard NCDE architectures require a neural network to output a large control matrix, leading to a parameter count that scales poorly with the dimensions of the input and hidden states.

This paper introduces the Jacobian NCDE, a novel approach that reinterprets the NCDE as the continuous limit of a Recurrent Neural Network (RNN). By leveraging implicit function differentiation and Jacobian-vector products, the proposed method reduces parameter requirements by 50% while maintaining or exceeding state-of-the-art performance.

The Problem: The Parameter Explosion

In a standard NCDE, the hidden state $h_t$ evolves according to the following differential equation:

$$\dot{h}_t = f_\theta(X_t, h_t)\dot{X}_t$$

Here, $f_\theta$ is a neural network that defines the vector field. Because $\dot{h}_t$ is a vector of dimension $v$ and $\dot{X}_t$ is a vector of dimension $u$, the network $f_\theta$ must output a matrix of size $v \times u$. For high-dimensional hidden states or complex inputs, the final linear layer of $f_\theta$ becomes massive, leading to cubic scaling in parameters. This not only increases the computational cost but also makes the model more susceptible to overfitting on smaller datasets.

Methodology: The "Truly Continuous RNN"

To address this, the authors propose a shift in perspective, deriving the NCDE from the continuous limit of a discrete RNN.

1. Implicit Definition

They begin with a standard RNN update step, $h_i = \text{RNN}(x_i, h_{i-1})$. In the continuous limit, as the time step $\Delta t \to 0$, this relationship can be expressed as an implicit equation:

$$h_t = \text{RNN}(X_t, h_t)$$

2. Differentiating the Implicit Function

To determine how the hidden state evolves over time, the authors differentiate this implicit equation with respect to $t$ using the chain rule:

$$\dot{h}_t = J_x \dot{X}_t + J_h \dot{h}_t$$

where $J_x$ and $J_h$ represent the Jacobians of the RNN function with respect to the input $X_t$ and the hidden state $h_t$, respectively. Solving for $\dot{h}_t$ yields:

$$\dot{h}_t = (I - J_h)^{-1} J_x \dot{X}_t$$

3. The Taylor Expansion Trick

Directly computing the matrix inverse $(I - J_h)^{-1}$ is computationally expensive ($O(n^3)$). To maintain efficiency, the authors apply a first-order Taylor expansion:

$$(I - J_h)^{-1} \approx I + J_h$$

This leads to the final approximated update rule:

$$\dot{h}_t \approx J_x \dot{X}_t + J_h J_x \dot{X}_t$$

By utilizing Jacobian-vector products (JVPs), the model can compute these terms without ever explicitly constructing the full Jacobian matrices. This allows the network to remain parameter-efficient, as it only needs to learn the weights of a standard RNN cell rather than a network that outputs a full matrix.

Overcoming Optimization Hurdles

A technical challenge arises when using ReLU activations: the second derivative of ReLU is zero, which can halt gradient flow during backpropagation. To solve this, the authors employ a surrogate gradient method—a technique borrowed from Spiking Neural Networks. They use a sigmoid function as a surrogate for the ReLU derivative during the backward pass, ensuring stable optimization.

Experimental Results

The Jacobian NCDE was evaluated against the standard Matrix-based NCDE on the CharacterTrajectories dataset, which contains 2,858 sequences of pen tip movements across 20 character classes.

Model Accuracy Parameters
Matrix Neural CDE $0.93 \pm 0.02$ 66K
Jacobian Neural CDE $0.94 \pm 0.01$ 33K

The results demonstrate that the Jacobian NCDE achieves a slight improvement in accuracy while utilizing exactly half the parameters of the baseline model. This confirms that the implicit Jacobian approach successfully captures the necessary dynamics for trajectory classification with a much smaller footprint.

Conclusion and Future Work

The Jacobian NCDE provides a formal mathematical bridge between RNNs and NCDEs, creating a "truly continuous RNN" that is significantly more efficient than previous iterations. While this proof-of-concept is successful, several areas for future research remain:

  • Higher-Order Approximations: Investigating whether higher-order Taylor expansions improve accuracy for more complex dynamics.
  • Scalability: Testing the framework on high-dimensional datasets such as climate or financial time series.
  • Architecture Variants: Extending the implicit Jacobian approach to more sophisticated recurrent units like GRUs or LSTMs.

Summary updated

BibTeX
@misc{zaytsev2025parameter,
  author = {Alexey Zaytsev and Ilya Kuleshov and Alexey Zaytsev},
  title = {{Parameter-Efficient Neural CDEs via Implicit Function Jacobians}},
  year = {2025},
  eprint = {2512.20625},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.20625},
}
Figure