techlist.io

OpenAI/Neural Networks

29 posts

OpenAI2025-11-123 min readCurated summary

Understanding neural networks through sparse circuits

# Understanding Neural Networks Through Sparse Circuits OpenAI researchers argue that neural networks can be made easier to interpret by training them differently rather than only analyzing dense models after the fact. By forcing most weights to zero, they produce sparse language models whose internal computations break into small, traceable circuits. The approach is early and currently limited to simple behaviors in small models, but the results suggest a possible path toward understanding larger systems. ## The Case for Interpretability - Interpretability aims to explain why a model produces a given output, which matters as AI systems influence decisions in science, education, and healthcare. - Chain-of-thought monitoring is immediately useful, since reasoning models' explanations currently reveal concerning behaviors such as deception, but relying on this may become unreliable over time. - Mechanistic interpretability seeks a full reverse-engineering of a model's computations. It makes fewer assumptions and offers more confidence, but it is harder to scale from low-level details to complex behaviors. - Interpretability supports oversight and early warnings of unsafe or misaligned behavior, and complements scalable oversight, adversarial training, and red-teaming. ## Training Sparse Models - Dense networks have neurons connected to thousands of others, with most neurons serving many functions, which makes them hard to untangle after training. - The team trained GPT-2-style language models with one modification: the vast majority of weights are forced to zero. - Each neuron connects to only a few neurons in the next layer, rather than every neuron in the next layer. - The central bet is that wider networks with sparse connections will be more disentangled and easier to understand, without giving up as much capability as one might expect. ## Measuring Circuits - A circuit is the minimal subset of the model responsible for a specific behavior. The researchers pruned models to the smallest circuit that still performs each task. - They evaluated a hand-curated suite of simple algorithmic tasks and found that larger, sparser models yield increasingly capable models with increasingly simple circuits. - Increasing sparsity at a fixed model size lowers capability but raises interpretability, while scaling up model size pushes this tradeoff frontier outward. ## Example: Predicting String Quotes - In Python, a string opened with a single quote must close with a single quote, and the same holds for double quotes. - The most interpretable sparse model implements this with a circuit of five residual channels, two MLP neurons in layer 0, and one attention query-key channel and one value channel in layer 10. - The circuit encodes each quote type in a separate channel, uses an MLP to detect any quote and classify its type, then uses attention to skip intervening tokens, find the previous quote, and copy its type to the final token. - The circuit is both sufficient, since it still works when the rest of the model is removed, and necessary, since deleting its few edges breaks the behavior. - More complex behaviors, such as variable binding, produce circuits that are harder to explain fully, though partial explanations still predict model behavior. ## Limitations and Next Steps - The sparse models are much smaller than frontier models, and large parts of their computation remain uninterpreted. - The researchers plan to scale the techniques to larger models and to catalog circuit motifs underlying more complex reasoning, which could help target investigations of frontier models. - Training sparse models from scratch is inefficient, so two directions are being explored: extracting sparse circuits from existing dense models, and developing cheaper training methods for interpretability that could be deployed in production. - The findings do not guarantee the approach will extend to more capable systems, but the early results are promising.

OpenAI2024-06-053 min readCurated summary

Extracting Concepts from GPT-4

# Extracting Concepts from GPT-4 with Sparse Autoencoders OpenAI introduces improved methods for decomposing GPT-4's internal activations into roughly 16 million features that are often interpretable to humans. The authors argue that neural networks are poorly understood compared to engineered systems, and that interpretability tools are needed before safety can be reasoned about with similar confidence. Their scaling techniques for sparse autoencoders show smoother and better-behaved returns than prior work, though the results remain early, with many features still hard to interpret and the approach capturing only part of the model's behavior. ## Why Neural Networks Are Hard to Interpret - Engineers can design and assess cars from component specifications, but neural networks are shaped by training algorithms rather than designed directly. - The resulting networks cannot easily be decomposed into identifiable parts, which makes safety reasoning far harder than in traditional engineering. - Individual neurons activate in unpredictable patterns, often representing many concepts at once, and they fire densely on every input. - Real-world concepts are sparse: in any given context, only a small fraction is relevant. ## Sparse Autoencoders as a Path Forward - Sparse autoencoders identify a small set of "features" that matter for a given output, similar to the handful of concepts a person considers when reasoning about a situation. - These features show sparse activation patterns that often align with human-understandable concepts, even though interpretability was not directly optimized for. - The difficulty is scale: frontier models represent a huge number of concepts, so autoencoders may need to be very large to cover them, and prior methods did not scale well. ## Scaling Autoencoder Training - The team developed a training methodology that scales sparse autoencoders to tens of millions of features on frontier models. - Performance improves smoothly and predictably with scale, with better returns than earlier techniques. - They introduced new metrics for evaluating feature quality. - They trained autoencoders on GPT-2 small and GPT-4 activations, including a 16-million-feature autoencoder for GPT-4. - Interpretability is checked by visualizing each feature through the documents where it activates. ## Limitations - Many features remain hard to interpret, activating without a clear pattern or firing spuriously on unrelated content, and there is no reliable way to validate interpretations. - Passing GPT-4's activations through the autoencoder yields performance equivalent to a model trained with roughly 10x less compute, so the reconstruction is incomplete. - Fully mapping frontier models may require billions or trillions of features, which remains challenging even with the improved techniques. - Finding features at one point in the model is only a first step. Understanding how the model computes those features and uses them downstream requires much further work. ## Next Steps and Open Release - The near-term goal is to test whether the features are practically useful for monitoring and steering model behavior in frontier models. - The longer-term goal is to give researchers new ways to reason about safety and robustness, and to strengthen trust in powerful models. - OpenAI released a paper detailing its methods, a full suite of autoencoders for GPT-2 small, code for using them, and a feature visualizer for exploring GPT-2 and GPT-4 features.

OpenAI2022-06-224 min readCurated summary

Learning to play Minecraft with Video PreTraining

# Learning to Play Minecraft with Video PreTraining OpenAI trained a neural network to play Minecraft using Video PreTraining (VPT), a semi-supervised imitation learning method that combines a massive unlabeled video dataset with a small amount of labeled contractor data. The approach lets the model learn complex behaviors from internet videos, including crafting diamond tools, a task that takes proficient humans over 20 minutes. Because the model uses the native keyboard and mouse interface, the authors see it as a step toward general computer-using agents. ## Why Internet Video Lacks Action Labels - Internet videos show what happened but not the exact keypresses and mouse movements that produced it. - In language, the "action label" is simply the next word, but video offers no equivalent, which blocks building large-scale foundation models from video the way GPT was built from text. ## How VPT Works - Contractors play Minecraft while the team records both video and the actions they take. - An inverse dynamics model (IDM) is trained on this small labeled set to predict the action at each step. Because it can look at both past and future frames, this task is much easier and needs far less data than predicting actions from past frames alone. - The trained IDM labels a much larger set of online videos, and a behavioral cloning (BC) model learns to act from those pseudo-labeled videos. ## Zero-Shot Behavior from the Foundation Model - The team chose Minecraft because it is widely played, so it has abundant free video, and it is open-ended, which resembles real-world computer use. - The agent works at 20Hz using the native mouse and keyboard, unlike prior work that simplified the action space. - Trained on 70,000 hours of IDM-labeled video, the model chops trees, crafts planks and a crafting table (about 1,000 actions for a proficient human), swims, hunts and eats animals, and performs "pillar jumping." ## Fine-Tuning with Behavioral Cloning - Contractors built houses in new Minecraft worlds over 10 minutes, and the model was fine-tuned on this dataset. - Fine-tuning markedly improved reliability on early-game skills and pushed the agent further up the tech tree, to wooden and stone tools. - Occasionally the agent built rudimentary shelters and searched villages, including raiding chests. ## Data Scaling Results - The authors trained foundation models on 1 to 70,000 hours of data. Models under 2,000 hours used ground-truth contractor labels, while larger ones used IDM-labeled internet data. - Crafting ability generally improved with more data, and stone tool crafting emerged only at the largest scale. - The central hypothesis is that using contractor data to train an IDM is far more effective than training a BC model directly on the small contractor dataset. ## Fine-Tuning with Reinforcement Learning - Random exploration is inefficient for hard tasks, and a human-like VPT model should be a better prior than random actions. - The agent was rewarded for each subtask on the way to a diamond pickaxe. - An RL policy trained from scratch barely earned any reward, never learning to collect logs and rarely collecting sticks. - The VPT-initialized policy crafted diamond pickaxes in 2.5% of 10-minute episodes and matched human-level success on the intermediate items. The authors describe this as the first demonstration of a computer agent crafting diamond tools in Minecraft. ## Conclusion VPT offers a path to learning behavioral priors from the vast number of internet videos, which goes beyond the representational priors that generative video or contrastive methods provide. The authors believe the approach can extend to other domains with generic interfaces, such as computer use. They are open-sourcing the contractor data, environment, model code, and weights, and partnered with the MineRL NeurIPS competition, which lets contestants fine-tune the models.

OpenAI2022-06-084 min readCurated summary

Techniques for training large neural networks

# Techniques for Training Large Neural Networks Training large neural networks requires coordinating many GPUs to perform a single synchronized calculation, and practitioners have developed several ways to parallelize that work. Viewed with a few simplifying assumptions, these techniques reduce to moving opaque chunks of data between devices. The post surveys the main approaches, from data and pipeline parallelism to tensor parallelism and Mixture-of-Experts, along with memory-saving methods that make very large models feasible to train. ## The Basic Training Loop Each training iteration runs a forward pass to compute outputs for a batch, then a backward pass to compute a gradient for each parameter. An optimizer such as Adam uses the averaged gradients and its per-parameter state to produce the next set of parameters. Parallelism techniques divide this process along different dimensions. ## Data Parallelism - Each GPU (worker) holds a full copy of the parameters and processes a different subset of the batch. - The model must still fit in a single GPU's memory, and parameters are duplicated on every device. - Workers synchronize by averaging gradients each step, which requires transferring data proportional to the number of workers times the parameter size. - Asynchronous schemes reduce this communication overhead but hurt learning efficiency, so synchronous training is the common choice. ## Pipeline Parallelism - The model is split into consecutive groups of layers, with each GPU holding only a fraction of the parameters. - A naive implementation leaves workers idle while they wait for upstream outputs, creating "bubbles." - Splitting each batch into microbatches lets workers start on the next microbatch as soon as it is ready, which shrinks the bubbles. - Only activations (forward) and their gradients (backward) move between neighboring stages. - GPipe runs forward and backward passes consecutively and aggregates gradients synchronously at the end, while PipeDream alternates forward and backward passes. ## Tensor Parallelism - Individual operations within a layer, especially large matrix multiplications, are split across GPUs. - Weight matrices are sharded so each GPU computes part of the product, and the results are then combined through communication. - Megatron-LM applies this to the self-attention and MLP layers of Transformers. - PTD-P combines tensor, data, and pipeline parallelism, assigning multiple non-consecutive layers to each device to reduce bubble overhead at the cost of more communication. - Sequence parallelism splits an input sequence across time into sub-examples, lowering peak memory use. ## Mixture-of-Experts - Only a fraction of the network is activated for each input, with a gating mechanism choosing which expert weight sets to use. - This increases the total parameter count without a proportional increase in computation. - Different experts can be placed on different GPUs, giving a natural way to scale across hardware. - GShard scales an MoE Transformer to 600 billion parameters by splitting only the MoE layers across devices, while Switch Transformer routes each input to a single expert and reaches trillions of parameters. ## Memory-Saving Techniques - **Checkpointing (activation recomputation):** Stores only a subset of activations and recomputes the rest during the backward pass, costing at most one extra forward pass. Selective recomputation targets activations that are expensive to store but cheap to recompute. - **Mixed precision training:** Uses lower-precision formats such as FP16 to increase throughput and reduce memory, with little loss in accuracy when done carefully. - **Offloading:** Moves unused data to CPU memory or other devices and prefetches it back before it is needed. ZeRO partitions parameters, gradients, and optimizer states across all hardware. - **Memory-efficient optimizers:** Adafactor reduces the memory footprint of optimizer state. - **Compression:** Gist compresses activations saved for the backward pass, and DALL·E compresses gradients before synchronization. These strategies are typically combined in practice, since each addresses a different bottleneck in compute, communication, and memory.

OpenAI2021-03-033 min readCurated summary

Multimodal neurons in artificial neural networks

# Multimodal neurons in CLIP reveal how the model abstracts concepts OpenAI found neurons in CLIP that respond to the same concept whether it appears literally, symbolically, or conceptually. This helps explain CLIP's accuracy on surprising visual renditions of objects, and it is a step toward understanding the associations and biases such models learn. The same abstraction that makes CLIP versatile also makes it vulnerable to text-based attacks and inherited social biases. ## Multimodal neurons, from neuroscience to CLIP - Quiroga et al. (2005) found "multimodal" neurons in the human brain, such as the "Halle Berry" neuron, which responds to photos, sketches, and the written name but not to other names. - CLIP, a general-purpose vision system that matches ResNet-50 accuracy, outperforms existing models on stress tests like ObjectNet, ImageNet Rendition, and ImageNet Sketch, which involve abstractions such as sketches, cartoons, and statues. - The authors found a "Spider-Man" neuron in CLIP that responds to a spider, the word "spider," and the Spider-Man character in costume or illustration. - Using feature visualization and dataset examples, most neurons in CLIP RN50x4 are interpretable. They behave like the "multi-faceted neurons" described in earlier work, but at a higher level of abstraction. - Many categories mirror neurons found in the human medial temporal lobe, including neurons for emotions, animals, and famous people. - Other neurons handle counting, art styles, and signs of digital alteration. ## Limits of neuron-level analysis - CLIP can geolocate photos to the level of a city or neighborhood, but the authors found no "San Francisco" neuron. The information seems to be encoded in a more distributed way, such as a direction or manifold, which they call a promising direction for future research. ## How concepts combine - With a sparse linear probe, one can see which concepts combine to produce an ImageNet classification. - For text, concepts are encoded almost linearly, similar to word2vec, so they form a simple algebra that can be inspected much like a linear probe. ## Abstraction as an attack surface - At the highest layers, CLIP's representations are dominated by high-level abstractions that generalize across literal and iconic forms. This generalization is a double-edged sword. - The "finance" neuron fires for piggy banks and for the string "$$$." Forcing it to fire can make CLIP classify a dog as a piggy bank. - These "typographic attacks" work with handwritten text on paper, which makes them a real-world threat that requires no technology beyond a pen. - Subtler forms of over-abstraction may also cause overgeneralization without being obvious. ## Biases inherited from training data - Despite being trained on a curated subset of the internet, CLIP has learned associations that could cause representational harm. Examples include a "Middle East" neuron linked to terrorism, an "immigration" neuron that responds to Latin America, and a neuron that fires for both dark-skinned people and gorillas. - Such biases can persist in fine-tuned and zero-shot use, and they are hard to anticipate in advance. Interpretability tools may help practitioners find some of these problems before deployment. ## Release and outlook - OpenAI updated the Microscope catalog with feature visualizations, dataset examples, and text feature visualizations for every neuron in CLIP RN50x4. - The weights of CLIP RN50x4 and RN101 are released for research purposes only, and the authors were still deciding whether to release larger versions. The authors position this work as only a first look at CLIP's behavior and invite the research community to build on these tools. For practitioners, the takeaway is that CLIP's strong generalization comes with specific, testable vulnerabilities and biases, so interpretability checks should be part of evaluation before deployment.

OpenAI2021-01-044 min readCurated summary

DALL·E: Creating images from text

OpenAI introduces DALL·E, a 12-billion-parameter version of GPT-3 trained on text-image pairs to generate images from natural-language captions. The model handles a broad range of concepts, including anthropomorphized animals, combinations of unrelated ideas, rendered text, and transformations of existing images. The authors conclude that manipulating visual concepts through language is now feasible, extending GPT-3's text-generation results to images. ### Architecture and Training - DALL·E is a decoder-only transformer that treats text and image as one stream of up to 1280 tokens: 256 BPE-encoded text tokens (vocabulary of 16,384) followed by 1024 image tokens (vocabulary of 8,192). - Images are downscaled to 256×256 and compressed into a 32×32 grid of discrete codes by a discrete VAE. The authors found that training this VAE with a continuous relaxation removes the need for an explicit codebook, EMA loss, or dead-code revival tricks. - Training uses maximum likelihood to predict all tokens autoregressively. - Across 64 self-attention layers, every image token can attend to all text tokens. Text tokens use a standard causal mask, while image tokens use sparse row, column, or convolutional attention depending on the layer. - Because of this training setup, the model can regenerate any rectangular region that extends to the image's bottom-right corner in a way consistent with the prompt. ### Sample Selection with CLIP - For each caption, the model generates 512 samples and CLIP reranks them, keeping the top 32. - This is a form of rejection sampling, similar to the approach used in VQVAE-2, and it can noticeably improve sample quality. - Apart from thumbnails and standalone images, the authors report no manual cherry-picking. ### Capabilities and Limitations - **Attribute and count control:** The model can modify several attributes of an object and vary how many times it appears. - **Multiple objects:** Assigning colors and clothing to several objects at once (e.g., "a hedgehog wearing a red hat, yellow gloves, blue shirt, and green pants") is harder. Accuracy drops sharply as objects increase, and paraphrasing a caption can change the result. - **Viewpoint and 3D style:** The model responds to viewpoint, rendering style, optical effects such as fisheye lenses and spherical panoramas, reflections, cross-sections, and macro photography. Rotating a head through equally spaced angles produces a smooth animation. - **Inferring unstated details:** Captions are underspecified, so the model fills in implied details, such as a shadow for a capybara in a sunrise scene, and handles changes in style, setting, and time of day. - **Combining concepts:** The model blends unrelated ideas into animal chimeras, anthropomorphized objects, emojis, and product designs. ### Zero-Shot Visual Reasoning - Like GPT-3's zero-shot translation, DALL·E can perform image-to-image translation tasks when prompted appropriately. - The authors did not design or train for this behavior; it emerged on its own. - They also tested the model on Raven's progressive matrices, a visual IQ test. - The model shows geographic and temporal knowledge of landmarks and neighborhoods. This knowledge is surprisingly precise in some respects and flawed in others. ### Relation to Prior Work - Earlier text-to-image research mostly used GANs conditioned on text embeddings, starting with Reed et al. (2016). StackGAN and StackGAN++ scaled resolution with multi-scale GANs, and AttnGAN added word-level attention and a contrastive matching loss. - DALL·E instead uses a transformer and applies CLIP reranking offline after generation. - Other approaches add extra supervision or use sampling strategies that leverage pretrained multimodal models. ### Societal Considerations The authors plan future analysis of economic effects on certain professions, potential bias in outputs, and longer-term ethical challenges raised by the technology.

OpenAI2020-05-044 min readCurated summary

AI and efficiency

# Algorithmic Efficiency Is Outpacing Hardware Gains in AI OpenAI's analysis finds that the compute needed to train a neural network to AlexNet-level ImageNet performance has halved roughly every 16 months since 2012, so today it takes 44 times less compute than in 2012. Moore's Law would have predicted only an 11x improvement over the same period. The authors conclude that for AI tasks with heavy recent investment, algorithmic progress has delivered more gains than hardware efficiency, and they commit to publicly tracking efficiency state-of-the-art results. ## Measuring Algorithmic Efficiency - Efficiency is defined as the reduction in compute needed to reach a fixed capability, holding performance constant. This is the same lens used for classic problems like sorting, where difficulty is measured by input size. - Comparable efficiency doubling times in other fields include DNA sequencing (10 months), solar energy (6 years), and transistor density (2 years). - ResNet-50-level ImageNet performance improved at a similar pace, with a 17-month doubling time. - Faster gains appear over shorter horizons: - The Transformer beat seq2seq on WMT'14 English-to-French translation with 61x less training compute, three years later. - AlphaZero reached AlphaGo Zero level with an estimated 8x less compute one year later. - OpenAI Five Rerun surpassed OpenAI Five with 5x less training compute three months later. - Compute from different years should be treated like inflation-adjusted dollars, since a fixed amount of compute buys more in 2019 than in 2012. - Research tends to proceed in a "tick tock" pattern: a new capability requires heavy compute, then refined versions become far cheaper to run. - Efficiency gains act like extra compute for researchers, since they allow more experiments in the same time and budget. ## Other Measures of Progress - Training cost in dollars also reflects hardware, utilization, and cloud infrastructure, so it is less specific to algorithms. - Sample efficiency matters in low-data settings, and training speed indicates how parallelizable learning is. - Inference efficiency is also tracked, mainly for its economic impact. ShuffleNet matched AlexNet performance with 18x better inference efficiency in five years (a 15-month doubling time), suggesting training and inference efficiency may improve at similar rates. - Creating datasets, environments, and benchmarks makes specific capabilities easier to measure. ## Limitations - Only a few data points exist across a small number of tasks, so it is unclear whether these trends generalize. The authors suspect similar tasks with comparable investment will show similar rates. - The analysis does not quantify AlexNet's conceptual significance. Breakthroughs can move a capability from infeasible to merely expensive, and the authors believe new capabilities represent more conceptual progress than efficiency gains do. - The analysis measures the final training run rather than total development cost. Architecture searches can widen the gap between the two. - The authors avoid predicting how far these trends will extend into the future. ## Implications for Policy and Forecasting - The authors argue that policy on AI benefits from better measurement of technical capabilities and societal impact. - Efficiency trends help policymakers estimate the future cost of deploying AI capabilities. - Because large-scale compute drives state-of-the-art results in language and games, tracking efficiency improvements, often achieved by academic labs with less compute, is important. Efficiency leaders are strong candidates for scaling up. - Hardware and algorithmic gains multiply, and a sound model of AI progress should include both. ## Tracking Efficiency Publicly OpenAI will publish efficiency state-of-the-art results, starting with ImageNet vision and WMT14 translation benchmarks, and it invites the research community to submit results it may have missed. The post concludes that decades of exponential algorithmic gains could significantly change AI's trajectory, though the authors do not yet know how.

OpenAI2020-04-294 min readCurated summary

Jukebox

# Jukebox: Generating Raw Music Audio with Neural Nets OpenAI introduces Jukebox, a neural network that generates music as raw audio, including rudimentary singing, in a range of genres and artist styles, given a genre, artist, and lyrics as input. The authors argue that modeling audio directly captures voices and timbres that symbolic (MIDI-style) generators miss, and they overcome the extreme sequence lengths of raw audio with a multi-level compression and transformer pipeline. The model is still slow and imperfect, but the release includes weights, code, and a sample explorer. ## Why Raw Audio Is Hard - Symbolic approaches, such as piano rolls, have produced Bach chorales, multi-instrument pieces, and minute-long compositions, but they cannot represent human voices or subtle timbre and expressivity. - A 4-minute CD-quality song (44 kHz, 16-bit) has over 10 million timesteps, compared with 1,000 for GPT-2, so the model must learn very long-range dependencies. - Raw audio is unforgiving of timing errors at every scale, and the diversity of music adds further difficulty. ## Compressing Audio into Discrete Codes - Jukebox uses a VQ-VAE, extending the VQ-VAE-2 architecture with three changes: - **Random restarts** reset underused codebook vectors to encoded hidden states, which prevents codebook collapse. - **Separate decoders** per level reconstruct the input from each level's codes, so the upper levels are actually used. - **A spectral loss** penalizes differences between input and reconstructed spectrograms, helping the model reproduce high frequencies. - Three levels compress 44 kHz audio by 8x, 32x, and 128x, each with a codebook of 2048 entries. The most compressed level keeps pitch, timbre, and volume, though the audio becomes noticeably noisy. ## Generating Codes with Transformers - Three prior models learn the distribution of codes: a top-level prior captures long-range structure and melody (including singing), and two upsampling priors add local timbre and detail. - Each prior is an autoregressive simplified Sparse Transformer with 72 layers of factorized self-attention over 8,192-code contexts, covering roughly 24 seconds (top), 6 seconds (middle), and 1.5 seconds (bottom) of audio. - Generation runs top-down: sample top-level codes, upsample them, then decode to waveform with the VQ-VAE decoder. ## Dataset and Conditioning - The team crawled about 1.2 million songs (600,000 in English), paired with lyrics and metadata (artist, genre, year, moods) from LyricWiki. Training used 32-bit, 44.1 kHz audio, with random left/right downmixing to mono as augmentation. - **Artist and genre conditioning** reduces the entropy of predictions and lets users steer the style at generation time. An unsupervised t-SNE shows related artists and genres clustering together. - **Lyrics conditioning** is difficult because lyrics are unaligned at the song level. The team first used a linear character-to-time heuristic, which fails for fast lyrics such as hip hop. They then extracted vocals with Spleeter and aligned words with NUS AutoLyricsAlign, and added encoder-decoder attention so the model learns a more precise alignment. ## Limitations - Samples show local coherence, plausible chord progressions, and good solos, but they lack larger repeated structures such as choruses. - Downsampling and upsampling introduce audible noise, which better VQ-VAE codes could reduce. - Sampling is very slow, taking about 9 hours to render one minute of audio, so it is not yet suitable for interactive use. Distilling into a parallel sampler is a possible fix. - Training covered mostly English lyrics and Western music. ## Future Directions and Reception - The team is exploring conditioning on MIDI and stem files, which could improve musicality and give musicians more control. - In a trial with 10 musicians, participants did not find Jukebox immediately useful for their creative process, given its current limitations. - The authors are also studying bias and intellectual property issues and are seeking creative collaborators.

OpenAI2020-04-132 min readCurated summary

OpenAI Microscope

# OpenAI Microscope: Visualizing Neurons in Vision Models OpenAI has released Microscope, a collection of visualizations covering every significant layer and neuron in eight vision "model organisms" commonly used in interpretability research. The goal is to make neural network features easier to analyze, share, and cite, so that researchers can quickly evaluate claims about specific neurons and collaborate across institutions. ## Why Neuron-Level Exploration Is Hard - Modern network capabilities emerge from interactions among thousands or tens of thousands of neurons, so understanding behavior requires examining those interactions in detail. - Collaboration suffers when claims about neurons cannot be checked quickly. For example, a claim that one InceptionV1 neuron is a car detector built from wheel and window detectors is hard to verify without tooling. - Generating visualizations yourself is tedious and can take hundreds of GPU hours for systematic coverage. ## What Microscope Provides - **Systematic visualizations:** Every neuron in several commonly studied vision models is visualized, using the open-source lucid library that OpenAI helps maintain. - **Faster feedback loops:** Exploring a neuron drops from minutes to seconds. The OpenAI team says this speed helped them discover unexpected features, such as high-low frequency detectors, in the ongoing circuits project. - **Linkable neurons and models:** Each model and neuron has a stable link, so readers can scrutinize claims directly and avoid ambiguity about which version of a model is meant (for example, which of the five InceptionV1 variants). - **Lower compute barrier:** By sharing precomputed visualizations, OpenAI aims to keep interpretability research accessible to researchers without large compute budgets. ## Scope and Focus - The initial release covers nine frequently studied vision models along with several visualization techniques the team found especially useful. - Following the "model organism" approach in biology, Microscope concentrates on a small set of models studied in depth rather than spreading across many architectures. - OpenAI plans to add more models and techniques in the coming months. ## Intended Use The assets are free for reuse. OpenAI specifically highlights their potential for supporting the Circuits collaboration, a project that reverse engineers neural networks by analyzing individual neurons and the connections between them.

OpenAI2020-01-222 min readCurated summary

Scaling laws for neural language models

The study examines how language model performance on cross-entropy loss scales with model size, dataset size, and training compute. It finds that performance follows simple power laws across more than seven orders of magnitude, with architectural details like width and depth mattering little within a wide range. Because larger models are more sample-efficient, the compute-optimal strategy is to train very large models on a relatively modest amount of data and stop well before convergence. ### Power-Law Scaling - Loss follows a power law in model size, dataset size, and training compute. - These trends hold across more than seven orders of magnitude. ### Architecture Matters Less Than Scale - Network width and depth have minimal effects on performance within a wide range. ### Overfitting and Training Speed - Simple equations describe how overfitting depends on model and dataset size. - Simple equations also describe how training speed depends on model size. ### Allocating a Fixed Compute Budget - The relationships above make it possible to determine the optimal way to divide a fixed compute budget. - Larger models are significantly more sample-efficient, so they reach a given loss with less data. - The most compute-efficient training therefore uses very large models trained on a relatively small dataset, and stops significantly before convergence. For teams with limited compute, the practical takeaway is to prioritize model size over dataset size and to avoid training to convergence.

OpenAI2019-12-042 min readCurated summary

Deep double descent

# Deep Double Descent OpenAI's research shows that the double descent phenomenon appears in modern deep learning architectures, including CNNs, ResNets, and transformers. Performance first improves, then worsens, then improves again as model size, data size, or training time increases. The effect is often hidden by careful regularization. The authors do not yet fully understand why it happens and call further study an important research direction. ## Model-wise Double Descent Test error follows a non-monotonic curve as parameter count grows, which contradicts both classical statistics ("larger models overfit") and the modern view that bigger is always better. - Test error decreases, rises, and then decreases again as the number of parameters increases. - The peak occurs at the "critical regime" (the interpolation threshold), where the model is just barely able to fit the training set. - Changes that move the interpolation threshold, such as the optimizer, the number of training samples, or the amount of label noise, move the test error peak with it. - The effect is most visible with added label noise. Without it, the peak is smaller and easy to miss. ## Sample-wise Non-monotonicity Adding more training data can make performance worse. - In transformer experiments on a language-translation task without label noise, more samples generally lower the test error curve. - More samples also require larger models to fit, which shifts the interpolation threshold and its test error peak to the right. - For intermediate model sizes, these two effects combine, and training on 4.5x more samples actually hurts test performance. ## Epoch-wise Double Descent The double descent pattern also appears over training time for a fixed model size. - As training proceeds, test and train error decrease, increase, and decrease again. - The peak again appears when the model is just barely able to fit the training set. - The authors' intuition is that at the interpolation threshold, only one model fits the training data, and forcing it to fit slightly noisy labels destroys its global structure. - In the over-parameterized regime, many models fit the training set, and some of them generalize well. The implicit bias of stochastic gradient descent appears to steer training toward these models, though the authors do not yet understand why. ## Practical Takeaway Regularization and early stopping can hide the peak, so practitioners should not assume that more data, larger models, or longer training always helps. Performance can degrade in the critical regime before it recovers.

OpenAI2019-10-143 min readCurated summary

Solving Rubik’s Cube with a robot hand

# Solving Rubik's Cube with a Robot Hand OpenAI trained a human-like robot hand to solve a Rubik's Cube using neural networks trained entirely in simulation. The approach pairs the reinforcement learning code behind OpenAI Five with a new technique called Automatic Domain Randomization (ADR), which generates progressively harder simulated environments without human tuning. The resulting system transfers to the physical world and handles perturbations it never saw during training, showing that reinforcement learning can solve dexterous physical manipulation problems, not just virtual ones. ## Why Dexterous Manipulation Is Hard - Robotics has long required custom robots for each task, while general-purpose hands have struggled because of their many degrees of freedom. - The team's hardware, a robot hand that has existed for about 15 years, was not new. The novelty was in the software approach. - Solving the cube one-handed is difficult even for children, who take several years to develop the necessary dexterity. ## Training in Simulation with Automatic Domain Randomization - The system uses reinforcement learning in simulation, with Kociemba's algorithm choosing the solution steps. The networks learn the required face rotations and cube flips. - Manually randomizing physics parameters such as friction, elasticity, and dynamics is hard. Too little randomization fails to transfer to the real robot, and too much makes learning difficult. - ADR begins with a single nonrandomized environment. When the network exceeds a performance threshold, the randomization range expands automatically, such as the cube's size, mass, finger friction, or surface materials. The cycle repeats, so training never converges and always stays challenging. - In a block-flipping comparison, ADR initially performed worse than manual randomization on the real robot but eventually roughly doubled the baseline's transfer performance without human tuning. ## Robustness and Emergent Meta-Learning - The ADR-trained system handled perturbations it was never trained on, performing most flips and face rotations under all tested conditions, though not at peak performance. - The authors hypothesize that a memory-augmented network trained on unboundedly varied environments develops meta-learning, learning to adapt its behavior at deployment time. - In simulation, averaged over 10,000 trials, perturbations such as resetting memory, changing dynamics, or breaking a joint caused time-to-success spikes that recovered as the network re-adapted. - Non-negative matrix factorization of the network's memory revealed groups with semantic meaning. For example, the dominant memory group could indicate whether the network was about to spin the cube or rotate the top face clockwise. ## Current Limitations - The system solves a maximally difficult 26-rotation scramble 20% of the time, and a 15-rotation scramble 60% of the time. - Most failures occur during the first few rotations and flips, as the network balances solving with adapting to the physical world. - A dropped cube counts as a failure, though the network can resume solving from any state if the cube is returned to the hand. ## Prototypes Used Along the Way - The team built custom cube prototypes with increasing sensing capabilities, ranging from a locked cube with no internal sensors to a cube with built-in sensors (the Giiker cube), to benchmark progress before tackling a regular cube. - The only modification to the regular cube was cutting a small piece of each center sticker to break rotational symmetry, which allows the vision system to determine orientation. The authors see human-level dexterity as a step toward general-purpose robots. ADR offers a way to train physical-world policies without an accurate model of the real environment, and it removes the need for domain-specific tuning when applying the method to new tasks.

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-08-053 min readCurated summary

OpenAI Five Benchmark: Results

# OpenAI Five Defeats Pro Dota Players in a Live Benchmark, With One Loss OpenAI Five won a best-of-three against a team of 99.95th percentile Dota players, four of whom had competed professionally, in front of a live audience and 100,000 concurrent livestream viewers. The human team took game three after the audience adversarially selected Five's heroes. The author presents the event as a step toward AI systems that can handle the complexity and uncertainty of the real world. ## Audience and Match Results - The day opened with a volunteer audience team playing the first public match, which Five won in under 14 minutes. An evenly matched game typically lasts about 45 minutes. - Five won game one in 21 minutes 37 seconds and game two in 24 minutes 53 seconds. - In game three, the audience drafted an adversarial lineup. Five started with a 2.9% predicted win probability, reached 17% at one point, and lost after 35 minutes 47 seconds. ## Drafting Through Win Probability - OpenAI Five gained a drafting capability, which is considered one of the hardest parts of Dota because heroes interact in complex ways. - The team added a win-probability output to the network in late June for introspection. They then used it to evaluate drafts: each draft is scored by the prediction on the first frame of a game with that lineup. - In about one week, the team built a fake frame for each of the 11 million possible team matchups and wrote a tree search to find the optimal draft. - After the game one draft, Five predicted a 95% win probability, even though human observers viewed the matchup as roughly even. After the game two draft, it predicted 76.2%. ## Training Approach - Instead of retraining from scratch for each major revision, this version carried parameters forward from June 9th across six revisions, with each revision initialized from the previous one. - The team built "surgery" tooling to map old parameters onto new network architectures. For example, when warding was introduced, a shared action head for movement and ward placement caused Five to drop wards while moving. The team split the head into two clones initialized with the same parameters. - Estimated training compute: - 1v1 model: 8 petaflop/s-days - June 6th model: 11 petaflop/s-days - Aug 5th model: 35 petaflop/s-days (figures revised after a more rigorous analysis in April 2019) - The team also released its latest network architecture. ## Inspecting the Model - An output predicting a hero's future position offers insight into the model's planning. In the example, the model predicted Sven's location six seconds ahead. - Additional outputs can be trained to predict quantities such as last hits and tower counts. - The author notes that making the model function required working through many bugs and unexpected behaviors. ## Next Steps The team plans to play a team of professionals at The International later that month, with game details to be announced. ## Conclusion The benchmark shows that OpenAI Five can handle a complex, uncertain competitive environment, including adversarial conditions, and the team's introspection tools make its reasoning partly visible to observers. The post frames the upcoming professional match as the next test of this approach.

OpenAI2018-03-063 min readCurated summary

Reptile: A scalable meta-learning algorithm

# Reptile: A Simple, Scalable Meta-Learning Algorithm Reptile is a meta-learning algorithm that finds a neural network initialization from which new tasks can be learned quickly from few examples. It works by repeatedly sampling a task, running standard SGD on it, and moving the initial parameters toward the adapted result. Mathematically it resembles first-order MAML, but it needs only black-box access to an optimizer such as SGD or Adam, and it achieves similar performance with lower computational cost. ## Meta-Learning and the Few-Shot Setting - Meta-learning takes a distribution of tasks, each a learning problem, and produces a learner that generalizes from a small number of examples. - A well-studied case is few-shot classification, where the learner sees only 1–5 examples per class before classifying new inputs. ## How Reptile Differs from MAML - MAML unrolls and differentiates through the gradient descent computation graph, which requires second derivatives. - Reptile runs ordinary SGD on each task and never builds a computation graph or computes second derivatives, so it uses less computation and memory. - The update moves the initialization toward the task-adapted parameters. Treating that difference as a gradient allows plugging it into a more sophisticated optimizer such as Adam. ## Why It Works - With one SGD step per task (k=1), the method reduces to joint training on the mixture of all tasks. Joint training learns little when zero-shot learning is impossible, such as when output labels are randomly permuted. - Reptile requires multiple steps (k>1), where the update depends on higher-order derivatives of the loss. - A Taylor-series analysis shows that the Reptile update maximizes the inner product between gradients from different minibatches of the same task, which corresponds to better generalization. The authors suggest this may also help explain the generalization of SGD outside meta-learning. - Reptile and MAML produce similar updates, containing the same two terms with different weights. ## Experimental Results - On the Omniglot and Mini-ImageNet few-shot classification benchmarks, Reptile and MAML perform similarly. - Reptile converges faster because its update has lower variance. - Summing different combinations of SGD minibatch gradients yields a family of algorithms. Using only the second gradient corresponds to first-order MAML. Including more gradients speeds learning through variance reduction, and using only the first gradient makes no progress, as the analysis predicts. ## Implementations - The official implementation uses TensorFlow and includes code to replicate the Omniglot and Mini-ImageNet experiments. - A smaller JavaScript implementation fine-tunes a TensorFlow-pretrained model and powers the interactive 1-shot classification demo. - A minimal PyTorch example performs few-shot regression on random sine waves from 10 (x, y) pairs. ## Relationship to Prior Work The authors note that first-order MAML and Reptile are more closely related than the names suggest. They take different perspectives but compute similar updates. Reptile's contribution builds on Shortest Descent and on avoiding second derivatives in meta-learning. The post's first paragraph was updated to reflect this.