CoReDiT: Spatial Coherence-Guided Token Pruning and Reconstruction for Efficient Diffusion Transformers
CoReDiT is an efficient token pruning framework for Diffusion Transformers that leverages spatial coherence to identify and skip redundant tokens while reconstructing their outputs via neighboring tokens, achieving significant computational speedups and memory savings without compromising visual quality.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to paint a massive, incredibly detailed mural on a wall. You have a team of artists (the "tokens") standing in front of the wall, and every single artist needs to talk to every other artist to decide exactly what color to put on their specific spot. This ensures the picture looks perfect, but it's exhausting. If you have 10,000 artists, they have to hold 100 million conversations just to agree on the next brushstroke. This is how current AI image generators (called Diffusion Transformers) work: they are brilliant but incredibly slow and hungry for computer power.
The paper introduces a new method called CoReDiT to make this process faster without ruining the painting. Here is how it works, broken down into three simple steps:
1. The "Bored Artist" Detector (Spatial Coherence)
In a typical painting, some areas are very busy and detailed (like a face or a tree), while others are just plain, boring backgrounds (like a blue sky or a smooth wall).
- The Problem: The old AI treats every artist the same, forcing the artists painting the boring blue sky to have the same intense conversations as the artists painting the face.
- The CoReDiT Solution: CoReDiT looks at the artists and asks, "Who is standing next to someone who looks exactly like them?" If an artist is in a boring, uniform area, their neighbors are practically clones. CoReDiT gives these "bored" artists a high Coherence Score.
- The Action: It tells the high-scoring (redundant) artists, "You don't need to talk to everyone right now. Take a break." This skips the expensive conversations for the boring parts of the image, saving a massive amount of time.
2. The "Fill-in-the-Blank" Artist (Reconstruction)
If you just told the "bored" artists to go home and stop working, you'd end up with holes in your mural. The picture would look broken and patchy.
- The Problem: Simply removing tokens (artists) creates visual glitches.
- The CoReDiT Solution: Instead of leaving a hole, CoReDiT uses the artists who did stay to fill in the blanks. Because the "bored" artists were so similar to their neighbors, the remaining artists can easily guess what the missing ones would have painted.
- The Action: It's like a game of "telephone" where the remaining artists whisper the correct color to the empty spots. This ensures the final image looks smooth and complete, with no visible gaps, even though fewer artists were actually doing the heavy lifting.
3. The Smart Manager (Progressive Pruning)
Not all parts of the painting process are the same.
- The Problem: At the very beginning of making an image, the picture is just static noise (like TV snow), so almost everything looks the same and is redundant. But at the very end, when the details are being sharpened, every single brushstroke matters. If you cut too many artists too early, the AI gets confused. If you cut too many at the end, the picture gets blurry.
- The CoReDiT Solution: CoReDiT acts like a smart manager who learns the perfect schedule. It starts by letting the AI cut out many redundant artists when the image is just noise. As the image gets clearer and more detailed, the manager slowly stops cutting so many artists, ensuring the critical details get full attention.
- The Action: It automatically figures out which parts of the AI brain (blocks) and which stages of the process (time steps) can handle the most cuts, adjusting the plan on the fly to keep the quality high.
The Results
By using this method, the authors found that:
- Speed: The AI runs 1.33 times faster on powerful cloud computers and 1.72 times faster on mobile phone chips.
- Efficiency: It cuts the heavy math work (computations) by up to 55%.
- Quality: The images still look just as good as the slow version, with no obvious cracks or weird artifacts.
- Bonus: Because it uses less memory, it can even generate higher-resolution images on phones that would normally crash due to running out of memory.
In short, CoReDiT is like hiring a smart foreman for an art project who knows exactly when to let the crew rest and when to keep them working hard, resulting in a masterpiece that gets done much faster.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.