search
HomeTechnology peripheralsAIApple's 'matryoshka”-style diffusion model reduces the number of training steps by 70%!

A latest research by Apple has greatly improved the performance of diffusion models on high-resolution images.

Using this method, the number of training steps for images with the same resolution is reduced by more than 70%.

At the resolution of 1024×1024, the picture quality is directly full, and the details are clearly visible.

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

Apple named this achievement MDM. DM is the abbreviation of Diffusion Model, and the first M stands for Matryoshka.

Just like a real matryoshka doll, MDM nests a low-resolution process within a high-resolution process, and it is nested in multiple layers.

The high- and low-resolution diffusion processes are performed simultaneously, which greatly reduces the resource consumption of the traditional diffusion model in the high-resolution process.

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

For a 256×256 resolution image, in an environment with a batch size of 1024, the traditional diffusion model needs to be trained for 1.5 million steps, while the MDM only requires 390,000, a decrease of more than 70%.

In addition, MDM adopts end-to-end training and does not rely on specific data sets and pre-trained models. It improves speed while still ensuring generation quality and is flexible to use.

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

Not only can you draw high-resolution images, but you can also synthesize 16×256² videos.

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

#Some netizens commented that Apple finally connected text to images.

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

So, how exactly does MDM’s “matryoshka” technology work?

Combining overall and progressive

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

Before starting training, the data needs to be preprocessed. High-resolution images will be resampled using a certain algorithm. Get different resolution versions.

Then we use these data of different resolutions for joint UNet modeling. The small UNet handles low resolution and is nested into the large UNet that handles high resolution.

Through cross-resolution connections, features and parameters can be shared between UNets of different sizes.

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

#MDM training is a step-by-step process.

Although the modeling is jointly performed, the training process will not be performed for high resolution at the beginning, but will gradually expand from low resolution.

This can avoid a huge amount of calculations, and also allows the pre-training of low-resolution UNet to accelerate the high-resolution training process.

During the training process, higher-resolution training data will be gradually added to the overall process, allowing the model to adapt to the progressively increasing resolution and smoothly transition to the final high-resolution process.

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

However, overall, after the high-resolution process is gradually added, MDM training is still an end-to-end joint process.

In joint training at different resolutions, loss functions at multiple resolutions participate in parameter updates together, avoiding the accumulation of errors caused by multi-stage training.

Each resolution has a corresponding reconstruction loss of the data item. The losses of different resolutions are weighted and merged. In order to ensure the generation quality, the low-resolution loss has a larger weight.

In the reasoning phase, MDM also adopts a strategy that combines parallelism and progression.

In addition, MDM also uses a pre-trained image classification model (CFG) to guide the generated samples to be optimized in a more reasonable direction, and adds noise to low-resolution samples to make them closer to high-resolution samples. The distribution of the sample.

So, what is the effect of MDM?

Fewer parameters rival SOTA

In terms of images, on the ImageNet and CC12M data sets, MDM's FID (the lower the value, the better the effect) and CLIP performance are significantly better than the ordinary diffusion model.

FID is used to evaluate the quality of the image itself, and CLIP illustrates the degree of matching between the image and text instructions.

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

Compared with SOTA models such as DALL E and IMAGEN, the performance of MDM is also very close, but the training parameters of MDM are far less than these models.

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

Not only is it better than the ordinary diffusion model, the performance of MDM also exceeds that of other cascade diffusion models.

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

Ablation experiment results show that the more steps of low-resolution training, the more obvious the MDM effect enhancement; on the other hand, the more nesting levels, the same results will be achieved. The CLIP score requires fewer training steps.

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

The selection of CFG parameters is a result of the trade-off between FID and CLIP after multiple tests (a high CLIP score corresponds to an increase in CFG strength).

Apples matryoshka”-style diffusion model reduces the number of training steps by 70%!

The above is the detailed content of Apple's 'matryoshka”-style diffusion model reduces the number of training steps by 70%!. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
How to Run LLM Locally Using LM Studio? - Analytics VidhyaHow to Run LLM Locally Using LM Studio? - Analytics VidhyaApr 19, 2025 am 11:38 AM

Running large language models at home with ease: LM Studio User Guide In recent years, advances in software and hardware have made it possible to run large language models (LLMs) on personal computers. LM Studio is an excellent tool to make this process easy and convenient. This article will dive into how to run LLM locally using LM Studio, covering key steps, potential challenges, and the benefits of having LLM locally. Whether you are a tech enthusiast or are curious about the latest AI technologies, this guide will provide valuable insights and practical tips. Let's get started! Overview Understand the basic requirements for running LLM locally. Set up LM Studi on your computer

Guy Peri Helps Flavor McCormick's Future Through Data TransformationGuy Peri Helps Flavor McCormick's Future Through Data TransformationApr 19, 2025 am 11:35 AM

Guy Peri is McCormick’s Chief Information and Digital Officer. Though only seven months into his role, Peri is rapidly advancing a comprehensive transformation of the company’s digital capabilities. His career-long focus on data and analytics informs

What is the Chain of Emotion in Prompt Engineering? - Analytics VidhyaWhat is the Chain of Emotion in Prompt Engineering? - Analytics VidhyaApr 19, 2025 am 11:33 AM

Introduction Artificial intelligence (AI) is evolving to understand not just words, but also emotions, responding with a human touch. This sophisticated interaction is crucial in the rapidly advancing field of AI and natural language processing. Th

12 Best AI Tools for Data Science Workflow - Analytics Vidhya12 Best AI Tools for Data Science Workflow - Analytics VidhyaApr 19, 2025 am 11:31 AM

Introduction In today's data-centric world, leveraging advanced AI technologies is crucial for businesses seeking a competitive edge and enhanced efficiency. A range of powerful tools empowers data scientists, analysts, and developers to build, depl

AV Byte: OpenAI's GPT-4o Mini and Other AI InnovationsAV Byte: OpenAI's GPT-4o Mini and Other AI InnovationsApr 19, 2025 am 11:30 AM

This week's AI landscape exploded with groundbreaking releases from industry giants like OpenAI, Mistral AI, NVIDIA, DeepSeek, and Hugging Face. These new models promise increased power, affordability, and accessibility, fueled by advancements in tr

Perplexity's Android App Is Infested With Security Flaws, Report FindsPerplexity's Android App Is Infested With Security Flaws, Report FindsApr 19, 2025 am 11:24 AM

But the company’s Android app, which offers not only search capabilities but also acts as an AI assistant, is riddled with a host of security issues that could expose its users to data theft, account takeovers and impersonation attacks from malicious

Everyone's Getting Better At Using AI: Thoughts On Vibe CodingEveryone's Getting Better At Using AI: Thoughts On Vibe CodingApr 19, 2025 am 11:17 AM

You can look at what’s happening in conferences and at trade shows. You can ask engineers what they’re doing, or consult with a CEO. Everywhere you look, things are changing at breakneck speed. Engineers, and Non-Engineers What’s the difference be

Rocket Launch Simulation and Analysis using RocketPy - Analytics VidhyaRocket Launch Simulation and Analysis using RocketPy - Analytics VidhyaApr 19, 2025 am 11:12 AM

Simulate Rocket Launches with RocketPy: A Comprehensive Guide This article guides you through simulating high-power rocket launches using RocketPy, a powerful Python library. We'll cover everything from defining rocket components to analyzing simula

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.