页面简介
Terminal Velocity Matching (TVM) is a new single-stage training paradigm for efficient generation. While achieving the same sample quality, it exhibits 25x speedup compared to standard diffusion models when trained from scratch.
正文摘录
Pushing the Limit of Efficient Inference-Time Scaling with Terminal Velocity MatchingIntroductionConceptual IllustrationTraining and System Designs at ScaleWhat’s NextReferencesTop Quiz AnswersHere's a fun challenge: We have a carousel of images, organized into columns. In each column, one image was generated by 4-step TVM and the other by 50x2-step diffusion. Can you tell which is which?“A panoramic view of a volcanic island shows a plume of smoke rising dramatically from the crater, while black lava rock slopes meet turquoise ocean waves below. Small fishing boats float near the shore, their bright hulls contrasting with the rugged coastline, as seabirds wheel overhead in the humid tropical air.”“A woman with a gentle expression and flowing hair sits elegantly on a majestic horse, set against a serene landscape with rolling hills and a clear sky, cinematic, dramatic, equestrian, nostalgic.”“A modern art gallery displays bold abstract paintings hung evenly along the white walls. A massive sculpture made of twisted metal rises from the center of the floor.”“A close-up of an elderly woman with silver hair pulled back loosely, her gentle smile illuminated by diffused window light, the soft interior behind her fading into creamy blur, the warmth of afternoon sun giving her face a timeless glow, nostalgic, tender, emotional, serene.”“Drone footage of a close-up of a golden retriever perched on a cliff face with a lush jungle canopy below. The scene is bright and stunningly detailed. Dynamic shot, 35mm film.”“A close-up of an older man with a soft white beard, his face illuminated by the cool glow of a streetlamp on a rainy night, raindrops catching on his eyelashes, the city lights behind him dissolving into colorful bokeh, reflective, moody, deeply atmospheric.”“A wide canyon landscape unfolds beneath a blazing afternoon sun, its layered red and orange cliffs towering over a winding river far below. Sparse shrubs cling to rocky ledges, and an eagle circles above the jagged ridges. Shadows stretch dramatically across the canyon floor, emphasizing the immensity of the scene.”“Ultra-realistic portrait of a cookie with expressive chocolate chip eyes, wearing a tiny explorer's hat. The cookie stands on a mound of cocoa powder with dramatic shadows cast by a spotlight, while the kitchen background is softly blurred. Quirky, textured, rich contrast.”“A panoramic view of a volcanic island shows a plume of smoke rising dramatically from the crater, while black lava rock slopes meet turquoise ocean waves below. Small fishing boats float near the shore, their bright hulls contrasting with the rugged coastline, as seabirds wheel overhead in the humid tropical air.”“A woman with a gentle expression and flowing hair sits elegantly on a majestic horse, set against a serene landscape with rolling hills and a clear sky, cinematic, dramatic, equestrian, nostalgic.”“A modern art gallery displays bold abstract paintings hung evenly along the white walls. A massive sculpture made of twisted metal rises from the center of the floor.”“A close-up of an elderly woman with silver hair pulled back loosely, her gentle smile illuminated by diffused window light, the soft interior behind her fading into creamy blur, the warmth of afternoon sun giving her face a timeless glow, nostalgic, tender, emotional, serene.”“Drone footage of a close-up of a golden retriever perched on a cliff face with a lush jungle canopy below. The scene is bright and stunningly detailed. Dynamic shot, 35mm film.”“A close-up of an older man with a soft white beard, his face illuminated by the cool glow of a streetlamp on a rainy night, raindrops catching on his eyelashes, the city lights behind him dissolving into colorful bokeh, reflective, moody, deeply atmospheric.”“A wide canyon landscape unfolds beneath a blazing afternoon sun, its layered red and orange cliffs towering over a winding river far below. Sparse shrubs cling to rocky ledges, and an eagle circles above the jagged ridges. Shadows stretch dramatically across the canyon floor, emphasizing the immensity of the scene.”“Ultra-realistic portrait of a cookie with expressive chocolate chip eyes, wearing a tiny explorer's hat. The cookie stands on a mound of cocoa powder with dramatic shadows cast by a spotlight, while the kitchen background is softly blurred. Quirky, textured, rich contrast.”“A panoramic view of a volcanic island shows a plume of smoke rising dramatically from the crater, while black lava rock slopes meet turquoise ocean waves below. Small fishing boats float near the shore, their bright hulls contrasting with the rugged coastline, as seabirds wheel overhead in the humid tropical air.”“A woman with a gentle expression and flowing hair sits elegantly on a majestic horse, set against a serene landscape with rolling hills and a clear sky, cinematic, dramatic, equestrian, nostalgic.”“A modern art gallery displays bold abstract paintings hung evenly along the white walls. A massive sculpture made of twisted metal rises from the center of the floor.”“A close-up of an elderly woman with silver hair pulled back loosely, her gentle smile illuminated by diffused window light, the soft interior behind her fading into creamy blur, the warmth of afternoon sun giving her face a timeless glow, nostalgic, tender, emotional, serene.”“Drone footage of a close-up of a golden retriever perched on a cliff face with a lush jungle canopy below. The scene is bright and stunningly detailed. Dynamic shot, 35mm film.”“A close-up of an older man with a soft white beard, his face illuminated by the cool glow of a streetlamp on a rainy night, raindrops catching on his eyelashes, the city lights behind him dissolving into colorful bokeh, reflective, moody, deeply atmospheric.”“A wide canyon landscape unfolds beneath a blazing afternoon sun, its layered red and orange cliffs towering over a winding river far below. Sparse shrubs cling to rocky ledges, and an eagle circles above the jagged ridges. Shadows stretch dramatically across the canyon floor, emphasizing the immensity of the scene.”“Ultra-realistic portrait of a cookie with expressive chocolate chip eyes, wearing a tiny explorer's hat. The cookie stands on a mound of cocoa powder with dramatic shadows cast by a spotlight, while the kitchen background is softly blurred. Quirky, textured, rich contrast.”"TL;DR, Terminal Velocity Matching (TVM) is a new single-stage training paradigm for efficient generation. While achieving the same sample quality, it exhibits 25x speedup compared to standard diffusion models when trained from scratch."Diffusion models and Flow Matching are the powerhouse behind current state-of-the-art Text-to-Image and Text-to-Video models. Despite their high quality, they are extremely expensive to serve for inference due to them requiring many expensive neural network calls (e.g. 100 calls) to obtain high-quality samples. In search of generative paradigms beyond diffusion models, we released a pioneering work, Inductive Moment Matching (IMM), which introduced the notion of efficient inference-time scaling and proposed to redesign pretraining algorithms that unlock one- and few-step capabilities without sacrificing quality.TVM pushes efficient inference-time scaling even further, achieving higher quality with fewer iterations.However, despite theoretical soundness, IMM suffers from a few fundamental limitations that prevented it from being utilized in large-scale pre-training, most notably the multi-sample training objective and dependence on high precision (FP16 as opposed to BF16).Our new work, Terminal Velocity Matching (TVM), is similarly motivated towards this goal and pushes the limit of efficient inference-time scaling even further while focusing on much more scalable training techniques. Similar to IMM and Flow Matching, TVM is a principled training framework that shares tight connection to distribution matching, a fundamental concept in generative modeling, and subsumes Flow Matching as a special case. However, in contrast to IMM, we are able to scale TVM pre-training to 10B+ parameter diffusion transformers with ease. In addition to our theoretical contributions, we focus on model design choices and engineering efforts to support our approach. Here are some samples from our new Text-to-Image model trained entirely from scratch using TVM as the pre-training objective. All following samples are sampled with only 4 steps (i.e. 4 neural network calls)."’Terminal Velocity Matching’ projected in massive glowing letters onto the rugged face of a cliff at dusk, the bright text illuminating the texture of the stone with dramatic contrast. The surrounding landscape fades into cool blues and purples as the last light of day disappears behind the mountains. The surreal scale and luminous projection create a powerful, atmospheric visual.”“A captivating shot of a sleek, black motorcycle parked against a graffiti-covered urban wall. The vibrant colors and chaotic patterns of the graffiti contrast sharply with the polished chrome and matte black finish of the motorcycle, creating a dynamic and edgy visual. The lighting is soft, with overcast daylight gently illuminating the scene, casting subtle reflections off the bike’s surface. The composition is slightly angled, focusing on the motorcycle’s silhouette against the vibrant backdrop, evoking a sense of rebellion and freedom.”“A delicate, orange-hued fox formed from intricately arranged sliced persimmons, its slender body and legs crafted from the curved fruit, with a tail that elegantly curls into a swirling pattern of peeled clementine segments, set against a muted, earthy background, warm light, organic, still life, fruit sculpture, culinary art.”“A giant protest banner fills the entire scene, stretched taut and painted with huge red block letters reading ‘JUSTICE NOW.’ The fabric shows creases and weather stains, but the words remain vivid and forceful.”“A close-up of a teenage boy with braces and sof