techlist.io

Gpt 2

6 posts

OpenAI2025-11-123 min readCurated summary

Understanding neural networks through sparse circuits

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

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.

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

GPT-2: 6-month follow-up

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

OpenAI2019-04-244 min readCurated summary

MuseNet

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

OpenAI2019-02-133 min readCurated summary

Better language models and their implications

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