Abstract: Reinforcement learning often faces a trade-off between the learning efficiency of eligibility traces and the computational cost of updating them. This paper presents "Fast $Q(\lambda)$," a method that utilizes "lazy learning" to perform updates only when necessary. By decoupling update complexity from the total number of states, the algorithm achieves massive speedups—over four times faster in practice—while maintaining the performance of standard online $Q(\lambda)$.
Introduction
In Reinforcement Learning (RL), $Q(\lambda)$ uses eligibility traces to propagate rewards back to previously visited states, accelerating convergence compared to simple one-step Q-learning. However, standard online implementations, such as those by Peng and Williams (PW), require updating every visited state-action pair at every time step. This leads to a computational complexity that grows toward $O(|S| \times |A|)$, making it prohibitively slow in large state spaces. The authors propose a "truly online" algorithm that maintains high learning efficiency with the low computational cost of one-step Q-learning.
The Fast $Q(\lambda)$ Algorithm
The core innovation is Lazy Learning. Instead of updating all traces at every step, the algorithm postpones Q-value updates until the agent actually enters a state and needs to select an action.
To achieve this mathematically, the algorithm maintains a global variable ($\Delta$) to track cumulative TD errors and a local variable ($\delta$) for each state-action pair (SAP) to record the global $\Delta$ at its last update. A "catch-up" mechanism uses the difference between these variables to update the Q-value in a single step when the agent returns to a state. This effectively "unfolds" the summation of eligibility traces into a single mathematical operation.
Key Results
The algorithm was evaluated on a suite of 20 different randomly initialized 100x100 mazes. Fast $Q(\lambda)$ demonstrated nearly identical cumulative rewards to the standard online version, proving that lazy updates do not degrade learning quality.
As shown in the performance data, for a $\lambda$ of 0.95, Fast $Q(\lambda)$ was over four times faster than the standard PW implementation. In theoretical worst-case scenarios (where $\gamma\lambda = 1$), the speedup is even more dramatic, potentially reducing computation time from 100 hours to just 11 minutes.
Conclusion
Fast $Q(\lambda)$ successfully decouples update complexity from the total size of the environment, making it dependent only on the branching factor (number of actions). This allows for efficient online learning in complex environments that were previously computationally inaccessible. While the current work focuses on tabular RL, the principles of lazy updates offer a path toward more scalable reinforcement learning architectures.
Summary updated