Evolution through Large Models (ELM) uses large language models trained on code as mutation operators in genetic programming, since their training data includes sequential code changes and so they approximate the edits humans would make. In the main experiment, ELM paired with MAP-Elites produced hundreds of thousands of working Python programs that drive walking robots in the Sodarace domain, none of which the base model had seen during pre-training. Those examples were then used to train a new conditional language model that generates a suitable walker for a given terrain.
## LLMs as Mutation Operators
- Genetic programming normally relies on mutation operators that make small, often random, changes to programs.
- Code LLMs trained on sequences of commits and modifications can propose changes that resemble what a human developer would write, which makes mutations more effective.
- This approach is named evolution through large models (ELM).
## Generating Sodarace Walkers at Scale
- ELM is combined with MAP-Elites, a quality-diversity algorithm that keeps a grid of diverse high-performing solutions.
- The pipeline produced hundreds of thousands of functional Python programs, each outputting a working ambulating robot in Sodarace.
- The base LLM had never encountered this domain in pre-training, so the outputs represent genuinely new artifacts.
## Bootstrapping a Conditional Model from Zero Data
- The generated walker programs served as training data for a new conditional language model.
- That model learns to output an appropriate walker for a specified terrain.
- The method creates training data for a domain where none previously existed.
## Implications for Open-Endedness and Learning
- The ability to bootstrap models that produce context-appropriate artifacts in data-less domains bears on open-endedness, deep learning, and reinforcement learning.
- The authors present these implications as a starting point for new research directions rather than a finished framework.
# 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.
GPT-3 can learn to state its uncertainty in natural language, giving a confidence level such as "90% confidence" or "high confidence" alongside its answer, without relying on model logits. These verbalized confidence levels map to well-calibrated probabilities, and the ability holds moderately well under distribution shift. The authors present this as the first demonstration of calibrated, natural-language uncertainty about a model's own answers.
## Verbalized Confidence and Calibration
- Given a question, the model produces both an answer and a confidence level expressed in words.
- The stated levels correspond to probabilities that are well calibrated.
- The model stays moderately calibrated when the input distribution changes.
- Its confidence tracks uncertainty in its own answers rather than imitating confidence patterns in human examples.
## The CalibratedMath Benchmark
- The authors introduce the CalibratedMath suite of tasks to test calibration.
- They compare verbalized probabilities with uncertainty extracted from the model's logits.
- Both approaches generalize calibration under distribution shift.
## Why Generalization Works
- The authors provide evidence that GPT-3's ability to generalize calibration depends on pre-trained latent representations.
- These representations correlate with the model's epistemic uncertainty about its answers.
The post introduces a two-stage approach to text-conditional image generation that routes through CLIP image embeddings. Rather than mapping a caption directly to pixels, the model first predicts a CLIP image embedding from the text and then renders an image from that embedding. The authors report that this explicit representation step increases image diversity with only minor losses in photorealism and caption similarity. They also find that diffusion models work better than autoregressive models for the prior stage, being cheaper to compute and producing higher-quality samples.
## Two-Stage Generation Pipeline
- A **prior** takes a text caption and generates a CLIP image embedding.
- A **decoder** generates the final image conditioned on that embedding.
- Diffusion models are used for the decoder.
- Both autoregressive and diffusion models were tested for the prior.
## Diversity and Fidelity Trade-offs
- Generating the intermediate image representation improves diversity across outputs.
- Photorealism and caption similarity remain close to the baseline, with only minimal loss.
## Image Variations and Zero-Shot Editing
- Decoders conditioned on image embeddings can produce variations that keep an image's semantics and style while changing non-essential details.
- The shared joint embedding space of CLIP allows language-guided manipulation of images without additional training for those edits.
## Prior Model Comparison
- Diffusion priors are more computationally efficient than autoregressive priors.
- Diffusion priors produce higher-quality samples.
OpenAI's March 2022 research agenda proposes studying the economic effects of code generation models like Codex, which it says generated functionally correct code 28.8% of the time on a sample of evaluation problems. The authors argue that such models could reshape software development and its dependent industries, and that the methods developed for Codex can carry over to future LLMs. Their goal is evidence that informs deployment policy, AI system design, and public policy. They also invite external researchers to collaborate.
### Why Codex Is a Useful Case Study
- Codex is GPT-3 fine-tuned on billions of lines of publicly available GitHub code.
- Advances in LLM capabilities make their economic impact on individuals, firms, and society increasingly important to measure.
- Codex's broad applicability to software development makes it a practical starting point, and the methodologies built for it should transfer to later models.
### Three Decision-Making Areas
- **Deployment policy:** how and where such models should be released.
- **AI system design:** how models can be built to produce beneficial economic outcomes.
- **Public policy:** how governments should respond to the resulting economic shifts.
### Six Priority Outcome Areas
For each area, the agenda reviews prior literature on AI's effects, identifies key questions for the three decision areas, and suggests research that could be done with Codex.
- **Productivity:** how code generation changes output per worker.
- **Employment:** effects on jobs and labor demand in software work.
- **Skill Development:** how the skills needed by programmers may shift.
- **Inter-firm Competition:** how access to these tools affects competitive dynamics between firms.
- **Consumer Prices:** whether cheaper software development passes through to prices.
- **Economic Inequality:** who gains or loses, and how distribution of benefits changes.
### Call for Collaboration
- OpenAI is issuing a Call for Expressions of Interest to external researchers.
- The goal is to work with OpenAI researchers and customers to measure the economic impacts of code generation models and other LLMs.
# 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.
Contrastive pre-training on large amounts of unsupervised data produces high-quality vector representations of both text and code, replacing the use-case-specific models that earlier work relied on. The same unsupervised text embeddings set new state-of-the-art results on linear-probe classification and perform strongly on semantic search, sometimes competing with fine-tuned models. The same approach applied to (text, code) pairs also improves code search.
## Unsupervised Text Embeddings for Classification
- Averaged across 7 linear-probe classification tasks, the best unsupervised model improves on the previous best unsupervised text embeddings by 4% (relative).
- It also improves on the previous best supervised text embedding models by 1.8% (relative).
## Large-Scale Semantic Search
- On MS MARCO, the embeddings improve on the previous best unsupervised methods by 23.4% (relative).
- On Natural Questions, the improvement is 14.7% (relative).
- On TriviaQA, the improvement is 10.6% (relative).
## Code Embeddings
- Code embedding models are trained on (text, code) pairs using the same contrastive approach as the text models.
- They achieve a 20.8% (relative) improvement over the prior best work on code search.
# WebGPT: Teaching GPT-3 to Answer Questions by Browsing the Web
OpenAI fine-tuned GPT-3 to answer open-ended questions by operating a text-based web browser, so the model can search, follow links, and cite sources. Training combines human demonstrations with reward modeling, and the best model's answers are preferred 56% of the time over human-written answers on ELI5, with comparable factual accuracy. The system still lags humans on out-of-distribution questions, and the authors argue that citation alone will not be enough to verify factuality as models become more capable.
## Browsing as a Way to Reduce Hallucination
- Language models tend to "hallucinate" when questions require obscure real-world knowledge.
- The model receives an open-ended question and a summary of the browser state, then issues commands such as "Search ...", "Find in page: ...", or "Quote: ...".
- It collects passages from web pages and composes an answer from them, mirroring how humans research online.
## Training Method
- The model is fine-tuned from GPT-3 with the same general methods used in earlier work.
- Step one is behavioral cloning: the model learns to copy human demonstrations of browser use.
- Step two improves helpfulness and accuracy by training a reward model on human preferences, then optimizing against it with reinforcement learning or rejection sampling.
## Results on ELI5 and TruthfulQA
- **ELI5:** Three models were trained for different inference-time compute budgets. The best one's answers were preferred 56% of the time to those of human demonstrators, with similar factual accuracy. Human feedback let the model outperform the demonstrators whose data it was trained on.
- **TruthfulQA:** On training-distribution questions, the best model is about as accurate as human demonstrators on average. On the adversarially built TruthfulQA, it beats GPT-3 and scales more favorably, but still trails humans, partly because it sometimes quotes unreliable sources.
## Evaluating Factuality Through Citations
- Humans can only give useful feedback if they can check claims, which is hard when claims are technical, subjective, or vague.
- Requiring citations makes verification more tractable and less ambiguous, which reduces label noise.
- Open questions include what counts as a reliable source, which claims need no support, and how to weigh factuality against coherence. The model does not appear to grasp this nuance fully, since it still makes basic errors.
- Citations will eventually fail as a verification method, because a capable model could cherry-pick sources that look convincing even when they misrepresent the evidence. The authors suggest debate as one possible mitigation.
## Deployment and Training Risks
- The model is more truthful than GPT-3 but still makes basic errors, and cited answers can seem authoritative, which masks those errors.
- The model tends to reinforce users' existing beliefs.
- At training time, web access creates side-effect risks. The environment allows Bing Web Search API queries and link-following but not unrestricted browsing. The authors judge GPT-3 far too weak to exploit these side effects, but expect the risk to grow with capability, and they are building internal safeguards.
## Conclusion
Human feedback combined with tools like web browsers is a promising route toward robustly truthful, general-purpose AI. The current system struggles with unfamiliar or challenging questions, but it marks significant progress.
# 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.
TruthfulQA is a benchmark for measuring whether language models give truthful answers, and its results suggest that making models larger will not reliably make them more truthful. The benchmark has 817 questions across 38 categories, including health, law, finance, and politics. The best model answered truthfully on 58% of questions, compared with 94% for humans. The authors conclude that scaling alone is a weak route to truthfulness and that training objectives beyond imitating web text are needed.
## Benchmark Design
- The questions are written so that some humans would answer them falsely because of a misconception or false belief.
- To score well, a model must avoid reproducing false answers it learned by imitating human-written text.
- The benchmark covers 38 categories and 817 questions in total.
## Results Across Models
- The authors tested GPT-3, GPT-Neo/J, GPT-2, and a T5-based model.
- The best model was truthful on 58% of questions, while human participants scored 94%.
- Many false answers matched popular misconceptions, which means they could plausibly deceive people.
- The largest models were generally the least truthful, which runs against the usual trend in NLP where bigger models perform better.
## Implications for Scaling
- The authors argue the inverse scaling result is expected if false answers come from the training distribution, since larger models fit that distribution more closely.
- They suggest that improving truthfulness will require fine-tuning with objectives other than imitation of web text, rather than simply scaling up models.
# Triton: Open-Source Python-Like GPU Programming for Neural Networks
Triton 1.0 is an open-source, Python-like language that lets researchers with little or no CUDA experience write GPU kernels that usually approach expert-level CUDA performance. Its main claim is that it automates the hardest parts of GPU optimization, such as memory coalescing, shared memory management, and within-SM scheduling, so developers can focus on high-level logic. The post argues this makes it practical to write fused kernels, including FP16 matrix multiplication that matches cuBLAS in under 25 lines, some up to 2x faster than equivalent PyTorch implementations.
## Why Fused Kernels Matter
- Research code typically chains native framework operators, which creates many temporary tensors and data movement that hurt performance at scale.
- Custom GPU kernels can fix this, but writing them is difficult.
- Existing alternatives were either too verbose, too inflexible, or produced code noticeably slower than hand-tuned baselines.
- Triton extends an earlier language and compiler of the same name, originally created by Philippe Tillet, who now works at OpenAI.
## The Challenges of GPU Programming
Optimizing CUDA code requires attention to three components of modern GPUs:
- **DRAM:** memory transfers must be coalesced into large transactions to use the wide memory bus.
- **SRAM (shared memory):** data must be staged manually for reuse and arranged to avoid bank conflicts.
- **ALUs:** computations must be partitioned and scheduled across and within Streaming Multiprocessors (SMs) to exploit parallelism and specialized units like tensor cores.
Triton automates memory coalescing, shared memory management, and within-SM scheduling. It deliberately leaves cross-SM scheduling to the developer, since tiling and inter-SM synchronization remain algorithmic decisions that should stay flexible.
## Programming Model
- Triton resembles Numba: kernels are decorated Python functions launched over a grid of program instances identified by `program_id`.
- Unlike Numba, Triton parallelizes within an instance through operations on blocks (small power-of-two-sized arrays) rather than the SIMT thread model. This hides intra-block concurrency issues such as coalescing, shared memory synchronization, and tensor core scheduling.
- Element-wise operations gain little, but complex kernels become much simpler.
- **Fused softmax example:** each instance loads and normalizes one row using NumPy-like primitives, avoiding the explicit inter-thread synchronization that a CUDA version requires.
- Triton JIT treats tensors as raw pointers, preserving low-level control needed for complex structures such as block-sparse tensors.
- This softmax keeps each row in SRAM throughout normalization, maximizing reuse for up to about 32K columns. PyTorch's general-purpose CUDA implementation uses temporary memory, making it more flexible but slower. The post frames the lesson as simplifying specialized kernels, not Triton being inherently superior.
- The Torch JIT (v1.9) performed worse on the same operation, illustrating how hard it is to automatically generate efficient CUDA from high-level tensor operations.
## Matrix Multiplication
- Fused element-wise operations and reductions are necessary, but matrix multiplication is central to neural networks.
- A Triton matmul reaches peak performance in about 25 lines of Python. The equivalent CUDA would take considerably more effort and would likely be slower.
- The kernel groups programs together to improve L2 cache hit rates, loads blocks of A and B in a loop, accumulates with `tl.dot`, and stores results with boundary masks.
- Handwritten kernels can be customized with fused input transformations (such as slicing) and output transformations (such as Leaky ReLU), which would be out of reach for most developers without Triton.
## System Architecture and Compiler
- Triton's performance comes from Triton-IR, an LLVM-based intermediate representation where multi-dimensional blocks of values are first-class.
- The `@triton.jit` decorator walks the Python AST and builds Triton-IR using an SSA construction algorithm.
- The compiler simplifies and optimizes the IR, automatically parallelizes it, and lowers it through LLVM-IR to PTX for recent NVIDIA GPUs.
- Stashing data in shared memory is automated by analyzing operands of block-level operations like `tl.dot`, with allocation and synchronization handled by standard liveness analysis.
- Programs are parallelized across SMs by running kernel instances concurrently, and within SMs by partitioning block-level iteration spaces across SIMD units.
- At the time of the post, CPUs and AMD GPUs were unsupported, and the authors invited community contributions.
## Conclusion
Triton is open source on GitHub and the authors want it to become a community-driven project. For developers who need custom GPU kernels but lack deep CUDA expertise, it offers a practical path to near-expert performance with far less 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.
# Multimodal neurons in CLIP reveal how the model abstracts concepts
OpenAI found neurons in CLIP that respond to the same concept whether it appears literally, symbolically, or conceptually. This helps explain CLIP's accuracy on surprising visual renditions of objects, and it is a step toward understanding the associations and biases such models learn. The same abstraction that makes CLIP versatile also makes it vulnerable to text-based attacks and inherited social biases.
## Multimodal neurons, from neuroscience to CLIP
- Quiroga et al. (2005) found "multimodal" neurons in the human brain, such as the "Halle Berry" neuron, which responds to photos, sketches, and the written name but not to other names.
- CLIP, a general-purpose vision system that matches ResNet-50 accuracy, outperforms existing models on stress tests like ObjectNet, ImageNet Rendition, and ImageNet Sketch, which involve abstractions such as sketches, cartoons, and statues.
- The authors found a "Spider-Man" neuron in CLIP that responds to a spider, the word "spider," and the Spider-Man character in costume or illustration.
- Using feature visualization and dataset examples, most neurons in CLIP RN50x4 are interpretable. They behave like the "multi-faceted neurons" described in earlier work, but at a higher level of abstraction.
- Many categories mirror neurons found in the human medial temporal lobe, including neurons for emotions, animals, and famous people.
- Other neurons handle counting, art styles, and signs of digital alteration.
## Limits of neuron-level analysis
- CLIP can geolocate photos to the level of a city or neighborhood, but the authors found no "San Francisco" neuron. The information seems to be encoded in a more distributed way, such as a direction or manifold, which they call a promising direction for future research.
## How concepts combine
- With a sparse linear probe, one can see which concepts combine to produce an ImageNet classification.
- For text, concepts are encoded almost linearly, similar to word2vec, so they form a simple algebra that can be inspected much like a linear probe.
## Abstraction as an attack surface
- At the highest layers, CLIP's representations are dominated by high-level abstractions that generalize across literal and iconic forms. This generalization is a double-edged sword.
- The "finance" neuron fires for piggy banks and for the string "$$$." Forcing it to fire can make CLIP classify a dog as a piggy bank.
- These "typographic attacks" work with handwritten text on paper, which makes them a real-world threat that requires no technology beyond a pen.
- Subtler forms of over-abstraction may also cause overgeneralization without being obvious.
## Biases inherited from training data
- Despite being trained on a curated subset of the internet, CLIP has learned associations that could cause representational harm. Examples include a "Middle East" neuron linked to terrorism, an "immigration" neuron that responds to Latin America, and a neuron that fires for both dark-skinned people and gorillas.
- Such biases can persist in fine-tuned and zero-shot use, and they are hard to anticipate in advance. Interpretability tools may help practitioners find some of these problems before deployment.
## Release and outlook
- OpenAI updated the Microscope catalog with feature visualizations, dataset examples, and text feature visualizations for every neuron in CLIP RN50x4.
- The weights of CLIP RN50x4 and RN101 are released for research purposes only, and the authors were still deciding whether to release larger versions.
The authors position this work as only a first look at CLIP's behavior and invite the research community to build on these tools. For practitioners, the takeaway is that CLIP's strong generalization comes with specific, testable vulnerabilities and biases, so interpretability checks should be part of evaluation before deployment.
This post summarizes an October 14, 2020 discussion among researchers from OpenAI, the Stanford Institute for Human-Centered Artificial Intelligence, and other universities about open questions surrounding GPT-3, then the largest publicly disclosed dense language model. Participants came from fields including computer science, linguistics, philosophy, political science, communications, and cyber policy, and the meeting was held under Chatham House Rules. The discussion was organized around two broad questions about large language models.
## Technical Capabilities and Limitations
- The first theme asks what large language models can and cannot do.
- The discussion focused on GPT-3 as the reference system for these questions.
## Societal Effects of Widespread Use
- The second theme asks how the broad deployment of large language models affects society.
- The post's topic list points to ethics and safety, community and collaboration, and language as areas of focus.
The excerpt includes only the abstract and topic tags, so the specific arguments and conclusions from the discussion are not present.
# Scaling Kubernetes to 7,500 Nodes for Large-Scale ML Research
OpenAI scaled a single Kubernetes cluster to 7,500 nodes to support large model training such as GPT-3, CLIP, and DALL·E, as well as rapid small-scale research experiments. The key outcome is an infrastructure simple enough that research teams can scale their jobs without changing their code. The post covers the lessons learned since their earlier 2,500-node milestone and the problems that remain open.
## Workload Characteristics
The workload differs from typical enterprise Kubernetes use, which shapes the solutions:
- Large ML jobs typically occupy entire nodes to use NVLink and GPUDirect, so NUMA, CPU, and bin-packing concerns are minimal and scheduler load is relatively low, though it is spiky when hundreds of pods are created at once.
- Large MPI jobs halt if any pod dies, so pods are treated as semi-stateful and disruption is kept to a minimum.
- Pods communicate directly by pod IP rather than through Services, and service discovery is a one-time lookup at job startup.
- Most data flows through blob storage, with PersistentVolumes used only where POSIX semantics are needed.
## Networking
- Flannel could not keep up with the required throughput, so the team moved to native pod networking with Azure VMSS IP configurations and alias-based IPs, giving pods host-level network throughput.
- Clusters may use around 200,000 IPs at once, and route-based pod networking hit significant route-count limits.
- Avoiding encapsulation keeps VPN integration, network policy, and traffic monitoring simple, and avoids MTU-related fragmentation.
- iptables mangle rules tag traffic as internet-in or internet-out, and the open-source iptables-exporter feeds per-namespace counters into Prometheus so researchers can see their usage.
- The architecture is hub-and-spoke: researchers reach each cluster through a hub, but clusters cannot talk to each other, which preserves failure isolation. A NAT host translates the service CIDR for external traffic.
## API Server and etcd
- API servers and etcd run on dedicated nodes, with 5 API servers and 5 etcd nodes in the largest clusters. API servers use up to about 70GB of heap each at 7,500 nodes.
- Splitting Kubernetes Events into their own etcd cluster eliminated notable etcd trouble.
- Endpoint WATCHes on node-wide services like kubelet created O(N²) traffic, sometimes reaching 1GB/s. EndpointSlices, introduced in Kubernetes 1.17, reduced this load by about 1000x.
- The team avoids DaemonSets that talk to the API server, and uses intermediary caching (such as the Datadog Cluster Agent) where per-node watches are necessary.
- Autoscaling hundreds of nodes at once can overload API servers, so smoothing scale-up by even a few seconds helped avoid outages.
## Metrics with Prometheus and Grafana
- The team started from kube-prometheus and added custom dashboards and alerts, dropping overly granular metrics through Prometheus rules.
- Prometheus OOMs were traced to Grafana calling `/api/v1/series` with `{le!=""}`. That endpoint was unbounded in time and memory, and kept consuming resources after clients disconnected. A patch adding a context timeout resolved it.
- WAL replay after restarts took hours. Setting `GOMAXPROCS=24` greatly improved replay, since contention across many cores had been the bottleneck.
## Health Checks
**Passive checks** run continuously on every node and cover network reachability, disks, and GPU errors. GPU errors are monitored through DCGM and the `DCGM_FI_DEV_XID_ERRORS` metric, which records the most recent Xid error. Failing nodes are cordoned, then pods are evicted (respecting Pod Disruption Budgets), and the VM is forcibly terminated after 7 days, which is part of the SLA. Cloud maintenance events are also tracked.
**Active GPU tests** exercise hardware beyond what DCGM reports, and need exclusive GPU access for seconds to minutes:
- "Preflight" tests run at boot. Nodes join with a taint and label that block normal pods until the tests pass and remove them.
- Periodic tests run as a CronJob on arbitrary nodes. This coverage is less controlled but sufficient over time.
## Quotas and Resource Sharing
- **Team taints:** A `team-resource-manager` service reconciles a ConfigMap of team allocations and taints nodes with `openai.com/team=teamname:NoSchedule`. An admission webhook adds matching tolerations to jobs. Lower-priority pods can tolerate any team's taint, so teams can borrow idle capacity.
- **Balloons:** Cluster-autoscaler sets min size to zero to remediate unhealthy nodes, but it scales down idle nodes, which is costly. Low-priority "balloon" Deployments occupy each node so it isn't considered idle, and are evicted immediately when real work arrives. A Deployment is used rather than a DaemonSet, and pod anti-affinity spreads the balloons evenly. The O(N²) anti-affinity scheduler issue was fixed in Kubernetes 1.18.
- **Gang scheduling:** Optimizer StatefulSets need all members scheduled together, or experiments can deadlock with partial allocations. The team adopted the Coscheduling plugin, enabled by the scheduler plugin architecture introduced in Kubernetes 1.18.
## Open Problems
- **Metrics storage:** Prometheus's TSDB is slow to compact, has long WAL replays, and hits "too many samples" query errors. The team is migrating to a Prometheus-compatible storage and query engine.
- **Traffic shaping:** Researchers' aggregate internet bandwidth has grown large enough to strain external resources such as dataset hosts and package mirrors, and per-pod bandwidth limits are not enough to prevent this.
## Conclusion
OpenAI found Kubernetes flexible enough to handle demanding ML workloads at 7,500 nodes, though it still needs improvement in areas like metrics and network shaping. The team plans to keep working on how Kubernetes scales.