Abstract
We study the problem of finding the maximum of a function defined on the nodes of a connected graph. The goal is to identify a node where the function obtains its maximum. We focus on local iterative algorithms, which traverse the nodes of the graph along a path, and the next iterate is chosen from the neighbors of the current iterate with probability distribution determined by the function values at the current iterate and its neighbors. We study two algorithms corresponding to a Metropolis-Hastings random walk with different transition kernels: (i) The first algorithm is an exponentially weighted random walk governed by a parameter $\gamma$. (ii) The second algorithm is defined with respect to the graph Laplacian and a smoothness parameter $k$. We derive convergence rates for the two algorithms in terms of total variation distance and hitting times. We also provide simulations showing the relative convergence rates of our algorithms in comparison to an unbiased random walk, as a function of the smoothness of the graph function. Our algorithms may be categorized as a new class of "descent-based" methods for function maximization on the nodes of a graph.
Introduction
In the era of big data, many datasets are structured as graphs—such as social networks, power grids, or web crawls. A common challenge in these environments is finding a specific node that maximizes a certain property (e.g., the most influential person in a network or the node with the highest power output) without having a "bird's-eye view" of the entire graph. Often, we are limited to local information: we can only observe the value of the function at our current node and its immediate neighbors.
Traditional unbiased random walks will eventually find the maximum, but they are aimless and slow. This research introduces two local search algorithms—the Exponentially-Weighted Walk and the Graph Laplacian Walk—designed to "climb" the graph and find the peak as efficiently as possible, providing a discrete-domain analogy to gradient descent for continuous optimization.
Methodology
The proposed algorithms utilize the Metropolis-Hastings (MH) framework to design random walks that converge toward a target probability distribution favoring nodes with high function values.
1. Exponentially-Weighted Walk
This algorithm biases the walk based on the difference in function values between neighbors. A parameter $\gamma$ controls the "greediness" of the walk. High $\gamma$ values cause the walk to aggressively move toward higher function values, while a $\gamma$ of zero reverts the process to a standard random walk. While simple, this method can be prone to getting stuck in local maxima if the greediness parameter is set too high.
2. Graph Laplacian Walk
This novel approach utilizes the graph Laplacian, a matrix capturing the connectivity and spectral properties of the graph. By assuming the function is "smooth" (neighboring nodes have similar values), the algorithm uses local cumulative coherence to guide the walk. This effectively leverages the graph's geometry to speed up convergence, making it more robust than the purely greedy approach.
Experimental Setup
The researchers evaluated these algorithms using three standard synthetic graph models: 2D Grid Graphs ($32 \times 32$ nodes), Erdős-Renyi (ER) Graphs ($n=1000$), and Barabasi-Albert (BA) Graphs ($n=1000$). To simulate realistic data, "smooth" functions were generated on these graphs by combining the top $k$ eigenvectors of the graph Laplacian.
As shown in Figure 1, the eigenvectors represent different spatial frequencies on the graph. By combining these eigenvectors, the researchers can create functions with varying degrees of smoothness, where a lower $k$ corresponds to a smoother function with fewer local fluctuations.
Key Results and Insights
Simulations demonstrated that the Laplacian Walk consistently outperformed both the Vanilla Random Walk and the Exponentially-Weighted Walk across all tested graph topologies. For instance, in Barabasi-Albert graphs, the Laplacian Walk identified the maximum in approximately 500 steps, whereas the other methods often required over 2,000 steps.
Theoretical analysis provided explicit upper bounds on the expected hitting time. For the Exponential walk, the time is bounded by factors related to the graph diameter and the "peakiness" of the function. For the Laplacian walk, the bound is directly related to the smoothness parameter $k$. This highlights the "aha moment" of the study: applying concepts of band-limited signals from graph signal processing to optimization. Just as gradient descent relies on the smoothness of a continuous function, the Laplacian Walk relies on spectral smoothness to navigate discrete spaces efficiently.
Conclusion
This work successfully categorizes these algorithms as a new class of "ascent-based" methods for discrete spaces, filling a critical gap where traditional calculus-based optimization cannot be applied. Future work may explore larger neighborhood radii (e.g., $r=2$ or $3$) to develop higher-order descent algorithms or incorporate "jump" moves to better avoid local optima, similar to simulated annealing.
Summary updated