TD3
Topics: Reinforcement Learning
Introduction
A common failure mode of DDPG is the problem of Q-value overestimation. When it happens, it leads the policy to exploit it, which in turn breaks the policy.
Twin Delayed DDPG (TD3) is an algorithm based on DDPG that addresses this issue by employing the 3 tricks discussed below.
Similarly to DDPG, TD3 is a model-free, off-policy, actor-critic algorithm, that trains a deterministic policy aimed at environments with continuous action spaces.
Trick One: Target Policy Smoothing
In TD3, clipped noise is added to the actions that are sampled from the target policy when calculating the Q-learning targets. After adding the clipped noise, the target actions are clipped in order to remain in the valid action range. Therefore, the equation for the target action in TD3 is:
where
Target policy smoothing makes it harder for the algorithm to exploit peaks in because it smooths out along changes in action.
Trick Two: Clipped Double Q-Learning
Compared to DDPG, TD3 learns two Q-functions and instead of one, hence the name "twin". Both Q-functions use the same target value, which is calculated using whichever of the two Q-functions gives a smaller target value. Thus the equation of the target in TD3 is:
As stated earlier, both networks are updated with that same target:
Using the smaller Q-value in clipped double Q-learning reduces overestimation of the Q-function.
Trick Three: "Delayed" Policy Updates
In TD3, the policy and target networks are updated less frequently than the Q-function (critic) network. This reduces the volatility that arises in DDPG because of how a policy update changes the target. Also, the policy is updated by maximizing only, just like DDPG:
Pseudocode

References
Backlinks
Notes that reference this page.
Connections
Direct relationships to this note.