TL;DR
Episodic control allows reinforcement learning (RL) agents to "latch on" to successful experiences after solving a task just once, but existing methods have been strictly confined to discrete actions or relegated to slow deep neural network training targets. Continuous Episodic Control (CEC) introduces the first non-parametric episodic memory method that directly selects actions in continuous action spaces without relying on parametric deep RL policies. Across sparse-reward continuous control and navigation benchmarks, CEC learns dramatically faster than Soft Actor-Critic (SAC) and memory-augmented baselines.
What Problem Does This Paper Address?
Standard deep RL methods (like Soft Actor-Critic) rely on gradient descent to slowly backpropagate reward signals through neural network weights over thousands of environment interactions. When rewards are sparse or when environments feature strict "bottlenecks" (narrow passages or specific sequences of actions), rediscovering a goal multiple times to update neural network weights is inefficient.
Non-parametric episodic control bypasses slow gradient updates by storing state-action-value tuples in a table-like memory and retrieving high-reward actions directly. While powerful, episodic control has historically suffered from a major limitation: it only works in discrete action spaces. Prior attempts to handle continuous actions combined episodic memory with deep actor-critic architectures (such as EMAC), but this re-introduced the slow, parametric neural network bottleneck. CEC asks: Can an episodic memory buffer directly control an agent in continuous action spaces?
Methods
CEC stores experiences as tuples of $(s, a, v)$, where $v$ is the empirical cumulative discounted Monte-Carlo return $G_t = \sum \gamma^k r_k$.
[Query State s] ──> [k-NN in Buffer] ──> [Filter states > n*d] ──> [Softmax sample a_i ∝ exp(v_i/τ)] ──> [+ Gaussian Noise] ──> [Execute Action]
-
Memory Update Rule: When adding a transition $(s, a, v)$, CEC finds the closest existing state neighbor $s^c$.
-
If the distance $f(s, s^c) < d$ (a distance threshold) and the new return $v > v^c$, the existing entry is overwritten with the higher-value action.
- If the state is farther than $d$, it is added as a new entry (evicting the least recently updated tuple if memory is full).
- Continuous Action Selection:
- Retrieve the $k$-nearest neighbor states $S_k$ within a maximum distance cutoff $n \times d$.
- Sample one neighbor's action using a softmax distribution weighted by their stored values: $p(a_s \mid S_k) \propto \exp(v_s / \tau)$.
- Continuous perturbation: To enable exploration beyond previously executed continuous actions, add zero-mean Gaussian noise $\mathcal{N}(0, \sigma^2)$ to the sampled action with probability $\epsilon$. (During evaluation, noise is disabled and the greedily best action of the nearest neighbor is executed).
- State Compression: For high-dimensional state spaces (e.g., robot arms or safety environments), states are compressed using a fixed random Gaussian projection matrix ($s_\text{new} = A \cdot s_\text{ori}$) to speed up nearest-neighbor lookups while preserving relative Euclidean distances.
Datasets & Environments
The authors evaluate CEC on six continuous-action benchmarks under sparse-reward conditions:
- GrowingTree (Toy 1D): A custom diagnostic benchmark where an agent must grow a tree to height 1.0 using continuous actions $[-0.1, 0.1]$.
- MountainCarContinuous: Sparse-reward version of the classic control task requiring momentum buildup.
- Continuous Navigation (MuJoCo): Four challenging navigation environments with narrow corridors and bottlenecks: PointUMaze, Point4Rooms, Safexp-PointGoal, and Safexp-CarGoal.
- FetchReach: A 7-DoF simulated robotic arm tasked with moving its end-effector to a random 3D target coordinate.
Key Insights and Ideas
- Generalization in Continuous Action Space: Rather than trying to parameterize a continuous probability density function with a neural network, CEC leverages the smoothness prior: similar states require similar actions. Local value-weighted sampling + Gaussian exploration is sufficient to navigate continuous spaces.
- Overestimation vs. Ground Truth: Deep actor-critic methods (like SAC) suffer from severe value overestimation in early training due to random weight initialization. In contrast, CEC stores true Monte-Carlo returns; early value maps accurately reflect goal proximity immediately after a single successful episode.
- The "Bottleneck" Advantage: Episodic control excels when finding the reward is an exploration bottleneck. Once CEC finds a path through a doorway or maze corner once, it latches onto it immediately, whereas parametric algorithms regularly "forget" or fail to reinforce the pathway without multiple rediscoveries.
Key Results
- Sparse Navigation: On PointUMaze, Point4Rooms, PointGoal, and Safexp-CarGoal, CEC reached near 100% success rates in under 40k–60k environment steps. Baselines SAC and memory-augmented EMAC either failed to solve the tasks or required significantly more samples.
- Robotics Control (FetchReach): In tasks lacking tight bottleneck passages, CEC matched or slightly exceeded SAC and EMAC performance, confirming that non-parametric action selection remains viable even without narrow maze topologies.
- Low Computational Overhead: CEC learns rapidly without backpropagation, gradient descent, or target network stabilization.
Limitations and Future Work
- High Variance & Stochasticity: Using raw Monte-Carlo returns causes variance in stochastic environments; CEC cannot converge to the theoretical optimal policy under high environment noise.
- Buffer Scalability: As the memory buffer grows, nearest-neighbor searches (k-NN) scale poorly with database size and state dimensionality.
- Feature Representations: The paper relies on simple random projections for dimension reduction. The authors suggest integrating pre-trained self-supervised embeddings (such as VAEs) and clustering-based retrieval in future iterations.
Summary updated