Abstract
We examine the possibility of using a reinforcement learning (RL) algorithm to solve large-scale eigenvalue problems in which the desired the eigenvector can be approximated by a sparse vector with at most $k$ nonzero elements, where $k$ is relatively small compare to the dimension of the matrix to be partially diagonalized. This type of problem arises in applications in which the desired eigenvector exhibits localization properties and in large-scale eigenvalue computations in which the amount of computational resource is limited. When the positions of these nonzero elements can be determined, we can obtain the $k$-sparse approximation to the original problem by computing eigenvalues of a $k\times k$ submatrix extracted from $k$ rows and columns of the original matrix. We review a previously developed greedy algorithm for incrementally probing the positions of the nonzero elements in a $k$-sparse approximate eigenvector and show that the greedy algorithm can be improved by using an RL method to refine the selection of $k$ rows and columns of the original matrix. We describe how to represent states, actions, rewards and policies in an RL algorithm designed to solve the $k$-sparse eigenvalue problem and demonstrate the effectiveness of the RL algorithm on two examples originating from quantum many-body physics.
Introduction
In fields such as quantum chemistry and nuclear physics, determining the "ground state" of a system is a fundamental challenge. Mathematically, this involves finding the smallest eigenvalue and its corresponding eigenvector for a Hamiltonian matrix. However, these matrices are often gargantuan, with dimensions reaching into the millions or billions, making full diagonalization computationally impossible.
Many physical systems exhibit a property known as localization. This means that even if the matrix is massive, the essential physics occurs within a relatively small "neighborhood" of the state space. Consequently, the eigenvector is nearly sparse, containing only $k$ significant entries. If the optimal $k$ indices can be identified, the problem reduces to solving a manageable $k \times k$ submatrix. The core challenge lies in identifying these indices without prior knowledge of the full solution.
Methodology: Reinforcement Learning for Index Selection
Traditional "greedy" algorithms attempt to build the set of $k$ indices one by one. However, these methods often fall into local minima because a selection that appears optimal in the early stages may become suboptimal as more indices are added. This paper proposes a Reinforcement Learning (RL) framework to iteratively refine the selection of indices by treating the process as a sequential decision-making task.
The RL Formulation
- State ($s$): Defined as the current set of $k$ indices representing the submatrix.
- Action ($a$): The act of swapping an "unimportant" index currently in the set with a "promising" candidate from the remaining matrix indices.
- Reward ($r$): The immediate decrease in the smallest eigenvalue achieved by the swap.
To handle the astronomically large state space, the authors utilize Approximate Q-learning. The value of a state-action pair is represented as a linear combination of weights associated with specific indices. Two primary variants were developed:
- RL1: A straightforward version that swaps indices based directly on learned weights.
- RL2 (Active Space Policy): A sophisticated version utilizing a probabilistic selection strategy. It samples candidates from an "active space" and incorporates an exploration rate ($\tau$). This allows the agent to occasionally accept "worse" actions to escape local optima and eventually discover a superior global configuration.
Experimental Evaluation
The RL approach was tested on two challenging problems from quantum many-body physics:
- Li6Nmax6: A nuclear structure analysis of the Lithium-6 isotope (Matrix dimension: 197,822).
- MBL20: A study of Many-Body Localization in a disordered quantum spin chain (Matrix dimension: 184,756; Sparsity: 0.006%).
Key Results
The RL framework was compared against a standard Greedy algorithm, a baseline consisting of the $k$ largest components of the true eigenvector, and GPower (a specialized sparse PCA solver).
- Superior Accuracy: In the Lithium-6 test, RL2 achieved an approximate eigenvalue of -23.0441, outperforming the Greedy initialization (-22.9468), RL1 (-22.9503), and GPower (-22.7243).
- The Baseline Paradox: Interestingly, the RL agent consistently found sets of indices that yielded lower eigenvalues than the "baseline" of the $k$ largest components of the actual eigenvector, proving that simple magnitude-based selection is suboptimal.
- Exploration Benefits: RL2 significantly outperformed RL1. During the Li6 tests, RL2 initially allowed the eigenvalue to rise (a seemingly "bad" move) before eventually plunging to a result far superior to other methods, demonstrating the power of stochastic exploration.
Conclusion and Future Directions
This research demonstrates that RL can effectively navigate the complex search space of sparse eigenvalue problems, outperforming traditional greedy heuristics. By learning a global ranking of indices, the RL agent can "undo" early mistakes and find more optimal localized representations.
Future work will focus on scaling the sparsity level $k$ from hundreds to thousands and exploring Deep Reinforcement Learning. Using neural networks to represent the Q-function may allow the agent to capture more complex, non-linear relationships between matrix indices. Additionally, optimizing the computational overhead of the iterative training process remains a priority for applying this method to even larger high-performance computing environments.
Summary updated