Abstract: Temporal abstraction is a key requirement for agents making decisions over long time horizons—a fundamental challenge in reinforcement learning. There are many reasons why value estimates at multiple timescales might be useful; recent work has shown that value estimates at different time scales can be the basis for creating more advanced discounting functions and for driving representation learning. Further, predictions at many different timescales serve to broaden an agent's model of its environment. One predictive approach of interest within an online learning setting is general value function (GVFs), which represent models of an agent's world as a collection of predictive questions each defined by a policy, a signal to be predicted, and a prediction timescale. In this paper we present Γ-nets, a method for generalizing value function estimation over timescale, allowing a given GVF to be trained and queried for arbitrary timescales so as to greatly increase the predictive ability and scalability of a GVF-based model. The key to our approach is to use timescale as one of the value estimator's inputs. As a result, the prediction target for any timescale is available at every timestep and we are free to train on any number of timescales. We first provide two demonstrations by 1) predicting a square wave and 2) predicting sensorimotor signals on a robot arm using a linear function approximator. Next, we empirically evaluate Γ-nets in the deep reinforcement learning setting using policy evaluation on a set of Atari video games. Our results show that Γ-nets can be effective for predicting arbitrary timescales, with only a small cost in accuracy as compared to learning estimators for fixed timescales. Γ-nets provide a method for accurately and compactly making predictions at many timescales without requiring a priori knowledge of the task, making it a valuable contribution to ongoing work on model-based planning, representation learning, and lifelong learning algorithms.
Introduction
In reinforcement learning (RL), agents must often reason over long time horizons to make effective decisions. This requires temporal abstraction, typically achieved through value functions that estimate future returns. However, traditional value functions are tied to a fixed timescale defined by a hard-coded discount factor ($\gamma$). If an agent needs to understand its environment across multiple horizons—from immediate sensory feedback to long-term strategic planning—researchers must typically train separate models for each timescale. This approach is computationally expensive and lacks the flexibility needed for lifelong learning.
$\Gamma$-nets (Gamma-nets) address this limitation by introducing a single neural network architecture capable of predicting future values across any arbitrary timescale. By treating the discount factor as an input rather than a fixed parameter, $\Gamma$-nets provide a compact and flexible predictive model of the environment.
Architecture and Methods
The fundamental innovation of the $\Gamma$-net is its input structure. Instead of hard-coding $\gamma$ into the learning rule, the network takes both the environment state ($S$) and a desired timescale as inputs.
During training, the agent selects a set of timescales $\Gamma_t = \{\gamma_1, \gamma_2, \dots\}$. For each timestep, the network calculates the Temporal Difference (TD) error for each $\gamma \in \Gamma_t$ and updates its weights to minimize the aggregate error. This multi-timescale training allows the "target" for any horizon to be available at every step, effectively bootstrapping across time.
To handle the non-linear relationship between $\gamma$ and the actual time horizon (where the horizon grows exponentially as $\gamma \to 1$), the authors provide the network with both $\gamma$ and $\tau$ (where $\tau = 1/(1-\gamma)$). Furthermore, to prevent long-term predictions with larger numerical values from dominating the gradient, the TD error is scaled by $(1-\gamma)$, ensuring balanced learning across all horizons.
Experimental Evaluation
The authors evaluated $\Gamma$-nets across three domains: a synthetic square wave, sensorimotor data from a UR5 robot arm, and Atari 2600 games (e.g., Centipede).
In the square wave demonstration, $\Gamma$-nets using linear function approximation showed a remarkable ability to generalize. Once trained, the network could be queried for timescales it had never explicitly seen during training, demonstrating successful zero-shot interpolation.
In more complex settings like Atari, $\Gamma$-nets achieved predictive accuracy nearly identical to fixed-timescale baselines while using significantly fewer parameters. On the robot arm task, the $\Gamma$-net actually outperformed fixed predictors, suggesting that simultaneous learning across multiple timescales may provide a beneficial regularization effect.
Key Insights
The success of $\Gamma$-nets highlights several critical points for RL research:
- Generalization over Time: Just as deep learning generalizes across states, $\Gamma$-nets prove that networks can generalize across the concept of time itself.
- Representation Matters: Including both $\gamma$ and $\tau$ as inputs is crucial for performance on long-term horizons, as $\gamma$ alone does not sufficiently distinguish between very long timescales.
- "Nexting": The approach aligns with the biological concept of "nexting" — the continuous generation of numerous short-term predictions about sensory input to build a model of the world.
Conclusion and Future Work
$\Gamma$-nets offer a scalable method for making predictions at many timescales without a priori task knowledge. While current results show that linear interpolation between fixed heads can sometimes be slightly more accurate, $\Gamma$-nets are far more compact and flexible. Future work includes extending the method to handle transition-dependent discounting (where $\gamma$ varies by state) and utilizing $\Gamma$-nets as auxiliary tasks to drive better representation learning for decision-making.
Summary updated