Simple Algorithm
Reinforcement Learning · Fixed Point · 28 min

Off-Policy Traces: Tree Backup & Retrace

Cutting traces safely: learning off-policy without exploding variance.

Learning about one policy from another's actions is easy for one step and hard for many. Every multi-step off-policy method must decide, at each later action of the behavior, how far to keep trusting the trajectory. Importance ratios keep everything unbiased and let the variance explode; tree backup trusts in proportion to the target policy and cuts too much; Watkins's Q(λ) stops at the first exploratory action. Retrace(λ) found a cut that is safe for every behavior and efficient when the two policies agree, and V-trace, its cousin inside IMPALA, deliberately moves the fixed point to keep the variance bounded. This lesson derives the family, proves its contraction, and states what is known about control.

What you’ll learn

  • Write the importance-sampled multi-step correction for action values, and derive when its variance is infinite, with an exact threshold for ε-greedy behavior.
  • State the general trace-coefficient operator and prove that it is a γ\gamma-contraction around QπQ^\pi whenever 0≤c≤π/b0 \le c \le \pi/b, with its exact contraction coefficient.
  • Compare importance sampling, Qπ(λ)Q^\pi(\lambda), tree backup, Retrace, and Watkins's and Peng's Q(λ) by safety and efficiency, and state Retrace's convergence theorem for control.
  • Derive V-trace's fixed point and explain the different roles of its two truncation levels.

Importance-sampled traces and their variance

Notation: a behavior policy bb generates the data, the target policy is π\pi, ρi=π(Ai∣Si)/b(Ai∣Si)\rho_i = \pi(A_i \mid S_i)/b(A_i \mid S_i), and VˉQ(s)=∑aπ(a∣s)Q(s,a)\bar V_Q(s) = \sum_a\pi(a \mid s)Q(s,a). (Munos et al., whose framework this lesson follows, write μ\mu for the behavior.) Every multi-step off-policy method for action values in this lesson moves Q(S0,A0)Q(S_0,A_0) by a correction of the form

ΔQ(S0,A0)=∑t≥0γt(∏i=1tci)[Rt+1+γVˉQ(St+1)−Q(St,At)],\Delta Q(S_0,A_0) = \sum_{t \ge 0}\gamma^t\Big(\prod_{i=1}^{t}c_i\Big)\Big[R_{t+1} + \gamma\bar V_Q(S_{t+1}) - Q(S_t,A_t)\Big],

a sum of expected TD errors weighted by products of trace coefficients ci=c(Si,Ai)≥0c_i = c(S_i,A_i) \ge 0. The first action A0A_0 needs no correction: it defines which entry is updated. Every later one does, and the choice of cic_i chooses the algorithm.

The unbiased choice is ci=λρic_i = \lambda\rho_i, the per-decision importance sampling of Precup, Sutton and Singh (2000): each ratio reweights the behavior's action to the target's, so in expectation the correction is the one an on-policy trajectory of π\pi would give. The cost is in the products. Suppose the ratios at successive steps are independent with Eb[ρ]=1\E_b[\rho] = 1 and Eb[ρ2]=m2=1+Var⁡b(ρ)\E_b[\rho^2] = m_2 = 1 + \Var_b(\rho). Then the weight of the term tt steps ahead has second moment

Eb[(γt∏i=1tλρi)2]=(γ2λ2m2)t,\E_b\Big[\Big(\gamma^t\prod_{i=1}^{t}\lambda\rho_i\Big)^2\Big] = \big(\gamma^2\lambda^2m_2\big)^t,

and over long trajectories the correction has finite variance only if γ2λ2m2<1\gamma^2\lambda^2m_2 < 1.

DerivationAn exact threshold: greedy target, ε-greedy behavior
  1. Eb[ρ]=p⋅1p=1,m2=Eb[ρ2]=p⋅1p2=1p\E_b[\rho] = p\cdot\frac1p = 1,\qquad m_2 = \E_b[\rho^2] = p\cdot\frac{1}{p^2} = \frac1p

    Let π\pi be greedy and bb ε-greedy over ∣A∣\abs{\mathcal A} actions, and write p=1−ε+ε/∣A∣p = 1 - \varepsilon + \varepsilon/\abs{\mathcal A} for the probability that bb takes the greedy action, the same in every state. The ratio is 1/p1/p on the greedy action and 0 otherwise, so the ratios are independent across steps, with

  2. γλ<p=1−ε+ε/∣A∣\gamma\lambda < \sqrt p = \sqrt{1 - \varepsilon + \varepsilon/\abs{\mathcal A}}

    The second moments of the weights then form a geometric series with ratio γ2λ2/p\gamma^2\lambda^2/p, which converges only if

  3. With ε=0.1\varepsilon = 0.1 and four actions, p=0.925p = 0.925 and the threshold is γλ<0.962\gamma\lambda < 0.962. A typical γ=0.99\gamma = 0.99 with λ=1\lambda = 1 is past it: the importance-sampled correction has infinite variance, although every single ratio is at most 1/0.925≈1.081/0.925 \approx 1.08.

One operator, many traces

AlgorithmTrace coefficient cic_iVarianceConverges for any bb?Uses long traces near on-policy?
Per-decision importance sampling (Precup, Sutton & Singh, 2000)λρi\lambda\rho_ican be infiniteyesyes
Qπ(λ)Q^\pi(\lambda) (Harutyunyan, Bellemare, Stepleton & Munos, 2016)λ\lambdalowno: needs bb near π\piyes
Tree backup, TB(λ\lambda) (Precup, Sutton & Singh, 2000)λ π(Ai∣Si)\lambda\,\pi(A_i \mid S_i)lowyesno: shrinks traces even when b=πb = \pi
Retrace(λ\lambda) (Munos, Stepleton, Harutyunyan & Bellemare, 2016)λmin⁡(1,ρi)\lambda\min(1, \rho_i)low: ci≤1c_i \le 1yesyes
Retrace truncates the importance ratio at 1. While the behavior takes actions the target likes at least as much (ρ≥1\rho \ge 1), it keeps the full trace λ\lambda; when it strays, it cuts in proportion. Since min⁡(1,ρ)≥π(a∣s)\min(1, \rho) \ge \pi(a \mid s), it never cuts more than tree backup.
DerivationA matrix proof (for traces that depend only on the current pair)
  1. RQ=Q+∑t≥0Bt(TπQ−Q)=Q+(I−B)−1(TπQ−Q)\mathcal RQ = Q + \sum_{t \ge 0}B^t\big(\mathcal T^\pi Q - Q\big) = Q + (I - B)^{-1}\big(\mathcal T^\pi Q - Q\big)

    Let ci=c(Si,Ai)c_i = c(S_i,A_i), and let BB act on functions of pairs by (Bf)(s,a)=γ∑s′P(s′∣s,a)∑a′b(a′∣s′) c(s′,a′) f(s′,a′)(Bf)(s,a) = \gamma\sum_{s'}P(s' \mid s,a)\sum_{a'}b(a' \mid s')\,c(s',a')\,f(s',a'): one step of the behavior, discounted and weighted by the trace. Then Eb[γt∏i≤tci f(St,At)]=(Btf)(S0,A0)\E_b\big[\gamma^t\prod_{i \le t}c_i\,f(S_t,A_t)\big] = (B^tf)(S_0,A_0), and since each expected TD error has conditional mean (TπQ−Q)(St,At)(\mathcal T^\pi Q - Q)(S_t,A_t),

  2. RQ−Qπ=Δ+(I−B)−1(γPπ−I)Δ=(I−B)−1(γPπ−B) Δ\mathcal RQ - Q^\pi = \Delta + (I - B)^{-1}\big(\gamma P^\pi - I\big)\Delta = (I - B)^{-1}\big(\gamma P^\pi - B\big)\,\Delta

    Let Δ=Q−Qπ\Delta = Q - Q^\pi. Because TπQπ=Qπ\mathcal T^\pi Q^\pi = Q^\pi, TπQ−Q=γPπΔ−Δ\mathcal T^\pi Q - Q = \gamma P^\pi\Delta - \Delta, where (Pπf)(s,a)=∑s′P(s′∣s,a)∑a′π(a′∣s′)f(s′,a′)(P^\pi f)(s,a) = \sum_{s'}P(s' \mid s,a)\sum_{a'}\pi(a' \mid s')f(s',a'). Collect terms:

  3. (I−B)−1((I−B)1−(1−γ)1)=1−(1−γ)(I−B)−11  ≤  γ 1(I - B)^{-1}\big((I - B)\mathbf 1 - (1-\gamma)\mathbf 1\big) = \mathbf 1 - (1-\gamma)(I - B)^{-1}\mathbf 1 \;\le\; \gamma\,\mathbf 1

    Both factors are entrywise nonnegative: (I−B)−1=∑kBk(I - B)^{-1} = \sum_kB^k, and the entries of γPπ−B\gamma P^\pi - B are γP(s′∣s,a)(π(a′∣s′)−b(a′∣s′)c(s′,a′))\gamma P(s' \mid s,a)\big(\pi(a' \mid s') - b(a' \mid s')c(s',a')\big), which are nonnegative precisely when c≤π/bc \le \pi/b. Each entry of RQ−Qπ\mathcal RQ - Q^\pi is therefore a weighted sum of entries of Δ\Delta with nonnegative weights. Since Pπ1=1P^\pi\mathbf 1 = \mathbf 1, the weights in each row add up to the corresponding entry of (I−B)−1(γ1−B1)(I-B)^{-1}(\gamma\mathbf 1 - B\mathbf 1):

  4. The weights are exactly η=1−(1−γ)Eb[∑tγt∏i≤tci]\eta = 1 - (1-\gamma)\E_b[\sum_t\gamma^t\prod_{i\le t}c_i], and (I−B)−11≥1(I - B)^{-1}\mathbf 1 \ge \mathbf 1 gives η≤γ\eta \le \gamma. Two extremes: with c≡0c \equiv 0, η=γ\eta = \gamma and R\mathcal R is the one-step expected SARSA backup; on-policy with c≡1c \equiv 1, B=γPπB = \gamma P^\pi, η=0\eta = 0 and RQ=Qπ\mathcal RQ = Q^\pi in one application. ■\blacksquare

Check your understanding

Which choice of trace coefficient can fail to make R\mathcal R a contraction around QπQ^\pi for some behavior policy?

  1. Tree backup, c=λπ(a∣s)c = \lambda\pi(a \mid s)
  2. Qπ(λ)Q^\pi(\lambda), c=λc = \lambda
  3. Retrace, c=λmin⁡(1,π/b)c = \lambda\min(1, \pi/b)
  4. Per-decision importance sampling, c=λπ/bc = \lambda\pi/b
Show the answer

B. Qπ(λ)Q^\pi(\lambda), c=λc = \lambda

The proof needs c≤π/bc \le \pi/b for every action. A constant c=λc = \lambda violates it for actions the behavior takes much more often than the target would, where π/b<λ\pi/b < \lambda; some weights in γPπ−B\gamma P^\pi - B turn negative and the argument fails. Harutyunyan et al. (2016) proved that Qπ(λ)Q^\pi(\lambda) still contracts around QπQ^\pi when λ<(1−γ)/(γε)\lambda < (1-\gamma)/(\gamma\varepsilon), with ε=max⁡s∥π(⋅∣s)−b(⋅∣s)∥1\varepsilon = \max_s\norm{\pi(\cdot \mid s) - b(\cdot \mid s)}_1, so only for nearly on-policy data.

Control: Watkins’s Q(λ), Peng’s Q(λ) and Retrace

For control the target policy changes with QQ. If π\pi is greedy, then π(a∣s)/b(a∣s)\pi(a \mid s)/b(a \mid s) is 1/b(a∣s)1/b(a \mid s) for the greedy action and 0 for the others, so Retrace's coefficient is λ\lambda on greedy actions and 0 on exploratory ones; tree backup's λπ(a∣s)\lambda\pi(a \mid s) is the same. Both become Watkins's Q(λ) (Watkins, 1989), which keeps the trace while the behavior acts greedily and cuts it to zero at the first exploratory action. That is safe, and with frequent exploration it is short-sighted: under ε-greedy behavior with ε=0.1\varepsilon = 0.1 and four actions, each step is exploratory with probability 0.0750.075, so a trace survives on average about 1/0.075≈131/0.075 \approx 13 steps. Retrace with increasingly greedy target policies, ε-greedy ones whose ε\varepsilon shrinks for instance, cuts less while still converging to Q⋆Q^\star.

Two consequences stand out. The behavior never has to become greedy: no GLIE assumption, which Munos et al. believed made this the first convergence result to Q⋆Q^\star for a λ-return algorithm without it. And taking the targets greedy gives Watkins's Q(λ), whose convergence had been open since 1989; the result covers its tabular, episodic version with updates made after each trajectory.

Peng's Q(λ) (Peng & Williams, 1996) makes the opposite choice: it never cuts. Its return bootstraps a fraction 1−λ1-\lambda from max⁡aQ\max_aQ at every step and carries the rest along the behavior's actual trajectory, Gt=Rt+1+γ[(1−λ)max⁡aQ(St+1,a)+λGt+1]G_t = R_{t+1} + \gamma\big[(1-\lambda)\max_aQ(S_{t+1},a) + \lambda G_{t+1}\big]. With a fixed exploratory behavior its fixed point is in general neither QbQ^b nor Q⋆Q^\star, so it is not safe in Munos et al.'s sense. Yet it uses every reward, and Kozuno et al. (2021) proved that it converges to an optimal policy if the behavior policy slowly tracks a greedy policy, in a way similar to conservative policy iteration, which had been conjectured but not proven; in their continuous-control experiments it often outperformed conservative algorithms. Non-conservative multi-step targets are common in deep RL for the same reason: n-step returns with no correction at all are part of Rainbow.

Predict before you look

Qπ(λ)Q^\pi(\lambda) uses the uncorrected trace c=λc = \lambda, and contracts around QπQ^\pi when λ<(1−γ)/(γε)\lambda < (1-\gamma)/(\gamma\varepsilon), where ε=max⁡s∥π(⋅∣s)−b(⋅∣s)∥1\varepsilon = \max_s\norm{\pi(\cdot \mid s) - b(\cdot \mid s)}_1. With γ=0.99\gamma = 0.99 and policies that differ by at most ε=0.1\varepsilon = 0.1, how large may λ\lambda be?

Show the answer

0.1

(1−0.99)/(0.99×0.1)=0.01/0.099≈0.10(1 - 0.99)/(0.99 \times 0.1) = 0.01/0.099 \approx 0.10. Even small disagreements between the policies allow only short uncorrected traces at long horizons, which is why corrections such as Retrace's matter.

V-trace: truncation that moves the fixed point

In IMPALA (Espeholt et al., 2018), many actors generate experience with slightly out-of-date copies of the policy, and a central learner corrects for the lag with V-trace, a state-value target built from truncated ratios. With δt=Rt+1+γV(St+1)−V(St)\delta_t = R_{t+1} + \gamma V(S_{t+1}) - V(S_t),

vs=V(Ss)+∑t=ss+n−1γt−s(∏i=st−1ci)ρt δt,ρt=min⁡(ρˉ,π(At∣St)b(At∣St)),ci=min⁡(cˉ,π(Ai∣Si)b(Ai∣Si)).v_s = V(S_s) + \sum_{t=s}^{s+n-1}\gamma^{t-s}\Big(\prod_{i=s}^{t-1}c_i\Big)\rho_t\,\delta_t,\qquad \rho_t = \min\Big(\bar\rho, \frac{\pi(A_t \mid S_t)}{b(A_t \mid S_t)}\Big),\quad c_i = \min\Big(\bar c, \frac{\pi(A_i \mid S_i)}{b(A_i \mid S_i)}\Big).

Unlike Retrace, V-trace also truncates the ratio ρt\rho_t on the TD error itself. That changes what it converges to.

DerivationThe fixed point of V-trace
  1. Eb[ρ0 δ0∣S0=s]=∑ab(a∣s)min⁡(ρˉ,π(a∣s)b(a∣s))(QV(s,a)−V(s))=0\E_b\big[\rho_0\,\delta_0 \mid S_0 = s\big] = \sum_ab(a \mid s)\min\Big(\bar\rho, \frac{\pi(a \mid s)}{b(a \mid s)}\Big)\big(Q_V(s,a) - V(s)\big) = 0

    Take one step (n=1n = 1). A fixed point must make the expected correction vanish in every state; write QV(s,a)=r(s,a)+γ∑s′P(s′∣s,a)V(s′)Q_V(s,a) = r(s,a) + \gamma\sum_{s'}P(s' \mid s,a)V(s'):

  2. V(s)=∑aπρˉ(a∣s) QV(s,a),πρˉ(a∣s)=min⁡(ρˉ b(a∣s),π(a∣s))∑a′min⁡(ρˉ b(a′∣s),π(a′∣s))V(s) = \sum_a\pi_{\bar\rho}(a \mid s)\,Q_V(s,a),\qquad \pi_{\bar\rho}(a \mid s) = \frac{\min\big(\bar\rho\,b(a \mid s), \pi(a \mid s)\big)}{\sum_{a'}\min\big(\bar\rho\,b(a' \mid s), \pi(a' \mid s)\big)}

    Move bb inside the minimum, bmin⁡(ρˉ,π/b)=min⁡(ρˉ b,π)b\min(\bar\rho, \pi/b) = \min(\bar\rho\,b, \pi), and normalize the weights into a policy:

  3. This is the Bellman equation of πρˉ\pi_{\bar\rho}, so the fixed point is VπρˉV^{\pi_{\bar\rho}}: the value of a policy between bb and π\pi. It equals VπV^\pi when ρˉ\bar\rho is at least every ratio (nothing is truncated) and approaches the value of bb restricted to π\pi's support as ρˉ→0\bar\rho \to 0. For nn-step V-trace with ρˉ≥cˉ\bar\rho \ge \bar c, Espeholt et al. show a contraction with the same fixed point: cˉ\bar c affects only how fast it is reached. ■\blacksquare

So V-trace makes a deliberate trade: bounded ratios, and therefore bounded variance under policy lag, in exchange for evaluating a slightly different policy than π\pi. When actors lag only a little, π/b\pi/b stays near 1, little is truncated, and the bias is small. Distributed Actor–Critic: A3C & IMPALA shows how the V-trace targets drive the actor and critic updates.

Key takeaways

  • Multi-step off-policy corrections are sums of expected TD errors weighted by products of trace coefficients cic_i; the choice of cic_i is the choice of algorithm.
  • Importance-sampled traces (c=λρc = \lambda\rho) are unbiased, but their variance is finite only if γ2λ2E[ρ2]<1\gamma^2\lambda^2\E[\rho^2] < 1: with a greedy target and ε-greedy behavior, only if γλ<1−ε+ε/∣A∣\gamma\lambda < \sqrt{1 - \varepsilon + \varepsilon/\abs{\mathcal A}}.
  • Any 0≤c≤π/b0 \le c \le \pi/b makes R=Q+(I−B)−1(TπQ−Q)\mathcal R = Q + (I - B)^{-1}(\mathcal T^\pi Q - Q) a contraction around QπQ^\pi with modulus η=1−(1−γ)Eb[∑tγt∏ci]≤γ\eta = 1 - (1-\gamma)\E_b[\sum_t\gamma^t\prod c_i] \le \gamma; Retrace's c=λmin⁡(1,ρ)c = \lambda\min(1, \rho) is safe, low-variance and keeps full traces on-policy.
  • With greedy targets, Retrace and tree backup become Watkins's Q(λ); Retrace with increasingly greedy targets converges to Q⋆Q^\star for arbitrary behavior, which also proves Watkins's Q(λ) convergent. Peng's Q(λ) never cuts, is biased for fixed behavior, and converges when the behavior slowly tracks the greedy policy.
  • V-trace truncates the ratio on each TD error too, which moves its fixed point to VπρˉV^{\pi_{\bar\rho}} with πρˉ∝min⁡(ρˉb,π)\pi_{\bar\rho} \propto \min(\bar\rho b, \pi): bounded variance under policy lag, at the price of a small bias.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

The behavior is ε-greedy with ε=0.1\varepsilon = 0.1 over four actions and the target policy is greedy. For which values of γλ\gamma\lambda does the importance-sampled multi-step correction have finite variance over long trajectories?

  1. For every γλ<1\gamma\lambda < 1
  2. Only for γλ<0.9\gamma\lambda < 0.9
  3. For γλ<0.925≈0.962\gamma\lambda < \sqrt{0.925} \approx 0.962
  4. For no value of γλ>0\gamma\lambda > 0
Show the answer

C. For γλ<0.925≈0.962\gamma\lambda < \sqrt{0.925} \approx 0.962

The ratio is 1/p1/p with probability p=0.925p = 0.925 and 0 otherwise, so E[ρ2]=1/p\E[\rho^2] = 1/p, and the squared weights grow like (γ2λ2/p)t(\gamma^2\lambda^2/p)^t. They are summable only if γλ<p≈0.962\gamma\lambda < \sqrt p \approx 0.962.

Question 2

For a safe trace choice, the contraction coefficient is η=1−(1−γ)Eb[∑tγt∏i≤tci]\eta = 1 - (1-\gamma)\E_b\big[\sum_t\gamma^t\prod_{i\le t}c_i\big]. What does it equal when the traces are cut at once (c≡0c \equiv 0), and when the data are on-policy with c≡1c \equiv 1?

  1. γ\gamma and 0: a one-step backup, and a single application landing exactly on QπQ^\pi
  2. 0 and γ\gamma
  3. γ\gamma in both cases
  4. 1 and 0
Show the answer

A. γ\gamma and 0: a one-step backup, and a single application landing exactly on QπQ^\pi

With c≡0c \equiv 0 only the t=0t = 0 term survives, E[⋅]=1\E[\cdot] = 1 and η=γ\eta = \gamma: the one-step expected SARSA backup. With c≡1c \equiv 1 and b=πb = \pi, E[∑tγt]=1/(1−γ)\E[\sum_t\gamma^t] = 1/(1-\gamma) and η=0\eta = 0: the full on-policy return gives QπQ^\pi in one application. Longer surviving traces mean faster contraction, which is why cutting them has a cost.

Question 3

V-trace is run with ρˉ=1\bar\rho = 1 on data from a behavior bb that lags behind the target π\pi. What does it converge to?

  1. VπV^\pi, because truncation only reduces variance
  2. VbV^b, the behavior's value
  3. Vπ1V^{\pi_1}, the value of the policy proportional to min⁡(b,π)\min(b, \pi), which lies between bb and π\pi
  4. It does not converge, because truncated ratios are biased
Show the answer

C. Vπ1V^{\pi_1}, the value of the policy proportional to min⁡(b,π)\min(b, \pi), which lies between bb and π\pi

Truncating the ratio on the TD error reweights actions by min⁡(ρˉb,π)\min(\bar\rho b, \pi), and the expected correction vanishes at the value of the normalized policy πρˉ\pi_{\bar\rho}. With ρˉ=1\bar\rho = 1 it is proportional to min⁡(b,π)\min(b, \pi). The truncation cˉ\bar c of the trace coefficients changes only the speed.

Question 4

On perfectly on-policy data (b=πb = \pi, a stochastic policy), how do the traces of tree backup and Retrace compare?

  1. Both keep c=λc = \lambda
  2. Both cut to c=λπ(A∣S)c = \lambda\pi(A \mid S)
  3. Retrace cuts more than tree backup
  4. Retrace keeps c=λc = \lambda, while tree backup still multiplies by π(A∣S)<1\pi(A \mid S) < 1 at every step
Show the answer

D. Retrace keeps c=λc = \lambda, while tree backup still multiplies by π(A∣S)<1\pi(A \mid S) < 1 at every step

On-policy, ρ=1\rho = 1 and Retrace's λmin⁡(1,ρ)=λ\lambda\min(1, \rho) = \lambda: no needless cutting. Tree backup's λπ(A∣S)\lambda\pi(A \mid S) shrinks the trace whatever the behavior did, so it gives up multi-step information even when there is nothing to correct.

Further reading

  • D. Precup, R. S. Sutton & S. Singh, "Eligibility traces for off-policy policy evaluation," Proceedings of the 17th International Conference on Machine Learning, 759–766 (2000).
  • R. Munos, T. Stepleton, A. Harutyunyan & M. G. Bellemare, "Safe and efficient off-policy reinforcement learning," Advances in Neural Information Processing Systems 29 (2016).
  • A. Harutyunyan, M. G. Bellemare, T. Stepleton & R. Munos, "Q(λ) with off-policy corrections," Algorithmic Learning Theory (ALT) (2016).
  • L. Espeholt et al., "IMPALA: Scalable distributed deep-RL with importance weighted actor-learner architectures," Proceedings of the 35th International Conference on Machine Learning (2018).
  • T. Kozuno, Y. Tang, M. Rowland, R. Munos, S. Kapturowski, W. Dabney, M. Valko & D. Abel, "Revisiting Peng's Q(λ) for modern reinforcement learning," Proceedings of the 38th International Conference on Machine Learning, 5794–5804 (2021).