NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Treating Hyperparameters as Interventions: Task-Invariant Representation Learning for Transferable HPO

Mengyang Li, Ou Wu

NeurIPS page · OpenReview · Open on the map

Category: Causality, Privacy & Learning Theory › Conditional Independence Testing · Type: new method · Keywords: hyperparameter optimization, task invariant representation, transfer learning, causal representation learning, variational inference, theoretical guarantees

Areas: Continual Learning & Adaptation › Domain Shift Adaptation › Domain Shift Adaptation

Summary

CA-HPO is a transfer hyperparameter optimization framework that learns task representations invariant to hyperparameter interventions, enabling fast and generalizable HPO across tasks.

Explained to a 5-year-old

We have a robot that tries many settings to make a computer program work well. Each setting is like a knob we can turn. The robot learns what the program needs, no matter which knob we turn, so it can reuse that knowledge for new tasks. This helps the robot make the program better faster.

Explained to a 5-year-old, longer

Imagine you have a toy car that you want to make go faster. You can change many things like the battery strength, the wheels, or how you push it. Trying all the changes one by one takes a long time. The researchers built a smart helper that looks at the car and learns what makes it go fast, no matter which change you pick. This helper learns a picture of what the car needs, and that picture stays the same even if you try different changes. Then, when you get a new toy car, the helper can tell you which change to try first, so you don't have to test everything. This makes the car faster quicker and saves time. The helper also works for many different kinds of cars and even for big computer programs that help us talk and write.

For a technical reader

The paper presents a method that learns a task representation robust to hyperparameter variations by solving a constrained variational problem. It uses a predictive loss and an invariance penalty to ensure the representation captures task-specific information while ignoring hyperparameter effects. Theoretical analysis provides guarantees on recovery, finite-sample error, and counterfactual prediction risk. Empirically, the method speeds up hyperparameter optimization by 5-15× compared to Bayesian optimization and recent baselines, and the learned representations transfer across tasks and hyperparameter ranges.

Problem

Optimizing hyperparameters for each new task is costly and does not generalize well; there is a need for a method that can learn task characteristics that remain unchanged across different hyperparameter settings, enabling faster transfer of hyperparameter choices.

Method

The approach learns a task representation that is explicitly constrained to be invariant under hyperparameter changes and predictive of performance, formulated as a solution to a constrained variational problem to avoid strong identifiability assumptions, and uses a predictive loss together with an invariance penalty.

Results

The approach achieves 5 to 15 times speedup over Bayesian optimization and recent baseline methods on Llama-3-8B fine-tuning and twelve classical benchmarks, while learned representations remain stable across a 100-fold range of learning rates and transfer across domains.

Contributions

The paper introduces a framework for learning task representations that are invariant to hyperparameter interventions, formulates the target representation as a solution to a constrained variational problem, provides population-level and finite-sample theoretical guarantees, and demonstrates fast transfer across tasks and hyperparameter spaces.

Practical relevance

The framework enables rapid hyperparameter optimization for new tasks, reducing computational cost and facilitating transfer across domains, which can accelerate model development in practice.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction