Tianwei Ni 倪天炜

I am a research scientist at Google DeepMind in London, focusing on reinforcement learning, continual learning, and self-improvement for general-purpose agents.

I was a PhD candidate at Mila - Quebec AI Institute and Université de Montréal, advised by Pierre-Luc Bacon. I recently defended my PhD thesis: History-Dependent Reinforcement Learning: Memory, Representation, and Adaptability Video .

In the previous years, I worked closely with Benjamin Eysenbach at Princeton University and Aditya Mahajan at McGill University. I also worked at Amazon as an applied scientist intern, supervised by Rasool Fakoor and Allen Nie. I am a recipient of RBC Borealis AI fellowship.

Before embarking on my PhD journey, I was a research intern at Allen Institute for AI. I earned my Master's degree in Machine Learning at Carnegie Mellon University and my Bachelor's degree in Computer Science at Peking University.

Research

Selected Work

Full list on Google Scholar. Notation: * equal contribution, ° equal advising.

2026 NeurIPS Position Paper ICML Workshop

From Static Policies to Adaptive Priors in Offline Reinforcement Learning

Tianwei Ni, Vineet Jain, Akash Karthikeyan, Pierre-Luc Bacon

Conference on Neural Information Processing Systems (NeurIPS) Position Paper Track, 2026
ICML Workshop on Decision-Making from Offline Datasets to Online Adaptation, 2026

A position paper arguing that offline RL should shift from learning static policies to learning adaptive policy priors in the era of experience.

2026 ICML Workshop RLC Workshop Best Paper Award Oral

The Three Regimes of Offline-to-Online Reinforcement Learning

Lu Li, Tianwei Ni, Yihao Sun, Pierre-Luc Bacon

ICML Workshop on Decision-Making from Offline Datasets to Online Adaptation (best paper award), 2026
and RLC Workshop on Continual Reinforcement Learning (oral), 2026

A predictive framework for online RL fine-tuning based on a stability–plasticity principle: we should not only preserve prior knowledge from the pretrained policy or offline dataset, whichever is better, but also retain sufficient plasticity to acquire new knowledge.

2026 ICML 2026 NeurIPS & ICML Workshops

Long-Horizon Model-Based Offline Reinforcement Learning Without Explicit Conservatism

Tianwei Ni, Esther Derman, Vineet Jain, Vincent Taboga, Siamak Ravanbakhsh, Pierre-Luc Bacon

International Conference on Machine Learning (ICML), 2026
NeurIPS Workshop on Aligning RL Experimentalists and Theorists, 2025
and ICML Workshop on Decision-Making from Offline Datasets to Online Adaptation, 2026

Offline RL methods rely heavily on conservatism, but conservatism hinders adaptation. To pursue test-time in-context adaptation, this work discovers key design choices to make the Bayesian offline RL principle practical for the first time.

2025 TMLR 2025

Offline Learning and Forgetting for Reasoning with Large Language Models

Tianwei Ni, Allen Nie, Sapana Chaudhary, Yao Liu, Huzefa Rangwala, Rasool Fakoor

Transactions on Machine Learning Research (TMLR), 2025

Inference-time search improves reasoning in LLMs but is expensive at deployment. We offline fine-tune LLMs to follow correct reasoning paths and forget wrong ones collected from various reasoning algorithms, while enabling fast inference.

2025 RLC 2025

Understanding Behavioral Metric Learning: A Large-Scale Study on Distracting Reinforcement Learning Environments

Ziyan Luo, Tianwei Ni, Pierre-Luc Bacon, Doina Precup, Xujie Si

Reinforcement Learning Conference (RLC), 2025

Distracting observations in the real world can be addressed by metric learning in RL. Our extensive study highlights the often-overlooked roles of layer normalization and self-prediction in improving these methods.

2024 ICML 2024 ICLR Workshop Workshop Oral

Do Transformer World Models Give Better Policy Gradients?

Michel Ma*, Tianwei Ni, Clement Gehring, Pierluca D'Oro*, Pierre-Luc Bacon

International Conference on Machine Learning (ICML), 2024
and ICLR Workshop on Generative Models for Decision Making (oral), 2024

How to design world models for long-horizon planning w/o policy gradient explosion? Use f(s[0], a[0:t]) w/ Transformer, instead of recursively calling f(s[t], a[t]).

2024 ICLR 2024 NeurIPS Workshop Workshop Oral

Bridging State and History Representations: Understanding Self-Predictive RL

Tianwei Ni, Benjamin Eysenbach, Erfan Seyedsalehi, Michel Ma, Clement Gehring, Aditya Mahajan, Pierre-Luc Bacon

International Conference on Learning Representations (ICLR), 2024
and NeurIPS Workshop on Self-Supervised Learning: Theory and Practice (oral), 2023

Provide a unified view on state and history representations in MDPs and POMDPs, and further investigate the challenge, solution, and benefit of learning self-predictive representations in standard MDPs, distracting MDPs, and sparse-reward POMDPs.

2023 NeurIPS 2023 NeurIPS Oral

When Do Transformers Shine in RL? Decoupling Memory from Credit Assignment

Tianwei Ni, Michel Ma, Benjamin Eysenbach, Pierre-Luc Bacon

Conference on Neural Information Processing Systems (NeurIPS), 2023 (oral)
and NeurIPS Workshop on Foundation Models for Decision Making, 2023

Investigate the architectural aspect of history representations in RL on temporal dependencies -- memory and credit assignment, with rigorous quantification.

2022 ICML 2022

Recurrent Model-Free RL Can Be a Strong Baseline for Many POMDPs

Tianwei Ni, Benjamin Eysenbach, Ruslan Salakhutdinov

International Conference on Machine Learning (ICML), 2022

Find and implement simple but often strong baselines for POMDPs, including meta-RL, robust RL, generalization in RL, and temporal credit assignment.

2020 CoRL 2020

f-IRL: Inverse Reinforcement Learning via State Marginal Matching

Tianwei Ni*, Harshit Sikchi*, Yufei Wang*, Tejus Gupta*, Lisa Lee°, Benjamin Eysenbach°

Conference on Robot Learning (CoRL), 2020

Learn reward functions from state-only demonstrations with f-divergence matching.

Community

Services

Workshop Co-organizer

Continual RL Workshop at RLC 2026

Conference Reviewer

Peer review service across reinforcement learning and machine learning venues.

ICML NeurIPS ICLR RLC

Teaching Assistant

10-703 Deep Reinforcement Learning and Control, Carnegie Mellon University, Fall 2020