An agent that learns only from a fixed log of past behavior, with no chance to try things out, has to be cautious about situations the log never covered. The standard fix is a penalty: lower the predicted value of any state and action the agent is unsure about. That penalty is only as good as the agent's sense of what counts as "unfamiliar." When observations are camera images paired with text instructions, the sense of unfamiliarity is easily fooled. A new wall texture or a reworded instruction looks novel to the network even though the physics has not changed. A genuinely untried arm motion against a familiar background can look routine.
We propose to measure unfamiliarity in a learned feature space whose only job is to make value backups exact. The defining property is that if a value estimate is linear in these features, then the one-step-ahead value it implies (reward plus the discounted value of the next state) is also linear in them. Inside such a space, a closed-form confidence width from linear offline RL theory becomes a valid penalty. It is cheap, has a single scale knob, and only grows along directions that actually affect future value. The bet is that visual and linguistic detail that does not affect future value gets squeezed out of these features as a side effect, so the penalty stops reacting to nuisance novelty. That is the bridge between the two directions. Cross-modal understanding supplies the input regime and its characteristic failure, a shared space built for semantic similarity. Extrapolation error supplies the mechanism we modify: how pessimism is computed.
Core Claim
The claim has two parts, one diagnostic and one constructive. The diagnostic claim is that encoders mapping images and text into a shared space using contrastive, masked-prediction, or reconstruction objectives are badly non-closed under the value backup. As a result, both value estimation and uncertainty penalties built on them break down when the offline data mix is diluted.
The constructive claim is that a single-level closure objective, plus a linear lower-confidence-bound penalty computed in the resulting features, gives offline policies that hold up under nuisance shift in vision and language while staying cautious under real action and dynamics shift. It should also match or beat ensemble pessimism at a fraction of the memory.
What Prior Work Establishes and Leaves Open
Two papers motivate the diagnostic claim. Instabilities of Offline RL with Pre-Trained Neural Representation froze features from strong online agents and showed that linear evaluation still blows up when distractor trajectories are mixed in. On Walker2d-v2, the least-squares temporal-difference error rises from 13.88 to 67.78. The cause is a failure of Bellman completeness, meaning the feature span is not closed under the backup. That study was purely unimodal, and nobody has asked whether a shared image-text space makes this better or worse.
Learning Bellman Complete Representations for Offline Policy Evaluation (BCRL) supplies the method we build on. It learns pixel features that are closed under the backup and well covered, and shows that linear evaluation on them stays stable where contrastive and self-predictive features diverge. BCRL stops at evaluating a fixed policy, uses a costly bilevel minimax objective, never touches language, and never uses its features to set pessimism. Our contribution starts where it stops.
The pessimism side is supplied and constrained by PBRL, which penalizes values by the disagreement of a 10-network critic ensemble. It notes that this approximates a linear lower confidence bound and costs about 1.7× in memory. We take the connection literally and replace the ensemble with the exact linear bound, which is only justified once the features are closed. MOPO and BOSA estimate uncertainty with dynamics-model ensembles. BOSA explicitly scales poorly to pixels, which is the regime we target.
Two existing works put cross-modal inputs into offline RL. MORE-3S feeds image states and text action descriptions through a pretrained image-text transformer into a return-conditioned sequence model. Decision Transducer splits trajectories into state, action, and return streams. Its authors report that tighter cross-stream fusion makes it more fragile to out-of-distribution return targets. Both avoid value functions entirely, so neither has anywhere to place pessimism. We stay with value-based learning because D4RL shows that stitching tasks favor value methods like Conservative Q-Learning (CQL) over imitation-style learners.
Finally, the action-centric compression results of Exploring Action-Centric Representations Through the Lens of Rate-Distortion Theory motivate the expectation that discarding task-irrelevant input helps. There, task accuracy is about 85% versus about 67% for a reconstruction autoencoder at 10 bits. That work fixes the task target in advance. Our closure objective instead derives "what matters" from the backup itself.
Research Program
The encoder takes an image $o$ and an instruction $\ell$ through a pretrained image-text backbone and adds a small head. Together they produce a feature vector $\phi(o,\ell,a) \in \mathbb{R}^d$ for each action $a$. We replace BCRL's bilevel objective with a single-level linear closure loss on logged transitions $(o,\ell,a,r,o')$:
$$\mathcal{L}_{\text{close}} = \mathbb{E}\big\| M\phi(o,\ell,a) - \phi(o',\ell,\pi(o',\ell)) \big\|^2 + \big(\theta^\top\phi(o,\ell,a) - r\big)^2 - \lambda \log\det\big(\tfrac{1}{n}\textstyle\sum \phi\phi^\top + \epsilon I\big).$$
Here $M$ is a learned $d\times d$ matrix predicting next-step features, $\theta$ is a linear reward readout, $\pi$ is the current policy, and the log-determinant term with weight $\lambda$ stops all features from collapsing onto a few directions. This coverage term is a softened version of BCRL's eigenvalue constraint. If both regression terms are zero, any linear value $\phi^\top w$ has a backup equal to $\phi^\top(\theta + \gamma M^\top w)$, which is again linear. That is exactly closure. Information that does not change future features or rewards earns no loss reduction, and the coverage term only rewards spreading along directions that the dynamics use.
The critic is linear in these features. The penalized value used for policy improvement is:
$$\hat Q(o,\ell,a) = \phi^\top w - \beta\sqrt{\phi^\top \Lambda^{-1}\phi}, \qquad \Lambda = \textstyle\sum_{i}\phi_i\phi_i^\top + \kappa I.$$
Here $w$ is the least-squares critic weight, $\Lambda$ is the feature covariance of the dataset with ridge $\kappa$, and $\beta$ is the only pessimism scale. The square-root term is the textbook width of a linear confidence ellipsoid. It is valid when the backup stays in the span, which is the property the closure loss buys. A stochastic-policy actor maximizes $\hat Q$.
The one real technical difficulty is that closure is defined with respect to $\pi$, which changes during learning. We alternate between short phases of actor updates and phases that refit $M$ and $\theta$, and lightly fine-tune the head, under the new policy's actions. We will measure the closure residual after every phase. If it climbs uncontrollably, that is a reportable negative result in its own right.
The diagnostic arm reruns the distractor-mixing protocol of the instabilities paper with frozen cross-modal encoders on pixel-plus-instruction data. It reports the closure residual and evaluation error as distractor fraction grows. It also asks directly whether the shared image-text space is more or less closed than an image-only encoder.
Baselines
The naive reference point is Implicit Q-Learning and CQL trained on the same frozen pretrained image-text features, with no extra penalty beyond each algorithm's own conservatism. CQL is the method D4RL identifies as consistently strong. These runs answer whether anything beyond a good pretrained encoder is needed at all.
The strongest pessimism competitor is PBRL's ensemble-disagreement penalty run on the same encoder. The penalty is computed from a 10-head critic ensemble sharing the backbone, with PBRL's out-of-distribution pseudo-targets. On low-dimensional Gym locomotion, PBRL reports an average normalized score of 76.66 versus 67.35 for CQL. We first reproduce PBRL on low-dimensional D4RL as a sanity check against that number before moving to pixels and text. Beating PBRL means matching its return within noise on standard splits, and winning clearly on the nuisance-shift splits described below, while using roughly one critic's memory rather than ten.
The strongest cross-modal competitor is MORE-3S, reported at 74.7 average normalized return on D4RL locomotion. We run it with the same backbone family and data. On the instruction-conditioned pixel tasks below, no reported result was found on Lacuna for MORE-3S or any other method.
Fairness rules apply to every method. All methods share the same logged data and the same backbone initialization, and each gets the same tuning budget of twelve configurations of its pessimism or conservatism scale and learning rate, selected on a held-out validation split. We report wall-clock and peak memory alongside returns.
Three ablations isolate the key ingredient. The first applies our linear penalty to contrastive features fine-tuned with an InfoNCE image-text loss instead of the closure loss. This tests whether closure, rather than the linear bound alone, does the work. The second applies a PBRL-style ensemble penalty on our closed features, which tests whether the closed-form bound matters given the features. The third trains BCRL's original bilevel objective in place of our single-level loss, which tests whether the simplification costs accuracy.
Why not just…?
Why not just run PBRL or CQL on top of a strong frozen image-text encoder? The instabilities paper shows that strong frozen features can still give exploding value error under diluted data. BCRL shows contrastive and self-predictive pixel features diverge under linear evaluation. Neither result has been tested on image-text features, though, so this baseline is a live threat rather than a strawman. The nuisance-shift split settles it. If ensemble pessimism on frozen features does not spike its penalty on reworded instructions and new textures, and matches our return, the closure loss is unnecessary and we will say so.
Why not just augment away the nuisances, with random textures and paraphrased instructions, so any encoder becomes invariant? This is the most serious alternative, because for enumerable nuisances it could plausibly work as well. Our answer is to test on nuisance types withheld from the augmentation set: unseen lighting and distractor objects for images, and unseen syntactic forms for text. Closure-based invariance should transfer to these, because it is defined by the dynamics rather than by a list. If augmented baselines match us on withheld nuisances too, the contribution shrinks to cost savings over ensembles, and we will report it as that.
Why not just use a return-conditioned sequence model like MORE-3S or Decision Transducer and skip value functions? D4RL reports that imitation-style learners struggle on stitching tasks. Decision Transducer's own authors report extra fragility to out-of-distribution return prompts. We include stitching-heavy splits so that this comparison is decided on the regime where the two families differ, rather than on locomotion, where they are close.
Proposed Experiments
The testbeds come from the file, with a cross-modal layer that we construct and release.
The first is image-based DMControl (Cheetah-run, Walker-walk, Finger Turn Hard, Quadruped Walk, Humanoid Stand), following BCRL's 100k-sample partially trained datasets. We add short text task descriptors.
The second is D4RL FrankaKitchen, rendered to pixels, with each multi-task segment labeled by a natural-language subgoal. This is a regime where tasks cannot be specified by coordinates alone, and it requires stitching.
For each testbed, we hold out three test conditions. Nuisance shift uses withheld textures and paraphrases. Action shift uses states where the logged actions cover only one side of the action space. Dynamics shift uses altered friction, in the spirit of BOSA.
Metrics are D4RL-normalized return, policy-evaluation error under the distractor-mixing protocol, and the closure residual. The key additional metric is the area under the ROC curve of each method's penalty for flagging state-action pairs whose true value error exceeds a threshold. True value error is computed from simulator rollouts.
The decisive check is a two-sided penalty test. On nuisance-shift data, a correct penalty should stay near its in-distribution level. On action-shift and dynamics-shift data, it should rise. The proposal succeeds if our penalty shows this pattern and ensemble and contrastive-feature penalties do not, and if that gap translates into higher return on the shifted splits.
The secondary decisive check is the diagnostic curve of evaluation error against distractor fraction for frozen image-text encoders versus closed features. If the shared image-text space turns out to be as closed as our learned one, the diagnostic half of the claim fails. That outcome is equally publishable.
References
- Instabilities of Offline RL with Pre-Trained Neural Representation
- Learning Bellman Complete Representations for Offline Policy Evaluation
- Pessimistic Bootstrapping for Uncertainty-Driven Offline Reinforcement Learning
- MOPO: Model-based Offline Policy Optimization
- Beyond OOD State Actions: Supported Cross-Domain Offline Reinforcement Learning
- MORE-3S: Multimodal-based Offline Reinforcement Learning with Shared Semantic Spaces
- A trajectory is worth three sentences: multimodal transformer for offline reinforcement learning
- D4RL: Datasets for Deep Data-Driven Reinforcement Learning.
- Exploring Action-Centric Representations Through the Lens of Rate-Distortion Theory