Laplacian Keyboard (LK)
- Laplacian Keyboard (LK) is a hierarchical reinforcement learning framework that constructs task-agnostic options from Laplacian eigenvectors for zero-shot optimality within the eigenvector span.
- It builds a library of temporally extended policies using Universal Successor Feature Approximators and a meta-policy that composes these options for efficient policy adaptation.
- LK unifies spectral RL methods with hierarchical option learning, enabling scalable, reusable behavioral primitives validated on domains like the DeepMind Control Suite.
The Laplacian Keyboard (LK) is a hierarchical reinforcement learning (RL) framework that constructs a task-agnostic library of temporally extended options from the eigenvectors of the graph Laplacian induced by environment dynamics. LK guarantees zero-shot optimality for any reward within the linear span of learned Laplacian eigenvectors and enables efficient policy adaptation outside the span through meta-policy composition. This approach unifies spectral RL methods with hierarchical options, providing scalable, structured, and reusable behavioral primitives for offline RL and unsupervised pre-training contexts (Chandrasekar et al., 7 Feb 2026).
1. Foundations and Motivation
Reinforcement learning aims to discover a policy that maximizes the expected discounted return in a Markov Decision Process (MDP), defined as with state space , action space , transition kernel , reward , and discount factor . In unsupervised RL, an agent collects a reward-free dataset of transitions and must later solve downstream tasks specified by new reward functions , leveraging pre-trained representations to reduce sample complexity during adaptation.
Laplacian eigenvectors serve as a powerful basis for approximating smooth reward functions on the transition graph. However, classical spectral RL restricts expressivity to the linear span of these eigenvectors and does not support compositional or hierarchical behavioral synthesis. The Laplacian Keyboard directly addresses these limitations, enabling generalization and rapid policy learning even beyond the linear span.
2. Construction of the Graph Laplacian and Its Span
Given a reversible policy–induced transition matrix,
an undirected graph with states as vertices and edge weights 0 is formed. The degree matrix 1 is defined with 2, while the adjacency matrix 3 has entries 4. The (unnormalized) graph Laplacian is
5
which, due to Markov chain reversibility, is symmetric positive semidefinite and admits an eigen-decomposition:
6
with orthonormal eigenvectors 7.
Stacking the first 8 eigenvectors yields 9. Every reward 0 can be projected into this span via 1, optimizing the squared error 2. The graph-norm,
3
quantifies smoothness across the transition graph and underpins the regularity induced by the Laplacian eigenbasis.
3. Hierarchical Behavior Library and Options
LK extends the utility of spectral methods by constructing options rather than limiting itself to the linear span at test time. Each option corresponds to a temporally extended policy.
Universal Successor Feature Approximators
The Laplacian representation for a state is 4. With a parameterized linear reward family,
5
LK trains a Universal Successor Feature Approximator (USFA), comprising:
- A policy 6 conditioned on 7.
- A successor-feature estimator 8, trained using off-policy TD updates enforcing Bellman consistency,
9
The optimal 0-value for 1 is 2, and 3 yields the optimal policy for 4.
Option Construction
Each 5 defines an option 6:
- Initiation set 7 (all states).
- Intra-option policy 8.
- Termination after a fixed horizon 9 or according to a learned termination function 0.
Canonical options (1) align with individual eigenvector directions; continuous 2 allow interpolation in the option-space.
4. Meta-policy for Compositional Policy Synthesis
Adapting to a new reward, possibly outside the Laplacian span, requires the meta-policy 3. At each decision epoch:
- State 4 is observed.
- 5 is produced.
- Option 6 is executed for 7 steps.
- The process repeats until episode termination.
The meta-policy maximizes
8
where 9 is the option's cumulative reward. Off-policy RL (e.g., TD3) is applied at the option-level, with critic 0 and actor updates computed via standard policy gradients.
5. Theoretical Guarantees and Approximation Bounds
When the downstream reward 1 is exactly within the Laplacian span (2), USFA retrieves the optimal policy immediately in a zero-shot fashion. For general 3, projection yields 4, with the corresponding optimal values 5 and 6 satisfying
7
where 8 is the 9-th smallest Laplacian eigenvalue. This establishes a uniform bound on the value error from projection. LK's meta-policy further composes options to reduce suboptimality, ensuring adaptivity even outside the initial span.
6. Algorithmic Workflow
Pre-Training Phase
- The first 0 Laplacian eigenvectors are learned using contrastive objectives enforcing smoothness and orthogonality in representation.
- The USFA (actor and critic) is trained on transitions, with random or goal-based 1 sampled, enforcing temporal-difference consistency of successor features.
Downstream Adaptation
- For a new reward 2, zero-shot initialization estimates 3 via linear regression: 4, yielding a policy 5.
- The meta-policy then iteratively outputs 6, invokes the corresponding option, collects rewards, and updates via off-policy RL at the option-level.
7. Empirical Evaluation and Comparative Analysis
The Laplacian Keyboard is validated on DeepMind Control Suite (DMC) domains (Cheetah, Quadruped, Walker) across multiple tasks (Run, Run-B, Walk, Walk-B) with offline datasets (APS, Proto, RND). Baselines include Forward–Backward (FB) zero-shot, Flat TD3, and Option Keyboard Basis (OKB).
Zero-Shot and Composition Results
With 7, LK achieves parity with FB on zero-shot returns and exceeds 75% of the TD3 oracle on 8/12 tasks:
| Domain (Task) | FB | LK | Flat TD3 |
|---|---|---|---|
| Cheetah (avg) | 552 ± – | 450 ± – | 786 ± – |
| ... | ... | ... | ... |
After 200K interactions, the LK meta-policy uniformly outperforms its zero-shot baseline (e.g., +1296% at 8 on Cheetah), converging rapidly (92 million steps). Gains decline with larger 0 but remain positive, indicating that even small Laplacian bases are effectively composable.
Sample Efficiency and Generalization
On Walker–Walk (APS), LK (with 1) surpasses Flat TD3 in fewer than 100K steps, demonstrating substantial sample efficiency in a high-dimensional option space. In Item-Collector gridworlds with handcrafted OKB reward features, LK nearly matches privileged performance after 500K steps, highlighting the sufficiency of purely dynamics-derived Laplacian behaviors for generalization.
8. Synthesis and Significance
The Laplacian Keyboard offers a behavioral foundation model for RL that is zero-shot optimal within the Laplacian span and capable of hierarchical adaptation beyond it. By combining spectral representation, option learning, and meta-policy composition, LK addresses both sample efficiency and behavioral generalization in offline and unsupervised RL. Its theoretical error bounds and simple off-policy recipe suggest applicability to broad RL domains requiring structured, reusable behaviors (Chandrasekar et al., 7 Feb 2026).