Learning an Efficient Optimizer via Hybrid-Policy Sub-Trajectory Balance
Yunchuan Guan, Yu Liu, Ke Zhou, Hui Li, Sen Jia, Zhiqi Shen, Ziyang Wang, Xinglin Zhang, Tao Chen, Jenq-Neng Hwang, Lei Li
TL;DR
This work reframes weight generation as optimization policy learning and introduces Lo-Hp, a decoupled two-stage framework comprising weight preparation from offline optimizers and policy learning via Hybrid-Policy Sub-Trajectory Balance. By injecting offline sub-trajectory supervision into online trajectory generation, Lo-Hp captures local optimization policies while still promoting globally optimal weights, addressing both over-coupling and long-horizon inefficiencies. The authors provide theoretical bounds and demonstrate convergence improvements with Sharpness-Aware Minimization, and empirically show superior accuracy and inference speed across transfer learning, few-shot learning, domain generalization, and large-language-model adaptation. The results indicate substantial practical benefits for scenarios needing frequent weight updates, with notable latency reductions and robust generalization.
Abstract
Recent advances in generative modeling enable neural networks to generate weights without relying on gradient-based optimization. However, current methods are limited by issues of over-coupling and long-horizon. The former tightly binds weight generation with task-specific objectives, thereby limiting the flexibility of the learned optimizer. The latter leads to inefficiency and low accuracy during inference, caused by the lack of local constraints. In this paper, we propose Lo-Hp, a decoupled two-stage weight generation framework that enhances flexibility through learning various optimization policies. It adopts a hybrid-policy sub-trajectory balance objective, which integrates on-policy and off-policy learning to capture local optimization policies. Theoretically, we demonstrate that learning solely local optimization policies can address the long-horizon issue while enhancing the generation of global optimal weights. In addition, we validate Lo-Hp's superior accuracy and inference efficiency in tasks that require frequent weight updates, such as transfer learning, few-shot learning, domain generalization, and large language model adaptation.
