RL Algorithms Library
A detailed page for every algorithm: idea, mechanism, equations, pseudocode, strengths, limits, complexity, hyperparameters and applications. The badge says honestly whether it is implemented in the lab or only explained. Tick two or more to compare.
- 37Documented
- 30Implemented
Q-learning
It moves Q(s,a) toward the target r + γ·max Q(s′,·), so it learns the value of the optimal policy even while behaving exploratorily (off-policy).
SARSA
The target uses the action a′ that will actually be taken, not the best one, so it learns values that account for the risk of exploring.
Expected SARSA
The target is r + γ·Σ π(a′|s′)·Q(s′,a′): the randomness of choosing a′ is removed from the update.
Double Q-learning
Two tables QA and QB are kept: one picks the argmax and the other evaluates it, and one of them is updated at random each step.
Monte Carlo control
The actual return G_t is the target: Q(s,a) moves toward the average of the returns observed after visiting (s,a).
TD(λ)
The current TD error is credited to all recent states with a weight that decays at rate γλ, so learning propagates faster.
Dyna-Q
Learns a simple model (s,a)→(r,s′) and uses it for n extra updates after every real step.
Value iteration
V ← max_a Σ P(s′|s,a)[r + γV(s′)] is a contraction that converges to V*; the greedy policy with respect to V* is optimal.
Policy iteration
Greedy improvement on V^π guarantees a policy that is no worse; it terminates in a finite number of iterations.
DQN
Approximate Q(s,a;θ) with a network and train it by regression on a TD target computed with a frozen target network, on random minibatches from a replay memory.
Double DQN
Target: r + γ·Q(s′, argmax_a Q(s′,a;θ); θ⁻) instead of a max on the target network itself.
Dueling DQN
In many states actions hardly matter; learning V(s) shared by all actions speeds up generalisation.
Prioritised experience replay
The probability of sampling transition i is proportional to |δ_i|^α; the loss is multiplied by an importance weight w_i to compensate for the bias.
Rainbow-lite
The study shows that combining improvements helps more than each alone, and you can ablate each component to measure its effect.
DRQN
The internal memory summarises history when the current observation does not determine the state.
REINFORCE
The gradient of expected return is E[ Σ ∇log π(a_t|s_t)·G_t ], estimated from full-episode samples.
REINFORCE with baseline
Subtracting a function that does not depend on the action leaves the expectation unchanged but lowers the variance.
Actor–Critic
The TD error δ = r + γV(s′) − V(s) is the advantage estimate: it guides the actor and trains the critic.
A2C
Gathering steps from several environments reduces temporal correlation and stabilises the estimate.
A3C
The diversity of parallel workers' experience reduces correlation without a replay buffer.
PPO
The clipped surrogate objective keeps r_t(θ) within ε of 1, giving TRPO-like stability at lower complexity.
TRPO
Optimise the surrogate objective under the constraint KL ≤ δ; solved approximately with conjugate gradient and a line search.
DDPG
The actor is trained through the critic's ∇_a Q.
TD3
Taking the minimum of two critics reduces over-estimation.
SAC
Adding an entropy bonus encourages exploration and robustness.
ε-greedy
Simple fixed exploration: guarantees every arm is visited but keeps exploring even after the best is known.
UCB1
Optimism in the face of uncertainty: uncertainty raises the bound, so the arm is tried.
Thompson sampling
Choosing an arm with the probability that it is the best.
Gradient bandit
Policy gradient for a stateless problem: preferences of actions that beat the average are raised.
LinUCB
Ridge regression per arm with a confidence bound that shrinks as data accumulates.
IQL
Simple and scalable, but the environment looks non-stationary because the other agents' policies change while learning.
JAL
Fully centralised: one virtual agent chooses a joint action.
Tabular VDN
The simplest form of centralised training with decentralised execution (CTDE).
Centralised-critic actor–critic (CTDE)
The centralised critic gives actors a less noisy advantage because it sees the full picture.
MADDPG
The centralised critic handles environment non-stationarity during training.
QMIX
Monotonicity guarantees that the joint argmax decomposes into individual argmaxes.
MAAC
Attention helps scale with the number of agents.
No matching algorithms.
