NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Controlled Dynamics Attractor Transformer

Cheng Zhang, Minnan Luo, Zesheng Yang, Ming Li, Yong-Jin Liu, Qinghua Zheng

Introduction

The Controlled Dynamics Attractor Transformer (CDAT) re-imagines Transformer inference as a robust dynamical system. By combining energy-based self-attention with biologically inspired "excitation-inhibition" mechanisms, CDAT bridges the gap between modern representation learning and classical Continuous Attractor Neural Networks (CANNs). This approach allows the model to escape the shallow local minima that trap standard architectures, achieving state-of-the-art performance in complex tasks like graph classification and anomaly detection.

The Problem: Fragile Dynamics in Transformers

While Transformers have revolutionized artificial intelligence, their internal update dynamics are often fragile. In the presence of noise or complex relational data, token representations can drift toward "spurious states"—mathematical dead-ends that fail to capture the true underlying data distribution.

Standard Transformers are strictly feed-forward, passing data through layers in a single shot. Recent "Energy-based Transformers" (like ET) attempt to address this by treating inference as an iterative process of rolling down an "energy hill" via gradient descent to find a stable state. However, simple gradient descent is notoriously prone to getting stuck in the first shallow local minimum it encounters. To find a more robust way to navigate these energy landscapes, the authors of CDAT look to biological systems, specifically CANNs.

Methodology: Energy Landscapes and Biological Inspiration

CDAT replaces the standard feed-forward block with an iterative attractor system. Instead of a single pass, tokens evolve over several time steps within the same block, guided by a specific energy function and controlled dynamics.

Dual-Energy Landscape

The model's objective is defined by two complementary energy terms:

  • Mo-vMF Attention Energy: The authors mathematically prove that self-attention is equivalent to a mixture of von Mises–Fisher (Mo-vMF) distributions. This term handles coarse semantic alignment on a hypersphere.
  • Hopfield Refinement Energy: This term utilizes fixed, learnable "memory prototypes" to sharpen representations and ensure global consistency.

Controlled Dynamics

Instead of merely following the energy gradient, CDAT augments the update rule with three biologically inspired terms:

  1. Topology-conditioned Mutual Excitation: Uses the underlying graph's structure to guide how tokens influence one another.
  2. Global Damping / Self-Inhibition: Acting as a repulsive force, this term prevents the model from settling too early. If the model lingers in a potential trap, self-inhibition pushes it away, helping it "jump" out of shallow local minima toward the global optimum.
  3. Passive Decay: Ensures the overall system remains stable and prevents activations from exploding.

To maintain efficiency, the interaction matrix governing these dynamics is parameterized using a Symmetric Low-Rank Coupling (similar to LoRA), which significantly reduces the parameter count.

Key Insights

  • Attention as Probabilistic Inference: A major theoretical contribution of this work is the formal proof linking softmax attention to directional statistics (von Mises-Fisher). This provides a rigorous geometric justification for why attention works and how its energy formulation can be improved.
  • The Power of Inhibition: In most deep learning models, the goal is for the state to settle quickly. CDAT demonstrates that preventing the state from settling too early via self-inhibition is crucial for finding better representations. It provides the "momentum" needed to bypass small crevices and reach the true bottom of the energy valley.
  • Dynamics over Architecture: The paper argues that the way representations update (the dynamics) is just as critical as the arrangement of the layers (the architecture). Structure-aware update rules allow the model to handle complex graphs far better than "flat" Transformers.

Datasets and Results

The authors evaluated CDAT across ten standard benchmarks spanning two primary tasks:

  • Graph Classification: PROTEINS, NCI1, NCI109, DD, ENZYMES, MUTAG, and MUTAGENICITY.
  • Graph Anomaly Detection: YelpChi (Yelp), Amazon, and T-Finance (identifying fraudulent nodes in massive relational networks).

Key Performance Highlights: * State-of-the-Art Accuracy: CDAT achieved SOTA results on 5 out of 7 graph classification datasets. * Outperforming Baselines: It consistently beat the Energy Transformer (ET), showing absolute accuracy gains of 3.4% on NCI1 and 3.8% on NCI109. * Robustness in Low-Label Regimes: In graph anomaly detection with only 1% of labels available, CDAT outperformed ET by 2.6% on Amazon and 3.7% on T-Finance (AUC). * High Efficiency: Despite the added dynamical complexity, CDAT adds only +0.19% more parameters and +2.4% inference latency compared to the standard Energy Transformer.

Limitations and Future Directions

While highly effective, CDAT's iterative nature means it is inherently slower than a standard feed-forward Transformer, as it must compute several steps per block. Additionally, the damping parameter is currently a learned constant. The authors suggest that making this parameter "state-dependent"—changing dynamically based on the current representation—could further optimize the trade-off between speed and accuracy. Finally, future work will explore how these controlled dynamics scale to even larger, more diverse energy landscapes and hierarchical architectures beyond graph-based tasks.

Summary updated

BibTeX
@inproceedings{zhang2026controlled,
  author = {Cheng Zhang and Minnan Luo and Zesheng Yang and MING LI and Yong-Jin Liu and Qinghua Zheng},
  title = {{Controlled Dynamics Attractor Transformer}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=WLRuaimgMw},
}
Figure