Agent

The Learner and Decision-Maker

The agent is the entity that observes the environment, selects actions, receives rewards, and learns. It embodies the policy — the strategy for choosing actions — and refines it through experience to maximize cumulative reward.

Types of Agents by Policy Representation

1

Tabular — Explicit (state, action) → value table. Simple and exact. Only works for tiny, discrete environments — doesn't scale to real-world state spaces.

2

Value-based — Learns a value function and derives actions by picking the highest-value option. Q-learning, DQN. Works well for discrete action spaces.

3

Policy gradient — Directly learns a parameterized policy (neural network → action probabilities). Works for continuous action spaces. REINFORCE, PPO.

4

Actor-Critic — Actor (policy network) decides actions; Critic (value network) evaluates how good the state or action is. Critic reduces training variance. A2C, A3C, SAC.

Model-Free vs Model-Based

Model-Free

Learns directly from experience. No internal model of the environment. Simpler to implement. Less sample-efficient — needs many interactions. Most practical RL systems are model-free.

Model-Based

Learns a model of the environment (transitions and rewards) and uses it for planning. More sample-efficient — can simulate trajectories mentally. Harder to implement. Errors in the learned model mislead planning.

Need Help?

Ask the AI assistant about RL agents, the difference between value-based and policy gradient agents, or what actor-critic means.