techlist.io

Audio Generation

3 posts

OpenAI2025-09-293 min readCurated summary

Sora 2 is here

Sora 2 is OpenAI's video and audio generation model, which the authors present as a major step toward general-purpose world simulators. They argue it models physical behavior far more faithfully than earlier systems, including how failures happen, not just successes. The post also introduces a social iOS app built around a "characters" feature that lets users insert their own likeness into generated scenes. The page notes that the Sora product was discontinued on April 26, 2026. ## Physical Accuracy and World Simulation - The authors describe Sora 2 as their "GPT-3.5 moment" for video, following the original Sora model from February 2024, which was the first to show signs of working at all. - It handles difficult motion such as Olympic gymnastics, paddleboard backflips that reflect buoyancy and rigidity, and figure skating jumps with a cat on the skater's head. - Earlier video models often bent reality to satisfy a prompt, such as a missed basketball shot teleporting into the hoop. Sora 2 instead rebounds the ball off the backboard. - Remaining errors tend to look like mistakes made by an internal agent that is modeling the scene, which the authors see as important, since a useful world simulator must be able to represent failure. - The model follows multi-shot instructions while keeping the world state consistent, and it performs well in realistic, cinematic, and anime styles. - It generates synchronized dialogue, sound effects, and background soundscapes. - It can insert a real person, animal, or object, captured from a short video, into any generated environment with accurate appearance and voice. ## Characters and the Social App - The iOS app, simply called "Sora," supports creating videos, remixing other users' generations, and browsing a customizable feed. - Users complete a one-time video and audio recording to verify identity and capture their likeness, after which they can appear in any Sora scene. - The app launched internally at OpenAI first, where the authors say employees made new friends through the feature. - Access is invite-based so that users join with their friends, which the authors frame as a way to strengthen community as other platforms move away from the social graph. ## Responsible Launch Measures - **Feed control:** Users can steer the feed with natural language instructions, using a recommender built on OpenAI's language models. The app periodically checks user wellbeing and offers feed adjustments. - **Default feed behavior:** Content leans toward people users follow or interact with, and prioritizes videos likely to inspire the user's own creations. The authors say the app is not optimized for time spent and is designed to encourage creation over consumption. - **Teen protections:** Teens have daily limits on feed generations and stricter character permissions. Human moderators review bullying cases, and parents can use ChatGPT-based controls to override infinite scroll limits, disable personalization, and manage direct messages. - **Likeness control:** Users decide who can use their character, can revoke access, and can remove any video containing their character at any time. - **Monetization:** The only current plan is to let users pay for extra generations when demand exceeds available compute. ## Availability and Roadmap - The rollout began in the U.S. and Canada, with expansion to other countries planned. - Sora 2 is free at launch with generous but compute-limited usage. ChatGPT Pro users get access to the higher-quality Sora 2 Pro model. - An API release was planned, and Sora 1 Turbo remained available, with existing creations kept in the sora.com library.

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.

OpenAI2019-04-223 min readCurated summary

Generative modeling with sparse transformers

# Generative Modeling with Sparse Transformers OpenAI's Sparse Transformer is a deep neural network that sets new benchmarks for predicting the next element in a sequence, whether text, images, or audio. By replacing standard self-attention with a sparse variant that scales as O(N√N) instead of O(N²), the model handles sequences roughly 30 times longer than previously feasible, reaching tens of thousands of elements across hundreds of layers. The authors position this as a step toward modeling the long-range, subtle dependencies that complex data like images and audio demand. ## Why Dense Attention Becomes a Bottleneck - In Transformers, every output element attends to every input element, requiring an N×N attention matrix for each layer and attention head. - For high-dimensional data, this memory cost grows quickly. A deep 64-layer, 4-head Transformer needs about 9.6 GB to store attention matrices for a 32×32 CIFAR-10 image, and about 154 GB for a 64×64 ImageNet image. Typical deep learning GPUs have 12–32 GB. - Recomputing attention matrices from checkpoints during backpropagation keeps the dominant memory cost independent of depth, which allows training networks up to 128 layers deep. These deeper models outperformed shallower ones on benchmarks like CIFAR-10. - Training at this depth required changes to the order of operations within the Transformer block and a modified initialization scheme. ## Sparse Attention Patterns - Each output position attends only to a subset of input positions, ideally about √N elements instead of N, reducing complexity to O(N√N). - Visualizing learned attention in deep image models showed many heads with structured, sparse patterns, though some layers attended across the whole image. - To preserve global reach, the authors use a two-dimensional factorization in which any position can reach any other in two sparse steps: - **Strided attention** has each position attend to its row and column, suited to images. - **Fixed attention** attends to a fixed set of column positions and all later elements, suited to data without a 2D structure, such as text. ## Results - **CIFAR-10 (bits per dim):** The 59M-parameter Sparse Transformer reached 2.80, beating PixelCNN++ (2.92), Image Transformer (2.90), and PixelSNAIL (2.85). - **Enwik8 (bits per byte):** The 95M-parameter model reached 0.99, matching the 277M-parameter Transformer-XL and outperforming the 88M version (1.03). - **ImageNet 64×64 (bits per dim):** The 152M-parameter model reached 3.44, improving on SPN 150M (3.52) and Gated PixelCNN (3.57). - Sparse attention also achieved lower loss than full attention while running significantly faster, which the authors suggest may reflect a useful inductive bias or an optimization issue with dense attention. ## Generation Capabilities - **Images:** Models trained on 64×64 ImageNet produce completions that show coherent global structure. Unconditional samples at temperature 1.0 reflect the full learned distribution, so some look unusual. - **Raw audio:** By changing the position embeddings, the same architecture generates raw waveforms. The model produced 65,000-sample sequences, about 5 seconds of classical music. - **Open-source kernels:** The team released block-sparse GPU kernels and example sparse attention functions, since implementing sparse attention by slicing query and key matrices is otherwise cumbersome. ## Limitations and Future Directions - The attention patterns introduced are preliminary. The authors see learned sparsity patterns as a promising direction for future architectures. - Autoregressive generation remains impractical for very high-resolution images or video. The optimized attention primitives may still be useful when combined with multi-scale approaches.