Context-dependent manifold learning: A neuromodulated constrained autoencoder approach
Organizations: Neuroengineering Lab, Department of Electrical Engineering and Computer Science, University of Liège · University of Liège, Liège, Belgium
Abstract
Many physical systems exhibit a low-dimensional structure that varies with external parameters: link lengths in a robot, forcing constants in a fluid, or Reynolds numbers in a flow shift the underlying manifold while preserving its intrinsic dimension. Constrained AutoEncoders (cAEs) learn such manifolds through an idempotent encoder-decoder projection, a property that unconstrained autoencoders cannot match and that is essential whenever the model is applied iteratively. However, the standard strategies for making a cAE context-dependent, namely concatenating the context to the input or affinely modulating hidden activations, break the encoder-decoder idempotency, sacrificing the projection guarantee precisely in the setting where it would be most valuable. To restore this guarantee under context variation, we developed the Neuromodulated Constrained Autoencoder (NcAE), which modulates the activation slope and bias of a cAE through a context-driven hyper-network. This paper presents the NcAE, its theoretical foundation, and its empirical validation. We prove that for every context, including contexts unseen at training time, the reconstruction map remains an idempotent projection, the topology of the learned manifold is invariant, and context perturbations induce smooth changes in the manifold. We evaluated our approach on a 16-DoF pendulum with context-dependent coupling and the Lorenz96 system across a bifurcation. The NcAE matched or exceeded the best of six baselines on reconstruction, idempotency, and latent-geometry metrics, while being the only architecture that preserves geometric consistency by construction. The NcAE thereby provides a stable, geometry-preserving coordinate system across families of physical regimes.
Figures & tables
| Pendulum | Lorenz96 | |||
|---|---|---|---|---|
| Method | Pos. RMSE | Vel. RMSE | Pos. RMSE | Vel. RMSE |
| cAE | ||||
| Context-cAE | ||||
| AE | ||||
| Context-AE | ||||
| FiLM+AE | ||||
| Pendulum | Lorenz96 | |||
|---|---|---|---|---|
| Method | CV | CN | CV | CN |
| cAE | ||||
| Context-cAE | ||||
| AE | ||||
| Context-AE | ||||
| FiLM+AE | ||||
| Pendulum | Lorenz96 | |||
|---|---|---|---|---|
| Variant | Pos. RMSE | Vel. RMSE | Pos. RMSE | Vel. RMSE |
| Bias-only NcAE | ||||
| -only NcAE* | ||||
| NcAE (both) | ||||
Appendix figures & tables24 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | cAE | Context-cAE | NcAE |
|---|---|---|---|
| Main architecture | |||
| Layer sizes ( ) | |||
| Latent dimension ( ) | 4 | ||
| Activation parameter | N/A | ||
| Contextual mechanism | |||
| Mechanism | None | Concatenation | Neuromodulation |
| Hyperparameter | AE | Context-AE | FiLM+AE | SoftNcAE |
|---|---|---|---|---|
| Main architecture | ||||
| Encoder layers | ||||
| Decoder layers | ||||
| Latent dimension ( ) | 4 | |||
| Activation function | ReLU | ReLU | SiLU | |
| Contextual mechanism | ||||
| Hyperparameter | cAE | Context-cAE | NcAE |
|---|---|---|---|
| Main architecture | |||
| Layer sizes ( ) | |||
| Latent dimension ( ) | 2 | ||
| Activation parameter | N/A | ||
| Contextual mechanism | |||
| Mechanism | None | Concatenation | Neuromodulation |
| Hyperparameter | AE | Context-AE | FiLM+AE | SoftNcAE |
|---|---|---|---|---|
| Main architecture | ||||
| Encoder layers | ||||
| Decoder layers | ||||
| Latent dimension ( ) | 2 | |||
| Activation function | ReLU | ReLU | SiLU | |
| Contextual mechanism | ||||
| OOD +10% | OOD +20% | OOD +50% | ||||
|---|---|---|---|---|---|---|
| Model | Pos. RMSE | Vel. RMSE | Pos. RMSE | Vel. RMSE | Pos. RMSE | Vel. RMSE |
| cAE | ||||||
| Context-cAE | ||||||
| AE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| OOD +10% | OOD +20% | OOD +50% | ||||
|---|---|---|---|---|---|---|
| Model | Pos. RMSE | Vel. RMSE | Pos. RMSE | Vel. RMSE | Pos. RMSE | Vel. RMSE |
| cAE | ||||||
| Context-cAE | ||||||
| AE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| cAE | ||||||
| Context-cAE | ||||||
| AE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| Context-cAE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| SoftNcAE | ||||||
| NcAE (ours) | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| Context-cAE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| SoftNcAE | ||||||
| NcAE (ours) | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| cAE | ||||||
| Context-cAE | ||||||
| AE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| Context-cAE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| SoftNcAE | ||||||
| NcAE (ours) | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| Context-cAE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| SoftNcAE | ||||||
| NcAE (ours) | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| Context-cAE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| SoftNcAE | ||||||
| NcAE (ours) | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| Context-cAE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| SoftNcAE | ||||||
| NcAE (ours) | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| cAE | ||||||
| Context-cAE | ||||||
| AE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| Context-cAE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| SoftNcAE | ||||||
| NcAE (ours) | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| Context-cAE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| SoftNcAE | ||||||
| NcAE (ours) | ||||||
| Model | Pos. | Vel. | Pos. | Vel. | Pos. | Vel. |
|---|---|---|---|---|---|---|
| cAE | ||||||
| Context-cAE | ||||||
| AE | ||||||
| Context-AE | ||||||
| FiLM+AE | ||||||
| Method | Step 1 | Step 5 | Step 10 | Step 15 |
|---|---|---|---|---|
| cAE | ||||
| Context-cAE | ||||
| AE | ||||
| Context-AE | ||||
| FiLM+AE | ||||
| SoftNcAE |
| Method | Step 1 | Step 5 | Step 10 | Step 15 |
|---|---|---|---|---|
| cAE | ||||
| Context-cAE | ||||
| AE | ||||
| Context-AE | ||||
| FiLM+AE | ||||
| SoftNcAE |
Autoencoders
Autoencoders learn compressed representations by encoding data into latent codes and decoding them for reconstruction, generation, denoising, or anomaly detection.
See all 152 papers