Efficient Training of Neural Fractional-Order Differential Equation via Adjoint Backpropagation

Qiyu Kang, Xuhao Li, Kai Zhao, Wenjun Cui, Yanan Zhao, Weihua Deng, Wee Peng Tay

Introduction

In the evolving landscape of continuous-depth neural networks, Neural Ordinary Differential Equations (Neural ODEs) have emerged as a powerful tool for modeling data as a smooth flow. However, standard ODEs are fundamentally limited by their reliance on integer-order derivatives. These derivatives are "local," meaning the next state of a system depends solely on its current state. This locality makes them ill-suited for modeling complex systems characterized by "long-term memory" or non-local effects, such as viscoelastic materials, financial markets, or intricate social dynamics.

Neural Fractional-Order Differential Equations (Neural FDEs) address this limitation by employing fractional calculus. By using non-integer derivatives (e.g., a 0.5-order derivative), these models can naturally integrate a continuum of past states into the present. Despite their theoretical advantages, training Neural FDEs has historically been computationally prohibitive. Standard backpropagation requires storing every intermediate step of a numerical solver, leading to massive memory overhead and "Out-of-Memory" (OOM) errors that restricted Neural FDEs to small-scale toy problems.

Scalable Adjoint Backpropagation

To overcome the memory bottleneck, this research introduces a scalable adjoint backpropagation method tailored for the fractional regime. The core innovation lies in extending the adjoint sensitivity method—commonly used in standard ODEs—to handle the non-local nature of fractional derivatives.

Visualization of the forward feature trajectory (top), the backward adjoint trajectory (middle), and the parameter gradient trajectory (bottom).

The method operates in three primary phases:

  1. Forward Pass: The model computes the feature trajectory $z(t)$ from $t=0$ to $T$ using a fractional variant of the Adams-Bashforth-Moulton solver.
  2. Adjoint Sensitivity: Instead of "unrolling" the solver and storing all intermediate states, the researchers derive a secondary "adjoint" FDE. This adjoint state, $\lambda(t)$, represents the sensitivity of the loss with respect to the hidden state.
  3. Backward Evolution: The adjoint FDE is solved backward in time from the terminal state $T$ to the initial state $0$. By defining an augmented objective function with a Lagrangian multiplier, the gradient of the loss with respect to model parameters is computed without ever needing to store the full forward trajectory in active RAM.

This approach shifts the memory complexity from being dependent on the number of solver steps to a constant related only to the state size, effectively decoupling memory cost from the network's depth.

Experimental Evaluation

The proposed method was evaluated across several domains to test its accuracy and scalability:

  • Biological Systems: A synthetic fractional Lotka-Volterra model verified that the adjoint method could accurately recover "ground truth" physical constants.
  • Image Classification: Benchmarks on the MNIST dataset demonstrated that for long integration times ($T=200$), the adjoint method used only 40% of the memory required by direct differentiation.
  • Graph Node Classification: The model was tested on a suite of homophilic datasets, including Cora, Citeseer, and Pubmed, as well as large-scale benchmarks like Ogbn-products (2.4 million nodes).

Key Results and Performance

The results indicate that the adjoint method does not sacrifice accuracy for efficiency. The proposed Adj-F-GRAND model achieved state-of-the-art or highly competitive results across various graph benchmarks.

Performance comparison of Adj-F-GRAND against standard GNNs and other continuous-depth models across various graph benchmarks.

As shown in the table above, Adj-F-GRAND-l reached 85.0% accuracy on the Cora dataset, outperforming traditional models like GCNs and GATs. More importantly, the memory efficiency allowed the model to scale to the Ogbn-products dataset, where previous Neural FDE implementations failed due to memory limits. The adjoint method supported batch sizes of 20,000 on a single GPU, a feat previously impossible for fractional-order models.

Discussion and Future Work

While the adjoint method significantly reduces memory requirements, it does not eliminate the inherent time complexity of fractional integrals, which remains $O(N^2)$ due to the need to look back at previous steps. Future research may focus on "pruning" or approximating this history to accelerate training further. Additionally, while this work uses fixed fractional orders, exploring the optimization of the fractional order $\beta$ as a trainable parameter could unlock even greater model flexibility.

By breaking the memory barrier, this work transforms Neural FDEs from theoretical curiosities into practical, scalable tools for modeling complex, memory-dependent systems.

Summary updated

BibTeX
@inproceedings{kang2025efficient,
  author = {Qiyu Kang and Xuhao Li and Kai Zhao and Wenjun Cui and Yanan Zhao and Weihua Deng and Wee Peng Tay},
  title = {{Efficient Training of Neural Fractional-Order Differential Equation via Adjoint Backpropagation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i17.33952},
}
Figure