The Laplacian Keyboard: Beyond the Linear Span
@inproceedings{chandrasekar2026laplacian,
title={{The Laplacian Keyboard: Beyond the Linear Span}},
author={Chandrasekar, Siddarth and Machado, Marlos C.},
booktitle={{Neural Information Processing Systems}},
year={2026}
}
LK builds a library of reusable options from graph eigenvectors that a meta-policy dynamically combines to solve tasks beyond what any single option can express.
the problem
The eigenvectors of the graph Laplacian show up all over science, from heat diffusion to signal compression, because they give a natural basis for complex systems. In reinforcement learning they do the same thing for the state space: the first few eigenvectors are smooth functions that capture how states connect, and later ones oscillate faster and faster.
That makes them a tempting basis for zero-shot control. Project a new reward function onto the first k eigenvectors, and a universal successor feature approximator (USFA) trained on those features hands you a policy without any further learning. The catch is that this policy is only as expressive as the linear span of the eigenvectors you kept. Any reward with sharp, high-frequency structure falls outside that span.
We make this precise with a bound on the value error: it grows with how rough the reward is (its graph norm ‖r‖G) and shrinks with the size of the basis, roughly ‖r‖G / ((1 − γ)√λk). Smooth rewards are captured by a small basis; rough ones need a bigger one, and no fixed basis covers every task. In practice, simply growing k doesn't help much either: on DeepMind Control, zero-shot performance saturates somewhere between k = 20 and 50, well below what a task-specific agent reaches.
the idea
Instead of treating the Laplacian basis as the whole answer, the Laplacian Keyboard treats it as a starting point. Every weight vector w given to the USFA defines a policy, so the USFA is really a continuous library of behaviours, learned entirely from reward-free offline data. We treat each of those policies as an option.
On a new task, a meta-policy plays this keyboard. It picks a weight vector, lets the corresponding option run for a few steps, then looks at where it is and picks again. If the reward happens to lie in the span of the basis, the meta-policy can simply settle on the single right w and recover the zero-shot solution. If it doesn't, the meta-policy stitches several options together into a policy no single linear combination could express. In the four-room example from the paper, the zero-shot policy with five eigenvectors never reaches the goal, while three stitched options trace out a near-optimal path.
Working over options rather than primitive actions has two side benefits: value information propagates over several steps at once, and exploration happens over coherent, temporally extended behaviours. And because the meta-policy acts in the smooth space of weight vectors, small changes in its output lead to similar behaviours.
what we found
We tested LK on Cheetah, Quadruped and Walker from DeepMind Control, with offline datasets collected by three different exploration methods, and averaged every result over 30 runs.
- The basis is a solid foundation. With 50 eigenvectors, the Laplacian basis matches Forward-Backward representations in zero-shot performance; a sign test finds no significant difference.
- Hierarchy goes beyond the span. With a deliberately small basis (k from 1 to 10), LK improves on the zero-shot solution on most Cheetah and Walker tasks. Even at k = 1, where there are only two options (the two directions of a single eigenvector), switching between them more than doubles the return on several tasks.
- It learns faster than a flat agent. Compared to TD3 trained from scratch, LK collects more return over the first 200K steps for k ≥ 3 on most Cheetah and Walker tasks, and at least 2.4× more on Quadruped for every basis size.
- No hand-crafted features needed. On the Item-Collector gridworld, LK gets close to the Option Keyboard Basis, a method that is given the reward features up front, while learning only from a random walk. Choosing behaviours continuously also beats picking from a fixed set of eigenoptions.
takeaways
No finite basis should be expected to cover every task an agent will face, especially in large environments. LK's answer is to stop treating the basis as a complete solution and instead compose what it offers: zero-shot when the task fits, efficient learning on top when it doesn't.
The keyboard idea isn't tied to the Laplacian. Other behaviour bases, such as Forward-Backward or HILP, could slot in directly, giving a whole family of keyboard agents. Two limitations stand out: options currently stop after a fixed number of steps rather than learning when to terminate, and in a few cases LK doesn't fully recover the zero-shot solution it should, in principle, always match. Better termination, and a fully online version that discovers its options as it goes, are the natural next steps.