NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Taylor TD-learning

Michele Garibbo, Maxime Robeyns, Laurence Aitchison

Abstract

Temporal-Difference (TD) learning is a cornerstone of modern reinforcement learning, yet its sample-based nature often introduces high variance that can destabilize training, particularly in continuous control. This paper introduces Taylor TD-learning, a model-based framework that reduces variance by using a first-order Taylor series expansion to analytically integrate over stochasticity in actions and states. By incorporating this method into the TD3 algorithm (TaTD3), the authors demonstrate state-of-the-art performance on high-dimensional benchmarks, including the challenging Humanoid-v2 task, while providing theoretical stability guarantees.

Introduction

In the actor-critic paradigm of reinforcement learning (RL), the critic's primary role is to estimate the expected long-term return, or Value function, through Temporal-Difference (TD) learning. Traditionally, these updates are "sample-based": an agent observes a single state-action transition and updates its value estimate accordingly. However, because policies and environments are inherently stochastic, these single-point samples are noisy. This high variance leads to inconsistent learning and slow convergence.

While model-based methods like Dyna attempt to mitigate this by generating "imaginary" samples from a learned transition model, they frequently rely on the same noisy, sample-based update rules. Taylor TD-learning proposes a fundamental shift: instead of sampling noise, we should integrate over it analytically.

The Taylor TD Framework

Taylor TD-learning leverages a differentiable transition model to approximate the expected TD update across a local neighborhood of states and actions. The method is built on several key technical innovations:

1. Analytic Integration via Taylor Expansion

Rather than calculating a TD update for a single sampled action, the framework performs a first-order Taylor expansion of the update rule around the mean action. This allows the algorithm to analytically integrate over the distribution of action noise and initial state uncertainty, effectively smoothing the update signal.

2. Gradient Matching and Cosine Similarity

A critical component of this approach is ensuring the "shape" of the learned value function matches the target. The authors introduce a gradient matching term that aligns the action gradient of the critic with the action gradient of the TD target. To ensure numerical stability and prevent gradient explosion—a common issue with unbounded dot products—the implementation utilizes cosine similarity between these gradient terms within the loss function.

3. The TaTD3 Algorithm

The authors integrate these concepts into the Twin Delayed Deep Deterministic Policy Gradient (TD3) algorithm, resulting in TaTD3. This implementation uses a learned ensemble of transition models and a reward model to provide the differentiability required for the Taylor expansion calculations.

Experimental Evaluation

The effectiveness of Taylor TD was evaluated across standard continuous control benchmarks, ranging from simple tasks to high-dimensional physical simulations:

  • Classic Control: Pendulum-v1.
  • MuJoCo Environments: Hopper-v2, HalfCheetah-v2, Walker2d-v2, Ant-v2, and the complex Humanoid-v2.

Key Results and Insights

  • Variance Reduction: Empirical results confirm that Taylor TD consistently produces lower-variance updates compared to standard TD across nearly all MuJoCo tasks. This stability is a primary driver of its performance.
  • The Advantage of High Dimensionality: Interestingly, the benefits of Taylor TD scale with the complexity of the task. In low-dimensional environments like Pendulum, the computational overhead offers marginal gains. However, in high-dimensional spaces like Humanoid-v2, where sampling becomes exponentially less efficient, the analytic approximation provides a massive performance lead over other model-based methods like MBPO and MAGE.
  • Analytic vs. Brute Force: To test if the gains were simply due to "more data," the authors compared TaTD3 against a version of TD3 that used 10x more samples (Sample-based Expected-TD3). TaTD3 significantly outperformed the brute-force sampling approach, proving that the analytic Taylor approximation captures local dynamics more effectively than increased sampling.
  • Efficiency: While the calculation of second-order-like terms (gradients of the TD target) makes TaTD3 slightly slower per step than model-free TD3, it remains significantly faster than MBPO, which requires computationally expensive long-horizon model rollouts.

Theoretical Stability

A common concern with approximation methods is the introduction of bias. The authors provide a proof demonstrating that for linear function approximation, the errors introduced by the Taylor expansion do not compromise the stability of TD-learning, provided the environment's timesteps are sufficiently small. This provides a rigorous foundation for the empirical successes observed in deep RL contexts.

Limitations and Future Work

Despite its strengths, Taylor TD-learning has specific constraints:

  • Continuous Domains: Because the method relies on gradients, it is currently limited to continuous state and action spaces and cannot be applied to discrete environments like Atari.
  • Model Sensitivity: The accuracy of the analytic integration is strictly tied to the quality of the learned transition model. Inaccurate models will lead to biased updates.
  • Computational Cost: The gradient-of-gradient calculations increase the cost per training iteration, though this is often offset by improved sample efficiency.

Future research may explore higher-order Taylor expansions for even greater precision or apply this framework to risk-sensitive RL, where approximating the value of nearby "risky" states without visiting them could enhance safety during training.

Summary updated

BibTeX
@inproceedings{garibbo2023taylor,
  author = {Michele Garibbo and Maxime Robeyns and Laurence Aitchison},
  title = {{Taylor TD-learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=hcXDbbzgoh},
}
Figure