techlist.io

OpenAI

274 posts

openai.com/news

Filter by tag

OpenAI2019-09-164 min readCurated summary

Emergent tool use from multi-agent interaction

# Emergent Tool Use from Multi-Agent Hide-and-Seek OpenAI trained agents to play a team-based hide-and-seek game in a simulated physics environment, and they developed six distinct strategies and counterstrategies, including tool use that the designers had not anticipated. The agents received no incentive to interact with objects; the complex behavior arose from the competitive dynamics of the game alone. The authors argue that multi-agent competition is a more scalable route than intrinsic motivation to producing human-relevant skills without supervision, and that evaluating such agents requires new transfer-based tests. ## The Environment and Reward Structure - Hiders (blue) must avoid line-of-sight with seekers (red), while seekers must keep hiders in view. - Agents can grab and lock movable objects, and the map includes randomly generated immovable rooms and walls. - Hiders get a preparation phase in which seekers are immobilized, giving them time to run or rearrange the space. - The only supervision is a team-based reward: hiders receive +1 when all are hidden and -1 if any is seen, and seekers receive the opposite. - Agents are penalized for leaving the play area, and all agents receive zero reward during preparation. ## Autocurricula and Emergent Strategies - As agents train against each other, up to six strategies emerge, with each new one creating pressure for the next stage. - No direct incentive exists for object interaction or exploration. The behaviors result from an autocurriculum induced by multi-agent competition. ## Training Setup - The team reused the infrastructure and algorithms from OpenAI Five and Dactyl, with each agent acting independently on its own observations and hidden memory state. - The world is represented as entity-centric state, permutation invariant over objects and agents. - Each object is embedded and processed by a masked residual self-attention block, similar to transformers but attending over objects rather than time. Objects outside line-of-sight and in front of the agent are masked out. - Training uses self-play and Proximal Policy Optimization. The value function can use privileged information about obscured objects and agents. - Large-scale training was critical. Larger batch sizes drastically reduced wall-clock time to reach stage 4 (ramp defense) without greatly affecting sample efficiency at or above 32k. Batch sizes of 8k and 16k never reached stage 4 within the episode budget. ## Competition Versus Intrinsic Motivation - The team compared against count-based exploration, which rewards agents for visiting rarely seen states. - Count-based agents with a simple 2-D box-position state moved objects in seemingly undirected ways. With the full state, they had fewer meaningful object interactions as complexity grew. - Hide-and-seek agents produced more interpretable behavior, such as shelter construction. The authors expect competition to scale better as environments grow. ## Evaluating Agents Through Transfer - Reward alone is ambiguous in multi-agent settings, and ELO or TrueSkill cannot show whether gains come from new adaptations or from improving existing skills. Environment-specific statistics like object movement are also hard to interpret and costly to design as environments scale. - The authors propose a suite of domain-specific intelligence tests that measure transfer performance as a proxy for representation quality and skill. They compare against count-based pretraining and training from scratch. - The hide-and-seek agents transferred somewhat better on many tasks but did not show a dramatic improvement in performance or convergence time. The authors attribute this to entangled skill representations that are hard to fine-tune, and they open-sourced the evaluation tasks. ## Lessons From Surprising Behavior Building environments is difficult, and agents often exploit unintended quirks in the environment or physics engine. The authors suggest that agents can learn sophisticated tool use in a high-fidelity simulator, but that careful environment design remains essential.

OpenAI2019-08-193 min readCurated summary

GPT-2: 6-month follow-up

# GPT-2 Staged Release: Six-Month Follow-Up OpenAI is releasing the 774M-parameter GPT-2 model after earlier staged releases of the 124M and 355M models, drawing on months of research with partners and the AI community into misuse and societal benefit. The post argues that staged release and partnership-based model sharing can serve as a foundation for responsible publication of powerful generative models, a problem that will grow as models scale. It also introduces an open-source legal agreement to facilitate model sharing between organizations and a technical report on coordinating publication norms. ## Lessons From the Staged Release - **Coordination is difficult but achievable.** No 1558M-parameter model has been publicly released yet, though several organizations have built the infrastructure to train larger models. Hugging Face and the Allen Institute for AI with the University of Washington adopted similar staged release approaches, and OpenAI has spoken with more than five groups that replicated GPT-2. - **People can be convinced by synthetic text.** Cornell researchers found that readers judged GPT-2 samples nearly as credible as real New York Times articles (72% vs. 83%). Separate research showed that GROVER-generated news could be more plausible than human-written propaganda. These findings made OpenAI more cautious about releasing language models. - **Detection is not yet solved.** A deployed detector would likely need 99.9% to 99.99% accuracy with very few false positives, but current ML-based methods reach only the low-to-mid 90s, and fine-tuning reduces accuracy further. OpenAI concludes that statistical detection must be paired with human judgment and text metadata. ## Research Partnerships OpenAI partnered with four research groups to study the 774M model and the unreleased full-size model: - **Cornell University** is studying human susceptibility to language-model-generated disinformation. - **The Middlebury Institute's CTEC** is examining how terrorists and extremists could misuse GPT-2. - **The University of Oregon** is building "bias probes" to analyze bias in GPT-2. - **The University of Texas at Austin** is studying how detectable GPT-2 outputs remain after fine-tuning on domain-specific data, and how well detection transfers across models. Their findings, along with observed usage of the 774M model and ongoing discussions with researchers and policymakers, will inform future release decisions. The 1558M model is tentatively planned for release in a few months, though partner findings or malicious use of the 774M model could change that timeline. ## Timeline of the Release Process - **January 2019:** The 124M model was released alongside the original GPT-2 blog post and paper. - **February 2019:** The Partnership on AI hosted a dinner with OpenAI on publication norms. - **April 2019:** The 355M model, an output dataset, and a detection baseline were released. Community projects followed, including TalktoTransformer.com and Hugging Face's conversational demo, while GROVER was revealed without its largest versions. - **May 2019:** OpenAI testified before Congress on synthetic media and began a publication-norms collaboration with the Partnership on AI. - **June 2019:** Third-party projects built on GPT-2 included a code autocompleter and GLTR, a tool for statistical detection of generated text. - **July 2019:** The 774M model was released, and NVIDIA trained an 8.3-billion-parameter GPT-2 variant. ## Practical Takeaway The post suggests that organizations facing similar release decisions should combine staged releases with partner-based sharing under clear legal terms, and should not rely on automated detection alone to counter misuse.

OpenAI2019-04-244 min readCurated summary

MuseNet

# MuseNet: Generating Multi-Instrument Music with a Transformer OpenAI's MuseNet is a deep neural network that generates 4-minute musical compositions for up to 10 instruments and blends styles from country to Mozart to the Beatles. Rather than being programmed with music theory, it learned harmony, rhythm, and style by predicting the next token across hundreds of thousands of MIDI files, using the same general-purpose transformer approach as GPT-2. The post presents the model's controls, architecture, data encoding, and limitations, and shows that the same long-context modeling that works for text also works for music. ## Style Blending and Conditioning - The model can merge styles, such as starting from the first six notes of a Chopin Nocturne and generating a pop arrangement with piano, drums, bass, and guitar. - A simple mode offers pre-generated samples by composer or style, while an advanced mode lets users interact with the model directly and produce new pieces. - Composer and instrumentation tokens are prepended to training samples, so at generation time a prompt (such as a Rachmaninoff opening or a Journey-style band setup) steers the output. - t-SNE visualizations of the embeddings show how the model groups composers and styles by cosine similarity. ## Limitations - Requested instruments are strong suggestions, not guarantees, because each note is sampled from probabilities across all notes and instruments. - Unusual pairings, such as Chopin with bass and drums, produce less natural results. Choosing instruments close to the composer's or band's typical sound works better. ## Architecture and Long-Term Structure - MuseNet is a 72-layer Sparse Transformer with 24 attention heads and full attention over a 4096-token context, using the recompute and optimized kernels from the Sparse Transformer work. - The long context lets it keep structure over long spans, as seen in its Chopin and Mozart imitations. - Music is a useful test domain because it sits between text and images. It has text-like fluid token structure, yet errors in long-range structure, such as broken rhythm, are easy to hear, whereas a text model's brief tangent is less obvious. ## Training Data and Encoding - Data came from ClassicalArchives and BitMidi, several online collections spanning jazz, pop, African, Indian, and Arabic styles, and the MAESTRO dataset. - The team tested chordwise encodings (one token per simultaneous note combination) and note-onset encodings with byte pair encoding compression. - Time was marked either relative to tempo (in beats) or in absolute seconds. - The final encoding combines pitch, volume, and instrument into a single token, balancing expressiveness and conciseness. - Augmentations included transposition (reduced later in training to keep notes within instrument ranges), volume scaling, timing changes for the absolute-time encoding, and mixup in the token embedding space. - An inner critic predicts whether a sample is from the dataset or from the model's own past outputs, and this score is used to select samples at generation time. ## Embeddings - A learned timing embedding gives all notes sounding simultaneously the same time signal. - Per-note embeddings within a chord approximate relative attention, letting the model learn patterns like "note 4 looks back at note 3." - Two structural embeddings locate the sample within the piece: one divides the piece into 128 parts, and the other counts down from 127 to 0 as the end token approaches. ## Conclusion MuseNet shows that a general-purpose next-token transformer, given the right encoding, conditioning, and long context, can produce coherent multi-instrument music in many styles. The post invites musicians to experiment with the demo and contribute MIDI data, and notes that a live concert of previously unheard MuseNet pieces was streamed on April 25, 2019.

OpenAI2019-04-223 min readCurated summary

Generative modeling with sparse transformers

# Generative Modeling with Sparse Transformers OpenAI's Sparse Transformer is a deep neural network that sets new benchmarks for predicting the next element in a sequence, whether text, images, or audio. By replacing standard self-attention with a sparse variant that scales as O(N√N) instead of O(N²), the model handles sequences roughly 30 times longer than previously feasible, reaching tens of thousands of elements across hundreds of layers. The authors position this as a step toward modeling the long-range, subtle dependencies that complex data like images and audio demand. ## Why Dense Attention Becomes a Bottleneck - In Transformers, every output element attends to every input element, requiring an N×N attention matrix for each layer and attention head. - For high-dimensional data, this memory cost grows quickly. A deep 64-layer, 4-head Transformer needs about 9.6 GB to store attention matrices for a 32×32 CIFAR-10 image, and about 154 GB for a 64×64 ImageNet image. Typical deep learning GPUs have 12–32 GB. - Recomputing attention matrices from checkpoints during backpropagation keeps the dominant memory cost independent of depth, which allows training networks up to 128 layers deep. These deeper models outperformed shallower ones on benchmarks like CIFAR-10. - Training at this depth required changes to the order of operations within the Transformer block and a modified initialization scheme. ## Sparse Attention Patterns - Each output position attends only to a subset of input positions, ideally about √N elements instead of N, reducing complexity to O(N√N). - Visualizing learned attention in deep image models showed many heads with structured, sparse patterns, though some layers attended across the whole image. - To preserve global reach, the authors use a two-dimensional factorization in which any position can reach any other in two sparse steps: - **Strided attention** has each position attend to its row and column, suited to images. - **Fixed attention** attends to a fixed set of column positions and all later elements, suited to data without a 2D structure, such as text. ## Results - **CIFAR-10 (bits per dim):** The 59M-parameter Sparse Transformer reached 2.80, beating PixelCNN++ (2.92), Image Transformer (2.90), and PixelSNAIL (2.85). - **Enwik8 (bits per byte):** The 95M-parameter model reached 0.99, matching the 277M-parameter Transformer-XL and outperforming the 88M version (1.03). - **ImageNet 64×64 (bits per dim):** The 152M-parameter model reached 3.44, improving on SPN 150M (3.52) and Gated PixelCNN (3.57). - Sparse attention also achieved lower loss than full attention while running significantly faster, which the authors suggest may reflect a useful inductive bias or an optimization issue with dense attention. ## Generation Capabilities - **Images:** Models trained on 64×64 ImageNet produce completions that show coherent global structure. Unconditional samples at temperature 1.0 reflect the full learned distribution, so some look unusual. - **Raw audio:** By changing the position embeddings, the same architecture generates raw waveforms. The model produced 65,000-sample sequences, about 5 seconds of classical music. - **Open-source kernels:** The team released block-sparse GPU kernels and example sparse attention functions, since implementing sparse attention by slicing query and key matrices is otherwise cumbersome. ## Limitations and Future Directions - The attention patterns introduced are preliminary. The authors see learned sparsity patterns as a promising direction for future architectures. - Autoregressive generation remains impractical for very high-resolution images or video. The optimized attention primitives may still be useful when combined with multi-scale approaches.

OpenAI2019-04-143 min readCurated summary

OpenAI Five defeats Dota 2 world champions

# OpenAI Five Becomes the First AI to Beat Esports World Champions OpenAI Five defeated OG, the reigning Dota 2 world champions, in two consecutive games at the Finals, marking the first time an AI has beaten world champions in an esports game and the first time it has done so on livestream. The post argues that the key to this milestone was scale rather than new algorithms, and that the same system could be turned from a competitor into a cooperative teammate with relatively little effort. ## Why Dota Was a Hard Target - The team chose Dota because it seemed beyond existing deep reinforcement learning methods, expecting to need ideas like hierarchical RL. - The main missing ingredient turned out to be scale. Their system, Rapid, ran PPO at unprecedented size, and they reached world-class play without hitting fundamental performance limits. - RL's data appetite remains a limitation. Rapid also trained a robotic hand in simulation to reorient a block, but reducing the required experience is a major open challenge. ## Compute and Training Scale - The Finals version beat The International 2018 version with a 99.9% winrate, though this figure is measured on the current patch, which favors the newer agent. - Compute increased 8x. The model consumed 800 petaflop/s-days and about 45,000 years of self-play over 10 realtime months, up from roughly 10,000 years over 1.5 months. - Since most compute was already devoted to a single model, the team scaled by training for longer rather than adding resources. ## Continuous Training and Transfer - The model has trained continuously since June 2018 through changes in model size and game rules, including major patches and new features. - The team built "surgery" tooling to transfer trained parameters across substantial architecture changes, addressing an open problem in RL. ## Expanding the Hero Pool - Going from 5 to 18 heroes caused little slowdown in training. Pools of up to 25 heroes reached about 5k MMR but did not reach pro level in time. - Hypotheses for the slowdown include limited model capacity, matchmaking issues with a larger pool, and the difficulty new heroes face catching up to mastered ones. - The Finals version uses 17 heroes, with Lich removed due to significant ability changes in patch 7.20. ## Cooperative Play - Although trained only by playing against copies of itself, the model generalized zero-shot to controlling a subset of heroes alongside or against humans. - Testers reported feeling supported by their bot teammates and found the experience enjoyable. ## Public Arena and Next Steps - OpenAI Five Arena lets the public play against the bot in competitive and cooperative modes from April 18 to April 21, 2019, with results posted to a public leaderboard. This tests how exploitable the system is. - A more technical analysis will follow the Arena results, and the team plans to keep using Dota 2 as a research environment for learning from less data and for human-AI cooperation. **Conclusion:** The post presents OpenAI Five's win as evidence that scaling existing RL methods can reach expert performance in complex environments, while data efficiency and robust human-AI cooperation remain open problems.

OpenAI2019-03-203 min readCurated summary

Implicit generation and generalization methods for energy-based models

# Energy-based Models: Sampling Through Iterative Refinement OpenAI's research on energy-based models (EBMs) argues that they can match GAN-level sample quality at low temperatures while keeping the mode coverage of likelihood-based models. The approach generates samples implicitly through iterative refinement, which trades extra compute for better outputs. The authors also report better out-of-distribution generalization and adversarial robustness than comparable likelihood models, and they present early evidence that EBMs compose well. ## How Energy-based Models Work - EBMs assign an unnormalized probability scalar (an "energy") to each input, so any model that outputs a real number can serve as an energy function. - Sampling is the hard part. Samples are produced with Langevin dynamics, which performs noisy gradient descent on the energy function to reach low-energy configurations. - Unlike GANs, VAEs, and flow-based models, EBMs need no separate generator network. Samples are generated implicitly. ## Key Advantages - **Adaptive computation time:** Running refinement longer yields sharper, more diverse samples, while shorter runs give coarser, less diverse ones. In the limit of infinite steps, the procedure theoretically produces true samples from the model. - **No generator bottleneck:** VAEs and flow-based models must map a continuous space onto possibly disconnected data modes, which demands large capacity. EBMs can assign low energy to disjoint regions directly. - **Built-in compositionality:** Because each model defines an unnormalized distribution, models can be combined through a product of experts or other hierarchical structures. ## Generation Results - With longer test-time refinement, EBMs produce high-quality images. Iterative optimization enables image auto-completion and morphing between classes, such as truck to frog. - On robot dynamics, EBMs generate stable trajectories over many timesteps and produce diverse possible futures, whereas feedforward models collapse to a mean prediction. ## Generalization Results - On several out-of-distribution datasets, EBMs outperform other likelihood models, including flow-based and autoregressive models. - Conditional EBMs generalize well to adversarial perturbations. Despite never being trained for classification, they outperform models explicitly trained against adversarial examples. ## Lessons from Training - Vanilla HMC is hard to apply because optimal step sizes and leapfrog step counts shift considerably during training. Adaptive HMC is suggested as future work. - Ensembles of energy functions helped slightly but did not justify the added complexity. - A gradient penalty term hurt model capacity and sampling quality. - The authors caution that these observations are tentative. More details appear in Section A.8 of the paper. ## Compositionality Experiments - One model was trained on shapes of varying sizes at a fixed position, and another on fixed-size shapes at varying positions. - Combining them via a product of experts produced shapes of different sizes at different locations, even though the model never saw examples of both variations together.

OpenAI2019-03-033 min readCurated summary

Neural MMO: A massively multiagent game environment

# Neural MMO: A Massively Multiagent Game Environment for Reinforcement Learning OpenAI released Neural MMO, a game environment for reinforcement learning that hosts a large, variable number of agents in a persistent, open-ended world. The authors argue that existing environments are either complex but narrow, or open-ended but simple, and that massively multiagent settings can fill this gap. Their experiments show that larger populations and more species lead to better exploration, niche formation, and overall agent competence. ## Design Goals The authors built Neural MMO around four criteria: - **Persistence:** Agents learn concurrently with other learning agents and no environment resets occur, so strategies must account for long time horizons and shifting behaviors of other agents. - **Scale:** The environment supports a large, variable number of entities. Experiments ran up to 100M lifetimes of 128 concurrent agents across 100 concurrent servers. - **Efficiency:** Effective policies can be trained on a single desktop CPU, keeping the barrier to entry low. - **Expansion:** Modeled on existing MMOs, the environment is designed to grow with new content. Current features include procedurally generated tile-based terrain, food and water foraging, and strategic combat. ## Environment Mechanics - Agents join any available server, each generating a tile-based map of configurable size. - Forest and grass tiles are traversable, while water and stone are not. - Agents spawn along the map edges and must manage health by obtaining food and water while avoiding combat damage. - Forest tiles hold limited food that regenerates slowly, so agents compete for it. Water tiles are infinite. - Combat uses three styles: Melee, Range, and Mage. - **Observations:** Agents see a square crop of tiles centered on their position, including terrain types and the health, food, water, and position of nearby agents. - **Actions:** Each tick, agents output one movement and one attack. ## Training Approach - The baseline is a small, fully connected network trained with vanilla policy gradients, a value function baseline, and reward discounting. - Agents receive a reward of 1 for each tick they survive, so they optimize for lifetime rather than explicit objectives. - Variable-length observations, such as lists of nearby players, are converted to fixed-length vectors by taking the maximum across entities, a trick also used by OpenAI Five. - The released code uses PyTorch and Ray for distributed training. ## Emergent Behaviors - **Server merge tournaments:** Policies trained in larger settings consistently outperformed those trained in smaller ones when players from different servers were merged to compare them directly. - **Exploration from competition:** Map coverage increased with the number of concurrent agents, since the presence of others naturally pushes agents to spread out. - **Niche formation:** With more populations, agents separated across the map to avoid competing with their own kind, seeking regions with enough resources to sustain their population. DeepMind independently observed similar effects. - **Learned dependencies:** A value-function visualization showed agents' policies depend on the positions of other agents. Agents learned "bull's eye" avoidance maps to forage effectively within minutes, and they learned appropriate engagement ranges and approach angles in combat. ## Conclusion Neural MMO combines moderate environment complexity with large population scale, and the authors designed it for open-source expansion so the research community can build on it. They present it as a step toward solving the limitations of prior game-based environments, while acknowledging that many open problems remain.

OpenAI2019-02-133 min readCurated summary

Better language models and their implications

# Better Language Models and Their Implications OpenAI introduces GPT-2, a 1.5 billion parameter transformer language model trained only to predict the next word across 40GB of internet text. It produces coherent paragraphs and performs basic reading comprehension, translation, question answering, and summarization without task-specific training. Because of concerns about malicious uses such as fake news, impersonation, and spam, OpenAI withholds the full model and releases a smaller version as an experiment in staged, responsible disclosure. ## Model Design and Training - GPT-2 is a transformer-based model with 1.5 billion parameters, a direct scale-up of GPT with more than 10x the parameters and more than 10x the training data. - It was trained on WebText, a new dataset of about 8 million web pages. The authors scraped outbound Reddit links with at least 3 karma, using human curation as a quality signal. - The training objective is simply to predict the next word given all previous words. Because the data is diverse, this objective implicitly contains demonstrations of many tasks. ## Capabilities and Zero-Shot Results - Given a prompt, the model generates long, coherent continuations that adapt to the style and content of the input. Sample quality was roughly 50% reasonable for well-represented topics, and worse for technical or esoteric ones. - Without any domain-specific training, GPT-2 reached state-of-the-art results on several language modeling benchmarks, including LAMBADA (63.24% accuracy, down from a previous record of 59.23%), Winograd Schema Challenge (70.70%), and WikiText-2 perplexity (18.34, down from 39.14). - On question answering, reading comprehension, summarization, and translation, it showed promising but non-state-of-the-art results, suggesting these tasks can benefit from unsupervised learning given enough data and compute. - Known failure modes include repetitive text, world-modeling errors (such as fires under water), and unnatural topic switches. ## Policy Concerns - Plausible beneficial uses include writing assistants, better dialogue agents, unsupervised translation, and improved speech recognition. - Plausible malicious uses include generating misleading news, impersonating people online, automating abusive content and spam or phishing. - The authors argue that such models lower the cost of producing convincing fake content, so the public will need to become more skeptical of online text, much as with deepfake images. ## Staged Release Strategy - The full model, training code, and weights were withheld. A smaller 117M version and sampling code were released first. - The May 2019 interim update released a 345M version as the next stage, while sharing the 762M and 1.5B versions with partners in the AI and security communities. - The team also released an output dataset of about 250,000 samples per model and hyperparameter setting, plus a WebText subset and baseline detection analysis, to support research into detection and misuse. - The authors frame this as an experiment in publication norms, drawing on practices from biotechnology and cybersecurity, and they promised a fuller analysis of societal implications after six months. ## Conclusion The post argues that large language models are becoming powerful enough to pose real misuse risks, so AI labs should weigh publication decisions carefully. Staged release and partner sharing are presented as a way to give the community time to study detection, bias, and misuse before broader release.

OpenAI2019-02-032 min readCurated summary

Computational limitations in robust classification and win-win results

This paper extends recent work by Bubeck, Lee, Price, and Razenshteyn on the computational difficulty of learning robust classifiers. Their earlier result showed tasks where an efficient robust classifier exists for small perturbations, a non-robust classifier can be learned efficiently, but learning a robust one is computationally hard under the assumption that factoring is hard. The authors push this line of work in three directions, showing that computational barriers to robustness are broader than previously shown and are tied to cryptographic primitives. They conclude with a win-win result: either an efficient robust classifier can be learned, or new cryptographic primitives can be constructed. ### Hardness Even When Robust Classifiers Exist - The authors give classification tasks where efficient robust classification is impossible, even though computationally unbounded robust classifiers exist. - This construction relies on the existence of average-case hard functions. ### Hard Robust Learning in the Large-Perturbation Regime - Even when an efficient classifier robust to large perturbations exists, learning any non-trivial robust classifier can be computationally hard. - One construction assumes one-way functions exist. - A second construction relies on the hardness of the learning parity with noise (LPN) problem. - In the LPN setting, a non-robust classifier exists and an efficient algorithm can generate fresh labeled samples from polynomially many training examples. This is the "generation" notion defined by Kearns et al. (1994). ### Robust Classification and Cryptography - Any such counterexample implies the existence of cryptographic primitives, such as one-way functions. - This gives a win-win dichotomy: either an efficient robust classifier can be learned, or new cryptographic primitives can be built.

OpenAI2018-12-134 min readCurated summary

How AI training scales

# How AI Training Scales The gradient noise scale, a simple statistic measuring the signal-to-noise ratio of network gradients, predicts how far neural network training can be parallelized across machines by increasing batch size. Because complex tasks produce noisier gradients, they tolerate much larger batches, which suggests that growing batch sizes will keep removing a limit on AI scaling. The authors conclude that training can be treated as a measurable, systematic discipline rather than a mysterious art. ## Background: Data Parallelism and Its Limits - Data parallelism splits large batches across many machines, and researchers have used batch sizes of tens of thousands for image classification and language modeling, and millions for OpenAI's Dota 2 RL agents. - These large batches let growing amounts of compute go into training a single model, which has enabled the fast growth in training compute. - Past a certain point, larger batches show rapidly diminishing algorithmic returns, and the reason the limit varies across tasks was unclear. ## The Gradient Noise Scale - The gradient noise scale is defined as the expected squared deviation of per-example gradients from the true gradient, divided by the squared norm of the true gradient. - Gradients from a batch of size B have a normalized error of roughly B_noise / B, so the noisiness stops falling significantly around B ≈ B_noise. - Training speedups taper off at about that same point, which makes the noise scale a predictor of the maximum useful batch size. - Intuitively, when the noise scale is small, extra data in parallel is largely redundant; when it is large, huge batches still yield useful learning. ## Experimental Validation - The team trained across many batch sizes for image recognition, language modeling, Atari games, and Dota, tuning the learning rate separately for each setting. - Training time versus total compute forms a curve: at small batches, doubling the batch halves training time at no extra compute cost, while at large batches parallelism stops speeding training up. - The "bend" between these regimes matches the位置 predicted by the noise scale across many performance targets, such as reaching a score of 1000 on Atari Beam Rider. - Because large batches often need careful tuning or special learning rate schedules, knowing the upper limit in advance is a practical advantage. ## Patterns in the Noise Scale **The noise scale grows during training.** - It typically rises by an order of magnitude or more over a run. - Early on, networks learn common, simple features like edges and textures, which need few examples to capture. Later, they combine these into complex concepts, and they can then use much larger batches without redundancy. - Preliminary evidence suggests that more powerful models have higher noise scales, and that this increase reflects improvement rather than just convergence. **Harder tasks tolerate larger batches.** - In supervised learning, the progression MNIST → SVHN → ImageNet shows increasing parallelizability. - In reinforcement learning, moving from Atari Pong to Dota 1v1 to Dota 5v5 changes optimal batch sizes by more than 10,000×. ## Implications - Greater data parallelism speeds up AI progress, enabling more powerful models and faster research iteration. - An earlier OpenAI study found that the compute used for the largest models doubles roughly every 3.5 months, driven by both spending willingness and algorithmic parallelizability. This work helps quantify the latter, which had been hard to predict. - Harder tasks and more capable models should permit even more radical data parallelism, which supports continued exponential growth in training compute. Model parallelism could add further headroom. - The authors argue that predictable algorithmic foundations make rapid capability gains plausible in the near term, which makes research into AI safety and responsible use more urgent. They frame a central policy challenge as using such measurements to forecast future systems and shape policies that maximize benefits while limiting harms.

OpenAI2018-12-053 min readCurated summary

Quantifying generalization in reinforcement learning

# Quantifying Generalization in Reinforcement Learning OpenAI introduces CoinRun, a procedurally generated platformer environment that measures how well reinforcement learning agents transfer their experience to unseen levels. The authors show that RL agents overfit heavily to their training levels, even when trained on thousands of them, and that common supervised-learning regularization techniques can meaningfully reduce this gap. CoinRun gives the research community a simple, quantifiable benchmark for evaluating generalization. ## The Generalization Problem - RL agents can solve complex tasks but struggle to transfer skills to new environments. - Benchmarks typically test agents on the same environments they trained on, which is comparable to evaluating on the training set in supervised learning. - Earlier benchmarks (the Sonic benchmark, procedurally generated gridworld mazes, and the General Video Game AI framework) showed similar overfitting. Sonic agents performed well on training levels but poorly on test levels without fine-tuning, maze agents memorized large numbers of training levels, and GVG-AI agents failed on difficulty settings they had not seen during training. ## CoinRun Environment Design - Levels are procedurally generated, giving agents a large, easily quantifiable supply of training data. - The goal is to collect a single coin at the end of each level while avoiding stationary and non-stationary obstacles. - Touching an obstacle causes immediate death. The only reward is a fixed positive constant for collecting the coin. - Episodes end on death, coin collection, or after 1000 time steps. - The environment is deliberately simpler than Sonic but still challenging for state-of-the-art algorithms. ## Measuring Overfitting - Nine agents were trained with Proximal Policy Optimization for 256M timesteps, each on a different number of levels: eight fixed sets ranging from 100 to 16,000 levels, and one on an unrestricted set where it never saw the same level twice (roughly 2 million distinct levels). - Each agent used a 3-layer convolutional architecture called Nature-CNN. Performance was averaged over 10,000 test episodes on unseen levels. - Substantial overfitting appeared with fewer than 4,000 training levels and persisted even at 16,000. - Agents trained on the unrestricted set performed best. - The IMPALA-CNN architecture generalized noticeably better than Nature-CNN across all training set sizes. ## Regularization Techniques Experiments used a fixed set of 500 levels, which the authors recommend as a shared benchmark: - **Dropout and L2 regularization:** Both reduced the generalization gap, with L2 having the larger effect. - **Data augmentation and batch normalization:** A modified Cutout augmentation and batch normalization both significantly improved generalization. - **Environmental stochasticity:** Training with stochastic environments improved generalization more than any of the other techniques. - The authors note that RL policies are often trained without these supervised-learning methods, but in this setting they helped, indicating that earlier policies were overfitting to particular MDPs. ## Additional Environments - **CoinRun-Platforms:** A variant where several coins are scattered across platforms in a larger, fixed-size level. Agents must explore more and sometimes retrace their steps. Trained with 2B timesteps using the IMPALA-CNN followed by an LSTM. - **RandomMazes:** A simple maze navigation environment that also uses an LSTM, since memory is needed. - Both environments showed strong overfitting under the baseline setup. RandomMazes was especially severe, with a large generalization gap remaining even at 20,000 training levels. ## Future Directions The authors suggest several research questions: - How environment complexity relates to the number of training levels needed for good generalization - Whether different recurrent architectures generalize better in these environments - How to combine multiple regularization methods effectively

OpenAI2018-11-073 min readCurated summary

Spinning Up in Deep RL

# Spinning Up in Deep RL: An Open Educational Resource for Learning Deep Reinforcement Learning OpenAI released Spinning Up in Deep RL, an educational package designed to help newcomers become skilled practitioners of deep reinforcement learning. The argument is that deep RL is harder to break into than deep learning, yet it will play a central role in powerful AI systems, so accessible guidance is needed. The package combines clear code, documentation, curated papers, and exercises, and it is integrated into OpenAI's Scholars and Fellows programs. ## What the Package Includes - A short introduction to RL terminology, algorithm families, and basic theory - An essay on how to grow into an RL research role - A curated list of important papers organized by topic - A well-documented repository of short, standalone implementations of Vanilla Policy Gradient (VPG), Trust Region Policy Optimization (TRPO), Proximal Policy Optimization (PPO), Deep Deterministic Policy Gradient (DDPG), Twin Delayed DDPG (TD3), and Soft Actor-Critic (SAC) - A set of warm-up exercises ## Code Design Philosophy - The implementations are minimal and annotated, meant to show how theory maps directly to code - Abstraction layers common in deep RL libraries are deliberately avoided - Clarity is prioritized over modularity, so code reuse across algorithms is limited to logging and parallelization utilities - Each implementation is supported by background material and pseudocode on a corresponding readthedocs page - Algorithms run on Gym environments from the Classic Control, Box2D, and MuJoCo suites. For example, `python -m spinup.run ppo --env CartPole-v1 --exp_name hello_world` launches a training run ## Support Plan - **High-bandwidth period (first three weeks):** Rapid fixes for bugs, installation problems, and documentation ambiguities - **Major review (April 2019):** A broader assessment of the package based on community feedback, with announced plans for future changes - **Continuous public updates:** Changes made while working with Scholars and Fellows are pushed to the public repository immediately ## Education Initiative and Workshops - The project is part of OpenAI's education effort, which aims to build a global community working on AGI's challenges, in line with the OpenAI Charter - A workshop at OpenAI San Francisco on February 2, 2019 combined 3 hours of lectures with 5 hours of semi-structured project work, with technical staff support - Applicants were expected to have software engineering experience and some ML tinkering, though formal ML training was not required - The first external partnership is with UC Berkeley's Center for Human-Compatible AI (CHAI) for a similar early-2019 workshop ## Practical Takeaway For anyone wanting to learn deep RL, the post recommends running the algorithms directly to build intuition, then reading the annotated code alongside the theory and pseudocode. The package is designed for self-study, with minimal abstraction so learners can see exactly how each algorithm works.

OpenAI2018-11-063 min readCurated summary

Learning concepts with energy functions

# Learning Concepts with Energy Functions OpenAI researchers developed an energy-based model that learns to identify and generate abstract concepts, such as "near," "between," or "furthest," from just five demonstrations. The concepts are expressed as sets of 2D points, and the model can transfer them across domains: concepts learned in a 2D particle environment are used to solve tasks on a 3D physics-based robot without retraining. The authors argue that forming reusable concepts is a basic building block of generalization, abstract reasoning, and planning. ## Why Concepts Matter - Human intelligence relies on consolidating experience into concepts, such as visual ("red," "square"), spatial ("inside," "on top of"), temporal ("slow," "after"), and social ("helpful") ones. - Concepts give agents basic building blocks for understanding and reasoning, enabling them to generalize from limited experience. ## How Energy Functions Represent Concepts - Energy models are inspired by physics: observed states correspond to low-energy configurations. - Each concept is defined by an energy function E(x, a, w) with three inputs: - **x**: the state of the world, composed of entities and their properties and positions - **a**: an attention mask over entities, used for identification - **w**: a continuous conditioning vector specifying which concept is being evaluated - The model outputs a single positive number. Energy is zero when the concept is satisfied and high otherwise. - A concept is satisfied when the attention mask focuses on entities that are in the correct positions (generation) and are the right entities (identification). - The energy function is a relational network, so it can accept an arbitrary number of entities. ## One Network for Generation and Recognition - A single network handles both generating a concept (moving entities in x) and identifying it (changing the attention mask over a fixed x). - Concepts learned through one mode can be applied to the other. ## Training Procedure - Training data consists of trajectories of (attention mask, state) pairs generated for each target concept. - The model sees about five demonstrations of a concept, then receives a new environment (X0) and predicts the next state (X1) and next attention mask (a). - The energy function is optimized so the correct next state and mask receive low energy, similar in spirit to variational autoencoders, which encourages compressed, useful representations. - Training covered visual, spatial, proximal, and temporal relations, plus quantification, in a 2D particle environment. ## Results - The system learned to classify and generate spatial relationships, move entities through scenes in specified ways, and judge quantities (one, two, three, or more than three) and proximity. - Joint training on generation and identification outperformed training on either operation alone. - Transfer also emerged: an energy function trained only on recognition performed well on generation without explicit training for it. ## Future Directions - Learning concepts in richer, three-dimensional environments - Integrating concepts with agent decision-making policies, since the work so far used only passive experience - Connecting concepts to language understanding

OpenAI2018-11-041 min readCurated summary

Plan online, learn offline: Efficient learning and exploration via model-based control

This paper, from November 2018, proposes plan online, learn offline (POLO), a framework for agents that have an internal model and must keep acting and learning in the world. The core idea is that local model-based trajectory optimization, global value function learning, and exploration support one another. Together they solve complex simulated control tasks, such as humanoid locomotion and dexterous in-hand manipulation, using only about a few minutes of equivalent real-world experience. ### Local Planning Stabilizes Value Learning - Local trajectory optimization can compensate for errors in the learned value function. - Planning in this way stabilizes value function learning and speeds it up. ### Value Functions Extend Planning Beyond Local Solutions - Approximate value functions shorten the horizon the planner must search. - This lets the agent find better policies than local planning alone would produce. ### Coordinated Exploration Under Uncertainty - Trajectory optimization drives temporally coordinated exploration. - The exploration is paired with estimates of uncertainty in the value function approximation. - The authors argue this exploration is essential for fast and stable value function learning.

OpenAI2018-10-304 min readCurated summary

Reinforcement learning with prediction-based rewards

# Random Network Distillation: Curiosity-Driven Exploration That Cracks Montezuma's Revenge OpenAI introduces Random Network Distillation (RND), a prediction-based curiosity method that encourages reinforcement learning agents to explore. RND is the first approach to exceed average human performance on Montezuma's Revenge, a game that had long resisted exploration-based methods. It works by rewarding agents for visiting states that are hard to predict, and it avoids the classic failure modes of earlier curiosity approaches. The method can be combined with any RL algorithm and scales efficiently. ## The Long-Standing Challenge of Montezuma's Revenge - DQN scored 0% of the average human score on Montezuma's Revenge, the only game in the original DQN work where it failed completely. - Simple exploration rarely yields rewards or reaches more than a few of the game's 24 rooms. - A 2016 count-based exploration bonus added to DQN reached 15 rooms and an average score of about 3.7K. - Later gains mostly relied on human demonstrations or access to the emulator's underlying state, rather than on exploration alone. ## Learning Without Extrinsic Rewards - The authors, with collaborators from UC Berkeley, studied agents trained with no environment-specific reward, using curiosity as the sole learning signal. - Earlier next-state prediction methods rewarded the prediction error of a learned model, which made agents attracted to unpredictable events. - Surprisingly, even predicting random features of the observation worked well. - Across more than 50 environments, curious agents showed a range of behaviors, and some achieved the game's objective without ever receiving the score as a reward: - **Breakout:** Intrinsic reward spiked on seeing new brick configurations and on first clearing a level. - **Pong:** An agent controlling both paddles kept long rallies going rather than trying to win. - **Bowling:** Agents outperformed those trained on the clipped extrinsic reward, likely because they were drawn to the hard-to-predict scoreboard flashes after strikes. - **Mario:** Agents discovered 11 levels, secret rooms, and bosses, since new areas are inherently unpredictable. ## The Noisy-TV Problem - Prediction-based curiosity can trap an agent in sources of randomness, such as a TV showing static, since such transitions always yield high reward. - The authors demonstrated this in a Unity maze with a TV playing random channels. - For largely deterministic games like Montezuma's Revenge, the problem was expected to matter less, but the team used sticky actions (repeating the previous action with some probability) to prevent memorization and make room transitions less predictable. ## How Random Network Distillation Works - The authors identified three sources of prediction error: (1) poor generalization from previously seen examples, which reflects novelty; (2) stochastic prediction targets; and (3) missing information or a predictor too limited for the target function. - Factor 1 is useful for measuring novelty, while Factors 2 and 3 cause the noisy-TV trap. - RND trains a predictor to match the output of a fixed, randomly initialized neural network on the next state. - Because the target is deterministic and the predictor shares the target's architecture, the predictor can fit it well in familiar states, so error stays low there and rises in novel states. - Intrinsic and extrinsic rewards are combined through a variant of PPO that uses two value heads, allowing different discount rates and mixing episodic and non-episodic returns. - The best agent often finds 22 of 24 rooms on the first level of Montezuma's Revenge and occasionally clears the level, with state-of-the-art results on Venture and Gravitar as well. ## Scale and Results on Montezuma's Revenge - A large run with 1024 rollout workers reached a mean return of 10K over 9 runs, with a best mean of 14.5K, and each run discovered 20 to 22 rooms. - A smaller, longer run produced one of 10 runs that scored 17.5K, passing the first level and finding all 24 rooms. - Implementation details mattered greatly: stabilizing features and normalizing intrinsic rewards separated an agent stuck in the first room from one that clears the first level, and fixing a bug where extrinsic returns were mistakenly treated as non-episodic produced noticeable gains. ## Future Directions The authors suggest analyzing and combining different exploration methods, training curious agents on many environments without reward to study transfer to tasks with rewards, and investigating global exploration with coordinated decisions over long horizons.