potentialpaper

Temporal Consistency Improves Generalization in Contextual Offline Meta Reinforcement Learning

Mohammadreza Nakhaeinezhad, Aidan Scannell, Kevin Sebastian Luck, Joni Pajarinen

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Offline meta-reinforcement learning seeks to learn a policy that generalizes to new related tasks online. Context-based methods infer a task representation from transition histories, yet learning an effective task representation without supervision remains challenging. Existing methods relying on contrastive learning learn discriminative task representations, but fail to identify task-specific dynamics, while relying on reconstruction can be insufficient to model long-horizon dependencies, limiting generalization to new tasks. We investigate the impact of temporal consistency in latent space on task representation learning, showing that enforcing multi-step predictions in latent space encourages task representations that are able to capture task-dependent dynamics while preventing representation collapse. We provide theoretical analysis characterizing sources of error in value estimation and show through extensive experiments on MuJoCo, Contextual DeepMind Control, and MetaWorld benchmarks that temporal consistency significantly improves both zero-shot and few-shot generalization. Code is available at https://github.com/MohammadrezaNakhaei/SPC.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
22 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper proposes a new approach to offline meta RL, i.e. learning a policy that generalizes to new tasks in the same environment. This generally amounts to representation learning, but the authors argue convincingly that standard contrastive methods that only consider a single time step do not adequately enforce temporal consistency, which can hurt their performance when used on longer horizon tasks. Instead, the authors propose adding a temporal consistency loss and thoroughly evaluates their new algorithm in a number of environments.

Strengths

The reviewers agree that the authors did a good job with their experiments, completing an unusually exhaustive sweep across many domains in order to demonstrate the efficacy of their approach. The core approach is also clearly motivated and the paper is well organized.

Weaknesses

Several reviewers are concerned about the novelty of the approach, claiming that the approach largely combines prior work. Additionally, a75z points out the lack of ablations on the horizon, which seems important given that that it is precisely this parameter that the authors are claiming is helpful for their results. UCqU also is concerned that insufficient ablations were performed, namely that the framing of the paper is suggesting that TC accounts for good generalization, but the best methods are TC + InfoNCE.

Currently, this paper is borderline and requires additional clarification. In particular, I would like to see either the claims walked back to acknowledge UCqU's concern about TC + InfoNCE vs TC or additional ablations. I would also like to see the results of a horizon ablation as requested by a75z. The theoretical assumptions being limited is acceptable to me, but I agree with a75z' request for additional definition clarity.

After discussion

There was extensive discussion between the authors and reviewers, which I appreciated. Two reviewers were satisfied by the authors' response, and I tend to agree with the authors that some of the concerns raised, such as moving from direct state access to a vision backbone, are superfluous. I also appreciate the authors' addition of a horizon ablation. My remaining concern remains one of novelty, as z75z pointed out. That said, the thoroughness of the response makes me lean more toward acceptance than rejection.

Final justification

See metareview.

Area Chair yDbM · Meta-reviewOpenReview ↗
Final justification
See metareview.
Read meta-review
Meta-review

This paper proposes a new approach to offline meta RL, i.e. learning a policy that generalizes to new tasks in the same environment. This generally amounts to representation learning, but the authors argue convincingly that standard contrastive methods that only consider a single time step do not adequately enforce temporal consistency, which can hurt their performance when used on longer horizon tasks. Instead, the authors propose adding a temporal consistency loss and thoroughly evaluates their new algorithm in a number of environments.

Strengths

The reviewers agree that the authors did a good job with their experiments, completing an unusually exhaustive sweep across many domains in order to demonstrate the efficacy of their approach. The core approach is also clearly motivated and the paper is well organized.

Weaknesses

Several reviewers are concerned about the novelty of the approach, claiming that the approach largely combines prior work. Additionally, a75z points out the lack of ablations on the horizon, which seems important given that that it is precisely this parameter that the authors are claiming is helpful for their results. UCqU also is concerned that insufficient ablations were performed, namely that the framing of the paper is suggesting that TC accounts for good generalization, but the best methods are TC + InfoNCE.

Currently, this paper is borderline and requires additional clarification. In particular, I would like to see either the claims walked back to acknowledge UCqU's concern about TC + InfoNCE vs TC or additional ablations. I would also like to see the results of a horizon ablation as requested by a75z. The theoretical assumptions being limited is acceptable to me, but I agree with a75z' request for additional definition clarity.

After discussion

There was extensive discussion between the authors and reviewers, which I appreciated. Two reviewers were satisfied by the authors' response, and I tend to agree with the authors that some of the concerns raised, such as moving from direct state access to a vision backbone, are superfluous. I also appreciate the authors' addition of a horizon ablation. My remaining concern remains one of novelty, as z75z pointed out. That said, the thoroughness of the response makes me lean more toward acceptance than rejection.

1 comment
Authors · CommentOpenReview ↗

We thank the Area Chair yDbM for their thoughtful feedback and constructive suggestions.

I would like to see either the claims walked back to acknowledge UCqU's concern about TC+InfoNCE vs. TC or additional ablations.

Our main claim is not that temporal consistency replaces contrastive learning, but that incorporating temporal consistency into the context encoder objective leads to more effective encoding of task variations and, consequently, improved generalization. This is supported by comparing Table 15 with Table 14, where TC+InfoNCE consistently outperforms InfoNCE on out-of-distribution tasks. Since all methods use the same latent world model to map observations into the latent space, this comparison isolates the effect of the context encoder training objective. We update our paper to avoid this misunderstanding. Please see the Changes to the Paper (lines 57, 113, 176, and 261)

I would also like to see the results of a horizon ablation as requested by a75z.

In response to this suggestion, we evaluated prediction horizons ranging from H=1 to H=10. We observed that increasing the horizon from H=1 to H=3 and H 5 generally improves performance, while longer horizons (H=7 and H=10) can degrade performance, likely due to less stable optimization caused by long-horizon backpropagation through time. Importantly, the contextual world model remains competitive with the baseline methods across all evaluated horizons. Please see the general response for additional details.

I agree with a75z's request for additional definition clarity.

We revised the paper to more clearly define the contextual world model, clarify its relationship to the context encoder, and explicitly describe the training objectives for the different components of our framework. Please see the Changes to the Paper (lines 93, 99, 113)

Changes to the Paper

In response to the reviewers' suggestions, we made the following modifications to improve the clarity of the paper.

Line 32: as a result, the learned task representation often fails to capture task-specific dynamics and reward functions, which limits generalization.

as a result, the context encoder may fail to encode the underlying task variation factors, reflected in the reward function and transition dynamics, into the task representation, thereby limiting generalization.

Line 57: C3 Extensive empirical evaluation. Through experiments on MuJoCo, Contextual DeepMindControl, and Meta-World benchmarks, we analyze the task representation quality and show that temporal consistency significantly improves few-shot and zero-shot generalization.

C3 Extensive empirical evaluation. Through experiments on MuJoCo, Contextual DeepMindControl, and Meta-World benchmarks, we analyze the task representation quality and show that incorporating temporal consistency into the context encoder training objective significantly enhances few-shot and zero-shot generalization.

Line 93: The world model consists of the context encoder EθE_\theta, observation encoder FϕF_\phi, latent dynamics DϕD_\phi, and reward model RϕR_\phi.

The world model consists of the observation encoder FϕF_\phi, latent dynamics DϕD_\phi, and reward model RϕR_\phi.

Line 99: We train the world model -- context encoder, observation encoder, latent dynamics, and reward function -- using a multi-step temporal consistency objective,

We train the context encoder jointly with the world model -- observation encoder, latent dynamics, and reward function -- using a multi-step temporal consistency (TC) objective,

Line 113: Here, HH is the prediction horizon, γ\gamma is the discount factor, and ϕˉ\bar{\phi} denotes EMA parameters.

Here, HH is the prediction horizon, γ\gamma is the discount factor, and ϕˉ\bar{\phi} denotes EMA parameters. Additionally, contrastive learning, e.g., the InfoNCE loss (Eq. 29 in Section C.8), enhances the discriminability of task representations. We investigate the effects of training the context encoder using temporal consistency, contrastive learning, and their combination on task representation learning and downstream generalization.

Line 176: RQ3 How well does temporal consistency for task representation learning generalize to unseen tasks compared to prior methods?

RQ3 How does incorporating temporal consistency into training the context encoder impact the generalization to unseen tasks compared to prior methods?

Line 261: Sec. C.8 further analyzes the impact of contrastive learning and latent temporal consistency objectives on generalization.

Sec. C.8 further analyzes the impact of contrastive learning and latent temporal consistency objectives on generalization, demonstrating that incorporating temporal consistency into the context encoder objective improves generalization, particularly on out-of-distribution tasks.

Reviewer a75zOpenReview ↗
Rating
3/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper provides an empirical evaluation alongside theoretical analysis of Temporal Consistency for self-predictive representation-based Offline Meta Reinforcement Learning (OMRL). The core insight is that contrastive- and reconstruction-based approaches fail to capture task-specific dynamics due to a lack of temporal auxiliary loss or because a one-step objective lacks the long-horizon consistency encoding. To mitigate the above, the authors introduce a multi-step TC loss that simultaneously supervises the n-step latent dynamics and rewards in a discounted-sum manner and jointly trains the world model and the context encoder. The author proposes several error tools for theoretical analysis, demonstrating a traceable value-estimation error. All the empirical results are based on extensive experiments on MuJoCo, Contextual DMC, and MetaWorld.

Strengths and weaknesses

Strengths

  1. Clear and readable writing: The manuscript is generally well written and clearly structured. The arguments are presented in a logical and coherent manner, making the manuscript easy to follow.
  2. Thorough empirical evaluation: Experiments cover 9 MuJoCo/DMC environments and 30 MetaWorld tasks with 6 random seeds. Experimental curves are presented with confidence intervals and provide aggregate metrics in IQM and optimality gap. The rank analysis and dormant neuron diagnostics make the representation analysis insightful.

Weaknesses

  1. Lack of details: Readers may not locate several necessary pieces of information in the manuscript. I would recommend that the author consolidate all training details for all components in the manuscript. If not, it will result in Question 2-3 below.

  2. Definition clarity: The manuscript needs to make the definition clearer and more precise. See Question 1 & 4.

  3. Limited novelty: The core idea could be summarized as (i) joint training of the context encoder with WM to enforce representation alignment, and (ii) an n-step temporally weighted objective. The contribution is more of a downstream application of WM in OMRL with a specific design, and it needs to more explicitly discuss what is technically new beyond that.

  4. Lack of ablations on horizon length: The hyperparameters lack ablations. The training horizon is fixed at 5 across all environments. There is no ablation on the sensitivity of performance to H, yet this is the most critical hyperparameter. I believe that multi-step prediction at an inappropriate horizon could yield overfitting, degraded, or even collapsed representations, depending on the dynamics time scale.

  5. Restrictive theoretical assumptions: The value bound relies on the existence of a sufficiently accurate latent world model, while the practical implications of violating the well-ensured RP and ZP situations are not discussed quantitatively.

Questions
  1. In Eq. 1, the inner expectation is under what distribution? Is T finite?
  2. Which study is your 'Components of World Model' in Section 3 based on? Is there any reference for the architecture & joint-training method?
  3. How is the context encoder EθE_\theta trained? What is the objective & loss for your EθE_\theta?
  4. Line 93 'The world model consists of the context encoder EθE_\theta, observation encoder FϕF_\phi, latent dynamics DϕD_\phi, and reward model RϕR_\phi' is in conflict with line 96 ' we jointly train the world model and the context encoder'. What exactly is your definition of a world model? Does it include context encoder EθE_\theta or not? I recommend that the author clarify this definition and decouple the description in Section 3 Components.
  5. In the error decomposition experiment (Figure 6), task error dominates. Does this imply that improvements from TC are primarily attributable to better task identification rather than better latent dynamics modeling? If so, does a stronger contrastive objective achieve comparable results?
Limitations

Yes

Final justification

The extensive experimental workload in this manuscript makes it nearly acceptable for an empirical paper and could support the authors' major claim. However, the manuscript's primary weakness remains limited novelty and analytical depth.

Formatting concerns

NA

3 comments
Authors · CommentOpenReview ↗

We thank Reviewer a75z for their valuable feedback. We are pleased that they found our paper well written and supported by extensive experiments. Their comments helped us improve the clarity and presentation of our work.

W1: Lack of details

We modified the relevant sections of the manuscript to provide additional implementation and methodological details where needed. Specifically, we clarify the training objectives and the definition of the contextual world model. Please see Changes to the Paper in the meta-review response.

W2: Definition clarity

We appreciate the reviewer highlighting the need for clearer definitions. We revised the manuscript to more carefully define the contextual world model and the corresponding optimization objectives. Please see Changes to the Paper in the meta-review response.

W3: Limited novelty

We acknowledge that our method builds upon several existing ideas rather than introducing a fundamentally new paradigm. Our main contribution is demonstrating that temporal consistency, together with contrastive learning, substantially improves task representation learning in offline meta-RL, leading to better downstream adaptation and generalization. Beyond the empirical gains, our analysis provides new insights into the role of temporal consistency in learning task representations.

W4: Lack of ablations on horizon length

We evaluated different prediction horizons for training the contextual world model (see the general response). Our findings are:

  • Increasing the prediction horizon from H = 1 to H = 3 and H = 5 generally improves performance.
  • Further increasing the horizon to H = 7 and H = 10 can degrade performance on some tasks. We hypothesize that this is due to less stable optimization caused by backpropagation through time over longer horizons.
  • Across all prediction horizons from 1 to 10, the contextual world model consistently remains competitive with the baseline methods.
Authors · CommentOpenReview ↗

Q1: In Eq. 1, the inner expectation is under what distribution? Is TT finite?

The expectation is taken over the trajectory distribution induced by executing the policy in the environment from the initial-state distribution, following the standard reinforcement learning objective. In our experiments, we consider episodic RL, where TT is finite (200 steps for MuJoCo and MetaWorld, and 500 steps for Contextual DMC). More generally, the formulation also applies to the infinite-horizon setting.

Q2: Which study is your "Components of World Model" in Section 3 based on? Is there any reference for the architecture and joint training method?

Our architecture follows the standard latent world model design used in model-based RL methods such as TD-MPC2 [1], DC-MPC [2], and the model-free method TCRL [3]. These methods typically consist of an observation encoder, latent transition model, reward model, policy, and value function.

In TD-MPC2, the observation encoder, transition model, reward model, and value function are trained jointly, while the policy is optimized separately. DC-MPC and TCRL decouple latent representation learning from Q-learning and policy optimization. In our work, we refer to the observation encoder, latent transition model, and reward model as the world model, and extend it by including a context encoder that is jointly optimized with the world model through the temporal consistency objective (Eq. 4).

Q3: How is the context encoder trained? What is the objective and loss?

The context encoder is optimized jointly with the world model.

  • TC: The context encoder and world model are jointly trained using the temporal consistency objective in Eq. (4). This loss jointly optimizes the context encoder parameters (θ\theta) and world model parameters (ϕ\phi).
  • InfoNCE: The context encoder is trained using the contrastive objective defined in Eq. (29) (Section C.8).
  • TC + InfoNCE: We optimize the context encoder using an equally weighted sum of the temporal consistency and InfoNCE losses.

Q4: Line 93 "The world model consists of the context encoder, observation encoder, latent dynamics, and reward model" conflicts with line 96 "we jointly train the world model and the context encoder." What exactly is your definition of a world model?

We thank the reviewer for identifying this ambiguity. Traditionally, the term world model refers to the observation encoder, latent dynamics model, and reward model used for planning or policy optimization in the learned latent space. In our framework, these components are conditioned on the task representation produced by the context encoder, and the context encoder is optimized jointly with the world model through the temporal consistency objective.

Although we originally referred to this entire system as a contextual world model, we agree that this terminology may be confusing because the context encoder has separate parameters (θ\theta) from the world model parameters (ϕ\phi). To improve clarity, we revised the manuscript to distinguish the context encoder from the conventional world model while emphasizing that they are trained jointly.

Q5: In the error decomposition experiment (Figure 6), task error dominates. Does this imply that improvements from TC are primarily attributable to better task identification rather than better latent dynamics modeling? If so, does a stronger contrastive objective achieve comparable results?

This is an insightful question. Our results indicate that task inference is the dominant source of approximation error, suggesting that improving task identification has the greatest potential to improve downstream adaptation performance. However, this does not imply that the gains from temporal consistency arise solely from better task identification.

In principle, if a stronger contrastive objective could produce equally informative task representations, we would expect it to improve performance as well. However, as discussed in the paper, merely using contrastive learning might not effectively encode variation factors among tasks into the task representation.

References

[1] Hansen, N., Su, H., & Wang, X. TD-MPC2: Scalable, Robust World Models for Continuous Control. ICLR, 2024.

[2] Scannell, A., et al. Discrete Codebook World Models for Continuous Control. ICLR, 2025.

[3] Zhao, Y., et al. Simplified Temporal Consistency Reinforcement Learning. ICML, 2023.

Reviewer a75z · CommentOpenReview ↗

Thank you for the extensive rebuttal addressing most of my concerns, and I'm happy to find that some of my suggestions will be considered. Overall, I think the experimental workload in this manuscript makes it nearly acceptable for an empirical paper. However, the manuscript's primary weakness remains limited novelty and analytical depth. As a result, I will raise and maintain my rating to 4.

Reviewer UCqUOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies context-based offline meta-reinforcement learning, where an agent must infer an unseen task from a context of transitions and generalize with limited or no online adaptation. The authors argue that existing contrastive context encoders learn discriminative task representations but may fail to capture task-specific dynamics, while one-step reconstruction or prediction objectives may be insufficient for long-horizon task inference. The proposed method jointly trains a context encoder, observation encoder, task-conditioned latent dynamics model, and reward model using a multi-step latent temporal consistency objective. The learned task representation and latent state are then used by an offline RL algorithm, mainly IQL, to learn a task-conditioned policy. The paper also provides a value-error decomposition that separates abstraction, model, and task-inference errors, and evaluates the approach on MuJoCo, Contextual DeepMind Control, and MetaWorld benchmarks.

Strengths and weaknesses

I found that the motivation is clear: in context-based OMRL, the quality of the inferred task representation directly determines whether the policy can generalize to unseen tasks. The paper makes a reasonable argument that contrastive objectives alone may only separate tasks without capturing task-dependent dynamics, and that one-step reconstruction or prediction may be too weak to model long-horizon dependencies. The main methodological idea is also sensible. By conditioning a latent dynamics model on the inferred task representation and enforcing multi-step temporal consistency, the context encoder is encouraged to encode task information that is actually predictive for future dynamics and rewards. I appreciate that the world model is used for representation learning rather than planning, which makes the method conceptually closer to self-predictive representation learning for offline meta-RL.

The authors evaluate representation quality using disentanglement metrics, feature rank, matrix rank, and dormant neuron ratio. These analyses help support the claim that temporal consistency improves the structure and expressivity of the learned task representation. The error decomposition experiment is also useful because it connects the theoretical analysis to empirical behavior and suggests that task-inference error is often the dominant source of error.

The experimental scope is reasonably broad. The paper evaluates on MuJoCo, Contextual-DMC, and MetaWorld, including in-distribution, out-of-distribution, zero-shot, and few-shot settings. It compares against several relevant context-based OMRL methods, including FOCAL, CSRO, UNICORN variants, and an autoregressive baseline. The appendix also includes comparisons to DreamerV3 and MetaDT, ablations on contrastive learning, model size, latent-space formulation, context encoder design, offline RL algorithm choice, and computational cost. This is a stronger-than-average experimental package.

However, I have several concerns that limit my enthusiasm.

1- The novelty is moderate. The paper largely combines existing ideas: context-based offline meta-RL, self-predictive latent temporal consistency, task-conditioned latent dynamics, and contrastive representation learning. The contribution is mainly adapting and combining these ideas for OMRL. This is useful, but it is not a fundamentally new algorithmic paradigm.

2- The strongest-performing method is not temporal consistency alone, but temporal consistency combined with InfoNCE. The paper itself notes that training the context encoder solely with temporal consistency can be insufficient because it may fail to distinguish tasks, especially when task variation affects rewards rather than transition dynamics. This weakens the clean story that temporal consistency is the key solution. A more precise claim would be that temporal consistency complements contrastive task discrimination, especially for OOD generalization, rather than replacing contrastive learning.

3 - The method’s scope is narrower than the title may suggest. The paper evaluates state-based environments and explicitly notes that visual observations are left for future work. This is a meaningful limitation because many modern meta-RL and world-model settings involve high-dimensional observations. The term “world model” may also be slightly misleading for readers expecting planning or imagination; here, the world model is primarily a representation-learning module, and the policy is trained with offline RL in the learned latent space.

4 - the improvement over baselines appears uneven across environments. The paper reports strong overall trends, but the ablation section indicates that in some MetaWorld environments there is no significant difference between objectives, and smaller versions of the contextual world model can underperform baselines. This suggests that the method is not uniformly dominant and may depend on task structure, model capacity, and the type of task variation.

5 - While the theoretical analysis is useful, I found that the value bound decomposes error into abstraction, model, and task-inference terms, which is helpful for framing, but the analysis does not by itself prove that the proposed temporal consistency objective will minimize the most important errors in practice. The empirical error-decomposition partially supports the story, but it relies on privileged task-ID networks and approximate measurement, so I would view it as diagnostic evidence rather than a strong theoretical guarantee.

The claims of the paper are mostly supported if they are phrased carefully: temporal consistency improves task representation learning and generalization in many OMRL settings, especially when combined with contrastive learning. I would be less comfortable with a stronger claim that temporal consistency alone solves task inference or that the method is broadly applicable to all offline meta-RL settings.

Questions

1- The best-performing method appears to be TC+InfoNCE rather than TC alone. Can the authors clarify the main claim: is temporal consistency intended to replace contrastive learning, or to complement it? A more explicit discussion of when TC alone fails would improve the paper.

2- How much of the gain comes from the latent-space formulation versus simply using a stronger multi-step predictive auxiliary loss? The AutoRegression baseline helps, but I would like a clearer explanation of whether the improvement comes from latent temporal consistency specifically or from additional prediction horizon/model capacity.

3- The current evaluation is state-based. How should readers interpret the method’s relevance to visual or high-dimensional observations? Since the paper uses world-model language, a small visual benchmark or a more explicit limitation would help.

4- In MetaWorld, the paper reports that generalization to entirely new environments remains challenging for all methods. Can the authors discuss which task properties determine when temporal consistency helps versus when it does not?

5- The theoretical bound decomposes abstraction, model, and task-inference errors, but the empirical error estimates use privileged task-ID networks and L2 approximations. Can the authors clarify how sensitive these diagnostic conclusions are to the choice of proxy networks and norms?

Limitations

The authors mention important limitations, especially the restriction to settings with shared state/action spaces and the lack of visual observation experiments. I think these should be more prominent in the main text. The paper should also explicitly acknowledge that TC alone is not sufficient for task discrimination in some settings and that generalization to entirely new environments remains difficult.

Final justification
  • The rebuttal resolved my main technical concern regarding whether the gains come from the latent predictive formulation rather than only the prediction horizon.
  • The added SPC vs. autoregressive comparison table provides stronger evidence for my concern.

Some limitations still remain, particularly the moderate novelty and the lack of demonstrated extension to visual observations. However, I now view these as scope limitations rather than issues that undermine the technical soundness of the contribution. Considering these improvements, I have updated my score from 4 to 5 and recommend acceptance.

Formatting concerns

I did not find any major formatting or anonymity issues.

5 comments
Authors · CommentOpenReview ↗

We thank Reviewer UCqU for their thoughtful feedback and suggestions. We are pleased that they found our paper well motivated and supported by extensive experiments. Their comments helped us clarify the scope and positioning of our work.

W1: The novelty is moderate.

We acknowledge that our method builds upon several existing ideas rather than introducing a fundamentally new paradigm. Our main contribution is demonstrating how temporal consistency, together with contrastive learning, improves task representation learning in offline meta-RL and leads to better downstream adaptation and generalization. We believe this provides a practical and effective framework for learning task representations in the offline meta-RL setting while providing insights such as temporal consistency avoids representation collapse while learning more diverse features.

W2: The strongest-performing method is not temporal consistency alone, but temporal consistency combined with InfoNCE. This weakens the clean story that temporal consistency is the key solution. A more precise claim would be that temporal consistency complements contrastive task discrimination, especially for OOD generalization, rather than replacing contrastive learning.

We thank the reviewer for this important clarification. Our experiments show that temporal consistency encourages the context encoder to better capture the underlying task-dependent variation factors compared to one-step prediction or contrastive learning alone, as supported by our disentanglement analyses. At the same time, contrastive learning encourages better separation between task representations, making the learned embeddings more discriminative. Consequently, combining temporal consistency with InfoNCE produces the strongest adaptation performance, particularly on out-of-distribution tasks (see Table 15 and compare it with Table 14). Our main claim is therefore not that temporal consistency replaces contrastive learning, but that incorporating temporal consistency into the context encoder objective leads to more effective encoding of variation factors and, consequently, improved generalization. We revised the paper to make this clearer. Please see Changes to the Paper in the meta-review response.

W3.1: The method’s scope is narrower than the title may suggest. The paper evaluates state-based environments and explicitly notes that visual observations are left for future work.

We agree that evaluating visual observations would further strengthen the paper. However, to the best of our knowledge, prior offline meta-RL methods are also evaluated exclusively on state-based benchmarks. Our title is intended to emphasize the main finding of the paper—that enforcing temporal consistency in the latent space improves task representation learning and generalization in offline meta-RL—rather than to claim applicability to all observation modalities.

W3.2: The term “world model” may also be slightly misleading for readers expecting planning or imagination.

To address this concern, we conducted an additional experiment demonstrating that the learned contextual latent world model can indeed be used for planning with MPPI in the zero-shot setting (please see the general response).

W4: Smaller versions of the contextual world model can underperform baselines.

We would like to clarify that this behavior is primarily due to limited policy capacity rather than the contextual latent world model itself. To maintain a comparable overall parameter budget, smaller variants allocate part of the capacity to the encoder, latent dynamics model, and reward model, resulting in a smaller policy network (e.g., two hidden layers with 32 neurons). In this low-capacity regime, the policy itself becomes the performance bottleneck on some tasks.

W5: The theoretical analysis does not by itself prove that the proposed temporal consistency objective will minimize the most important errors in practice.

We agree that our theoretical analysis does not directly prove that temporal consistency minimizes each error term. Rather, the analysis motivates representation learning by showing that the optimal value estimation error is bounded by abstraction, world modeling, and task inference errors. We then empirically demonstrate that the contextual latent world model consistently reduces these error terms, leading to a tighter bound.

Authors · CommentOpenReview ↗

Q1: Can the authors clarify the main claim: is temporal consistency intended to replace contrastive learning, or to complement it?

Please refer to W2. Our results indicate that temporal consistency and contrastive learning play complementary roles: temporal consistency improves the encoding of task-dependent dynamics, while contrastive learning enhances the separability of task representations. Comparing InfoNCE with InfoNCE+TC shows that adding temporal consistency improves generalization to out-of-distribution tasks. This trend can be observed by comparing Table 15 with Table 14.

Q2: How much of the gain comes from the latent-space formulation versus simply using a stronger multi-step predictive auxiliary loss?

To investigate this question, we performed an ablation over the prediction horizon used for training the contextual world model (please see the general response). We found that even with H = 1, the contextual world model achieves competitive adaptation performance. Increasing the horizon to H = 3 and H = 5 further improves performance, whereas longer horizons (e.g., H = 10) can sometimes degrade performance. These results suggest that the improvement is not solely due to a stronger multi-step prediction objective, but also arises from learning task representations in the latent space.

Q3: The current evaluation is state-based. How should readers interpret the method’s relevance to visual or high-dimensional observations?

In principle, the proposed framework naturally extends to visual observations by replacing the observation encoder with a CNN-based architecture. However, in our preliminary experiments, training a CNN encoder using temporal consistency across tasks and using the learned features as input to the context encoder did not produce satisfactory performance. Consequently, while we believe the framework is applicable to visual observations, we leave a thorough investigation to future work.

Q4: In MetaWorld, the paper reports that generalization to entirely new environments remains challenging for all methods. Can the authors discuss which task properties determine when temporal consistency helps versus when it does not?

Temporal consistency is most beneficial when the training tasks share an underlying structure that can be inferred from the observed transitions. For example, in the Cheetah-LS benchmark, tasks differ in latent factors such as target speed and torso length, which can be inferred from transition dynamics. In these settings, temporal consistency encourages the context encoder to capture these latent variation factors, leading to improved task representations and better generalization.

In contrast, when training and test tasks differ substantially or when the underlying task variables cannot be reliably inferred from transitions alone, the learned task representation may not generalize well. This limitation is shared by existing context-based offline meta-RL methods.

Q5: The theoretical bound decomposes abstraction, model, and task-inference errors, but the empirical error estimates use privileged task-ID networks and L2 approximations. Can the authors clarify how sensitive these diagnostic conclusions are to the choice of proxy networks and norms?

The theoretical analysis shows that the optimal value estimation error is bounded by the abstraction, world modeling, and task inference errors. Since computing the supremum of these errors over all state-action pairs is intractable in practice, we estimate them using oracle networks with privileged task information together with the L2\mathcal{L}_2 norm as a practical proxy.

While these estimates are approximate, they consistently reveal two key observations:

  • Temporal consistency reduces all three error terms throughout training.
  • The task inference error is the dominant source of approximation error, highlighting the importance of learning informative task representations.

Although the privileged networks and L2\mathcal{L}_2 metric provide only approximate estimates of the theoretical quantities, we believe they are sufficient for diagnosing the relative contributions of different error sources and supporting our empirical conclusions.

Authors · CommentOpenReview ↗

Dear Reviewer UCqU,

Thank you very much for your time and careful review. As the author–reviewer discussion period is ending soon, we would be grateful to know whether our response has addressed your concerns.

If you need any further clarification, we are happy to provide additional information that may be helpful. Thanks!

Best regards,

The Authors

Reviewer BxGvOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper aims to address the problem of learning task representations in contextual offline meta reinforcement learning. The key idea is to encode transitions into task representation, and build a latent dynamic model and reward prediction model conditioned on the task representation. The proposed loss jointly trains a context encoder and a latent world model using a multi-step temporal consistency objective. Experimental results on multiple benchmarks show that the proposed approach improves zero-shot generalization.

Strengths and weaknesses

Strengths

  1. The paper is well-organized and easy to follow.
  2. The idea of extending self-predictive objectives to context-conditioned settings for generalization is interesting.
  3. The empirical evaluations are performed on multiple benchmarks. The experiments are extensive.
  4. The approach is simple and easy to implement.

Weaknesses

  1. The authors argue that enforcing temporal consistency through a sequence of state representations encourages task representations to capture task-dependent dynamics. However, the connection between capturing these task-specific dynamics and the resulting improvement in generalization to unseen tasks is not clear. Intuitively, overfitting to task-specific dynamics might sometimes hinder generalization to unseen tasks. While the empirical results demonstrate strong performance on Metaworld tasks, the underlying mechanism or theoretical intuition explaining why modeling these dynamics leads to better generalization across out-of-distribution or unseen tasks should be more explicitly discussed.

  2. Insufficient hyperparameter ablation. Prediction horizon is the key hyperparameter for the loss but the ablation on it is missing. In the implementation H is set to 5. It is interesting to see how sensitive the performance of the method is to the prediction horizon. Moreover, how does the prediction horizon affect the temporal consistency of state representations?

Questions
  1. The experiment are performed on state-based tasks. Could the proposed framework naturally extend to pixel-based task?
  2. The method learns a contextual world model for learning temporally consistent representations. Can this world model be extended for planning?
Limitations

.

Final justification

My raised concerns are solved by the author's reply. Overall, the idea is interesting, and the experimental evaluations are sound. Therefore, I decided to increase my score.

Formatting concerns

.

2 comments
Authors · CommentOpenReview ↗

We thank Reviewer BxGv for their thoughtful feedback. We are pleased that they found our paper well organized and supported by extensive experiments. Their comments helped us clarify several important aspects of our work.

W1: The connection between capturing these task-specific dynamics and the resulting improvement in generalization to unseen tasks is not clear. Intuitively, overfitting to task-specific dynamics might sometimes hinder generalization to unseen tasks.

We thank the reviewer for raising this important point. In offline meta-RL, the agent has access to offline data collected from different but related tasks that share an underlying structure. For example, in the Walker-Speed environment, each task corresponds to a different target speed, and the agent must infer this latent task variable from the observed transitions. The role of the context encoder is to identify these underlying task-dependent factors and encode them into the task representation.

Our intuition is that a context encoder that more accurately captures these variation factors (e.g., the target speed) produces more informative task representations, enabling better adaptation and generalization to unseen tasks drawn from the same task distribution. In this work, we show that enforcing temporal consistency in the latent space encourages the context encoder to capture these task-dependent dynamics more effectively, leading to improved generalization. We revised the manuscript to clarify this motivation and remove potential ambiguity. Please see Changes to the Paper in the meta-review response.

W2: Prediction horizon is the key hyperparameter for the loss but the ablation on it is missing.

We thank the reviewer for suggesting this ablation. We evaluated different prediction horizons for training the contextual world model (see the general response). Our findings are:

  • Increasing the prediction horizon from H=1 to H=3 and H=5 generally improves performance.
  • Further increasing the horizon to H=7 and H=10 can degrade performance on some tasks. We hypothesize that this is due to less stable optimization caused by backpropagation through time over longer horizons.
  • Across all prediction horizons from 1 to 10, the contextual world model remains competitive with the baseline methods.

Q1: Could the proposed framework naturally extend to pixel-based tasks?

In principle, our framework can be extends to visual observations by replacing the observation encoder with a CNN-based architecture. However, due to the limited time available during the rebuttal period, we were unable to obtain reliable preliminary results. In our experiments, training a visual encoder using temporal consistency across tasks and using the learned visual features as input to the context encoder did not yield satisfactory performance. We observed a similar trend for the baseline methods when the visual encoder was trained solely through Q-learning. Due to the limited time available during the rebuttal period, we were unable to thoroughly investigate and debug these issues, and therefore cannot draw a definitive conclusion.

Q2: The method learns a contextual world model for learning temporally consistent representations. Can this world model be extended for planning?

We evaluated our contextual world model for zero-shot planning using Model Predictive Path Integral (MPPI) control (see the general response). Our findings are:

  • The learned contextual world model can be directly used for latent-space planning.
  • Planning with learned Q-functions requires regularization, as the planner can exploit Q-value overestimation. By training the Q-function with CQL, the resulting planner achieves effective zero-shot adaptation.
Authors · CommentOpenReview ↗

Dear Reviewer BxGv,

Thank you very much for your time and careful review. As the author–reviewer discussion period is ending soon, we would be grateful to know whether our response has addressed your concerns.

If you need any further clarification, we are happy to provide additional information that may be helpful. Thanks!

Best regards, The Authors

Comments on the paper

3 comments
Authors · CommentOpenReview ↗

General Response

We sincerely thank all reviewers for their thoughtful feedback and constructive suggestions. We are pleased that the reviewers found our paper well motivated, clearly written, and supported by comprehensive experiments. We appreciate the insightful comments, which helped us better position our contributions, clarify the presentation, and perform several additional experiments during the rebuttal period.

Scope and applicability

Several reviewers asked about extending our framework to visual observations. In principle, our framework can be extended by replacing the observation encoder with a CNN-based architecture. However, due to the limited time available during the rebuttal period, we were unable to obtain reliable preliminary results. In our initial experiments, neither the baseline methods nor our proposed approach achieved satisfactory performance. We believe a more thorough investigation is needed, including careful tuning of the visual encoder and training procedure, before drawing definitive conclusions about this question.

Clarifications

We also provide the following clarifications in response to common reviewer questions:

  • Task representation learning. The primary role of the context encoder is to infer the latent task variables shared across related tasks. Temporal consistency encourages these underlying variation factors to be encoded more effectively into the task representation, leading to improved adaptation and generalization.
  • Theoretical analysis. Our theoretical results motivate why reducing abstraction, world modeling, and task inference errors leads to tighter value estimation error bounds. While the analysis does not directly prove that temporal consistency minimizes these errors, our empirical studies consistently show that the contextual world model reduces all three error terms, with task inference error being the dominant source of approximation error.
  • Novelty. We acknowledge that our work builds upon existing ideas rather than introducing a fundamentally new paradigm. Our main contribution is demonstrating that including temporal consistency improves task representation learning in offline meta-RL, resulting in stronger downstream adaptation, better generalization, and new empirical insights into the role of temporal consistency.
Authors · CommentOpenReview ↗

Additional experiments

Following the reviewers' suggestions, we conducted several new experiments that further strengthen our conclusions.

Prediction horizon ablation. Since the prediction horizon is a key hyperparameter of the temporal consistency objective, we evaluated horizons ranging from H=1 to H=10. We observed that increasing the horizon from H=1 to H=3 and H = 5 generally improves performance, while longer horizons (H=7 and H=10) may degrade performance, likely due to the increased optimization difficulty associated with long-horizon backpropagation through time and error accumulation. Importantly, the contextual world model remains competitive across all tested horizons.

Table 1. Ablation on prediction horizon (few-shot in-distribution testing), averaged over 6 random seeds where ±\pm indicates 95% confidence interval.

Env H=1H=1 H=2H=2 H=3H=3 H=5H=5 H=7H=7 H=10H=10
Ant-Dir 814.7 ± 44.4 814.9 ± 39.7 825.2 ± 49.3 837.6 ± 25.5 803.3 ± 17.5 808.9 ± 44.9
Cheetah-LS 914.2 ± 30.5 916.6 ± 25.0 910.3 ± 35.6 928.2 ± 11.8 931.9 ± 18.6 931.7 ± 15.0
Cheetah-Speed 632.9 ± 36.0 631.0 ± 33.5 639.1 ± 42.1 680.5 ± 54.5 688.9 ± 45.4 685.2 ± 51.5
Finger-LS 963.4 ± 6.6 965.9 ± 3.7 971.4 ± 6.6 970.8 ± 9.2 969.5 ± 4.7 948.4 ± 16.9
Finger-Speed 893.2 ± 32.3 936.0 ± 16.3 905.7 ± 31.0 940.5 ± 18.8 936.1 ± 28.1 865.5 ± 89.6
Walker-LS 901.8 ± 16.0 907.7 ± 17.3 936.5 ± 17.7 927.5 ± 15.1 929.9 ± 16.0 926.6 ± 17.1
Walker-Speed 703.2 ± 141.6 719.9 ± 57.1 795.4 ± 46.7 757.7 ± 123.9 724.4 ± 61.4 699.3 ± 150.5
Button-Press 3388.3 ± 28.1 3396.9 ± 16.3 3381.3 ± 25.0 3390.6 ± 27.9 3324.6 ± 100.8 3367.9 ± 32.2
Coffee-Button 3289.4 ± 97.6 3206.9 ± 80.6 3272.8 ± 42.8 3261.2 ± 80.2 3221.9 ± 89.9 3231.1 ± 104.8
Dial-Turn 3164.5 ± 213.2 3255.0 ± 131.1 3416.1 ± 172.5 3413.5 ± 90.9 3242.7 ± 230.6 3213.5 ± 50.8
Door-Open 3546.6 ± 16.9 3542.3 ± 8.3 3540.3 ± 28.4 3541.3 ± 39.8 3537.4 ± 42.5 3557.1 ± 6.0
Door-Unlock 3544.4 ± 101.4 3580.8 ± 61.5 3618.3 ± 97.1 3584.2 ± 109.5 3525.0 ± 183.3 3577.3 ± 50.0
Drawer-Close 3833.4 ± 2.2 3827.1 ± 4.9 3832.5 ± 2.1 3831.0 ± 9.8 3773.8 ± 117.3 3774.0 ± 117.4
Authors · CommentOpenReview ↗

Additional experiments

Planning with the contextual world model. Several reviewers questioned whether the learned world model could be used beyond representation learning. To answer this, we evaluated our model for zero-shot planning using Model Predictive Path Integral (MPPI). We found that the learned contextual world model can be used for latent-space planning. We also observed that planning with learned Q-functions benefits from conservative regularization, and combining planning with a CQL-trained Q-function enables more effective zero-shot adaptation. Generally, increasing the planning horizon improves performance. However, using the world model solely for representation learning with CQL achieves better performance than planning. The exceptions are:

  • Door-Open: Increasing the planning horizon when using CQL reduces performance.
  • Button-Press and Coffee-Button: Planning with the latent world model outperforms using the learned representations with CQL alone.

Table 2. Zero-shot performance of planning without Q-function, averaged over 6 random seeds where ±\pm indicates 95% confidence interval.

Env Plan h=3h=3 Plan h=5h=5 Plan h=8h=8 Plan h=12h=12 Plan h=18h=18 Plan h=25h=25 CQL
Ant-Dir 203.6 ± 12.4 288.5 ± 43.0 501.7 ± 32.3 468.8 ± 61.3 444.6 ± 46.6 489.3 ± 38.3 541.5 ± 24.0
Cheetah-LS 239.6 ± 25.6 264.1 ± 37.8 361.8 ± 51.8 583.7 ± 65.4 836.0 ± 55.1 932.2 ± 22.3 949.2 ± 6.5
Finger-LS 430.8 ± 90.4 613.2 ± 124.9 825.4 ± 86.9 911.0 ± 38.4 946.1 ± 29.6 968.6 ± 14.5 982.4 ± 3.0
Walker-Speed 53.6 ± 9.1 134.1 ± 40.6 261.5 ± 36.0 423.6 ± 34.2 504.0 ± 40.4 510.0 ± 55.0 570.4 ± 33.9
Button-Press 529.0 ± 290.7 1605.4 ± 544.3 2820.9 ± 226.1 3196.7 ± 280.5 3337.8 ± 75.7 3410.1 ± 26.9 3082.0 ± 630.6
Coffee-Button 74.6 ± 26.2 140.1 ± 90.8 789.5 ± 373.7 2186.7 ± 418.7 2835.1 ± 231.6 3024.1 ± 154.6 2894.2 ± 327.0
Dial-Turn 825.5 ± 160.2 1086.1 ± 378.2 1693.7 ± 589.0 2282.8 ± 848.3 2735.7 ± 956.7 2796.1 ± 965.7 3184.6 ± 1.3
Door-Open 222.3 ± 69.7 449.5 ± 155.3 670.0 ± 211.7 456.8 ± 120.2 385.0 ± 67.0 422.5 ± 133.8 3573.4 ± 3.2
Door-Unlock 598.1 ± 106.3 955.6 ± 243.6 1330.5 ± 364.9 2887.6 ± 403.4 3390.8 ± 179.2 3505.8 ± 133.7 3561.7 ± 178.6

Table 3. Zero-shot performance of planning with Q-function (trained with CQL), averaged over 6 random seeds where ±\pm indicates 95% confidence interval.

Env Plan CQL h=3h=3 Plan CQL h=5h=5 Plan CQL h=8h=8 Plan CQL h=12h=12 CQL
Ant-Dir 215.2 ± 51.8 389.7 ± 86.4 449.4 ± 69.0 482.0 ± 49.8 541.5 ± 24.0
Cheetah-LS 827.3 ± 63.9 933.2 ± 16.2 939.1 ± 14.0 944.3 ± 5.0 949.2 ± 6.5
Finger-LS 894.3 ± 49.1 901.8 ± 83.1 949.3 ± 24.9 966.9 ± 25.9 982.4 ± 3.0
Walker-Speed 419.3 ± 31.9 448.7 ± 35.8 514.6 ± 32.5 522.7 ± 41.2 570.4 ± 33.9
Button-Press 2684.0 ± 401.8 3167.7 ± 165.6 3239.2 ± 131.5 3383.8 ± 44.8 3082.0 ± 630.6
Coffee-Button 2393.2 ± 300.7 2670.7 ± 390.8 2920.4 ± 216.4 3013.0 ± 191.9 2894.2 ± 327.0
Dial-Turn 2603.3 ± 993.5 2587.9 ± 976.8 2675.5 ± 986.6 2754.0 ± 993.5 3184.6 ± 1.3
Door-Open 3305.6 ± 177.3 2974.5 ± 310.1 2225.0 ± 483.4 1991.5 ± 414.1 3573.4 ± 3.2
Door-Unlock 3483.5 ± 86.7 3517.4 ± 75.1 3589.1 ± 101.5 3546.5 ± 175.1 3561.7 ± 178.6

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…