[Paper Review] Using Deep Q-Learning to Control Optimization Hyperparameters
This paper proposes Q-gradient descent, a novel optimization framework that uses deep Q-learning to automatically control the learning rate in gradient-based training of neural networks. By formulating hyperparameter adjustment as a reinforcement learning problem with custom state, action, and reward functions, the method trains DQNs to predict optimal learning rate adjustments, achieving superior convergence and generalization compared to Armijo and nonmonotone line search methods.
We present a novel definition of the reinforcement learning state, actions and reward function that allows a deep Q-network (DQN) to learn to control an optimization hyperparameter. Using Q-learning with experience replay, we train two DQNs to accept a state representation of an objective function as input and output the expected discounted return of rewards, or q-values, connected to the actions of either adjusting the learning rate or leaving it unchanged. The two DQNs learn a policy similar to a line search, but differ in the number of allowed actions. The trained DQNs in combination with a gradient-based update routine form the basis of the Q-gradient descent algorithms. To demonstrate the viability of this framework, we show that the DQN's q-values associated with optimal action converge and that the Q-gradient descent algorithms outperform gradient descent with an Armijo or nonmonotone line search. Unlike traditional optimization methods, Q-gradient descent can incorporate any objective statistic and by varying the actions we gain insight into the type of learning rate adjustment strategies that are successful for neural network optimization.
Motivation & Objective
- To develop a reinforcement learning-based method that dynamically controls the learning rate during neural network optimization, reducing reliance on manual hyperparameter tuning.
- To define a novel RL formulation—state, actions, and reward—specifically tailored for controlling optimization hyperparameters like the learning rate.
- To demonstrate that deep Q-networks (DQNs) can learn effective, adaptive learning rate policies through Q-learning with experience replay.
- To compare the performance of the proposed Q-gradient descent algorithms against traditional line search methods (Armijo and nonmonotone) in minimizing neural network objective functions.
- To investigate how different state features influence the DQN’s decision-making and the resulting optimization behavior.
Proposed method
- The state representation is derived from Taylor expansion and line search principles, encoding objective value, gradient norm, and alignment measure to reflect local optimization dynamics.
- Actions include decreasing the learning rate by a factor, keeping it unchanged, or increasing it (in the second variant), with the DQN outputting q-values for each action.
- The reward function is designed to reflect progress toward minimizing the objective, with positive rewards for improvement and negative for degradation.
- Q-learning with experience replay is used to train two DQNs: one with limited actions (Armijo-like) and one with additional increase actions, both learning optimal action-value functions.
- The trained DQNs are integrated into a hybrid algorithm—Q-gradient descent—where they guide the learning rate adjustment at each iteration, combined with standard gradient updates.
- The framework is evaluated on feedforward neural networks for phone classification, with ablation studies to assess feature importance and generalization across model and data scale.
Experimental results
Research questions
- RQ1Can a deep Q-network learn to control the learning rate in a way that improves optimization performance compared to standard line search methods?
- RQ2How do different state features—such as objective value, gradient norm, and alignment measure—influence the DQN’s policy and final optimization outcome?
- RQ3Does the Q-gradient descent algorithm generalize to larger models and datasets beyond the training environment?
- RQ4How do the q-values predicted by the DQN converge to the true discounted return of rewards, indicating policy learning success?
- RQ5What types of learning rate adjustment strategies does the DQN discover, and how do they compare to classical line search heuristics?
Key findings
- The DQN's q-values for the optimal action converged to the true discounted return of rewards, providing empirical evidence that the network learned a stable and accurate policy.
- Q-gradient descent with the DQN outperformed both Armijo and nonmonotone line search methods, achieving a final objective value of 1.91 on the original neural network, compared to higher values when features were ablated.
- When the objective value feature was set to zero, the final objective increased to 1.96, and the learning rate was halved more frequently, indicating that the DQN relies on this feature for effective decision-making.
- The DQN with more actions (including learning rate increase) showed a more complex but stable learning curve, though convergence was slower than the simpler variant due to increased action space.
- The Q-gradient descent algorithm generalized well: it achieved better performance on a larger neural network with three times more data, demonstrating robustness to scale changes.
- The ablation study confirmed that all state features—objective value, gradient norm, and alignment measure—were critical for optimal performance, as zeroing any one led to worse solutions.
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.