Hyperparameter Trajectory Inference with Conditional Lagrangian Optimal Transport
Organizations: Department of Applied Mathematics and Theoretical Physics University of Cambridge, UK
Abstract
Neural networks (NNs) often have critical behavioural trade-offs that are set at design time with hyperparameters-such as reward weights in reinforcement learning or quantile targets in regression. Post-deployment, however, user preferences can evolve, making initial settings undesirable, necessitating potentially expensive retraining. To circumvent this, we introduce the task of Hyperparameter Trajectory Inference (HTI): to learn, from observed data, how a NN's conditional output distribution changes with its hyperparameters, and construct a surrogate model that approximates the NN at unobserved hyperparameter settings. HTI requires extending existing trajectory inference approaches to incorporate conditions, exacerbating the challenge of ensuring inferred paths are feasible. We propose an approach based on conditional Lagrangian optimal transport, jointly learning the Lagrangian function governing hyperparameter-induced dynamics along with the associated optimal transport maps and geodesics between observed marginals, which form the surrogate model. We incorporate inductive biases based on the manifold hypothesis and least-action principles into the learned Lagrangian, improving surrogate model feasibility. We empirically demonstrate that our approach reconstructs NN outputs across various hyperparameter spectra better than other alternatives.
Figures & tables
| Method | NLL ( ) | CD ( ) |
|---|---|---|
| Method | Reward ( ) |
|---|---|
| Direct | |
| MFM | |
| CFM | |
| NLOT |
| Method | Reward ( ) |
|---|---|
| Direct | |
| NLOT | |
| CFM | |
| MFM |
| Method | WD ( ) |
|---|---|
| MFM | |
| CFM | |
| Direct | |
| NLOT |
| Semicircle | Cancer | Reacher | Dropout | ||
|---|---|---|---|---|---|
| NLL ( ) | CD ( ) | Reward ( ) | Reward ( ) | WD ( ) | |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| for models with , otherwise | |
| N/A | |
| Epochs | 2001 |
| learning rate | |
| MLP hidden layer sizes |
| Hyperparameter | Value |
|---|---|
| for models with , otherwise | |
| Epochs | |
| learning rate | |
| MLP hidden layer sizes |
| Hyperparameter | Value |
|---|---|
| Epochs | |
| Early stopping patience | |
| Validation set | |
| Batch size | |
| Learning rate | |
| Hidden layer sizes |
| Hyperparameter | Value |
|---|---|
| Epochs | |
| Early stopping patience | |
| Validation set | |
| Batch size | |
| Learning rate | |
| Hidden layer sizes |
| Hyperparameter | Value |
| Epochs | |
| Early stopping patience | |
| Validation set | |
| Batch size | |
| Interpolant learning rate | |
| Vector field learning rate |
| Hyperparameter | Value |
|---|---|
| for models with , otherwise | |
| Epochs | |
| learning rate | |
| MLP hidden layer sizes |
| Hyperparameter | Value |
|---|---|
| for models with , otherwise | |
| Epochs | |
| learning rate | |
| MLP hidden layer sizes |
| Hyperparameter | Value |
|---|---|
| for models with , otherwise | |
| Epochs | |
| learning rate | |
| MLP hidden layer sizes |
Neural Surrogate Modeling
Neural surrogate modeling uses learned models to approximate costly simulations, enabling faster prediction, design, control, and inference.
See all 410 papers