techlist.io

OpenAI

274 posts

openai.com/news

Filter by tag

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.

OpenAI2021-01-044 min readCurated summary

CLIP: Connecting text and images

# CLIP: Connecting Text and Images OpenAI's CLIP (Contrastive Language–Image Pre-training) is a neural network that learns visual concepts from text paired with images found on the internet, rather than from manually labeled datasets. Because it is trained to match images with natural-language descriptions, it can be applied to new image classification tasks simply by supplying the category names, without task-specific training. The authors argue this zero-shot approach produces benchmark results that better reflect real-world performance, since the model is never optimized directly for the benchmark. ## Problems with Standard Computer Vision Models - Labeled vision datasets are expensive to build and cover only a fixed set of predetermined concepts. ImageNet required over 25,000 workers to annotate 14 million images across 22,000 categories. - Standard models are narrow. An ImageNet model handles its 1,000 categories well but needs a new dataset, a new output head, and fine-tuning for any other task. - Benchmark scores overstate real-world performance. Models that look superhuman on benchmarks often fail on stress tests, which the authors attribute to models effectively "studying for the test." ## How CLIP Works - CLIP is trained on a proxy task: given an image, predict which of 32,768 randomly sampled text snippets was actually paired with it. - Solving this forces the model to learn many visual concepts and associate them with their names. - For classification, the category names are turned into text prompts (e.g., "a photo of a dog" vs. "a photo of a cat"), and the model picks the prompt most likely to match the image. ## Background and Prior Work - Zero-data learning has been studied for over a decade, but natural language as a flexible prediction space was a key insight. - Socher et al. (2013) showed a model trained on CIFAR-10 could predict two unseen classes by using word vector embeddings. - DeVISE (2013) extended this to generalize beyond ImageNet's 1,000 training classes. - Li et al. (2016/2017) were the most direct inspiration. They trained on 30 million Flickr photos with their titles, descriptions, and tags, reaching 11.5% zero-shot accuracy on ImageNet. - Recent work such as VirTex, ICMLM, and ConVIRT explored related language-supervised objectives using Transformers, with ConVIRT applying a contrastive objective to medical imaging. ## Key Results **Efficiency** - A contrastive objective (matching images to text) was 4x to 10x more efficient than an image-to-text approach for zero-shot ImageNet classification in small to medium experiments. - Switching from a standard ResNet to a Vision Transformer gave a further 3x compute efficiency gain. - The best model trained on 256 GPUs for 2 weeks. **Flexibility** - Zero-shot performance was measured across more than 30 datasets, including fine-grained object classification, geo-localization, video action recognition, and OCR. - With linear probes, the best CLIP model outperformed the best public ImageNet model (Noisy Student EfficientNet-L2) on 20 of 26 transfer datasets. - Fitting a linear classifier on ImageNet raised CLIP's ImageNet test accuracy by nearly 10%, but gave no average gain across seven other robustness datasets. This supports the authors' "cheating hypothesis." - CLIP closes the robustness gap by up to 75% while matching the original ResNet-50's ImageNet accuracy zero-shot, without using any of its 1.28M labeled training examples. ## Limitations - CLIP struggles with abstract or systematic tasks such as counting objects or estimating distance to the nearest car, where it is only slightly better than random guessing. - It lags task-specific models on fine-grained classification, such as car models, aircraft variants, and flower species. - Generalization is limited. On handwritten MNIST digits, zero-shot CLIP reaches 88% accuracy versus 99.75% for humans. - Performance can be sensitive to wording, sometimes requiring trial-and-error "prompt engineering." ## Broader Impacts - Class design strongly affects bias. With FairFace race labels and a few offensive terms, about 32.3% of images of people aged 0–20 were classified into the offensive category. Adding a "child" class reduced this to about 8.7%. - Celebrity identification reached 59.2% top-1 accuracy among 100 candidates and 43.3% among 1,000. This is not competitive with production systems, but it raises privacy and surveillance concerns that the authors flag for further research. ## Conclusion The authors show that task-agnostic pre-training on internet-scale natural language, which drove recent progress in NLP, can also improve computer vision. Like the GPT models, CLIP learns many tasks during pre-training and transfers to them zero-shot. The authors also argue that zero-shot evaluation gives a more representative measure of a model's capability.

OpenAI2020-09-061 min readCurated summary

Generative language modeling for automated theorem proving

This post introduces GPT-f, a transformer-based language model for automated theorem proving in the Metamath formalization language. The authors argue that a key weakness of automated provers compared to human mathematicians is their difficulty generating original mathematical terms, and that language model generation may address this gap. GPT-f found new short proofs that were accepted into the main Metamath library, which the authors believe is the first time a deep-learning system has contributed proofs adopted by a formal mathematics community. ## Motivation - Automated theorem provers struggle to generate original mathematical terms, a capability humans have. - The authors propose that generation from language models could address this limitation. ## GPT-f: Prover and Proof Assistant - GPT-f is both an automated prover and a proof assistant. - It targets the Metamath formalization language. ## Results - GPT-f discovered new short proofs. - These proofs were accepted into the main Metamath library, marking, to the authors' knowledge, the first adoption of deep-learning-generated proofs by a formal mathematics community.

OpenAI2020-06-164 min readCurated summary

Image GPT

Image GPT shows that a transformer trained on pixel sequences, using the same architecture as GPT-2 for language, can generate coherent image completions and samples without any human-labeled data. The authors show that generative quality tracks feature quality, and their best model's features compete with top unsupervised convolutional networks on classification benchmarks. The approach needs far more compute than contrastive methods, so the authors frame it as a proof of concept for domain-agnostic learning rather than a practical vision method. ## Motivation: Bridging the Gap Between Language and Vision - Transformers such as BERT, GPT-2, RoBERTa, and T5 have set top results across language tasks, but the same class of models has not produced strong image classification features. - Language tasks naturally appear inside text (questions followed by answers, passages followed by summaries), while pixel sequences carry no explicit labels. - The authors rely on the "Analysis by Synthesis" idea: a model that learns to generate realistic images should also learn object categories. ## Image GPT (iGPT) Architecture and Training - The authors use the GPT-2 transformer unchanged, feeding it images unrolled into pixel sequences, and deliberately avoid image-specific components such as convolutions, relative or sparse attention, and 2-D position embeddings. - Three model sizes were trained on ImageNet: iGPT-S (76M parameters), iGPT-M (455M), and iGPT-L (1.4B). A 6.8B-parameter iGPT-XL was trained on ImageNet plus web images. - Training used low resolutions (32x32, 48x48, 64x64) because dense attention over long sequences is expensive. - A custom 9-bit color palette shortens the input sequence to one-third the length of a standard RGB encoding while preserving color. ## Evaluation Methods and Feature Behavior - **Linear probe:** features are extracted from a frozen model, average-pooled over the sequence, and fed to logistic regression. - **Full fine-tune:** the entire model is trained on the downstream dataset. - Feature quality rises and then falls slightly with depth. The authors read this as two phases: early layers build contextual image features, and later layers serve next-pixel prediction. This resembles a bottleneck autoencoder. - Larger models and longer training improve generative quality, which in turn improves feature quality. ## Results - **Linear probes:** iGPT-L (32x32) reaches 96.3% on CIFAR-10, 82.8% on CIFAR-100, and 95.5% on STL-10, beating the best listed supervised and unsupervised transfer methods on those datasets. - **ImageNet linear probe:** iGPT-L at 48x48 reaches 65.2% top-1, above AlexNet. Concatenating features from five layers of iGPT-XL reaches 72.0%, ahead of AMDIM, MoCo, and CPC v2 but behind SimCLR's 76.5%. - **Full fine-tune:** iGPT-L matches GPipe at 99.0% on CIFAR-10 and scores 66.3% on ImageNet at 32x32. - **BERT-style masked pixel training:** linear probe accuracy is notably worse, but fine-tuning results are strong. - **Semi-supervised CIFAR-10:** a logistic regression on iGPT-L features, with no augmentation or fine-tuning, beats Mean Teacher and MixMatch but trails FixMatch. ## Limitations - Compute cost is very high. iGPT-L took roughly 2,500 V100-days, while a similarly performing MoCo model needs about 70 V100-days. - Transformers on low-resolution pixels lack the easy high-resolution scaling of convolutional encoders, so a new architecture may be needed. - Generative models can absorb dataset biases. The authors give the example of a "scientist" concept skewed toward men. ## Conclusion The authors argue that trading hand-coded 2-D image knowledge for scale, and taking features from middle layers, lets a plain sequence transformer compete with convolutional networks in unsupervised image classification. Given enough compute, they suggest, this simple and general approach could learn strong features in many domains. The paper positions the work as proof of concept, since the compute and resource costs keep it from practical vision applications today.

OpenAI2020-05-272 min readCurated summary

Language models are few-shot learners

The post argues that scaling up language models makes them far better at new tasks without any task-specific training. Pre-trained models usually need fine-tuning on thousands of labeled examples, whereas humans can often learn a language task from a few examples or a simple instruction. The authors show that GPT-3, a 175-billion-parameter autoregressive model, performs strongly in this few-shot setting, sometimes approaching prior fine-tuned state-of-the-art results. ## Limits of Pre-training and Fine-tuning - Pre-training on large text corpora followed by task-specific fine-tuning has produced substantial gains on many NLP benchmarks. - Fine-tuning still requires thousands or tens of thousands of labeled examples per task. - Current systems still struggle to learn new tasks from only a few examples or plain instructions, which humans do easily. ## GPT-3 and the Few-Shot Setting - GPT-3 has 175 billion parameters, about 10 times more than any previous non-sparse language model. - It is applied to every task without gradient updates or fine-tuning. - Tasks and few-shot demonstrations are specified entirely through text interaction with the model. ## Performance Across Tasks - GPT-3 performs strongly on translation, question answering, and cloze tasks. - It also handles tasks requiring on-the-fly reasoning or domain adaptation, such as unscrambling words, using a novel word in a sentence, and 3-digit arithmetic. - Human evaluators have difficulty distinguishing GPT-3's generated news articles from human-written ones. ## Limitations and Concerns - Some datasets remain difficult for GPT-3's few-shot learning. - Some datasets raise methodological issues tied to training on large web corpora. - The authors discuss the broader societal impacts of GPT-3, including the implications of its realistic text generation.

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-153 min readCurated summary

Improving verifiability in AI development

# Improving Verifiability in AI Development OpenAI contributed to a 58-author, multi-organization report that proposes 10 mechanisms for making claims about AI systems verifiable. The core argument is that AI developers' ethics principles are hard for outsiders to check, which weakens scrutiny and could encourage competitors to cut corners. The mechanisms span institutional, software, and hardware approaches, and each comes with a recommendation for advancing it. The authors plan further research, and OpenAI intends to adopt several of the mechanisms. ## The Verifiability Gap - Organizations increasingly publish AI ethics principles, but outside users, policymakers, and civil society often cannot confirm that systems follow them in practice. - The report frames this through concrete questions: whether a user can verify privacy guarantees for a machine translation tool, whether a regulator can trace the causes of an autonomous vehicle accident, whether academics can do independent risk research without industry-scale compute, and whether developers can confirm rivals follow best practices. ## Institutional Mechanisms - **Third-party auditing:** A coalition of stakeholders should form a task force to study how to conduct and fund independent audits of AI systems. - **Red teaming exercises:** Developers should stress-test the risks of their systems and share best practices and tools. - **Bias and safety bounties:** Developers should pilot bounty programs that reward broad outside scrutiny of bias and safety issues. - **Sharing of AI incidents:** Developers should disclose more information about incidents, including through collaborative channels. ## Software Mechanisms - **Audit trails:** Standards bodies should work with academia and industry to define audit trail requirements for safety-critical AI applications. - **Interpretability:** Developers and funders should support interpretability research aimed at risk assessment and auditing. - **Privacy-preserving machine learning:** Developers should build and share tool suites for privacy-preserving ML that report performance against common standards. ## Hardware Mechanisms - **Secure hardware for machine learning:** Industry and academia should develop security features for AI accelerators or establish best practices for secure enclaves on commodity hardware. - **High-precision compute measurement:** At least one AI lab should estimate in detail the compute used in a single project and report lessons on wider adoption of such methods. - **Compute support for academia:** Government funders should substantially increase compute resources for academic researchers so they can verify industry claims independently. ## Practical Takeaway The report treats verifiability as a shared infrastructure problem rather than a matter of trust in individual companies. Its recommendations are aimed at building institutions, tools, and hardware that let external parties check AI developers' claims directly.

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-121 min readCurated summary

Dota 2 with large scale deep reinforcement learning

OpenAI Five became the first AI system to defeat world champions at an esports game when it beat Team OG, the Dota 2 world champion, on April 13, 2019. The work shows that self-play reinforcement learning, scaled up substantially, can reach superhuman performance on a task with long time horizons, imperfect information, and complex continuous action spaces. ## Why Dota 2 Is a Hard Problem - The game has long time horizons, so decisions made early can pay off only much later. - Players have imperfect information about the map and opponents. - The state and action spaces are complex and continuous, which makes them difficult for AI systems to handle. ## Training at Scale - OpenAI Five used existing reinforcement learning techniques but scaled them far beyond typical settings. - Training learned from batches of roughly 2 million frames every 2 seconds. - The team built a distributed training system and tools for continual training. - Training ran for 10 months in total. ## Results - OpenAI Five defeated the reigning Dota 2 world champion. - The result supports the claim that self-play alone, given enough scale, can produce superhuman play on a difficult, real-time strategy task.

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-12-023 min readCurated summary

Procgen Benchmark

# Procgen Benchmark: Measuring Generalization in Reinforcement Learning OpenAI's Procgen Benchmark is a suite of 16 procedurally generated environments built to measure how quickly reinforcement learning agents learn skills that generalize to unseen levels. The authors argue that classic benchmarks like the Arcade Learning Environment reward memorizing specific trajectories rather than robust learning, and that a diverse collection of environments is needed to evaluate generalization directly. Their experiments show that agents overfit heavily to small training sets in nearly every environment, and that many need around 10,000 levels or more to close the generalization gap. ## Limits of Existing Benchmarks - Agents in several environments have been shown to overfit even to very large training sets. - The Arcade Learning Environment has long been a gold standard, but its low emphasis on generalization makes it hard to tell whether agents learn a relevant skill or memorize trajectories. - CoinRun was designed to separate training and test levels through procedural generation, but it is a single environment and cannot represent the full range of RL challenges. - Environments like Dota and StarCraft are complex but are slow to iterate on, and using several of them at once is difficult. ## Design Goals of Procgen The benchmark is built around experimental convenience, high diversity within each environment, and high diversity across environments. Each environment follows four design principles: - **High diversity:** Level generation logic has maximal freedom within basic design constraints, so the resulting level distributions pose meaningful generalization challenges. - **Fast evaluation:** Difficulty is calibrated so baseline agents make significant progress after 200M timesteps, and the environments run at thousands of steps per second on a single CPU core. - **Tunable difficulty:** Each environment offers easy and hard settings. Results are reported on hard, while easy requires roughly one-eighth of the training resources. - **Visual recognition and motor control:** Games mimic the style of Atari and Gym Retro titles, so strong performance depends on identifying key visual assets and producing appropriate low-level motor responses. Using the benchmark is simple for both humans and AI agents. Installation is done with `pip install procgen`, and environments such as `procgen:procgen-coinrun-v0` can be created through Gym. ## Generalization Experiments - The team trained agents with Proximal Policy Optimization for 200M timesteps on training sets ranging from 100 to 100,000 levels, then measured performance on unseen test levels. - Agents strongly overfit to small training sets in almost all environments, and some needed up to 10,000 levels to close the generalization gap. - Past a certain threshold, training performance improved as the training set grew. The authors attribute this to an implicit curriculum created by diverse levels, which helps agents learn to generalize even across levels they have already seen. This contrasts with supervised learning, where training performance usually falls as datasets grow. ## Deterministic Level Ablation - When test-time level sequences were randomized instead of fixed, agents appeared to make progress over the first several levels in most games. - Test performance showed that agents had learned almost nothing about the underlying level distribution. - The authors conclude that training on a fixed sequence of levels hides a serious flaw, and that diverse level distributions are essential for training and evaluating RL agents. ## Looking Ahead The authors expect insights from the benchmark to carry over to more complex settings and plan to use these environments to build more capable and efficient agents. For anyone evaluating RL methods, the practical takeaway is to test on held-out levels drawn from a diverse distribution, not on a fixed sequence of training levels.

OpenAI2019-11-043 min readCurated summary

GPT-2: 1.5B release

# GPT-2 1.5B Release: Concluding a Staged Release OpenAI released the largest version of GPT-2 (1.5 billion parameters), along with code and model weights, to close out its nine-month staged release. The release aims to help researchers detect GPT-2 outputs and provide a test case for responsible publication of powerful language models. Their findings suggest that GPT-2's text is convincing to humans, can be fine-tuned for misuse, and is hard to detect, though they saw no strong evidence of misuse so far. ## Human Credibility of GPT-2 Output - Researchers at Cornell University had people rate GPT-2 text for credibility on a 10-point scale. - The 1.5B model scored 6.91, slightly above the 774M model (6.72) and well above the 355M model (6.07). - The small gain over the 774M model made OpenAI more comfortable releasing the largest version. ## Misuse Through Fine-Tuning - Researchers at the Middlebury Institute's CTEC fine-tuned GPT-2 on four ideologies: white supremacy, Marxism, jihadist Islamism, and anarchism. - They showed that the models could generate synthetic propaganda for these ideologies. - Detection methods had low accuracy on the synthetic outputs, but ML-based detection could still give experts reasonable suspicion that someone was generating synthetic text. ## Detection Challenges - OpenAI built a classifier, based on RoBERTa, that detects about 95% of text generated by the 1.5B model. - OpenAI considers this insufficient as a standalone solution and recommends pairing it with metadata-based approaches, human judgment, and public education. - Detection accuracy depends heavily on the sampling methods used, and training across a range of sampling techniques makes detection more reliable. - Larger models' outputs are harder to classify, and OpenAI expects detection to get harder as models grow. - Releasing the detector may also help adversaries evade detection. ## No Strong Evidence of Misuse - OpenAI has seen discussion of GPT-2 aiding spam and phishing, but no concrete evidence of such misuse. - OpenAI expects misuse risk to rise as generators become more reliable and coherent. - Motivated actors can replicate such models without public release, so OpenAI cannot anticipate every threat. ## Bias Evaluation - Language models carry biases, and the field lacks standard methods for studying, discussing, and addressing them. - OpenAI published a model card on GitHub, based on Mitchell et al.'s "Model Cards for Model Reporting," describing known issues with GPT-2. - OpenAI ran a limited in-house probe for gender, race, and religious biases, and noted that these probes are not comprehensive. ## Next Steps - OpenAI continues to work on responsible publication norms through the Partnership on AI's "Responsible Publication Norms for Machine Learning" project.

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.