techlist.io

Imagenet

4 posts

OpenAI2024-10-223 min readCurated summary

Simplifying, stabilizing, and scaling continuous-time consistency models

# Simplifying, Stabilizing, and Scaling Continuous-Time Consistency Models Diffusion models produce high-quality images, 3D models, audio, and video, but they need dozens to hundreds of sequential steps to sample. The authors introduce sCM, a simplified formulation of continuous-time consistency models that stabilizes training at large scale. A 1.5B-parameter sCM generates samples with quality comparable to leading diffusion models in just two steps, roughly a 50x wall-clock speedup. ## Why Diffusion Sampling Is Slow - Diffusion models generate samples through a long sequence of denoising steps, which limits efficiency for real-time use. - Existing distillation methods can speed up sampling, but they often bring high compute costs, complex training, or reduced sample quality. ## The sCM Approach - The authors simplify the theoretical formulation of continuous-time consistency models and further stabilize their training. - This enabled scaling to 1.5 billion parameters on ImageNet at 512×512 resolution, which the authors describe as unprecedented for continuous-time consistency models. - Consistency models aim to map noise directly to a clean sample in one step, rather than following the gradual path of a diffusion model. - sCM distills knowledge from a pre-trained diffusion model (the "teacher"). ## Performance and Scaling Behavior - The largest model generates a single sample in 0.11 seconds on one A100 GPU, with no inference optimization. - Evaluation uses Fréchet Inception Distance (FID), where lower is better, and effective sampling compute, which estimates total compute per sample. - Two-step sCM samples achieve FID scores within 10% (relative) of the teacher diffusion model, which needs hundreds of steps, while using less than 10% of its effective sampling compute. - The relative FID gap stays consistent across several orders of magnitude of model size, so the absolute quality gap shrinks as models scale. - Adding sampling steps further reduces the quality gap. ## Limitations - The best sCMs still depend on pre-trained diffusion models for initialization and distillation, leaving a small but consistent quality gap versus the teacher. - FID is an imperfect proxy for sample quality, so close FID scores don't always mean close visual quality. Evaluation may need to vary by application. ## Conclusion sCM makes continuous-time consistency models practical at large scale, offering diffusion-level sample quality with two sampling steps. The authors plan to keep improving inference speed and sample quality for real-time generative AI across image, audio, and video. For applications where latency matters, a two-step consistency model is a strong alternative to a full diffusion sampler, though teams should validate quality beyond FID.

OpenAI2024-06-192 min readCurated summary

Improved Techniques for Training Consistency Models

Consistency models can generate high-quality samples in a single step without adversarial training, but current versions rely on distillation from pre-trained diffusion models and on learned metrics like LPIPS, which limit their quality and bias evaluation. This work presents improved techniques for consistency training, in which models learn directly from data without distillation. With these changes, the models reach FID scores that beat distillation-based results in both one-step and two-step sampling. ### Limits of Distillation and LPIPS - Distillation caps a consistency model's quality at that of the pre-trained diffusion model it learns from. - LPIPS, a learned perceptual metric, introduces undesirable bias into evaluation. ### Improved Consistency Training - The authors analyze the theory of consistency training and find a previously overlooked flaw. They fix it by removing the Exponential Moving Average from the teacher consistency model. - Pseudo-Huber losses from robust statistics replace learned metrics such as LPIPS. - A lognormal noise schedule is introduced for the consistency training objective. - The total number of discretization steps doubles every set number of training iterations. - Better hyperparameter tuning is applied alongside these modifications. ### Results on CIFAR-10 and ImageNet 64×64 - One-step sampling achieves FID scores of 2.51 on CIFAR-10 and 3.25 on ImageNet 64×64. - These one-step scores are 3.5× and 4× better than prior consistency training approaches. - Two-step sampling lowers the FID scores to 2.24 on CIFAR-10 and 2.77 on ImageNet 64×64. - The two-step results surpass distillation-based results in both one-step and two-step settings. - The gap between consistency models and other state-of-the-art generative models narrows.

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.

OpenAI2017-07-162 min readCurated summary

Robust adversarial inputs

Researchers have created adversarial images that stay effective across different scales and viewing perspectives, which challenges the view that self-driving cars would be hard to fool because they capture images from many angles. Standard adversarial examples break under small image transformations, but the authors show that deliberately optimizing against a range of transformations produces perturbations that remain adversarial. The result is a single image that fools a neural network classifier under scaling, rotation, translation, noise, and other changes. ## Why Standard Adversarial Examples Are Fragile - Ordinary adversarial examples, created with projected gradient descent, fail under simple image transformations. - In the post's demo, a cat image perturbed to be classified as a "desktop computer" by Inception v3 (trained on ImageNet) was correctly relabeled as a "tabby cat" after a zoom of just 1.002. - The authors suspected that adversarial examples could be made robust with deliberate effort, since prior work showed they can transfer to the physical world. ## Scale-invariant Adversarial Examples - Instead of optimizing against one fixed view, the method optimizes over an ensemble of stochastic classifiers that randomly rescale the input before classifying it. - This produces perturbations that are adversarial across scales. - Even when only the pixels belonging to the cat are modified, a single perturbed image can be adversarial at all desired scales at once. ## Transformation-invariant Adversarial Examples - The same technique is extended by adding random rotations, translations, scaling, noise, and mean shifts during optimization. - The resulting single input remains adversarial under any of these transformations. - Transformations are sampled randomly at test time, which shows the example is robust across the whole distribution of transformations, not just a few cherry-picked ones. ## Implications The findings suggest that vision systems relying on multiple viewpoints are not automatically protected against adversarial attacks, since an attacker can deliberately optimize an input to survive those variations.