Skip to Content
AlgorithmsAlgorithms
  • Article
  • Open Access

20 November 2025

31 Pages

Segmenting Action-Value Functions over Time Scales in SARSA via TD(Δ)

,
,
,
,
,
,
,
,
…
1
Hanshan Normal University, Chaozhou 521041, China
2
CAS Key Laboratory of Network Data Science & Technology, Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100190, China
3
University of Chinese Academy of Sciences, Beijing 101408, China
4
School of Computer Science, Beijing Institute of Technology, Beijing 100081, China

Abstract

In numerous episodic reinforcement learning (RL) environments, SARSA-based methodologies are employed to enhance policies aimed at maximizing returns over long horizons. Traditional SARSA algorithms face challenges in achieving an optimal balance between bias and variation, primarily due to their dependence on a single, constant discount factor ( η ). This study enhances the temporal difference decomposition method, TD( Δ ), by applying it to the SARSA algorithm, wherein the action-value function is segmented into several components based on the differences between action-value functions linked to specific discount factors. Each component, referred to as a delta estimator (D), is linked to a specific discount factor and learned independently. This modified technique is referred to as SARSA( Δ ). SARSA is a widely used on-policy RL method that enhances action-value functions via temporal difference updates. This decomposition, namely SARSA( Δ ), facilitates learning across a range of time scales. This analysis makes learning more effective and guarantees consistency, especially in situations where long-horizon improvement is needed. The results of this research show that the proposed technique works to lower bias in SARSA’s updates and speed up convergence in both deterministic and stochastic settings, even in dense-reward Atari environments. Experimental results from a variety of benchmark settings show that the proposed SARSA( Δ ) outperforms existing TD learning techniques in both tabular and deep RL environments.

1. Introduction

Reinforcement learning (RL) agents encounter significant challenges in the optimization of long-horizon rewards. Traditional methods employing singular discount variables encounter inherent challenges: small η results in low-variance but myopic policies, whereas large η suffers from excessive variance. Fixed discounts remain constant despite variations in reward densities [1,2,3]. Temporal difference (TD) learning methods, such as Q-learning and SARSA, have shown effectiveness in various tasks by enabling agents to estimate action-value functions that predict expected future rewards. Traditionally, these strategies use a discount factor of 0 ≤ η < 1 , with values getting closer to η = 0 to put more weight on short-term rewards than long-term ones. This approach shortens the planning horizon and makes learning more stable and efficient [2]. Prokhorov and Wunsch [4] show that discount factors η < 1 often lead to better results in the early stages of learning. In certain scenarios, such as long-horizon tasks [5,6] where long-term planning is crucial—like navigation or decision-making tasks that involve delayed rewards—this approach can introduce bias, complicating the agent’s ability to determine the most effective long-horizon policies.
For example, SARSA [2] (State–Action–Reward–State–Action) is an on-policy RL algorithm that updates the action-value function Q(s, a) according to the state–action transitions the agent sees. The standard SARSA algorithm works well in environments with shorter time horizons; however, it faces challenges when utilized for tasks with longer horizons. The main reason for the observed phenomenon is the use of a single discount factor η , which requires a trade-off between bias and variance. This often leads to instability and inefficiency during the learning process. A variety of recommendations exist for addressing this issue [1,4,6,7,8,9,10].
Through the use of weighted combinations of value functions, Fedus et al. [10] presented the concept of hyperbolic discounting. However, their formulation is restricted to state-value functions and does not extend to action-value functions. Meta-gradient RL [8] is a technique that enables agents to adapt their learning processes dynamically. Meta-gradient means finding or improving targets and hyperparameters during training, which could make learning more efficient and adaptable. A gradient-based meta-learning algorithm is capable of online adaptation to the true value function while engaging with and learning from the environment. However, akin to other methodologies, meta-gradient RL primarily emphasizes state-value functions, rather than action-value formulations.
The work that is most relevant in this case is by Romoff et al. [1], which provides a theoretical basis for temporal difference decomposition using the TD( Δ ) framework. TD( Δ ) segments the state-value function V(s) into components using different discount factors, also known as TD( Δ ). This lets the agent learn about short-term and long-term returns separately, which can then be combined to improve performance. This decomposition framework demonstrates considerable potential in addressing the bias–variance trade-off that is intrinsic to temporal difference learning. However, TD( Δ ) is constrained to state-value functions, which presents a limitation in the application of multi-timescale representations to action-value-based algorithms such as SARSA and Q-learning.
This article proposes SARSA( Δ ), an enhancement of the TD( Δ ) approach integrated into the SARSA algorithm, based on this principle. TD( Δ ) emphasizes the actor–critic framework and conventional TD learning, whereas SARSA( Δ ) divides the state-action value function into multiple partial estimators corresponding to various discount factors, known as delta estimators. These estimators give a rough estimate of the difference D m ( s , a ) = Q η m ( s , a ) − Q η m − 1 ( s , a ) between action-value functions. This makes learning faster in contexts where actions yield long-term effects. Like TD( Δ ), SARSA( Δ ) aims to enhance a collection of delta estimators, with each estimator linked to a specific discount factor. Smaller discount factors lead to quicker convergence via segmentation, whereas larger discount factors enhance this foundation, facilitating improved long-term planning.
This paper provides a multi-stage SARSA( Δ ) updating algorithm that separates action-value functions, which allows for faster convergence and improved policy efficacy, especially in complex deterministic and stochastic environments like Atari games. Moreover, our research shows that SARSA( Δ ) can seamlessly accommodate various multi-step RL methodologies, such as n-step SARSA and eligibility traces. This study emphasizes the benefits of SARSA( Δ ) in various tasks, including a basic ring MDP used by Kearns & Singh [11]. It outperforms conventional SARSA in scenarios requiring a balance between short-term action consequences and long-term reward maximization. SARSA( Δ ) may adjust discount factors for multiple time scales, making it valuable where time scale is precious.
The reason for extending TD( Δ ) to SARSA( Δ ) is that temporal difference (TD( Δ )) learning provides a way to break down value functions across a range of time scales, which solves the problems that come up when learning on a single scale for long-horizon scenarios. We want to break down the action-value function Q(s, a) into components that focus on different discount factors by extending TD( Δ ) to SARSA( Δ ). This decomposition enables SARSA to leverage the advantages of learning over multiple time scales, which stabilizes the learning process and reduces the bias–variance trade-off. This add-on gives you a more detailed and scalable way to learn the action-value function in complex environments. Table 1 presents a comparison of the key features of TD( Δ )/SARSA( Δ ) and Standard TD/SARSA-Learning.
Table 1. Comparison of the essential properties of TD( Δ ) and SARSA( Δ ).
Recent research on value decomposition [1] has demonstrated potential for state-value functions; however, it identifies three significant shortcomings that this work aims to address: (i) Action-Value Formulation: No current method effectively decomposes Q(s, a) while maintaining on-policy guarantees. This study extends TD( Δ ) to SARSA( Δ ) by decomposing the action-value function Q(s, a) into delta components across multiple time scales. (ii) Theoretical Foundations: Current analyses do not address the bias–variance trade-off concerning action values. (iii) The proposed SARSA( Δ ) algorithm improves learning efficiency and stability through the independent learning of components corresponding to different discount factors, which are subsequently integrated to form the comprehensive action-value function. (iv) Both theoretical and empirical evaluations have shown that this multi-scale breakdown has a number of benefits, particularly in environments where there are long-horizon rewards, as demonstrated in Table 1.
The subsequent portions of the paper are organized as follows: Section 2 presents a discussion on relevant literature. Section 3 provides the essential background information. The principles of SARSA( Δ ) and theoretical analysis are shown in Section 4 and Section 5, respectively. Section 6 provides a detailed summary of the experiments performed. Ultimately, we present a conclusion in Section 7.

3. Background and Notation

Examine a completely observable Markov Decision Process (MDP) [33], characterized by the tuple ( S , A , P , r ) , where S denotes the state space, A signifies the action space, and P : S × A → S → [ 0 , 1 ] represents the transition probabilities that associate state–action pairings with distributions across subsequent states, whereas r : S × A → R denotes the reward function. At each time step n, the agent is state s n , and it selects an action a n , receives a reward r n = r ( s n , a n ) , and transitions to the next state s n + 1 ∼ P ( · | s n , a n ) .
Within a standard MDP framework, an agent tries to achieve the highest possible discounted return, which is defined as Q η π ( s , a ) = E ∑ n = 0 ∞ η n r n + 1 ∣ s n = s , a n = a , where η is the discount factor and π : S → A → [ 0 , 1 ] stands for the policy that the agent follows. The action-value function Q η π ( s , a ) is determined as the fixed point of the Bellman operator T Q = r π + η P π Q , where r π denotes the expected immediate reward and P π represents the transition probability operator associated with the policy π . For convenience, we remove the superscript π for the rest of the paper.
Using temporal difference (TD) [34] learning, the action-value estimate Q ^ η can approximate the true action-value function Q η . The one-step TD error δ n η = r n + 1 + η Q ^ η ( s n + 1 , a n + 1 ) − Q ^ η ( s n , a n ) is used to update the action-value function given a transition ( s n , a n , r n , s n + 1 ) .
An on-policy RL technique called SARSA learns the action-value function Q(s, a) for a given policy π . The action-value function represents the expected total reward derived from state s, executing action a, and adhering to policy π . Then the SARSA update rule is expressed as follows:
Q ( s n , a n ) ← Q ( s n , a n ) + α r n + η Q ( s n + 1 , a n + 1 ) − Q ( s n , a n )
Here, α is the learning rate, η is the discount factor, and r n is the immediate reward. Long-horizon tasks present challenges for SARSA since the choice of η can compromise learning efficiency with appropriate long-term reward maximizing.
On the other hand, for a complete trajectory, we can employ the discounted sum of one-step TD errors, generally known as the λ -return [34] or, equivalently, the Generalized Advantage Estimator (GAE) [35]. The GAE improves advantage estimates by balancing the trade-off between variance and bias through the parameters λ and η . The Generalized Advantage Estimator is typically represented by the following equation:
A ( s n , a n ) = ∑ k = 0 ∞ ( λ η ) k δ t + k η
where δ n + k is the TD error at time n, computed as follows: δ n + k = r n + k + η Q ( s n + k + 1 , a n + k + 1 ) − Q ( s n + k , a n + k ) .
Loss function for Q-Value estimation utilizing GAE. The loss function L ( θ ) for approximating the Q-value function is defined as the mean squared error between the current Q-value estimate Q ( s n , a n ; θ ) and the target Q-value adjusted by the advantage estimator. Thus, it is possible to concisely write the loss function using A ( s n , a n ) and Q ( s n , a n ) as follows:
L ( θ ) = E Q ( s n , a n ; θ ) − Q ( s n , a n ) + A ( s n , a n ) 2
Despite SARSA being on-policy and lacking an explicit policy update, policy selection in SARSA can still be influenced by Equation (4). For actor–critic architectures [36,37,38], the action-value function is updated according to Equation (3), and a stochastic parameterized policy (actor, π ν ( a | s ) ) is learned from this value estimator through the advantage function, with the loss being
L ( ν ) = E − l o g π ( a | s ; ν ) A ( s , a )
Proximal Policy Optimization (PPO) [39] is an improvement on actor–critic methods. It limits policy updates to a specific area of optimization called a trust region. It does this by using a clipping objective that compares the current parameters, ν , to the old parameters, ν o l d :
L ( ν ) = E m i n ρ ( ν ) A ( s , a ) , ψ ( ν ) A ( s , a )
In on-policy approaches such as SARSA, the probability ratio ρ ( ν ) between the current policy and a preceding policy is often used. SARSA evaluates actions in accordance with the current policy, concurrently updating the action-value function as actions are performed. However, when utilized within an actor–critic framework, the SARSA-learning agent may adopt a similar policy ratio:
ρ ( ν ) = Q ( s , a ; ν ) Q ( s , a ; ν o l d )
where ψ ( ν ) = c l i p ( ρ , 1 − ϵ , 1 + ϵ ) represents the clipped likelihood ratio, and ϵ < 1 is a negligible parameter employed to constrain the update. The loss function for the policy update can be articulated as follows:
L ( ν ) = E m i n ρ ( ν ) A ( s , a ) , c l i p ( ρ ( ν ) , 1 − ϵ , 1 + ϵ ) A ( s , a )

4. Methodology

The TD( Δ ) paradigm boosts regular TD learning by splitting action-value functions over several discount factors, η 0 , η 1 , … η m . This breakdown makes it easier to find the action-value function as a sum of delta estimators, where each estimator shows how action-value functions differ at different discount factors. The main advantage of this method is that it makes it easier to control learning variance and bias by focusing on smaller, more controllable time scales.

4.1. TD( Δ ) Framework

To compute D m for SARSA as outlined in the study, it is essential to comprehend the mechanism by which delta estimators ( D m ) approximate the discrepancies between action-value functions across successive discount factors. This approach for SARSA will be outlined in a stepwise manner.
Delta Estimators ( D m ) and Action-Value Functions ( Q ( s , a ) ): Delta estimators, denoted as D m , quantify the variation between action-value functions associated with consecutive discount factors:
D m = Q η m − Q η m − 1
In this context, Q η m denotes the action-value function with discount factor η m , but Q η m − 1 signifies the action-value function with the prior discount factor, η m − 1 .

4.2. Single-Step TD (SARSA( Δ ))

This section initiates with an overview of the delta estimators ( D m ) pertaining to the action-value functions Q employed in SARSA. SARSA is expanded to TD( Δ ), which is called SARSA( Δ ). SARSA( Δ ) aims to determine the action-value function Q ( s , a ) , representing the expected return of adhering to policy π from state s, executing action a, and subsequently continuing to follow π . The goal is to optimize the total reward by improving the action-value function over various time scales. SARSA( Δ ) fundamentally decomposes the action-value function Q ( s , a ) into multiple delta components D m ( s , a ) , each associated with a distinct discount factor η m . The relationship between these delta components (i.e., delta function) is expressed in the following manner:
D m ( s , a ) : = Q η m ( s , a ) − Q η m − 1 ( s , a )
where η 0 , η 1 , … , η m represent the discount factors across various time scales, and define D 0 ( s , a ) : = Q η 0 ( s , a ) . The action-value function Q η m ( s , a ) is defined as the cumulative sum of all D-components up to m:
Q η m ( s , a ) = ∑ x = 0 m D x ( s , a )
The policy dictates how the state–action pair in conventional SARSA determines the update rule. The TD error adjusts the action-value function, and the policy determines the action in the following state:
Q ( s n , a n ) ← Q ( s n , a n ) + α r n + η Q ( s n + 1 , a n + 1 ) − Q ( s n , a n )
In this context, r n signifies the reward acquired from performing action a n in state s n , whereas ( s n + 1 , a n + 1 ) denotes the ensuing state–action pair. All of the delta components D n ( s , a ) are updated separately using the SARSA rule. The modifications to each component use the same structure as the standard SARSA method, but they are changed to incorporate the delta function at each time scale. The update in Equation (11) for single-step TD SARSA( Δ ) can be expressed with numerous time scales by utilizing the principle of splitting the update into several discount factors [1] as demonstrated below:
D m ( s n , a n ) = E ( η m − η m − 1 ) Q η m − 1 ( s n + 1 , a n + 1 ) + η m D m ( s n + 1 , a n + 1 )
In this context, Q η m ( s n , a n ) denotes the action-value function with a discount factor ( η m ). D m ( s n , a n ) denotes the delta function for SARSA( Δ ), while η m represents the discount factor for time-scale m, while Q η m ( s n + 1 , a n + 1 ) is the SARSA update for the action-value associated with the subsequent state–action pair. The single-step TD SARSA( Δ ) mirrors the original TD update, but it is applied to action-value functions Q rather than state-value functions V. The single-step Bellman Equation for the Q-value function in standard SARSA is as follows:
Q η m ( s n , a n ) = E r n + η n Q η n ( s n + 1 , a n + 1 )
This denotes the expected value of the reward acquired at time n, in addition to the discounted value of the action-value function in the subsequent state–action pair ( s n + 1 , a n + 1 ) . Currently, instead of utilizing a single discount factor η , we are using a series of discount factors η 0 , η 1 , … , η m . The delta function D m ( s n , a n ) is defined as the difference between action-value functions associated with successive discount factors from Equation (9):
D m ( s n , a n ) = Q η m ( s n , a n ) − Q η m − 1 ( s n , a n )
To expand the delta function D m utilizing its definition, we replace the Bellman Equation for both Q η m and Q η m − 1 , thereby expressing D m in relation to these action-value functions. Commence by composing
D m ( s n , a n ) = Q η m ( s n , a n ) − Q η m − 1 ( s m , a m ) From Equation ( 14 ) D m ( s n , a n ) = E r n + η m Q η m ( s n + 1 , a n + 1 ) − E r n + η m − 1 Q η m − 1 ( s n + 1 , a n + 1 ) From Equation ( 13 )
Since the reward terms r n are included in both formulations, simplify by eliminating them.
D m ( s n , a n ) = E η m Q η m ( s n + 1 , a n + 1 ) − η m − 1 Q η m − 1 ( s n + 1 , a n + 1 )
Breaking down the terms facilitates a more thorough examination of the expression. Utilizing the recursive relationship from Equation (14),
Q η m ( s n + 1 , a n + 1 ) = D m ( s n + 1 , a n + 1 ) + Q η m − 1 ( s n + 1 , a n + 1 )
Substitute the definition of D m into the Equation below.
D m ( s n , a n ) = E η m ( D m ( s n + 1 , a n + 1 ) + Q η m − 1 ( s n + 1 , a n + 1 ) ) − η n − 1 Q η n − 1 ( s n + 1 , a n + 1 )
Make the terms simpler:
D m ( s n , a n ) = E η m D m ( s n + 1 , a n + 1 ) + ( η m − η m − 1 ) Q η m − 1 ( s n + 1 , a n + 1 )
Integrate the terms to derive the final update Equation for D m ( s n , a n ) .
D m ( s n , a n ) = E ( η m − η m − 1 ) Q η m − 1 ( s n + 1 , a n + 1 ) + η m D m ( s n + 1 , a n + 1 )
Equation (15) shows that the difference in discount factors η m − η m − 1 is integrated into the update for D m with regard to the action-value function Q η m − 1 ( s n + 1 , a n + 1 ) and the bootstrapping from the next step D m ( s n + 1 , a n + 1 ) . Equation (15) denotes a Bellman Equation (13) for D m , combining a decay factor η m and the reward Q η m − 1 ( s n + 1 , a n + 1 ) . Consequently, it can be utilized to define the expected TD update for D m . In this expression, Q η m − 1 ( s n + 1 , a n + 1 ) can be expressed as the summation of D m ( s n + 1 , a n + 1 ) for m ≤ M − 1 , indicating that the Bellman Equation (13) for D m is contingent upon the values of all delta functions D m for m ≤ M − 1 . This approach treats the delta value function at each time scale as an autonomous RL issue, with rewards obtained from the action-value function of the immediately preceding time scale. Consequently, for a target discounted action-value function Q η m ( s , a ) , all delta components can be trained concurrently through a TD update, employing the prior values of each estimator for bootstrapping. This process necessitates the assumption of a sequence of discount factors, denoted as η m , which includes both the minimum and maximum values, η 0 and η m [1].

4.3. Multi-Step TD (SARSA( Δ ))

Numerous studies indicate that multi-step TD methods typically exhibit greater efficiency compared to single-step TD methods [12]. In multi-step TD SARSA( Δ ), rewards are aggregated over multiple steps instead of depending on a single future reward. This approach takes into account the differences between consecutive discount factors, η m and η m − 1 , while utilizing the value function at state s n + k m for bootstrapping. In SARSA( Δ ), the updated equations are adjusted to combine rewards over a sequence of transitions before bootstrapping from either the Q-values or delta estimators. In multi-step SARSA( Δ ), the agent accumulates rewards over K steps, resulting in a necessary adjustment to the update rule for each D m .
D m ( s n , a n ) = E [ ∑ x = 1 k m − 1 ( η m x − η m − 1 x ) r n + x + ( η m k m − η m − 1 k x ) Q η m − 1 ( s n + k m , a n + k m ) + η m k m D m ( s n + k m , a n + k m ) ]
In this case, r n + x represents the reward obtained at time step n + x . The term a n + k m and the action are selected in a greedy manner as a = arg max a Q ( s n + k m , a ) , with k m representing the number of steps associated with the discount factor η m . This approach extends Q-learning to multi-step temporal difference learning by gathering rewards over multiple stages and employing bootstrapping from both the present and previous time scale action-value functions. In normal multi-step TD learning, the TD error is computed by aggregating rewards over several stages rather than relying on a single future step, followed by bootstrapping from the action-value at the last step. For instance, employing a single discount factor η , the multi-step TD update Equation can be articulated as
Q ( s n , a n ) = E ∑ x = 0 k − 1 η x r n + x + η k Q ( s n + k , a n + k )
Herein, the initial segment of the Equation aggregates the rewards across k steps, each diminished by η . The second component derives from the action-value function at time step n+k. We expand this methodology to include various discount factors and delta decomposition, concentrating on representing the delta function D m ( s n , a n ) as the difference between action-value functions with discount factors η m and η m − 1 . According to the definition of D m , we obtain
D m ( s n , a n ) = Q η m ( s n , a n ) − Q η m − 1 ( s n , a n )
The multi-step variant of the Bellman Equation is now implemented for both Q η m ( s n , a n ) and Q η m − 1 ( s n , a n ) . The multi-step Bellman Equation for Q η m ( s n , a n ) is expressed as follows:
Q η m ( s n , a n ) = E ∑ x = 0 k m − 1 η m x r n + x + η m k m Q η m ( s n + k m , a n + k m )
For Q η m − 1 ( s n , a n ) , the multi-step Bellman Equation is expressed as follows:
Q η m − 1 ( s n , a n ) = E ∑ x = 0 k m − 1 η m − 1 x r n + x + η m − 1 k m Q η m − 1 ( s n + k m , a n + k m )
The formulas for the delta estimator are utilized to perform the subtraction of the two Equations
D m ( s n , a n ) = ∑ x = 0 k m − 1 η m x r n + x + η m k m Q η m ( s n + k m , a n + k m ) − ∑ x = 0 k m − 1 η m − 1 x r n + x + η m − 1 k m Q η m − 1 ( s n + k m , a n + k m )
The expressions are broadened and simplified. The immediate reward terms r n + x are present in both Equations but are adjusted by distinct discount factors, η m and η m − 1 . This enables us to express the disparity in rewards as
∑ x = 0 k m − 1 η m x r n + x − ∑ x = 0 k m − 1 η m − 1 x r n + x = ∑ x = 0 k m − 1 ( η m x − η m − 1 x ) r n + x
Subsequently, for the bootstrapping terms, the recursive relationship is utilized as outlined:
Q η m ( s n + k m , a n + k m ) = D m ( s n + k m , a n + k m ) + Q η m − 1 ( s n + k m , a n + k m )
As a result, the following expression is obtained:
η m k m Q η m ( s n + k m , a n + k m ) − η m − 1 k m Q η m − 1 ( s n + k m , a n + k m ) = ( η m k m − η m − 1 k m ) Q η m − 1 ( s n + k m , a n + k m ) + η m k m D m ( s n + k m , a n + k m )
The definitions for both the rewards and bootstrapping are now integrated to yield the final expression:
D m ( s n , a n ) = E [ ∑ x = 0 k m − 1 ( η m x − η m − 1 x ) r n + x + ( η m k m − η m − 1 k m ) Q η m − 1 ( s n + k m , a n + k m ) + η m k m D m ( s n + k m , a n + k m ) ]
Equation (18) extends the conventional multi-step TD update to include various multiple discount factors and action-value functions in RL. As a result, each D m obtains a share of the rewards from the environment up to time step k m − 1 . Furthermore, each D m utilizes its distinct action-value function in conjunction with the value from the prior time scale. A variation of this algorithm, utilizing k-step bootstrapping as described in [12], is presented in Algorithm 1.
Algorithm 1 Multi-Step TD (SARSA( Δ ))
  • Inputs: Pick out the discount factors ( η 0 , η 1 , . . . , η M ), bootstrapping steps ( k 0 , k 1 , . . . , k M ), and learning rates ( α 0 , α 1 , . . . , α M ).
  • Set the initial value of D m ( s , a ) = 0 for all states, actions, and scales m.
  • for episode = 0, 1, 2, … do                 ▹ Loop for each episode
  •     Initialize state s 0 and choose an initial action a 0 in accordance with a policy.
  •     for n = 0, 1, 2, … do                  ▹ Loop for each time step
  •         Take action a n , observe reward r n and next state s n + 1 .
  •         Select action a n + 1 based on a policy.
  •         for m = 0, 1, …, M do
  •            if m = 0 then
  •                 G 0 = ∑ x = 0 k 0 − 1 η 0 x r n + x + η 0 k 0 D 0 ( s n + k 0 , a n + k 0 )
  •            else▹ Utilizing Equation (10), we substitute Q η m − 1 ( s n + k m , a n + k m ) by summing the D-components up to D m − 1 in Equation (18).
  •                 G m = ∑ x = 0 k m − 1 ( η m x − η m − 1 x ) r n + x + ( η m k m − η m − 1 k m ) ∑ m = 0 m − 1 D m − 1 ( s n + k m , a n + k m ) + η m k m D m ( s n + k m , a n + k m )
  •            end if
  •         end for
  •         for m = 0, 1, 2, …, M do
  •             D m ( s n , a n ) ← D m ( s n , a n ) + α m ( G m − D m ( s n , a n ) )
  •         end for
  •     end for
  • end for

4.4. SARSA TD( λ , Δ )

Equation (19) presents the λ -return [2,34], which integrates rewards across several steps to establish a target for TD( λ ) updates. The λ -return G n η , λ is formally defined as follows:
G n η , λ ( s n , a n ) = Q ^ η ( s n , a n ) + ∑ k = 0 ∞ ( λ η ) k δ n + k η
Equation (20) defines the TD( λ ) operator, which is used to iteratively apply λ -returns in updating the value functions. For SARSA, the TD( λ ) operator updates the action-value function by summing the λ -discounted TD errors as follows:
T λ Q ( s n , a n ) = Q ( s n , a n ) + ( I − λ η P ) − 1 ( T Q ( s n , a n ) − Q ( s n , a n ) )
P represents the transition matrix for state–action pairs according to the policy π , while Q denotes the action-value function. Similarly, Equation (21) defines the λ -return specific to delta estimators in TD( λ , Δ ), denoted as G n m , λ m for each delta estimator D m :
G n m , λ m : = D ^ m ( s n , a n ) + ∑ k = 0 ∞ ( λ m η m ) k δ n + k m
where δ n 0 : = δ n η 0 and δ n m : = ( η m − η m − 1 ) Q ^ η m − 1 ( s n + 1 , a n + 1 ) + η m D ^ m ( s n + 1 , a n + 1 ) − D ^ m ( s n + 1 , a n + 1 ) are the TD-errors.

4.5. SARSA TD( λ , Δ ) with Generalized Advantage Estimation (GAE)

Generalized Advantage Estimation (GAE) [39] seeks to compute the advantage function by aggregating multi-step TD errors. To apply this approach to delta estimators D m ( s n , a n ) , advantage estimates A Δ ( s n , a n ) are computed for each time scale. Each advantage estimate A Δ ( s n , a n ) employs a multi-step TD error pertinent to the delta estimator D n , expressed as follows:
A Δ ( s n , a n ) = ∑ k = 0 T − 1 ( λ m η m ) k δ n + k Δ
where δ n + k Δ : = r n + η m ∑ m = 0 M D ^ m ( s n + 1 , a n + 1 ) − ∑ m = 0 M D ^ m ( s n , a n ) .
The discount factor η m is utilized, and the sum of all D estimators as a surrogate for Q η m is obtained. This objective is applicable to PPO by implementing the policy update from Equation (7) and replacing A with A Δ . Additionally, to train each D m , a truncated form of their corresponding λ -returns are used, as outlined in Equation (21). For more information, see Algorithm 2.
Algorithm 2 PPO-TD( λ , SARSA( Δ ))
  • Inputs: Pick out the discount factors ( η 0 , η 1 , . . . , η M ), bootstrapping steps ( k 0 , k 1 , . . . , k M ), and learning rates ( α 0 , α 1 , . . . , α M ).
  • Set the initial value of D m ( s , a ) = 0 for all states s, actions a, and scales m.
  • Initialize policy ν , and values θ m ∀ m
  • for episode = 0, 1, 2, … do                 ▹ Loop for each episode
  •     Initialize state s 0 and choose an initial action a 0 in accordance with a policy.
  •     for n = 0, 1, 2, … do                  ▹ Loop for each time step
  •         Take action a n , observe reward r n and next state s n + 1 .
  •         Select next action a n + 1 based on a policy.
  •         for m = 0, 1, …, M do
  •            if  n ≥ T  then
  •                 G m , λ m ← D ^ m ( s n − T , a n − T ) + ∑ k = 0 T − 1 ( λ m η m ) k δ n − T + k m ∀ m    ▹ Computing multi-step return G m , λ m and TD-error δ n − T + k m using Equation (21).
  •            end if
  •         end for
  •         for m = 0, 1, 2, …, M do
  •             D ^ m ( s n − T , a n − T ) ← D ^ m ( s n − T , a n − T ) + α m G m , λ m − D ^ m ( s n − T , a n − T )
  •             A Δ = ∑ k = 0 T − 1 ( λ m η m ) k δ n − T + k Δ   ▹ Where A Δ and δ n − T + k Δ are computed using Equation (22).
  •             θ m ← θ m + α m G m , λ m − D ^ m ( s n − T , a n − T ) ∇ D ^ m ( s n − T , a n − T ) ▹ Update θ m with TD (Equation (3)) using G m , λ m ∀ m .
  •             L ( ν ) = E m i n ρ ( ν ) A Δ ( s , a ) , c l i p ( ρ ( ν ) , 1 − ϵ , 1 + ϵ ) A Δ ( s , a )    ▹ from Equation (7)
  •             ν ← ν + α ν ∇ ν L ( ν ) ▹ Update the policy parameters ν with PPO (Equation (7)) for SARSA using A Δ
  •         end for
  •     end for
  • end for

5. Analysis

Subsequently, the delta estimators are analyzed in relation to the bias–variance trade-off. In SARSA, bias arises from reliance on current estimates, influencing updates over short time scales, especially with smaller discount factors, like lower values of η in D m . Utilizing smaller discount factors in updates leads to a decrease in variance because they depend on current estimates. However, this approach also results in heightened bias, as it does not incorporate significant information about future rewards. Conversely, variance increases for updates linked to longer time scales, as future reward information introduces additional variability. In TD( Δ ), action-value components D m with higher η m are associated with greater long-term rewards; however, this results in increased variance stemming from the stochastic characteristics of reward sequences. We begin by demonstrating that our estimator is equivalent to the standard estimator Q ^ η under specific conditions, as outlined in Theorem 1. This comparison elucidates the essential metrics of our estimator that may indicate potential advantages over the standard Q ^ η estimator. Building on this result and previous research by Kearns and Singh [11], the analyses are adapted for SARSA to investigate the effects of bias and variance, along with the TD( Δ ) decomposition framework, in relation to action-value functions. Our objective is to extend the bias–variance error bound framework to action-value settings using TD( Δ ) (i.e., Theorem 4), thereby offering a better understanding of how these quantities can be balanced to obtain optimal results [1].

5.1. SARSA Equivalency Configurations and Enhancements

In certain scenarios, we can demonstrate that our delta estimators for SARSA correspond with the traditional action-value estimator when reformulated into an action-value function. This discourse focuses on the approximation of the linear function of the specified form:
Q ^ ( s , a ) η : = ⟨ θ η , ϕ ( s , a ) ⟩ and D ^ m ( s , a ) : = ⟨ θ m , ϕ ( s , a ) ⟩ , ∀ m
where θ and θ m represent weight vectors in R d and the function ϕ : S × A → R d represents a mapping from a state–action pair to a specified d-dimensional feature space. The weight vector θ for SARSA is updated according to the TD( λ ) learning rule in the following manner:
θ n + 1 η = θ n η + α G n η , λ − Q ^ η ( s , a ) ϕ ( s n , a n ) ,
Here, G n η , λ denotes the TD( λ ) return as stated in Equation (19). Likewise, the delta estimator approach TD( λ m , Δ ) is used to update each D ^ m :
θ n + 1 m = θ n m + α G n M , λ m − D ^ m ( s n , a n ) ϕ ( s n , a n ) ,
where G n M , λ m is specified identically to the TD( Δ ) return defined in Equation (21), modified for the particular action-value function. In these equations, α and { α m } m represent positive learning rates. Two SARSA version algorithms are shown to be equivalent in this context by the following theorem. The subsequent theorems resemble those presented by Romoff et al. [1]; however, a proof is presented for the action-value function in relation to SARSA, whereas Romoff et al. [1] established the proof for the value function.
Theorem 1. 
Inspired by Romoff et al. [1], if α m = α , λ m η m = λ η , ∀ m , and if we choose the initial conditions in such a way that ∑ m = 0 M θ 0 η = θ 0 η , then the iterates produced by TD(λ) (Equation (23)) and TD( λ , Δ ) (Equation (24)) with linear function approximation satisfy the following conditions:
Σ m = 0 M θ n m = θ n η
The proof is presented in Appendix A.
Equivalence is attained when λ m η m = λ η , ∀ m . When λ approaches 1 and η m is less than η , this condition suggests that λ m = λ η / η m could potentially surpass one, resulting in a risk of divergence in TD( λ m ). The subsequent theorem demonstrates that the TD( λ ) operator, as defined in Equation (20), qualifies as a contraction mapping for the range 1 ≤ λ < 1 + η 2 η , thereby confirming that λ η < 1 [1].
Theorem 2. 
Inspired by Romoff et al. [1], ∀ λ ∈ 0 , 1 + η 2 η , the operator T λ is defined by the Equation T λ Q = Q + ( I − λ η P ) − 1 ( T Q − Q ) , ∀ Q ∈ R | S | × | A | , which is well-defined. Furthermore, T λ Q constitutes a contraction in relation to the max norm, with its contraction coefficient expressed as η | 1 − λ η | .
The proof is presented in Appendix A.
The analysis presented in Theorem 1 can be adapted to a new context in which k m -step TD( Δ ) is employed for each D m component, rather than TD( λ , Δ ), a variant of TD learning. Theorem 1 demonstrates that with linear function approximation, standard multi-step TD and multi-step TD( Δ ) can be equivalent when the number of steps ( k m ) is consistent across all time scales (i.e., k m = k , ∀ m ). Although these methods could theoretically be equivalent, such equivalence is not common. To maintain the preservation of equivalence, it is crucial for the learning rate to remain consistent across all time scales. This underscores a significant limitation, as shorter time scales, which involve fewer future steps, can be acquired more rapidly than longer time scales that require the assessment of additional steps beforehand. Furthermore, in practical applications, particularly involving nonlinear function approximation such as deep neural networks, adaptive optimizers are frequently employed [39,40]. The optimizers modify the learning rate accordance with the complexity of the learning task, which depends on the attributes of the delta estimator and its target. There is no universally applicable learning rate in this setting since the effective learning rate changes with time scale. In addition to the learning rate, breaking the action-value function into separate components (especially the D m components) has advantages that standard TD learning, such as non-delta estimators, does not have. The ability to utilize various k-step returns (or λ -return) across multiple time scales enhances control and adaptability in the learning process. If k m < k m + 1 , ∀ m ( o r η m λ m < η m + 1 λ m + 1 , ∀ m ) , this approach has the potential to reduce variance while simultaneously introducing bias, since shorter time scales, which can be learned more quickly, may not correspond perfectly with longer time scales regarding the values they estimate.

5.2. Evaluation for Minimizing k m Values in SARSA via Phased Updates

To show how our approach differs from the single-estimator case, let us follow the tabular phased version of K-step TD presented by Kearns and Singh [11]. In SARSA, the goal is to evaluate the value associated with a state–action pair (s, a) starting from each state s ∈ S and with action a ∈ A ; then, n trajectories are generated S 0 ( x ) = s , a 0 , η 0 , … , S k ( x ) , a k ( x ) , η k ( x ) , S k + 1 ( x ) , … 1 ≤ x ≤ n by following the policy π and averaging over trajectories. Let Q η , n ( s , a ) denote the Q-value estimate at phase n for the discount factor η . For each iteration n, also called phase n, obtain the phase-based estimate Q η , n ( s , a ) for (s, a); we average over the trajectories, resulting in
Q ^ η , n ( s , a ) = 1 n ∑ x = 1 n ∑ i = 0 k − 1 γ i r i ( x ) + η k Q ^ η , n − 1 ( s k ( x ) , a k ( x ) )
Theorem 3 draws upon the findings of Kearns and Singh [11], who demonstrated the result concerning the state-value function. In contrast, the subsequent theorem introduces an upper limit on the error associated with action-value function estimation, expressed as Δ n Q ^ η = m a x s , a | Q ^ η , n ( s , a ) − Q η ( s , a ) |
Theorem 3. 
Inspired by Kearns and Singh [11], for any 0 < δ < 1 , let ϵ = 2 l o g ( 2 k / δ ) n . With probability 1 − δ ,
Δ n Q ^ η ≤ ϵ ( 1 − η k 1 − η ) ⏟ variance term + η k Δ n − 1 Q ^ η ⏟ bias term
The proof is presented in Appendix A.
In Equation (27), a variance term ( 1 − η k 1 − η ) is arising due to sampling error from rewards collected along trajectories. In particular, ϵ bounds the deviation of the empirical average of rewards from the true expected reward. The second term ( η k Δ n − 1 Q ^ η ) in Equation (27) is a bias term that arises from bootstrapping off the previous phase’s estimates.
Similarly, a phased SARSA variant of the multi-step T D ( Δ ) method is considered. For each phase n, each D component is updated as follows:
D ^ m , n ( s , a ) = 1 n ∑ x = 1 n ∑ i = 1 k − 1 ( η m i − η m − 1 i ) r i ( x ) + ( η m k m − η m − 1 k m ) Q η m − 1 ( s n + k ( x ) , a n + k ( x ) ) + η m k m D ^ m ( s n + k ( x ) , a n + k ( x ) )
The maximum threshold for the phased error has now been established. The cumulative errors of each D component, denoted as T D ( Δ ) , is expressed as ∑ m = 0 M Δ n m , where Δ n m = max s , a | D ^ m ( s , a ) − D m ( s , a ) | . Essential differences between SARSA and Q-learning regarding the error bound are as follows: In SARSA, the error is defined by the actions taken by the agent, indicating that the Q-values are modified based on the state-action pairings encountered by the agent during exploration. The inaccuracy in Q-learning emerges from the greedy action, which is defined as the action that maximizes the Q-value for the future state, assuming that the agent consistently operates in an optimal manner.
Theorem 4. 
Inspired by Romoff et al. [1], assume that η 0 ≤ η 1 ≤ η 2 ≤ … … ≤ η m = η and K 0 ≤ K 1 ≤ … ≤ K m = K ; for any 0 < δ < 1 , let ϵ = 2 l o g ( 2 k / δ ) n , and with probability 1 − δ ,
∑ m = 0 M Δ n m ≤ ϵ 1 − η k 1 − η + ϵ ( ∑ m = 0 M − 1 η m k m + 1 − η m k m 1 − η m ) ⏟ variance reduction + ∑ m = 0 M − 1 η m k m − η m k m + 1 ∑ q = 0 m Δ n − 1 q ⏟ bias introduction + η k ∑ m = 0 M Δ n − 1 m
The proof is presented in Appendix A.
The authors examine the comparison of the limits for phased TD( λ ) in Theorem 3 with those for phased TD( Δ ) in Theorem 4. This comparison demonstrates that phased TD( Δ ) facilitates variance reduction equivalent to ϵ ∑ m = 0 M − 1 η m k m + 1 − η m k m 1 − η m ≤ 0 but introduces a potential bias quantified as ∑ m = 0 M − 1 η m k m − η m k m + 1 ∑ q = 0 m Δ n − 1 q ≥ 0 . Utilizing phased TD( Δ ) to decrease k m synchronizes updates more effectively with recent actions, hence lowering variance from high-discounted return components. Shortened k m values accrue bias more swiftly, as SARSA bootstraps from current policy estimations that may vary over phases. It is observed that when all k m values are identical, both algorithms yield the same upper bound.
In SARSA, the return estimate includes subsequent states and actions determined by the policy. The anticipated discounted return over T steps closely approximates the infinite-horizon discounted expected return after T , where T ≈ 1 1 − η [41]. Consequently, k m can be effectively simplified for any η m such that k m ≈ 1 1 − η m , thereby adhering to this principle. Therefore, with T samples, similar to TD( Δ ) [1], SARSA employing TD( Δ ) utilizes k m ≈ 1 1 − η m to establish a suitable balance between bias and variance over all time scales significantly less than T . By establishing k m for each η m , where η m 1 1 − η m ≤ 1 e , the approach guarantees that the effective horizon and variance are maintained within limits without requiring extensive parameter optimization. Each increase in D m facilitates the doubling of the effective horizon, hence ensuring logarithmic scaling with the quantity of action-value functions. SARSA can utilize this to modify additional parameters in alignment with the specified time scales, enhancing the algorithm’s efficiency in calculating long-term rewards without added complexity.

6. Experiments and Results

Experiments were conducted in three distinct environments to evaluate the effectiveness of the proposed method: the Tabular Ring MDP environment detailed in Section 6.1, the deterministic and stochastic OpenAI Gym environments examined in Section 6.2, and the Atari environments from OpenAI Gym described in Section 6.3. This section initiates with a detailed overview of the experimental setup.
Experimental Setup: Experiments were conducted using OpenAI Gym control tasks [42], and Figure 1 shows the relevant environment. The experiments were carried out on a single PC with 16 GB of memory, an Intel Core i7-2600 processor, and a GPU (DELL, Guangzhou, China). The machine ran on 64-bit Ubuntu 22.04.5 LTS. Python 3.9 was used during development, along with the PyTorch package version 2.4.0. and PyTorch-Cuda version 12.1. In each experiment, ten randomly selected seeds were utilized, and the average results are provided. The remaining hyperparameter settings are displayed in Table A1 of Appendix B.
Figure 1. Five-state ring MDP as described by Kearns and Singh [11].

6.1. Tabular

Q-value iteration is utilized to determine the optimal Q-value function. An open-source implementation of Value Iteration (VI), based on the code by Peter Henderson [43], is employed in accordance with the algorithmic principles outlined in Bellman [33] and Sutton et al. [12]. The methodology calculates the optimal value function; however, this approach is adjusted to ascertain the optimal Q-value function. Upon acquiring the optimal Q-values, Temporal Difference (TD) and SARSA( Δ ) methods are applied to derive approximation Q-values via sampling. After 5000 steps, each learning iteration comes to an end. For every setup, 200 trials are executed using different random seeds that influence the dynamics of the transition. The algorithms are implemented using the codebase provided by Kostrikov [44].
The proposed method is contrasted with K-step SARSA, as described in Sutton et al. [12] [Chapter 7.2]. SARSA( Δ ) is evaluated against different RL benchmarks, including the Ring MDP [11] and both deterministic and stochastic environments, to determine its efficacy. Figure 1 illustrates the Ring MDP, which consists of a Markov process featuring five states arranged in a circular form. The probability of transitioning one state clockwise around the ring is 0.95, while the likelihood of remaining in the current state at each step is 0.05. In contrast to the other states on the ring that provide a reward of 0, two neighboring states present rewards of +1 and −1, respectively.
All experiments utilize the identical parameters established by Romoff et al. [1], which involve supplying a variable number of gamma values, commencing at 0 and incrementing according to η m + 1 = η m + 1 2 until the requisite maximum η m is attained. As previously mentioned in Section 5.2, K m = 1 ( 1 − η m ) for every m. The baseline consists of a singular estimator with η = η m and k = k m . Figure 2a illustrates the effectiveness of two methodologies: K-step SARSA( Δ ) and K-step SARSA TD, utilizing a discount factor ( η = 0.996), k = 64 (a parameter related to the algorithm’s step count), and various values of the learning rate α . The y-axis represents the absolute error, while the x-axis indicates the parameter α , which ranges from 0.0 to 1.0. At α = 0.0, both methods start with about the same amount of error (around 0.00230). As α increases, K-step SARSA( Δ ) exhibits a slight initial reduction in inaccuracy, followed by a consistent rise thereafter. In contrast, K-step SARSA TD shows a constant rise in error with low variability. Overall, the K-step SARSA( Δ ) approach outperforms K-step SARSA TD in terms of stability and accuracy across all α values. Both techniques are sensitive to fluctuations in α , but K-step SARSA TD has a more significant rise in error.
Figure 2. (a) illustrates the outcomes for η M = 0.996 on the five-state Ring MDP. The error signifies the absolute discrepancy between the estimated and actual discounted Q-value function (precomputed via Q-value iteration), averaged across the complete learning trajectory of 5000 time steps. (b) illustrates the average absolute error for the optimal learning rate at each K -step return, extending beyond the effective planning horizon of η M .
Figure 2b compares the efficacy of two approaches, K-step SARSA( Δ ) and K-step SARSA TD, based on the number of k-steps. The y-axis represents the absolute error, whereas the x-axis depicts k-steps, which relates to the number of steps utilized in the algorithms. The range of k-steps spans from 0 to approximately 250. K-step SARSA( Δ ) begins with a lower error at smaller k-steps, which then escalates with larger k-steps. K-step SARSA TD starts with an error level similar to that of K-step SARSA( Δ ) for lower k-steps; however, its error increases more sharply as k-steps increase. The overall pattern indicates that both techniques exhibit a rise in inaccuracy as the number of k-steps increases. K-step SARSA( Δ ) consistently demonstrates superior performance compared to K-step SARSA TD across all k-step values, evidenced by a lower error rate. The rapid error amplification noted in K-step SARSA TD indicates that the scheduling method employed in K-step SARSA( Δ ) successfully mitigates error accumulation. Additionally, in this particular MDP, the error increases with k as a result of the bias–variance trade-off linked to k-step returns, consistent with the findings of Romoff et al. [1], Kearns and Singh [11].
Analysis of Figure 2a,b is as follows: In comparing the two figures, K-step SARSA( Δ ) consistently outperforms K-step SARSA TD in both scenarios ( α and k-steps). Both approaches demonstrate sensitivity to increased parameter values ( α or k-steps). K-step SARSA( Δ ) demonstrates improved stability and achieves lower error rates due to its scheduling methodology. Interestingly, compared to the growth in α , errors climb faster with K-step SARSA TD as the number of k-steps increases.

6.2. OpenAI Gym Environments

Two algorithms, K-step SARSA( Δ ) and K-step SARSA TD, were tested in the FrozenLake-v1, Taxi-v3, CliffWalking-v0, and Blackjack environments of OpenAI Gym. These environments are depicted in Figure 3. The results are shown in the Figure 4 and Figure 5. The y-axis displays how many rewards the algorithms obtained on average across episodes, while the x-axis shows how many episodes it took to train the algorithms. Episodes range from 0 to 100,000 episodes. The shaded area around each curve displays the standard error for 10 random seeds. Both algorithms utilize k = 32, which is the number of steps.
Figure 3. OpenAI Gym control used for all experiments. In order from left to right: Frozen Lake, Taxi, Blackjack, and Cliff Walking.
Figure 4. Comparative analysis of K-step SARSA( Δ ) versus traditional K-step SARSA TD within the OpenAI Gym environments: FrozenLake-v1 and Taxi-v3. The shaded area illustrates the standard error calculated from 10 random seeds.
Figure 5. Comparative analysis of K-step SARSA( Δ ) versus traditional K-step SARSA TD within the OpenAI Gym environments: CliffWalking-v0 and Blackjack-v1. The shaded area illustrates the standard error calculated from 10 random seeds.
The red line denotes K-step SARSA( Δ ), while the blue line represents K-step SARSA TD in both Figure 4a,b. Figure 4a presents the FrozenLake-v1 environment, while Figure 4b showcases the Taxi-v3 environment. Figure 4a illustrates that K-step SARSA( Δ ) consistently achieves higher average rewards compared to K-SARSA TD as training progresses. Over the first 20,000 episodes, K-step SARSA( Δ ) shows fast learning with a significant rise in average rewards. However, K-step SARSA TD displays a smaller increase in average rewards when compared to K-step SARSA( Δ ) during the same episodes. After 40,000 episodes, K-step SARSA( Δ ) performance levels off and regularly beats K-step SARSA TD, showing that it is reliable over the long term. K-step SARSA consistently performs worse than K-step SARSA( Δ ).
Figure 4b illustrates that K-Step SARSA( Δ ) regularly achieves superior rewards (i.e., nearer to −200) during the training phase, signifying enhanced learning efficiency and overall performance. Figure 4b also demonstrates that K-Step SARSA( Δ ) stabilizes in the initial phases, indicating robustness and the capacity to converge to an effective policy, whereas K-Step SARSA TD commences at considerably lower rewards (approximately −1800) and exhibits negligible improvement, remaining predominantly flat throughout the training process. The K-Step SARSA TD algorithm encounters difficulties in formulating an effective policy in this context relative to K-Step SARSA( Δ ). The results of the experiment indicate that K-Step SARSA( Δ ) demonstrates a significant advantage over K-Step SARSA TD in the Taxi-v3 environment, attaining considerably higher average rewards and achieving faster convergence.
Figure 5a,b demonstrates the learning effectiveness of two variations of the K-Step SARSA algorithm: K-Step SARSA( Δ ) and K-Step SARSA TD. This analysis is based on 100,000 episodes conducted in the CliffWalking-v0 and Blackjack-v1 environments. The evaluation of both algorithms is conducted with k = 32, which is a hyperparameter indicating the number of steps involved in the updating process. The overall pattern of average rewards shown in Figure 5a indicates that both algorithms exhibit an upward trajectory in average rewards as the number of episodes increases, reflecting enhanced policy performance through ongoing learning. Nonetheless, K-Step SARSA( Δ ) routinely exhibits better performance than K-Step SARSA TD, leading to increased average rewards across the episodes.
In comparison to K-Step SARSA TD, the red line in Figure 5a representing K-Step SARSA( Δ ) shows a significant improvement in the first episodes (about 20,000 episodes), suggesting a faster convergence to optimum policies. K-Step SARSA( Δ ) receives a reward close to −1050 in the 100,000th episode, whereas K-Step SARSA TD receives a somewhat smaller reward of around −1120. This illustrates how K-Step SARSA( Δ ) performs better on this task.
The average reward of approximately +0.15 is dependably achieved across all episodes by the red curve in Figure 5b that represents K-Step SARSA( Δ ). The blue curve in Figure 5b, which represents K-Step SARSA TD, suggests stability; however, it presents an average reward that is significantly lower, at approximately −0.2, across all episodes. K-Step SARSA( Δ ) markedly surpasses K-Step SARSA TD regarding average rewards. The favorable average reward of K-Step SARSA( Δ ) demonstrates its superior suitability for policy optimization in the Blackjack-v1 environment, whereas the negative reward for K-Step SARSA TD signifies inferior performance.
In conclusion, the comparison of results across all four environments reveals a consistent advantage of K-Step SARSA( Δ ) over K-Step SARSA TD in each case. This advantage is demonstrated by increased average rewards, quicker convergence, and enhanced stability in learning results. Environments defined by deterministic state transitions, such as CliffWalking-v0 and FrozenLake-v1, clearly showcase the advantages of K-Step SARSA( Δ ). In contrast, more complex stochastic environments like Blackjack-v1 and Taxi-v3 further emphasize its robustness. The performance graph of deterministic environments, such as CliffWalking-v0 and FrozenLake-v1, resembles an exponential growth plateau curve due to predictable state transitions. On the contrary, the performance graph for sophisticated stochastic environments, such as Blackjack-v1 and Taxi-v3, resembles a flat line due to the uncertainty and unpredictability in state transitions.
Table 3 presents the average rewards along with confidence intervals (CIs) for each algorithm within their respective environments. Kruskal statistical tests [45] were conducted at a significance level of α = 0.05 to compare K-step SARSA TD and K-Step SARSA( Δ ) baseline models.
Table 3. This table presents a comparative analysis of K-Step SARSA TD and K-Step SARSA( Δ ) across multiple OpenAI Gym Toy Text environments.

6.3. OpenAI Gym Atari Environments

To assess the efficacy of the proposed PPO-TD( λ , SARSA( Δ )) method, experiments were conducted in two Atari environments: SeaquestNoFrameskip-v4 and QbertNoFrameskip-v4 [3], and the results were compared with those obtained from the standard PPO algorithm [39]. These environments are illustrated in Figure 6. The results shown in Figure 7a,b show that in both environments, the proposed technique achieves better stability and better long-term rewards. The experiments tracked average rewards during training episodes ranging from 10,000 to 100,000. The experiments employ the code cited in Kostrikov [44].
Figure 6. The OpenAI Gym Atari control framework is utilized for conducting long-horizon experiments. Arranged from left to right: (a) SeaquestNoFrameskip-v4 and (b) QbertNoFrameskip-v4.
Figure 7. Comparison of performance between PPO-Standard and PPO-TD( λ , SARSA( Δ )) across two Atari games: (a) SeaquestNoFrameskip-v4 and (b) QbertNoFrameskip-v4. The x-axis denotes the quantity of training episodes (measured in thousands), whereas the y-axis illustrates the average rewards obtained. The shaded areas represent the standard deviation calculated from 10 runs with different random seeds.
In SeaquestNoFrameskip-v4, PPO-TD( λ , SARSA( Δ )) demonstrates superior performance compared to PPO-Standard at four out of five evaluation points, as illustrated in Figure 7a. Following 100K episodes, the mean reward for PPO-TD( λ , SARSA( Δ )) is around 14.35, while PPO-Standard attains 14.25, reflecting a 0.7% enhancement. PPO-Standard has a pronounced peak after 60K episodes, achieving an average reward of around 15.25, after which it declines and plateaus. In contrast, PPO-TD( λ , SARSA( Δ )) exhibits more refined learning dynamics and sustains stable performance following its peak at 40K episodes.
The performance difference in QbertNoFrameskip-v4 is more substantial, as illustrated in Figure 7b. At 100K episodes, PPO-TD( λ , SARSA( Δ )) attains an average reward of approximately 275, whereas PPO-Standard achieves about 210, leading to an improvement of approximately 31%. It is noteworthy that PPO-TD( λ , SARSA( Δ )) starts with lower rewards, around 155 at 10K episodes, in contrast to 210 for PPO-Standard. However, it exhibits a steady progress, finally surpassing the baseline after 60K episodes, and reaching a high of around 290 episodes after 80K episodes. The wider shaded region for the proposed technique in the earlier phases indicates more variance, which diminishes as training progresses—signifying improved convergence and learning efficiency with time.
In conclusion, these results highlight the advantages of integrating PPO and SARSA( Δ ) with TD( λ , Δ ). The suggested method enhances the stability of action-value estimates across various time scales and fosters superior long-term performance in dense-reward environments, especially in intricate games such as Qbert.
Table 4 shows the average rewards for each algorithm in their own environments, along with confidence intervals (CI). We used Kruskal statistical tests [45] at a significant level ( α = 0.05 ) to compare the PPO-TD( λ , SARSA( Δ ))/PPO baseline models.
Table 4. Comparative analysis of PPO and PPO-TD( λ , SARSA( Δ )) across various OpenAI Gym Atari environments.

7. Discussion and Conclusions

By combining SARSA with TD( Δ ) and various discount factors, SARSA( Δ ) improves SARSA’s stability and performance. This method maintains the benefits of on-policy learning while enabling a more precise breakdown of action-values. To evaluate the effectiveness of SARSA( Δ ), experiments were performed in both deterministic and stochastic environments from OpenAI Gym, as well as in a synthetic tabular environment—specifically, the five-star ring MDP. Furthermore, enhancements in performance within dense-reward environments of the Atari suite were demonstrated through a PPO-based variant of SARSA( Δ ). The experimental results across all examined environments indicate that the proposed method, SARSA( Δ ), surpasses k-step SARSA TD by achieving higher average rewards, quicker convergence, and more consistent learning trajectories. The PPO-based variant of SARSA( Δ ) also demonstrates superior performance compared to standard PPO algorithms in dense-reward Atari environments, as evidenced by the experimental results outlined in Section 6.3. This research contributes to our knowledge of multi-step RL algorithms and its applicability to diverse sequential decision-making tasks.
Limitations: The proposed SARSA( Δ ) method has four limitations that require attention: (i) Memory Overhead: When using a large number of Δ components, the memory needs increase since the component-level updates scale linearly with the number of discount factors. This technique requires an extra O(M) in storage compared to conventional SARSA. (ii) Stochastic Environments: Best results may not be attained through rigid scheduling of η m in scenarios characterized by high unpredictability of rewards. In certain cases, adaptive scheduling of η m can boost both the stability and the effectiveness of learning. (iii) Partial Observability Markov Decision Process (POMDP): Current formulations are inapplicable to environments characterized by partial observability, as they presuppose full observability of the Markov Decision Process (MDP). (iv) Extension to off-policy: There are numerous issues associated with adapting SARSA( Δ ) to off-policy algorithms such as Q-learning. Off-policy learning has the potential to significantly increase variance in long-horizon components, which may subsequently lead to instability during the training process.

8. Future Directions and Recommendations

The recommendations for future work are as follows:
(i) Incorporation with Off-Policy Q-Learning: The adaptability of the SARSA( Δ ) idea might be enhanced by applying it to off-policy algorithms, similar to the Q-learning version of TD( Δ ). (ii) Applications to Multi-Agent Systems: In a multi-agent system, the agents coordinate on aligned subgoals by sharing D m components. (iii) Adaptive Scheduling via Meta-Gradients: Performance in various environments may be improved by using meta-gradient approaches for dynamically adjusting η m . (iv) Extension to Partially Observable: Adapting SARSA( Δ ) for environments characterized by partial observability is an effective approach to enhance its relevance in real-world applications. We decided to take care of it later.

Author Contributions

M.H. participated in all stages, from conceptualization design to writing—original draft preparation. G.Z. and X.D. funding acquisition and writing—review and editing. X.C. supervision and project administration. W.H., L.M., S.Q., Z.Z. and P.W. investigation. Z.U. and N.U.R.J. validation and formal analysis. All authors have read and agreed to the published version of the manuscript.

Funding

This research is funded by the Innovation Teams of Ordinary Universities in Guangdong Province under Grants (2021KCXTD038, 2023KCXTD022), the Key Laboratory of Ordinary Universities in Guangdong Province (2022KSYS003), Key Discipline Research Ability Improvement Project of Guangdong Province (2021ZDJS043, 2022ZDJS068), the Natural Science Foundation of Guangdong Province (2022A1515010990), the Research Fund of the Department of Education of Guangdong Province Grants (2022KTSCX079, 2023ZDZX1013, 2022ZDZX3012, 2022ZDZX3011, 2023ZDZX2038), Chaozhou Engineering Technology Research Center (z25025) and Hanshan Normal University project (XY202105).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Corresponding authors may be approached to obtain data pertinent to this paper.

Acknowledgments

We express our gratitude to the editors and referees for their invaluable suggestions and remarks.

Conflicts of Interest

The authors disclose no conflicting interests.

Abbreviations

The following abbreviations are used in this manuscript:
CIConfidence Intervals
Dec-MCTSDecentralized Monte Carlo Tree Search
DRLDeep Reinforcement Learning
EqEquation
GAEGeneralized Advantage Estimator
GPUGraphics Processing Unit
HRAHybrid Reward Architectures
LTSLong Term Support
MBRLModel-based Reinforcement Learning
MDPMarkov Decision Process
POMDPPartial Observability Markov Decision Process
RLReinforcement Learning
SARSAState–Action–Reward–State–Action
TDTemporal Difference
PPOProximal Policy Optimization

Appendix A. Proofs

Proof. 
Theorem 1
The proof utilizes induction. Initially, it is necessary to establish that the base case is valid at n = 0. This statement is evidently valid given our initial assumption, particularly in the context of zero initialization. At a specific time step n, we assume the validity of the statement, namely, ∑ m = 0 M θ n m = θ n η . We will now demonstrate that it also holds at the subsequent time step, n + 1.
∑ m = 0 M θ n + 1 m = ∑ m = 0 M θ n m + α m G n M , λ m − D ^ m ( s n , a n ) ϕ ( s n , a n ) D m ( s , a ) = Q η m ( s , a ) − Q η m − 1 ( s , a ) and using Equation ( 21 ) = θ n η + ∑ m = 0 M α m ∑ k = n ∞ ( λ m η m ) k − n δ k m ϕ ( s n , a n ) , Assumption based on induction . = θ n η + α ∑ k = n ∞ ( λ η ) k − n ∑ m = 0 M δ k m ⏟ * ϕ ( s n , a n ) , Because of α m = α , λ m η m = λ η , ∀ m
To show that ∑ m = 0 M θ n + 1 m = θ n + 1 η , we must establish that the term (*) = ∑ m = 0 M δ k m is equivalent to the conventional TD error δ k η .
∑ m = 0 M δ k m = r k + η 0 Q ^ η 0 ( s k + 1 , a k + 1 ) − Q ^ η 0 ( s k , a k ) + ∑ m = 1 M ( ( η m − η m − 1 ) ∑ q = 0 m − 1 ⟨ θ n q , ϕ ( s k + 1 , a k + 1 ) ⟩ + η m ⟨ θ n m , ϕ ( s k + 1 , a k + 1 ) ⟩ − ⟨ θ n m , ϕ ( s k , a k ) ⟩ ) = r k + η 0 Q ^ η 0 ( s k + 1 , a k + 1 ) + ∑ m = 1 M η m ∑ q = 0 m θ n q − η m − 1 ∑ q = 0 m − 1 θ n q , ϕ ( s k + 1 , a k + 1 ) − ∑ m = 0 M θ n m , ϕ ( s k , a k ) = r k + η 0 Q ^ η 0 ( s k + 1 , a k + 1 ) + η m ∑ m = 0 M θ n m , ϕ ( s k + 1 , a k + 1 ) − η 0 θ n 0 , ϕ ( s k + 1 , a k + 1 ) − Q η ( s k , a k ) = r k + η 0 Q ^ η 0 ( s k + 1 , a k + 1 ) + η Q ^ η ( s k + 1 , a k + 1 ) − η 0 Q ^ η 0 ( s k + 1 , a k + 1 ) − Q ^ η ( s k , a k ) = r k + η Q ^ η ( s k + 1 , a k + 1 ) − Q ^ η ( s k , a k ) = δ k η
□
Proof. 
Theorem 2
The following is the definition of the Bellman operator:
T = r + η P
The discount factor, the expected reward function, and the transition probability operator that is induced by the policy π are denoted by the symbols η , r, and P, respectively. A geometric weighted sum of T is the definition of the TD( λ ) operator, which can be expressed as follows:
T = ( 1 − λ ) ∑ k = 0 ∞ λ k ( T ) k + 1
It may be inferred that λ ∈ [ 0 , 1 ] is necessary for the aforementioned sum to be finite. A corresponding definition of T λ is as follows for every function D:
T λ D = D + ( I − λ η P ) − 1 ( T D − D )
The separated action-value function is denoted by D in this form, and the update is given in terms of the operator T λ , which is responsible for applying time-scale separation. In the event that 0 ≤ λ η < 1 , the formula is considered to be well-defined. This is because the spectral norm of the operator λ η P is less than 1, and thus, Equation I − λ η P is invertible. On the other hand, when the value of λ is bigger than one, the equivalence between Equations (A1) and (A2) is lost. This is not a problem because, in fact, training is based on the TD error, which, according to expectations, corresponds to the definition of T λ that is provided in Equation (A2). Now, let us have a look at the contraction property that the operator T λ possesses. To begin, the Equation designated as (A2) can be rewritten as follows:
T λ = ( I − λ η P ) − 1 ( T D − λ η P D )
The contraction property is demonstrated by examining two action-value functions, D 1 and D 2 . The distinction between the updates of T λ D 1 and T λ D 2 is
T λ D 1 − T λ D 2 = ( I − λ η P ) − 1 T D 1 − T D 2 − λ η P ( D 1 − D 2 ) = ( I − λ η P ) − 1 η P ( D 1 − D 2 ) − λ η P ( D 1 − D 2 ) = ( I − λ η P ) − 1 η ( 1 − λ ) P ( D 1 − D 2 )
The following is derived:
∥ T λ D 1 − T λ D 2 ∥ ≤ η | 1 − λ | 1 − λ η ∥ D 1 − D 2 ∥ where P = 1
It is established that 0 ≤ λ ≤ 0 constitutes a contraction. For λ > 1 , the following condition must be satisfied:
η ( λ − 1 ) 1 − λ η < 1 ⇒ η λ − η < 1 − λ η ⇒ 2 λ η < 1 + η ⇒ λ < 1 + η 2 η
Consequently, T λ constitutes a contraction if 0 ≤ λ < 1 + η 2 η . This directly indicates that for η < 1 , η λ < 1 . □
Proof. 
Theorem 3
In SARSA, the Q − value function, Q(s, a), is estimated using samples of state–action pairs and their corresponding rewards. Let Q n ( s , a ) denote the estimate of the Q − value at time n. For n samples, using Hoeffding’s inequality provides a guarantee for a variable that is bounded between [ − 1 , + 1 ] , and the probability that the sample mean deviates from the true mean by more than ϵ is expressed as follows:
Q π ( s , a ) = E η 0 + η r 1 + … + η k − 1 r k − 1 + η k Q π ( s k , a k )
Here, the expectations are over a random trajectory under π ; thus, E [ r ι ] ( ι ≤ k − 1 ) denotes the expected value of the ι th reward received, while E [ Q π ( s k , a k ) ] is the expected value of the true value function at the kth state-action reached. The phased TD(k) update sums the terms η ι 1 n ∑ i = 1 n r ι i , whose expectations are exactly the η ι E [ r ι ] appearing above [11].
P | 1 n ∑ x = 1 n r i ( x ) − E [ r i ] | ≥ ϵ ≤ 2 e − 2 n 2 ϵ 2 ∑ x = 1 n ( b − a ) 2 where a = − 1 and b = + 1 P | 1 n ∑ x = 1 n r i ( x ) − E [ r i ] | ≥ ϵ ≤ 2 e − 2 n 2 ϵ 2 n 2 2
Assuming that n and the probability of surpassing an ϵ value is fixed to be atmost δ , we can derive the corresponding value of ϵ :
2 e − 2 n 2 ϵ 2 n 2 2 = δ e − 2 n 2 ϵ 2 n 2 2 = δ 2
Taking the natural logarithm
l n e − 2 n 2 ϵ 2 n 2 2 = l n δ 2 − 2 n 2 ϵ 2 n 2 2 = l n δ 2 − n ϵ 2 2 = l n δ 2 − n ϵ 2 2 = l n δ 2 n ϵ 2 2 = − l n δ 2 n ϵ 2 2 = − l n ( δ ) − l n ( 2 ) n ϵ 2 2 = − l n ( δ ) + l n ( 2 ) n ϵ 2 2 = l n ( 2 ) − l n ( δ ) n ϵ 2 2 = l n 2 δ n ϵ 2 = 2 l o g 2 δ ϵ 2 = 2 l o g 2 δ n ϵ = 2 l o g 2 δ n
So by Hoeffding’s inequality, for n samples, the following holds with probability at least 1 − δ :
P | 1 n ∑ x = 1 n r i ( x ) − E [ r i ] | ≤ ϵ = 2 l o g 2 δ n
Since the analysis involves k different state–action pairs, a union bound is applied. To ensure the probability holds for all k hypotheses, adjust δ to δ / k :
P | 1 n ∑ x = 1 n r i ( x ) − E [ r i ] | ≤ ϵ = 2 l o g 2 k δ n
It is now assumed that all E [ r i ] terms are estimated to at least ϵ accuracy. Substituting this back into the definition of the k-step TD update, we obtain
Q ^ n + 1 ( s , a ) − Q ( s , a ) = 1 n ∑ x = 1 n r 0 + η r 1 + … + η k − 1 r k − 1 + η k Q n ( s k , a k ) − Q ( s , a ) = ∑ i = 0 k − 1 η i 1 n ∑ i = 1 n r i ( x ) − E [ r i ] + η k 1 n ∑ i = 1 n Q n ( s k i , a k i ) − E [ Q ( s k , a k ) ]
where, in the second line, we re-expressed the value in terms of a sum of k rewards. We now upper bounded the difference from E [ r i ] by ϵ to obtain
Q ^ n + 1 ( s , a ) − Q ( s , a ) ≤ ∑ i = 0 k − 1 η l ϵ + η k 1 n ∑ i = 1 n Q n ( s k i , a k i ) − E [ Q ( s k , a k ) ]
The variance term arises from the deviation of the empirical average of rewards from the true expected reward:
ϵ 1 − η k 1 − η ≤ ϵ 1 − η k 1 − η + η k 1 n ∑ i = 1 n Q n ( s k i , a k i ) − E [ Q ( s k , a k ) ]
The bias term is propagated through bootstrapping:
η k Δ n − 1 Q ^ η
and then, the second term is bounded by Δ n − 1 Q ^ η by assumption. Therefore, the combination of these terms results in the comprehensive bound for SARSA:
Δ n Q ^ η ≤ ϵ 1 − η k 1 − η + η k Δ n − 1 Q ^ η
□
Proof. 
Theorem 4
Phased T D ( Δ ) update rules for m ≥ 1 :
D ^ m , n ( s , a ) = 1 n ∑ x − 1 n ∑ i = 1 k m − 1 ( η m i − η m − 1 i ) r i ( x ) + ( η m k m − η m − 1 k m ) Q ^ η m − 1 ( s k ( x ) , a k ( x ) ) + η m k m D ^ m ( s k ( x ) , a k ( x ) )
According to the multi-step update rule (Equation (16)) for m ≥ 1 ,
D m ( s n , a n ) = E ∑ i = 1 k m − 1 η m i − η m − 1 i r i + η m k m − η m − 1 k m Q η m − 1 ( s k , a k ) + η m k m D m ( s k , a k )
Then, subtracting the two expressions results in m ≥ 1 :
D ^ m , n ( s , a ) − D m ( s n , a n ) = ∑ i = 1 k m − 1 η m i − η m − 1 i 1 n ∑ x − 1 n r i ( x ) − E [ r i ] + η m k m − η m − 1 k m ∑ q = 0 m − 1 D ^ q ( s k ( x ) , a k ( x ) ) − E [ D m ( s k , a k ) ] + η m k m D m ( s k ( x ) , a k ( x ) ) − E [ D m ( s k , a k ) ]
Assuming that k 0 ≤ k 1 ≤ … k m = k , the D estimates share at most k m = k reward terms 1 n ∑ x − 1 n r i ( x ) . Using Hoeffding inequality and union bound, it follows that, with probability 1 − δ , each k empirical average reward 1 n ∑ x − 1 n r i ( x ) deviates from the true expected reward E [ r i ] by at most ϵ = 2 l o g ( 2 k / δ ) n . Hence, with probability 1 − δ , ∀ m ≥ 1 , the following holds:
Δ n m ≤ ϵ ∑ i = 1 k m − 1 η m i − η m − 1 i + η m k m − η m − 1 k m ∑ q = 0 m − 1 Δ n − 1 q + η m k m Δ n − 1 m = ϵ 1 − η m k m 1 − η m − 1 − η m − 1 k m 1 − η m − 1 + η m k m − η m − 1 k m ∑ q = 0 m − 1 Δ n − 1 q + η m k m Δ n − 1 m
and Δ n 0 ≤ ϵ 1 − η 0 k 0 1 − η 0 + η 0 k 0 Δ n − 1 0 .
Summing the two previous inequalities results in
∑ m = 0 M Δ n m ≤ ϵ 1 − η 0 k 0 1 − η 0 + ϵ ∑ m = 1 M 1 − η m k m 1 − η m − 1 − η m − 1 k m 1 − η m − 1 + ∑ m = 1 M η m k m − η m − 1 k m ∑ q = 0 m − 1 Δ n − 1 q + η m k m Δ n − 1 m = ϵ 1 − η M k M 1 − η M + ϵ ∑ m = 0 M − 1 η m k m + 1 − η m k m 1 − η m ⏟ ( * ) variance term + ∑ m = 1 M η m k m − η m − 1 k m ∑ q = 0 m − 1 Δ n − 1 q + η m k m Δ n − 1 m ⏟ ( * * ) bias term
Let us now focus further on the bias term (**)
∑ m = 1 M η m k m − η m − 1 k m ∑ q = 0 m − 1 Δ n − 1 q + η m k m Δ n − 1 m = ∑ q = 0 M − 1 ∑ m = q + 1 M η m k m − η m − 1 k m Δ n − 1 q + ∑ m = 1 M η m k m Δ n − 1 m = ∑ q = 0 M − 1 Δ n − 1 q ∑ m = q + 1 M η m k m − ∑ m = q M − 1 η m k m + 1 + ∑ m = 1 M η m k m Δ n − 1 m = ∑ q = 0 M − 1 Δ n − 1 q ∑ m = q + 1 M − 1 ( η m k m − η m k m + 1 ) + ( η M k m − η q k q + 1 ) + ∑ m = 1 M η m k m Δ n − 1 m = ∑ q = 0 M − 1 ∑ m = q + 1 M − 1 ( η m k m − η m k m + 1 ) Δ n − 1 q + η M k m ∑ m = 0 M Δ n − 1 m + ∑ m = 0 M − 1 ( η m k m − η m k m + 1 ) Δ n − 1 m = ∑ q = 0 M − 1 ∑ m = q M − 1 ( η m k m − η m k m + 1 ) Δ n − 1 q + η M k m ∑ m = 0 M Δ n − 1 m = ∑ m = 0 M − 1 ( η m k m − η m k m + 1 ) ∑ q = 0 m Δ n − 1 q + η M k m ∑ m = 0 M Δ n − 1 m
Finally, the following is obtained:
∑ m = 0 M Δ n m ≤ ϵ 1 − η k 1 − η + ϵ ∑ m = 0 M − 1 η m k m + 1 − η m k m 1 − η m ⏟ variance reduction + ∑ m = 0 M − 1 η m k m − η m k m + 1 ∑ q = 0 m Δ n − 1 q + η k ∑ m = 0 M Δ n − 1 m ⏟ bias introduction
□

Appendix B. Hyperparameters

The experiments primarily utilize the hyperparameters recommended by Romoff et al. [1], Schulman et al. [39], and Kostrikov [44]. Additional hyperparameter configurations are detailed in Table A1.
Table A1. Hyperparameter configurations and their corresponding values.

Appendix C. Variables Definition

The definitions of all the variables used in the mathematical expressions in this paper can be found in Table A2.
Table A2. The definitions of variables used in the mathematical expressions.

References

  1. Romoff, J.; Henderson, P.; Touati, A.; Brunskill, E.; Pineau, J.; Ollivier, Y. Separating value functions across time-scales. In Proceedings of the International Conference on Machine Learning. PMLR, Long Beach, CA, USA, 9–15 June 2019; pp. 5468–5477. [Google Scholar]
  2. Sutton, R.S.; Barto, A.G. Reinforcement Learning: An Introduction; MIT Press: Cambridge, UK, 2018; Volume 2. [Google Scholar]
  3. Bellemare, M.; Srinivasan, S.; Ostrovski, G.; Schaul, T.; Saxton, D.; Munos, R. Unifying count-based exploration and intrinsic motivation. In Proceedings of the 30th Conference on Neural Information Processing Systems (NIPS 2016), Barcelona, Spain, 5–10 December 2016. [Google Scholar]
  4. Prokhorov, D.V.; Wunsch, D.C. Adaptive critic designs. IEEE Trans. Neural Netw. 1997, 8, 997–1007. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Mnih, V. Playing atari with deep reinforcement learning. arXiv 2013, arXiv:1312.5602. [Google Scholar] [CrossRef] [Scilit]
  6. Berner, C.; Brockman, G.; Chan, B.; Cheung, V.; Dębiak, P.; Dennison, C.; Farhi, D.; Fischer, Q.; Hashme, S.; Hesse, C.; et al. Dota 2 with large scale deep reinforcement learning. arXiv 2019, arXiv:1912.06680. [Google Scholar] [CrossRef] [Scilit]
  7. François-Lavet, V.; Fonteneau, R.; Ernst, D. How to discount deep reinforcement learning: Towards new dynamic strategies. arXiv 2015, arXiv:1512.02011. [Google Scholar]
  8. Xu, Z.; van Hasselt, H.P.; Silver, D. Meta-gradient reinforcement learning. In Proceedings of the NIPS’18: Proceedings of the 32nd International Conference on Neural Information Processing Systems, Montreal, QC, Canada, 3–8 December 2018. [Google Scholar]
  9. Van Seijen, H.; Van Hasselt, H.; Whiteson, S.; Wiering, M. A theoretical and empirical analysis of expected sarsa. In Proceedings of the 2009 IEEE Symposium on Adaptive Dynamic Programming and Reinforcement Learning, Nashville, TN, USA, 30 March–2 April 2009; pp. 177–184. [Google Scholar]
  10. Fedus, W.; Gelada, C.; Bengio, Y.; Bellemare, M.G.; Larochelle, H. Hyperbolic discounting and learning over multiple horizons. arXiv 2019, arXiv:1902.06865. [Google Scholar] [CrossRef] [Scilit]
  11. Kearns, M.J.; Singh, S. Bias-Variance Error Bounds for Temporal Difference Updates. In Proceedings of the COLT, the Thirteenth Annual Conference on Computational Learning Theory, Palo Alto, CA, USA, 28 June–1 July 2000; pp. 142–147. [Google Scholar]
  12. Sutton, R.S.; Barto, A.G. Introduction to Reinforcement Learning; MIT Press: Cambridge, MA, USA, 1998; Volume 135. [Google Scholar]
  13. Sherstan, C.; MacGlashan, J.; Pilarski, P.M. Generalizing value estimation over timescale. Network 2018, 2, 3. [Google Scholar]
  14. Ali, R.F.; Woods, J.; Seraj, E.; Duong, K.; Behzadan, V.; Hsu, W. Hyperbolic Discounting in Multi-Agent Reinforcement Learning. In Proceedings of the Finding the Frame: An RLC Workshop for Examining Conceptual Frameworks, Amherst, MA, USA, 9 August 2024. [Google Scholar]
  15. Kim, M.; Kim, J.S.; Choi, M.S.; Park, J.H. Adaptive discount factor for deep reinforcement learning in continuing tasks with uncertainty. Sensors 2022, 22, 7266. [Google Scholar] [CrossRef] [Scilit]
  16. Amit, R.; Meir, R.; Ciosek, K. Discount factor as a regularizer in reinforcement learning. In Proceedings of the International Conference on Machine Learning, PMLR, Virtual, 13–18 July 2020; pp. 269–278. [Google Scholar]
  17. Wang, J.; Zhang, Q.; Zhao, D.; Zhao, M.; Hao, J. Dynamic horizon value estimation for model-based reinforcement learning. arXiv 2020, arXiv:2009.09593. [Google Scholar] [CrossRef] [Scilit]
  18. Dietterich, T.G. Hierarchical Reinforcement Learning with the MAXQ Value Function Decomposition. arXiv 1999, arXiv:cs/9905014. [Google Scholar] [CrossRef] [Scilit]
  19. Henderson, P.; Chang, W.D.; Bacon, P.L.; Meger, D.; Pineau, J.; Precup, D. OptionGAN: Learning Joint Reward-Policy Options using Generative Adversarial Inverse Reinforcement Learning. arXiv 2017, arXiv:1709.06683. [Google Scholar] [CrossRef] [Scilit]
  20. Hengst, B. Discovering Hierarchy in Reinforcement Learning with HEXQ. In Proceedings of the International Conference on Machine Learning, San Francisco, CA, USA, 8–12 July 2002. [Google Scholar]
  21. Reynolds, S.I. Decision Boundary Partitioning: Variable Resolution Model-Free Reinforcement Learning. In Proceedings of the International Conference on Machine Learning, San Francisco, CA, USA, 27–30 June 1999. [Google Scholar]
  22. Menache, I.; Mannor, S.; Shimkin, N. Q-Cut-Dynamic Discovery of Sub-goals in Reinforcement Learning. In Proceedings of the European Conference on Machine Learning, Helsinki, Finland, 19–23 August 2002. [Google Scholar]
  23. Russell, S.J.; Zimdars, A. Q-Decomposition for Reinforcement Learning Agents. In Proceedings of the International Conference on Machine Learning, Xi’an, China, 5 November 2003. [Google Scholar]
  24. van Seijen, H.; Fatemi, M.; Laroche, R.; Romoff, J.; Barnes, T.; Tsang, J. Hybrid Reward Architecture for Reinforcement Learning. arXiv 2017, arXiv:1706.04208. [Google Scholar] [CrossRef] [Scilit]
  25. Ali, R.F.; Nafi, N.M.; Duong, K.; Hsu, W. Efficient Multi-Horizon Learning for Off-Policy Reinforcement Learning. In Proceedings of the Deep Reinforcement Learning Workshop NeurIPS, New Orleans, LA, USA, 28 November–9 December 2022. [Google Scholar]
  26. Ali, R.F.; Duong, K.; Nafi, N.M.; Hsu, W. Multi-horizon learning in procedurally-generated environments for off-policy reinforcement learning (student abstract). In Proceedings of the AAAI Conference on Artificial Intelligence, Washington, DC, USA, 7–14 February 2023; pp. 16150–16151. [Google Scholar]
  27. Seiler, K.M.; Kong, F.H.; Fitch, R. Multi-Horizon Multi-Agent Planning Using Decentralised Monte Carlo Tree Search. IEEE Robot. Autom. Lett. 2024, 9, 7715–7722. [Google Scholar] [CrossRef] [Scilit]
  28. Benechehab, A.; Paolo, G.; Thomas, A.; Filippone, M.; Kégl, B. Multi-timestep models for Model-based Reinforcement Learning. arXiv 2023, arXiv:2310.05672. [Google Scholar]
  29. Bonnet, C.; Caron, P.; Barrett, T.; Davies, I.; Laterre, A. One step at a time: Pros and cons of multi-step meta-gradient reinforcement learning. arXiv 2021, arXiv:2111.00206. [Google Scholar]
  30. Kobayashi, T. Adaptive and multiple time-scale eligibility traces for online deep reinforcement learning. Robot. Auton. Syst. 2022, 151, 104019. [Google Scholar] [CrossRef] [Scilit]
  31. Sutton, R.S. Learning to predict by the methods of temporal differences. Mach. Learn. 1988, 3, 9–44. [Google Scholar] [CrossRef] [Scilit]
  32. Tsitsiklis, J.; Van Roy, B. Analysis of temporal-diffference learning with function approximation. In Proceedings of the Advances in Neural Information Processing Systems 9 (NIPS 1996), Denver, CO, USA, 2 December 1996. [Google Scholar]
  33. Bellman, R. A Markovian decision process. J. Math. Mech. 1957, 6, 679–684. [Google Scholar] [CrossRef]
  34. Sutton, R.S. Temporal Credit Assignment in Reinforcement Learning. Ph.D. Thesis, University of Massachusetts, Amherst, MA, USA, 1984. [Google Scholar]
  35. Schulman, J.; Moritz, P.; Levine, S.; Jordan, M.I.; Abbeel, P. High-Dimensional Continuous Control Using Generalized Advantage Estimation. arXiv 2015, arXiv:1506.02438. [Google Scholar]
  36. Sutton, R.S.; McAllester, D.A.; Singh, S.; Mansour, Y. Policy Gradient Methods for Reinforcement Learning with Function Approximation. In Proceedings of the Neural Information Processing Systems, Denver, CO, USA, 29 November–4 December 1999. [Google Scholar]
  37. Konda, V.R.; Tsitsiklis, J.N. Actor-Critic Algorithms. In Proceedings of the Neural Information Processing Systems, Denver, CO, USA, 29 November–4 December 1999. [Google Scholar]
  38. Mnih, V.; Badia, A.P.; Mirza, M.; Graves, A.; Lillicrap, T.P.; Harley, T.; Silver, D.; Kavukcuoglu, K. Asynchronous Methods for Deep Reinforcement Learning. In Proceedings of the International Conference on Machine Learning, New York, NY, USA, 19–24 June 2016. [Google Scholar]
  39. Schulman, J.; Wolski, F.; Dhariwal, P.; Radford, A.; Klimov, O. Proximal policy optimization algorithms. arXiv 2017, arXiv:1707.06347. [Google Scholar] [CrossRef] [Scilit]
  40. Henderson, P.; Romoff, J.; Pineau, J. Where did my optimum go?: An empirical analysis of gradient descent optimization in policy gradient methods. arXiv 2018, arXiv:1810.02525. [Google Scholar] [CrossRef] [Scilit]
  41. Kearns, M.; Singh, S. Near-optimal reinforcement learning in polynomial time. Mach. Learn. 2002, 49, 209–232. [Google Scholar] [CrossRef] [Scilit]
  42. Brockman, G. OpenAI Gym. arXiv 2016, arXiv:1606.01540. [Google Scholar] [CrossRef] [Scilit]
  43. Peter Henderson, W.D.C. Value and Policy Iterations. 2024. Available online: https://github.com/Breakend/ValuePolicyIterationVariations (accessed on 20 August 2025).
  44. Kostrikov, I. PyTorch Implementations of Reinforcement Learning Algorithms. 2024. Available online: https://github.com/ikostrikov/pytorch-a2c-ppo-acktr (accessed on 20 August 2025).
  45. Kruskal, W.H.; Wallis, W.A. Use of ranks in one-criterion variance analysis. J. Am. Stat. Assoc. 1952, 47, 583–621. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.