[Paper Review] Non-greedy Gradient-based Hyperparameter Optimization Over Long Horizons
This paper proposes a non-greedy, gradient-based hyperparameter optimization method for long-horizon tasks by sharing contiguous hyperparameters and using hypergradient signs to detect convergence. It enables effective meta-learning over ~10⁴ inner steps with only ~10 outer steps, outperforming greedy and random search by nearly 10% on CIFAR-10 within the same computational budget.
Gradient-based meta-learning has earned a widespread popularity in few-shot learning, but remains broadly impractical for tasks with long horizons (many gradient steps), due to memory scaling and gradient degradation issues. A common workaround is to learn meta-parameters online, but this introduces greediness which comes with a significant performance drop. In this work, we enable non-greedy meta-learning of hyperparameters over long horizons by sharing hyperparameters that are contiguous in time, and using the sign of hypergradients rather than their magnitude to indicate convergence. We implement this with forward-mode differentiation, which we extend to the popular momentum-based SGD optimizer. We demonstrate that the hyperparameters of this optimizer can be learned non-greedily without gradient degradation over ∼104 inner gradient steps, by only requiring ∼10 outer gradient steps. On CIFAR-10, we outperform greedy and random search methods for the same computational budget by nearly 10%. Code will be available upon publication.
Motivation & Objective
- To address the limitations of gradient-based meta-learning in long-horizon tasks due to memory scaling and gradient degradation.
- To overcome the performance drop caused by greedy online meta-learning in long sequences.
- To enable non-greedy hyperparameter optimization over extended inner trajectories without gradient degradation.
- To develop a scalable method that requires minimal outer optimization steps for long-horizon adaptation.
- To demonstrate state-of-the-art performance on long-horizon few-shot learning with efficient computation.
Proposed method
- Hyperparameters are shared across contiguous time steps to reduce memory and gradient complexity.
- Convergence is detected using the sign of hypergradients rather than their magnitude, enabling non-greedy updates.
- Forward-mode differentiation is employed to compute hypergradients efficiently, extending to momentum-based SGD.
- The method leverages the temporal continuity of hyperparameters to stabilize long-horizon optimization.
- Outer optimization uses only ~10 steps to train hyperparameters across ~10⁴ inner gradient steps.
- The approach avoids gradient degradation by focusing on sign consistency rather than magnitude in hypergradient signals.
Experimental results
Research questions
- RQ1Can non-greedy hyperparameter optimization be achieved over long horizons without gradient degradation?
- RQ2How does sign-based convergence detection improve performance compared to magnitude-based methods?
- RQ3To what extent can hyperparameter sharing reduce memory and computational costs in long-horizon meta-learning?
- RQ4Can the method achieve superior performance with fewer outer optimization steps than greedy or random search?
- RQ5How does the approach scale to long sequences in few-shot learning benchmarks like CIFAR-10?
Key findings
- The method achieves non-greedy hyperparameter optimization over approximately 10⁴ inner gradient steps without gradient degradation.
- Only ~10 outer gradient steps are required to train hyperparameters effectively across long horizons.
- On CIFAR-10, the approach outperforms greedy and random search methods by nearly 10% under the same computational budget.
- Using hypergradient signs for convergence detection enables stable, non-greedy learning without relying on magnitude decay.
- The extension of forward-mode differentiation to momentum-based SGD enables efficient and scalable hypergradient computation.
- Hyperparameter sharing across time steps significantly reduces memory and computational overhead in long-horizon tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.