Glossary · Reinforcement learning

Gaussian kernel

Also called Gaussian reward, Gaussian term, radial basis function, exp(-error²)

A bell-shaped score, 1 when an error is zero and falling smoothly towards 0 as it grows; a common way to turn an error into a reward.

Many reward terms start as an error: how far a joint is from its target, how many degrees the trunk leans too far. A Gaussian kernel turns an error ee into a reward between 0 and 1:

r=exp⁡ ⁣(−e22σ2)r = \exp\!\left(-\frac{e^2}{2\sigma^2}\right)

At e=0e = 0 the reward is 1. At e=σe = \sigma it is about 0.61, at 2σ2\sigma about 0.14, and far away it is nearly 0. The width σ\sigma says what counts as “close”: errors well under σ\sigma are hardly punished, errors of a few σ\sigma get almost nothing.

Compared with a plain penalty like −e2-e^2, a Gaussian is bounded: one huge error can’t swamp every other term in the reward, and a policy that is already close gets a smooth slope towards perfect. It is the usual shape for tracking a reference motion (DeepMimic’s terms are Gaussians of pose, velocity and end-effector errors).

A term can also be one-sided: the error counts only in one direction, and the other direction is free.

In this project

The rear knee’s upright term is one-sided: ee is how far the chest or pelvis leans back past the reference after the hit (leaning forward of it is free), with σ=5∘\sigma = 5^\circ and weight 1.5, paid every step. It is what took the knee’s lean back from about 10° to about 1° in kneeR4.

Related terms

Used in

← All terms