Hodge Laplacian Quasi-Harmonic Flows for Option Discovery

Andreas Theophilou, Özgür ŞimşekNeurIPS 2026

TL;DR

Imagine you know the exact floorplan of a sprawling mansion, yet have no idea where you left your keys. Standard reinforcement learning (RL) "skills" tend to send you sprinting straight into corners, leaving the rest of the house unsearched. By shifting the math from nodes to edges using the Hodge Laplacian, the authors construct Quasi-Harmonic Flow Options (QHFO)—reusable behaviors that let agents naturally patrol around loops while gently nudging them into dead-end hallways, dramatically speeding up how fast they cover an environment.

What Problem Does This Paper Address?

In RL, taking one primitive step at a time (up, down, left, right) makes exploring large spaces agonizingly slow. Instead, agents use options—temporally extended skills like "walk to the doorway."

When an agent knows how states connect (the environment's graph) but doesn't know where rewards are hidden, how do we extract task-agnostic options directly from that geometry? Historically, researchers have used eigenvectors of the standard Graph Laplacian (a 0-form Laplacian defined on vertices). These methods create smooth gradients across nodes and tell the agent to hill-climb toward local extrema.

The catch? Climbing a gradient funnels the agent into specific corners or isolated boundary states. Since probability mass is finite, pushing an agent heavily toward one corner starves other regions of visits—sometimes making certain states even harder to reach than if the agent just wandered randomly!

Figure 1: In the four-rooms domain: Plot (a) shows the policy of an option which takes a shortest path to a local maxima of the Fiedler vector (depicted by the small circle in the top-right corner) before terminating (equivalent to the one of the first two reversible covering options). Plot (c) shows the policy of one of the two reversible harmonic flow options. Plots (b) & (d) show the stationary distribution (σ normalized between zero and one) of a walker taking the option policies in (a) & (c) and their reverse with no other primitive actions.

Methods

Instead of putting numbers on vertices, the authors put numbers on directed edges—creating edge flows—and analyze them with the 1-form Hodge Laplacian ($L_1$).

While the standard Laplacian measures how much node values disagree, the Hodge Laplacian's energy breaks down into two intuitive physics concepts:

  1. Divergence: Net flow entering or leaving a node (sources and sinks).
  2. Curl: Local rotation spinning around a filled-in grid square (a "filled face").

The eigenvectors of $L_1$ with an eigenvalue of zero form its kernel, known as harmonic flows. Because they have zero divergence and zero curl, they have no sources, sinks, or tiny local eddies. Instead, they represent pure, global circulation around topological holes (like the central walls in a four-rooms layout). Converting these flows into Boltzmann policies gives Harmonic Flow Options (HFO).

In a complex maze, pure harmonic flows circulate well in the core but go nearly dormant inside dead-end appendages.

However, pure water doesn't flow into a capped pipe: because entering a dead-end requires non-zero divergence, harmonic flows go completely flat in tree-like appendages or cul-de-sacs. To fix this, the authors introduce Quasi-Harmonic Flow Options (QHFO):

  • They measure where harmonic flows are inactive at each node to compute a soft "drift weight" ($w \approx 0$ in active loops, $w \approx 1$ in dead-ends).
  • They grab the smoothest non-harmonic eigenvector (the smallest non-zero eigenvalue of $L_1$), which naturally captures the lowest-energy flow into appendages.
  • They do a one-shot, sign-aligned blend of the two, injecting drift only where harmonic circulation dies out.

For continuous deep RL, they learn a high-level state-transition graph from top-down image trajectories using an existing representation network (ALLO) and spectral clustering, compute QHFO on that learned graph, and pass adjacent cluster centroids as subgoals to a pretrained low-level SAC-TQC controller.

Datasets

Rather than static datasets, the methods are evaluated across seven tabular navigation graphs of varying topologies and two continuous-control MuJoCo Ant environments:

  • Tabular domains: four-rooms (104 nodes), tower of Hanoi (729), office (2,558), circuit (3,850), large office (4,492), London—a real-world road-network graph (5,000), and double large maze (10,652).
  • Continuous domains: Ant-FourRooms and Large-AntMaze (using $3 \times 64 \times 64$ top-down color images for graph learning).

Key Insights and Ideas

  • Circulation beats point-to-point sprints for coverage: Because harmonic flows lack sinks, an agent following them sweeps continuously around the environment's rooms rather than getting trapped at an arbitrary destination node.
  • Topology dictates option count: The number of independent harmonic flows equals the graph's first Betti number—literally the number of topological holes/cycles in the map.
  • One non-harmonic mode is enough: You don't need a complex search algorithm to fix the dead-end problem. Blending just a single non-harmonic eigenvector (the lowest-energy one above zero) provides the exact "push" needed to explore cul-de-sacs without ruining core cyclic behavior.

Key Results

QHFO shines brightest when an agent is restricted to a tiny budget of skills:

  • Tabular RL (circuit, $k=2$ options): A simple-blend QHFO variant hits nearly 100 average undiscounted return (solving almost every start-goal pair) within 100 epochs. Competing baselines—Eigenoptions, Covering options, Diffusion options, and pure HFO—all stall below 20. Standard Q-learning without options fails to find any goals.
  • Analytical Hitting Times: Computing exact expected steps between all state pairs via matrix inversion shows massive gains. In office ($k=12$), QHFO slashes mean hitting time from 87,290 (random walk) and 316,043 (pure HFO) down to 25,983, avoiding the heavy-tailed multi-million-step traps that plague Covering and Diffusion options.
  • Deep RL (MuJoCo Ant): With 2 options in Ant-FourRooms, QHFO explores 98.7% of grid cells with a mean hitting time of 3,444 steps—over $10\times$ faster than Covering options (37,223 steps, 63.3% coverage) and Eigenoptions (46,078 steps, 54.4% coverage).

Limitations and Future Work

The primary limitation acknowledged by the authors is the symmetry assumption: both the Hodge Laplacian construction and the deep RL graph-building pipeline (ALLO) assume undirected, reversible transitions. Consequently, the current framework cannot natively handle asymmetric environments (like one-way doors, cliffs, or irreversible physics). Future extensions are not explicitly detailed in the paper, though relaxing this reversibility constraint stands out as the natural frontier.

Summary updated

Abstract

A central challenge in reinforcement learning is discovering meaningful skills that improve exploration and learning. Prior Laplacian-based option discovery methods build options from 0-form Laplacians defined on nodes. In contrast, 1-form Laplacians defined on edges, particularly the Hodge Laplacian, represent interpretable, topology-aware edge flows and naturally capture cyclic behaviour through kernel eigenvectors known as harmonic flows. Despite this appeal, harmonic flows have not previously been explored as a basis for skill discovery in reinforcement learning. This is what we do here. We first introduce harmonic-flow skills and show that, on typical state graphs, purely harmonic flows can become nearly inactive in tree-like ``dead-end'' appendages, which can limit coverage. To address this, we propose quasi-harmonic flow skills: skill-inducing edge flows that preserve harmonic cycles where harmonic activity is strong, while injecting drift into appendages using the lowest-magnitude non-harmonic eigenvector of the Hodge Laplacian where harmonic activity is weak. Our approach is eigenvector-only, relying solely on spectral components of the Hodge Laplacian. We compare quasi-harmonic flow skills against a harmonic-flow skills baseline as well as the related Laplacian-based option discovery methods from the literature. We demonstrate empirical gains and analytical improvements on hitting-time based metrics.
BibTeX
@inproceedings{theophilou2026hodge,
  author = {Andreas Theophilou and Özgür Şimşek},
  title = {{Hodge Laplacian Quasi-Harmonic Flows for Option Discovery}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Ipo5Xh353j},
}
Figure