techlist.io

OpenAI/Transformer

22 posts

OpenAI2026-05-113 min readCurated summary

What Parameter Golf taught us about AI-assisted research

# What Parameter Golf Taught Us About Open ML Challenges in the Age of AI Agents Parameter Golf was an eight-week machine learning challenge that asked participants to minimize held-out loss on a fixed FineWeb dataset under a 16 MB artifact limit and a 10-minute training budget on 8×H100s. It drew more than 2,000 submissions from over 1,000 participants, and the organizers found it a useful way to surface technical creativity and talent. The most striking takeaway is how widely AI coding agents shaped the competition: they lowered the cost of experimentation and broadened participation, but they also created new problems for review, attribution, and scoring. ## The Challenge Setup - Participants forked a baseline repo, improved the model, and submitted results through GitHub. - Constraints covered both model weights and training code within the 16 MB artifact limit. - The organizers provided a baseline, dataset, and evaluation scripts, and Runpod sponsored $1,000,000 in compute. ## Record Track Highlights Each record-track submission was independently reproduced and checked to confirm it beat the leaderboard at the time of submission. Several themes emerged: - **Training optimization:** Careful tuning of existing components produced some of the strongest results. - **Quantization:** Many submissions pushed hard on compression and export, including low-rank techniques. - **Test-time and evaluation strategies:** Some approaches blurred the line between model improvement and evaluation tricks. These were valid under the rules but required close organizer review. - **New modeling and data ideas:** A few submissions brought in creative modeling or data approaches, drawn from the literature or built from scratch, that yielded unexpected gains. ## Nonrecord Track Highlights The nonrecord track was more experimental, so judging focused on whether an approach was technically interesting rather than on raw performance. Three favorites stood out: - CiprianFlorim-Ifrim's combined state-space model and JEPA submission - ddavidgao's Designator/Guided Attention submission - DariusFeher's Byte-Level H-Net submission Despite the experimental focus, the track was competitive. Half of the nonrecord entries beat the naive baseline of 1.22 BPB, and the top entry reached 1.12 BPB. The organizers saw this as evidence that alternatives to the dominant transformer architecture can sometimes compete with it. Coding agents made it cheap to prototype speculative ideas that participants might otherwise have skipped. ## Lessons on Agents and Competition Integrity - **Lower barrier to entry:** The vast majority of submitters used agents, which helped people set up experiments, inspect unfamiliar code, and test ideas faster. - **Idea convergence and noise:** Many submissions were small tweaks to existing top scores. This spread good ideas quickly but also let out-of-bounds approaches spread when they produced strong scores, as other agents copied them. - **Triage at scale:** Hundreds of submissions a day made manual inspection impractical, so the team built a Codex-based triage bot to flag submissions for human review. - **Community tooling:** An agent-run "Live Updates" bulletin tracked events and explained leaderboard approaches, and community review tools helped newer participants check rule compliance. ## Conclusion The organizers plan to run more challenges like this and are inviting interested participants to register. For anyone designing open research competitions, the experience suggests that agent-era contests need automated triage and clear rules about valid approaches, since agents accelerate both good ideas and rule violations.

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-02-143 min readCurated summary

Video generation models as world simulators

Sora, OpenAI's video generation model, shows that scaling diffusion transformers on video is a promising route to general-purpose world simulators. The model is trained jointly on videos and images of varying durations, resolutions, and aspect ratios, using a unified representation of spacetime patches in a compressed latent space. It can generate up to a minute of high-fidelity video and displays emergent simulation abilities such as 3D consistency and object permanence, though it still has clear physical limitations. The report describes the approach and capabilities but omits model and implementation details. ## Turning Visual Data into Patches - Inspired by LLMs, which unify diverse text through tokens, Sora uses visual patches as its equivalent unit for images and video. - A video compression network first maps raw video to a lower-dimensional latent space, compressed both temporally and spatially, along with a matching decoder that maps latents back to pixels. - Spacetime patches extracted from these latents serve as transformer tokens. Images are handled as single-frame videos. ## Diffusion Transformer Architecture - Sora is a diffusion transformer trained to predict the original clean patches from noisy input patches and conditioning information such as text. - Sample quality improves markedly as training compute increases, with fixed seeds and inputs used for comparison. ## Native Size Training - Instead of resizing, cropping, or trimming videos to a standard size, Sora trains on data at its native resolution and aspect ratio. - This allows sampling at 1920x1080 (widescreen), 1080x1920 (vertical), and anything in between, and lets content be prototyped at low resolution before full-resolution generation with the same model. - Training on native aspect ratios improves framing. A model trained on square crops often cut subjects out of view, while Sora's framing stays intact. ## Captioning and Prompt Understanding - Following DALL·E 3, a highly descriptive captioner generates captions for the training videos, which improves text fidelity and overall quality. - GPT expands short user prompts into detailed captions before they reach the video model. ## Prompting with Images and Video - Beyond text-to-video, Sora accepts images and videos as input, enabling animation of static images (including DALL·E images), forward and backward video extension, and seamless looping. - Video-to-video editing uses SDEdit to restyle environments zero-shot. - Interpolating between two input videos creates transitions between clips with different subjects and compositions. - Image generation is handled by arranging Gaussian noise patches in a single-frame grid, supporting resolutions up to 2048x2048. ## Emergent Simulation Capabilities These behaviors arise from scale alone, with no explicit 3D or object-level inductive biases: - **3D consistency:** People and scene elements move coherently through space during dynamic camera motion. - **Long-range coherence and object permanence:** People and objects persist through occlusion and leaving the frame, and characters keep their appearance across multiple shots in one sample. - **Interacting with the world:** Actions leave lasting effects, such as paint strokes on a canvas or bite marks on a burger. - **Simulating digital worlds:** Sora can control a basic Minecraft policy while rendering the game world in high fidelity, elicited zero-shot through captions. ## Limitations - Physics is often inaccurate. For example, glass shattering is not modeled correctly. - Some interactions, like eating, don't always change object state correctly. - Long samples can develop incoherence, and objects can appear spontaneously.

OpenAI2022-09-202 min readCurated summary

Introducing Whisper

Whisper is an open-sourced automatic speech recognition system trained on 680,000 hours of multilingual, multitask data scraped from the web. Rather than fine-tuning on one curated dataset, OpenAI trained it on this large, diverse corpus, which made it more robust to accents, background noise, and technical language. It also transcribes many languages and translates them into English, and the authors released the models and inference code as a foundation for applications and further research. ## Training Data and Scale - The training set covers 680,000 hours of supervised audio-text data collected from the web. - Roughly a third of the audio is non-English. - Prior work typically used smaller, more closely paired datasets, or broad unsupervised pretraining followed by fine-tuning. ## Model Architecture - Whisper is a single end-to-end encoder-decoder Transformer. - Input audio is split into 30-second chunks and converted into a log-Mel spectrogram before entering the encoder. - The decoder predicts the text caption, interleaved with special tokens that direct the same model to perform tasks such as language identification, phrase-level timestamps, multilingual transcription, and speech-to-English translation. ## Robustness Over Benchmark Specialization - Whisper does not beat models specialized for LibriSpeech, a widely used speech recognition benchmark. - On zero-shot evaluation across many diverse datasets, it makes about 50% fewer errors than those specialized models, which the authors present as evidence of greater robustness. ## Multilingual Transcription and Translation - Non-English audio is randomly assigned either transcription in its original language or translation to English during training. - This approach works well for speech-to-text translation, and Whisper outperforms the previous supervised state of the art on CoVoST2 to-English translation in a zero-shot setting. The authors hope the combination of high accuracy and ease of use will let developers add voice interfaces to a much wider range of applications.

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.

OpenAI2022-02-013 min readCurated summary

Solving (some) formal math olympiad problems

# Neural Theorem Proving with Statement Curriculum Learning This post from OpenAI describes a neural theorem prover for the Lean proof assistant that learns to solve challenging high-school olympiad problems, including AMC12, AIME, and two IMO-adapted problems. The core idea is that a language model can generate proof steps and original mathematical terms, while a curriculum of auxiliary statements (without proofs) of varying difficulty lets the prover improve iteratively. The approach reaches 41.2% on the miniF2F benchmark, up from the previous state of the art of 29.3%, though the authors acknowledge the system is still far from best-student performance. ## Why Formal Mathematics Is a Good Testbed - Formal mathematics is rich enough to express arbitrary theorems requiring reasoning, creativity, and insight. - Like games where AI has excelled, it has an automatic way to check success: the formal system verifies whether a proof is valid. - A proof is a sequence of tactic calls, each transforming the current goal into simpler subgoals until nothing remains. ## Two Challenges for Reinforcement Learning - **Infinite action space:** Unlike Go, each proof step can require generating new mathematical terms, such as a witness for an existential statement or an intermediate lemma (a "cut"). This makes the set of possible actions effectively infinite. - **Lack of self-play:** Two-player games have an opponent whose strength drives an automatic curriculum. A prover faces a fixed set of statements, and when one is too hard, there is no obvious way to generate easier intermediate goals, so naive self-play methods do not transfer. ## Statement Curriculum Learning - **Sampling actions from a language model** addresses the infinite action space, since language models can produce both tactic calls and the mathematical terms they need. - **Auxiliary statements replace self-play's curriculum:** The team manually collected statements of varying difficulty, without proofs, with the hardest ones resembling the target benchmark. - **Iterative training loop:** The prover searches for proofs of these statements, each newly found proof becomes training data, and the network is retrained. After 8 iterations, the prover performed far better on miniF2F. ## Observed Behavior - The model sometimes generates original terms as tactic arguments, such as proposing `n + 1` as a witness and letting `ring_exp` verify it. - It can chain several non-trivial steps, for example applying contraposition, providing a witness `(0 : ℝ)`, and closing the goal with `norm_num`. ## Limitations and Outlook - The prover solves olympiad problems only occasionally rather than consistently, and remains well below top human students. - The authors hope the work will advance research toward the IMO Grand Challenge and that statement curriculum learning will benefit automated reasoning more broadly.

OpenAI2021-10-283 min readCurated summary

Solving math word problems

# Solving Math Word Problems with Verifiers OpenAI trained a system that solves grade school math word problems with nearly twice the accuracy of a fine-tuned GPT-3 model. The system solves roughly 90% as many problems as real 9-12 year olds, scoring 55% against the children's 60% on the same test. The core idea is to have the model recognize its own mistakes: it generates many candidate solutions and a separate verifier picks the most likely correct one. ## Why Language Models Struggle with Multistep Reasoning - Large language models like GPT-3 imitate writing styles and store broad factual knowledge, but they often make critical logical errors in multistep reasoning. - Autoregressive models generate solutions token by token and have no built-in way to correct an early mistake, so a solution that drifts off course usually cannot recover. ## The GSM8K Dataset - GSM8K contains 8.5K high-quality grade school math word problems, each requiring 2 to 8 steps. - Solutions rely on elementary arithmetic (+, −, ×, ÷) and are written in natural language rather than pure math expressions, which makes them easier for humans to interpret. - Fine-tuned state-of-the-art models performed poorly on it mainly because of the diversity of problems, yet the required concepts are elementary, so strong performance is a realistic goal. - The authors released the dataset to support further research. ## Trained Verifiers as a Fix - Verifiers are trained on many model-generated solutions and learn to judge which ones, if any, are correct. - At test time, the system generates 100 candidate solutions and selects the one the verifier ranks highest. - Verification benefits from having many options to choose from, and checking a solution is often easier than producing one. - Gains from verification depend on dataset size. With small datasets, verifiers appear to overfit by memorizing final answers instead of learning general properties of mathematical reasoning. ## Results and Scaling - On the full training set, a 6B-parameter model with verification slightly outperforms a fine-tuned 175B-parameter model, a gain roughly equivalent to a 30x increase in model size. - Based on current results, verification appears to scale more effectively with additional data than fine-tuning alone. ## Why It Matters Producing correct arguments and recognizing incorrect ones are central challenges for more general AI. Grade school math is a useful testbed because each problem is conceptually simple, yet a single subtle error can derail the whole solution. The authors expect these verification skills to matter more as models are applied to logically complex domains.

OpenAI2021-07-062 min readCurated summary

Evaluating large language models trained on code

The post introduces Codex, a GPT language model fine-tuned on publicly available GitHub code, and studies its ability to write Python. Codex solves 28.8% of problems on HumanEval, a new benchmark the authors released for generating programs from docstrings, compared with 11.4% for GPT-J and 0% for GPT-3. Repeated sampling raises the solve rate to 70.2% with 100 samples per problem, and the authors also flag limitations and broader safety, security, and economic implications. ## Model and Training - Codex is a GPT language model fine-tuned on publicly available code from GitHub. - A distinct production version of Codex powers GitHub Copilot. ## HumanEval Benchmark - HumanEval is a new evaluation set released to measure functional correctness when synthesizing programs from docstrings. - Codex solves 28.8% of the problems, versus 11.4% for GPT-J and 0% for GPT-3. ## Repeated Sampling - Generating many samples per prompt is a surprisingly effective way to get working solutions to difficult problems. - With 100 samples per problem, Codex solves 70.2% of the HumanEval problems. ## Limitations - The model struggles with docstrings that describe long chains of operations. - It also has difficulty binding operations to variables. ## Broader Impacts - The authors discuss the potential effects of deploying powerful code generation technology, including safety, security, and economics. A May 2025 update at the top of the post notes that OpenAI later launched Codex as a cloud-based software engineering agent that can work on many tasks in parallel.

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.