techlist.io

Markov Decision Process

2 posts

OpenAI2016-11-142 min readCurated summary

#Exploration: A study of count-based exploration for deep reinforcement learning

Count-based exploration works well with tabular reinforcement learning on small discrete MDPs, but it has long been assumed to fail in high-dimensional state spaces, where most states occur only once. This work shows that a simple generalization of the classic approach, which maps states to hash codes and counts those codes, reaches near state-of-the-art performance on high-dimensional and continuous deep RL benchmarks. The method offers a simple baseline for tasks that require substantial exploration. ### Why Count-Based Exploration Was Limited - Count-based methods come with theoretical guarantees and perform near-optimally in small tabular settings. - Raw state counts are useless in high-dimensional or continuous spaces, because nearly every state is novel. - Recent deep RL exploration methods handle this with complex heuristics, often based on optimism under uncertainty or intrinsic motivation. ### Hashing States to Make Counts Useful - Each state is mapped to a hash code, and occurrences of each code are tracked in a hash table. - The resulting counts feed a reward bonus derived from classic count-based exploration theory. - Surprisingly simple hash functions perform well on many challenging tasks. - A learned, domain-dependent hash code can improve results further. ### What Makes a Good Hash Function - Granularity matters: the hash must group states at an appropriate level, so that counts are neither too sparse nor too coarse. - The hash should encode information relevant to solving the MDP, not just superficial state features. ### Results - The method achieves near state-of-the-art performance on both continuous control tasks and Atari 2600 games. For practitioners facing hard exploration problems in deep RL, this suggests starting with a simple hashed count bonus as a baseline before adopting more complex heuristics. Its effectiveness depends heavily on choosing a hash that has the right granularity and captures task-relevant features.

OpenAI2016-11-082 min readCurated summary

RL²: Fast reinforcement learning via slow reinforcement learning

Deep reinforcement learning can learn sophisticated behaviors, but it needs a huge number of trials, while animals learn new tasks in just a few. The paper proposes RL², which closes this gap by learning a fast reinforcement learning algorithm from data rather than designing one by hand. Experiments show it approaches human-designed algorithms with optimality guarantees on small problems and scales to high-dimensional vision-based tasks. ### The Gap Between Deep RL and Animal Learning - Deep RL learns complex behaviors automatically but requires vast numbers of trials. - Animals adapt to new tasks in a handful of trials by drawing on prior knowledge about the world. - The paper aims to transfer this capacity for rapid learning to artificial agents. ### Learning the Algorithm Instead of Designing It - Rather than hand-designing a "fast" RL algorithm, RL² represents the algorithm itself as a recurrent neural network (RNN). - The RNN's weights encode the learning algorithm and are trained slowly with a general-purpose RL algorithm. - The RNN receives the same inputs a typical RL algorithm would: observations, actions, rewards, and termination flags. - Its hidden state persists across episodes within a given Markov Decision Process (MDP), so its activations hold the state of the fast learner on a new, previously unseen MDP. ### Small-Scale Experiments - RL² is trained on randomly generated multi-armed bandit problems and finite MDPs. - On new MDPs, its performance is close to human-designed algorithms that come with optimality guarantees. ### Large-Scale Experiments - A vision-based navigation task tests whether the approach extends to high-dimensional inputs. - The results indicate that RL² scales beyond toy problems.