A prevalent misconception about reinforcement learning (RL) is that learning is driven solely by a scalar reward signal. It is true that the agent’s goal is to maximize its expected cumulative reward, and that, broadly speaking, learning should be directed toward this goal. Though the reward specifies the objective, it is not the only source of feedback to drive learning. RL is about learning from experience, and experience is more than just reward.
At any given timestep, the agent has some representation of the state of the environment1 constructed from its history of observations and actions. The agent takes an action, the environment transitions to a (potentially) new state, and the agent observes the consequences of that action. The agent receives two signals: a scalar reward and the subsequent observation.2 The reward serves as evaluative feedback measuring immediate progress toward goal achievement. The subsequent observation provides feedback about the environment’s dynamics, including the impact of the agent’s action. The agent’s observations, actions, and rewards together constitute the agent’s experience.
An agent’s understanding of its environment is its ability to predict its observation stream and control it through its actions. We call it "understanding" because the ability to predict and control environment signals can be used to achieve goals. When rewards are sparse, understanding the environment can be an important step toward attaining reward and capitalizing on it once attained. A scalar reward—especially a sparse one—may not provide a rich enough signal to efficiently learn complex behaviors.
For example, baby elephants are quite clumsy with their immense trunks and spend a considerable amount of time using them to interact with the environment before they develop dexterity. Eventually, an elephant’s trunk becomes incredibly dexterous and can lift the tiniest of items, even a nut. Just as an elephant first learns how its trunk movements affect its environment, many areas of RL examine how agents can build an understanding of the environment through interaction. Examples include the study of general value functions, auxiliary tasks, and model-based RL. More broadly, this motivation has strong parallels to self-supervised learning, where inputs themselves serve as dense supervision signals to build general domain understanding.
Different RL algorithms can be viewed on a spectrum. At one extreme are algorithms whose learning objectives are derived solely from reward, which include the popular model-free algorithms (e.g., PPO, DQN, and Soft Actor-Critic). Such algorithms may be inefficient at complex tasks where attaining reward requires a sophisticated understanding of the environment. At the other extreme are algorithms that attempt to form complete, high-fidelity predictions of future observations or learn to control as many aspects of their environment as possible, without filtering out predictions or control tasks that are irrelevant to attaining reward. This approach can waste both experience and function approximation capacity because learning superfluous details requires more samples and parameters. Moreover, to do well, the agent must implicitly learn to ignore these details. As per the Big World Hypothesis,3 attempting to learn everything about the world is a Sisyphean task. In the long run, it is more efficient to learn what is useful. A good algorithm strikes a balance between these two extremes.
An algorithm that balances learning from rewards and observations works from both directions. From one direction, the agent learns to predict and control its observation stream and uses this ability downstream to help it attain reward. From the other direction, rewards are used to learn which parts of the observation stream are worth understanding. This bidirectional approach can help ensure that neither reward maximization nor environment modeling is more difficult than necessary.
In complex environments, attaining reward requires a wide range of skills and understanding. But complex behavior is not learned from reward alone. It is learned from experience, which includes the agent’s observations and actions.
-
The word "environment" can be replaced with "world" to sound more profound. ↩
-
The separation into observation and reward is a convention. The feedback could be a single observation with a designated scalar part that we call reward. ↩
-
Javed and Sutton, "The Big World Hypothesis and its Ramifications for Artificial Intelligence", RLC Finding the Frame Workshop (2024). ↩