Provably Efficient Representation Learning for Low-Rank CMDPs

Kaixuan Liu, Guojun Xiong, Shengpu Tang, Wanyun Si, Jian LiNeurIPS 2026

TL;DR

Reinforcement learning agents often need to maximize rewards while staying within strict safety limits—a balancing act that traditionally requires handing the agent a neat cheat sheet of underlying environment features in advance. This paper introduces MFRLC, the first model-free algorithm that learns these underlying representations from scratch while respecting safety constraints in complex, continuous environments. Better yet, it comes with mathematical guarantees that both missed rewards and safety violations shrink over time, completely independent of how massive the state space is.

What Problem Does This Paper Address?

Imagine teaching an autonomous car to reach its destination quickly (maximize reward) without colliding with anything (satisfy a constraint). In reinforcement learning, this is modeled as a Constrained Markov Decision Process (CMDP).

When state spaces get huge or continuous—like high-dimensional camera feeds—tabular methods break down. Researchers usually cope using Linear Function Approximation, compressing states into compact feature vectors. There's a big catch, though: existing provably safe methods assume you already know the exact feature mapping before training even starts. In the real world, nobody hands you the true features of raw sensory data.

Meanwhile, the "low-rank MDP" framework allows agents to learn unknown features on the fly (assuming transition dynamics and rewards quietly factorize into low-dimensional vectors), which works great when there are no safety rules. Combining representation learning with constraints, however, is tricky. In standard RL, learning features and optimizing policies can be largely decoupled. In a CMDP, representation errors bleed simultaneously into both reward maximization and safety estimation in a tightly coupled loop, breaking standard theoretical analyses.

Table 1: Comparison with existing work, where d denotes the feature dimension, H the horizon, K the number of deployment rounds, γ the Slater gap, and ε the target suboptimality (the learned policy’s value is within ε of optimal with high probability). Rates hide polylog factors via ˜︁O(·). LFA denotes linear function approximation; ✗in the LFA column indicates tabular or non-parametric methods. Bounds stated in terms of ε are PAC sample-complexity guarantees for unconstrained problems and are not directly comparable to regret.

Methods

The authors propose MFRLC (Model-Free Representation Learning for Low-Rank CMDP), which avoids building an explicit, memory-heavy model of environment transitions. Instead, each deployment round cycles through three phases:

  1. Minimax Representation Learning (New): Using replay buffers populated by rolling in with the previous policy and taking random exploratory actions, the agent plays a minimax game. It searches for features that linearly predict the expected next-state value, tested against a "worst-case discriminator" designed specifically to catch model mismatches and composite reward-utility errors. To stop noisy discriminators from hijacking the game, the authors subtract a baseline loss computed on an independent data buffer.
  2. Optimistic Policy Update (Adapted): Armed with freshly learned features, MFRLC runs Least-Squares Value Iteration with Upper Confidence Bound (LSVI-UCB)—a standard exploration technique that adds an "optimism bonus" to uncertain state-action pairs. Crucially, it builds a composite action-value function that blends reward and safety utility into a single Lagrangian objective, outputting a smooth softmax policy.
  3. Primal-Dual Update (Standard): A dual variable acts like a dynamic safety-violation price tag. If the optimistic utility estimate falls short of the safety threshold, the dual variable increases, forcing the next round's policy to prioritize safety; if safe, it relaxes to chase rewards.

Note on implementation: For neural network experiments, the exact minimax search is replaced by a scalable contrastive learning surrogate using an exponential-moving-average (EMA) target encoder.

Datasets

Instead of static datasets, the authors introduce a new interactive RL benchmark: Constrained Latent ComboLock (CLCL).

Traditional "ComboLock" environments test deep exploration by requiring an exact sequence of actions to find a sparse reward. CLCL adds high-dimensional visual observations ($8 \times 84 \times 84$ noisy pixel grids) hiding a discrete latent chain, plus a "hazard" action at every step. Taking a hazard action incurs a safety cost of 1 and risks failing the episode, whereas only the exact forward sequence yields a terminal reward of 1. The agent must discover the lock combination from raw pixels while keeping total expected cost below 1.

Key Insights and Ideas

  • Coupling Features with Dual Dynamics: By designing the representation discriminator class to explicitly include both reward and utility functions, MFRLC learns features tailored for safe trade-offs without needing separate supervised losses for immediate rewards or costs.
  • Variance Cancellation in Minimax Games: Directly finding the "hardest" value function to predict favors high-variance noise. Subtracting the minimum loss on a secondary, independent replay buffer cleanly cancels out conditional variance in expectation.
  • Representation Learning Alone Isn't Enough: In experiments, slapping a standard Lagrangian safety wrapper onto an existing representation-learning baseline (BRIEE) failed to satisfy constraints—showing that feature discovery and constraint-aware optimism must be tightly integrated.

Key Results

  • Theoretical Bounds: Over $K$ deployment rounds, MFRLC achieves sublinear $\widetilde{\mathcal{O}}(H^3 d^2 K^{3/4} |\mathcal{A}|^{3/2} / \gamma)$ bounds for both cumulative reward regret and constraint violation (where $H$ is horizon, $d$ is feature dimension, $|\mathcal{A}|$ is action count, and $\gamma$ is the safety margin). Notice what's missing: the size of the state space!
  • Empirical Performance: On CLCL ($H=6, |\mathcal{A}|=3$), MFRLC is the only tested method to approach the optimal reward of 1.0 while keeping cost below the threshold of 1.0. Constrained baselines without representation learning (CPO, LAG-PG) got near-zero reward ($\le 0.01$) and violated constraints. Adapted representation learners plateaued lower (HOMER at $\approx 0.8$; BRIEE at $\approx 0.4$ with violations).
  • Harder Variations: When increasing action space to $|\mathcal{A}|=5$ or horizon to $H=8$, MFRLC maintained the highest best-run rewards (0.567 and 0.692, respectively) alongside competitive or lowest constraint violations.

Limitations and Future Work

The authors are admirably candid about four main caveats:

  • Optimality Gaps: Their $\widetilde{\mathcal{O}}(K^{3/4})$ rate is an upper bound; when features are known, $\widetilde{\mathcal{O}}(K^{1/2})$ is possible. Whether $\widetilde{\mathcal{O}}(K^{1/2})$ is achievable with unknown features remains an open theoretical question.
  • Oracle Assumptions & Theory-Practice Gap: The theoretical algorithm relies on an exact optimization oracle for the outer minimax step—tractable for finite classes, but lacking polynomial-time guarantees for neural networks. Consequently, the contrastive EMA surrogate used in experiments isn't covered by Theorem 3.
  • Interaction Accounting: Each round uses $2H$ auxiliary roll-in trajectories to gather feature-learning data. While counted in total sample complexity, safety violations during those auxiliary roll-ins aren't charged to the deployment violation sum.
  • Long-Horizon Limits: Under their fixed training budget, MFRLC hit a failure mode when the CLCL horizon stretched to $H=12$ (dropping to 0.021 reward), leaving deeper horizon scaling and certified neural representation learners for future work.

Summary updated

Abstract

We study representation learning in low-rank Constrained Markov Decision Processes (CMDPs), where both value and reward functions are approximated by a set of unknown representation vectors, and the transition dynamics admit a low-rank factorization. The objective is to maximize expected cumulative rewards while complying with constraints on the expected cumulative utility. To achieve this, we propose \texttt{MFRLC} (Model-Free Representation Learning for Low-Rank CMDP), a model-free algorithm that uses a primal-dual scheme to effectively balance reward regret and constraint violations. To the best of our knowledge, \texttt{MFRLC} is the first representation-learning method for low-rank CMDPs that combines the Least-Squares Value Iteration with Upper Confidence Bound (LSVI-UCB) and primal-dual techniques. \texttt{MFRLC} further enhances value function estimation with bonuses for function approximation and uniquely learns the mapping from representations to value functions directly through representation learning. We prove that \texttt{MFRLC} achieves both regret and cumulative constraint violation of order $\widetilde O(H^3 d^2 K^{3/4}|\mathcal{A}|^{3/2}/\gamma)$, making it provably sample-efficient and highly adaptable to complex environments due to the reliance on function approximation.
BibTeX
@inproceedings{liu2026provably,
  author = {Kaixuan Liu and GUOJUN XIONG and Shengpu Tang and Wanyun Si and Jian Li},
  title = {{Provably Efficient Representation Learning for Low-Rank CMDPs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4zzk1B7I8y},
}
Figure