Latest / Daily Paper Cast / VC-Attention: Value Smoothing and Softmax Casting for Low-bit Attention
Transcript
- 0:03Evan: Welcome back to Daily Paper Cast.
- 0:06Ashley: Today's paper is from the Hugging Face daily paper list of September 17, 2026, with 30 upvotes.
- 0:14Evan: The paper is titled 'VC-Attention: Value Smoothing and Softmax Casting for Low-bit Attention.'
- 0:21Ashley: It is authored by Xingyang Li, Dongyun Zou, et al., with corresponding author Song Han from MIT.
- 0:29Evan: Let's dive into the introduction.
- 0:31Ashley, can you start by giving us some background on this paper's context and objectives?
- 0:36Ashley: Video diffusion models have gained significant attention for their ability to generate high-resolution video clips with coherent motion.
- 0:44Recent models like MiniMax-H3, Wan2.2, and HunyuanVideo-1.5 have approached the quality of commercial video generation systems.
- 0:54These models are based on Diffusion Transformers, or DiTs, which apply self-attention at every layer to sequences of spatiotemporal tokens from the latent video.
- 1:04Evan: And what challenges do these models face, particularly regarding attention mechanisms?
- 1:10Ashley: The major challenge lies in the cost of attention during inference, especially for high-resolution and long-duration videos.
- 1:17For instance, generating a 5-second 720p clip with Wan2.2-14B involves around 70,000 tokens, with attention processes accounting for over 64% of the generation time on an RTX 5090 GPU.
- 1:32The arithmetic operations for the score product QK and the value product PV grow quadratically with the token count, making them computationally expensive.
- 1:41Evan: Interesting.
- 1:43How does low-bit attention come into play to address these issues?
- 1:47Ashley: Low-bit Tensor Cores can significantly accelerate these processes.
- 1:51FP8, for instance, doubles the dense BF16 peak performance on Hopper and Blackwell datacenter GPUs, while FP4 reaches eight times the peak performance on the RTX 5090.
- 2:02However, there are two main obstacles: accuracy and efficiency.
- 2:06Typically, low-bit quantization uses a single shared scale for each block of an operand, which gets fixed by the largest entries, leading to reduced precision for the other entries.
- 2:16This limits accuracy due to outliers.
- 2:18Evan: So, how is speed affected by this low-bit approach?
- 2:23Ashley: Speed is largely constrained by the softmax operation.
- 2:27While low-bit Tensor Cores effectively accelerate matrix multiplications, the high-precision exponential required between them becomes the longest pipeline stage, particularly on datacenter GPUs.
- 2:39Evan: Got it.
- 2:39So what does this paper propose to enhance both accuracy and speed in low-bit attention?
- 2:45Ashley: This paper introduces VC-Attention, a training-free low-bit attention framework.
- 2:51It pairs a method called Value smoothing with a mechanism called ExpCast-FP8.
- 2:56Value smoothing reorders tokens through online clustering, quantizes the residual after subtracting the block mean, and restores that mean from the value scaled by the row sum maintained by online softmax.
- 3:08ExpCast-FP8 maps log-domain scores directly to E4M3 probability codes using a fused multiply-add operation, eliminating the need for FP32 exponential calculations and format conversions.
- 3:21Evan: Effectively simplifying and speeding up the softmax process?
- 3:26Ashley: Exactly.
- 3:27By doing this, VC-Attention improves fidelity over existing low-bit baselines and speeds up attention computation.
- 3:35The paper reports that VC-Attention accelerates attention over BF16 FlashAttention-4 by up to 1.59 times on datacenter GPUs like the B200 and H200, and even more significantly on workstation GPUs.
- 3:50Evan: Impressive!
- 3:52How does the proposed framework perform across different models and hardware environments?
- 3:57Ashley: The framework is implemented on multiple GPUs and tested across models like Wan2.2, LongCat-Video, HunyuanVideo-1.5, and MiniMax-H3.
- 4:08Results show notable improvements in fidelity metrics and significant speedups in attention kernel execution.
- 4:14For instance, VC-Attention achieves a 1.13–1.70 times faster generation end-to-end.
- 4:22Evan: That sounds like a substantial contribution to the field of video generation using Diffusion Transformers.
- 4:29Ashley: Indeed it is.
- 4:30This concludes the introduction section of our discussion on VC-Attention.
- 4:36Evan: Alright, let's dive into the methods proposed in this paper, shall we?
- 4:41Ashley: Sure, Evan.
- 4:42The core methods discussed here address two primary challenges in low-bit attention: outlier values that limit accuracy and the efficiency of the softmax operation.
- 4:53These methods are Value smoothing, referred to as V-Smooth, and ExpCast-FP8, a direct probability encoding technique.
- 5:00Evan: What is the idea behind Value smoothing?
- 5:03Ashley: The basic idea of Value smoothing is to reduce the impact of outlier values, which can skew the quantization scale of a block, leading to reduced precision for other values within that block.
- 5:15V-Smooth tackles this by grouping value tokens with similar magnitudes using an online k-means clustering algorithm.
- 5:23Evan: How exactly does this clustering help with value quantization?
- 5:26Ashley: By clustering, tokens with similar values are grouped into the same hardware block.
- 5:31This allows for more effective mean subtraction within each block.
- 5:35Essentially, it means we subtract a block mean from each token before quantizing the residual values.
- 5:42Evan: I see, and how is this mean restored during the decoding process?
- 5:48Ashley: During decoding, the mean is restored by adding it back to each token.
- 5:52This operation runs within the same accumulator as the product of the softmax probability and the residual value.
- 5:59The value tokens are permuted before the attention operation, and this permutation is based on their k-means cluster labels, ensuring outliers share the same block.
- 6:10Evan: How does this permutation maintain coherence in the output?
- 6:15Ashley: The permutation only affects the internal ordering of tokens for the purpose of quantization.
- 6:20Since both keys and values are permuted together, the overall output of the self-attention mechanism remains unchanged.
- 6:27Evan: That makes sense.
- 6:29Now, what about the softmax operation?
- 6:32How does ExpCast-FP8 improve its efficiency?
- 6:35Ashley: ExpCast-FP8 is designed to bypass the computationally expensive FP32 exponential function used in the softmax calculation.
- 6:45Instead of calculating the exponential and then converting it to the 8-bit format, ExpCast-FP8 directly maps log-domain scores to E4M3 probability codes using a fused multiply-add operation.
- 6:58Evan: Interesting, so how does this fused operation work?
- 7:03Ashley: The fused operation leverages the fact that the E4M3 byte is an affine function of the logarithm of the value it represents.
- 7:11Essentially, ExpCast-FP8 uses a simplified linear map to convert the log-domain score into an 8-bit probability code directly, bypassing the need for an FP32 exponential computation.
- 7:24Evan: And how much performance improvement does this bring?
- 7:28Ashley: According to the paper, ExpCast-FP8 significantly reduces the computational cost of the softmax operation.
- 7:35The proposed method achieves a substantial reduction in latency, making low-bit attention implementations up to 1.59 times faster than BF16 FlashAttention-4 on some datacenter GPUs and even higher on workstation GPUs.
- 7:50Evan: What about the implementation?
- 7:53Were there any specific details on how VC-Attention is implemented across different GPUs?
- 7:59Ashley: Yes.
- 7:59VC-Attention is implemented using a combination of CuTe and CUDA kernels.
- 8:04It has been tested on various GPUs including B200, B300, H200, RTX PRO 6000, and RTX 5090.
- 8:14The method is evaluated across several video models like Wan2.2, LongCat-Video, HunyuanVideo-1.5, and MiniMax-H3.
- 8:23Evan: Ashley, can you share any insights on how the method performs across these different settings?
- 8:31Ashley: Of course.
- 8:32In evaluations, VC-Attention consistently improves over standard low-bit baselines both in accuracy and speed.
- 8:39For instance, in testing, it led to speedups of approximately 2.3 to 3.6 times on workstation GPUs and 1.46 to 1.59 times on datacenter GPUs.
- 8:51The performance was measured using benchmarks like generating clips from MovieGen Bench prompts, ensuring comprehensive and consistent comparisons.
- 8:59Evan: That's impressive.
- 9:01The paper seems to have covered a lot of ground with robust evaluations.
- 9:05Ashley: Indeed.
- 9:06Evaluations included metrics like Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index Measure (SSIM), and Learned Perceptual Image Patch Similarity (LPIPS), all benchmarked against the BF16 outputs of the same models.
- 9:23Evan: And how about the implementation costs tied to these methods?
- 9:28Ashley: A great question.
- 9:29Value smoothing adds an overhead of approximately 3-4% to the attention time, while fusing the preprocessing stages into the quantization kernels significantly reduces the time otherwise spent preparing the tensors.
- 9:42ExpCast-FP8 also incurs no additional overhead other than implementing the fused multiply-add.
- 9:49Evan: Very thorough.
- 9:51So that’s our deep dive into the methods proposed for VC-Attention.
- 9:55Ashley: Exactly, Evan.
- 9:57That wraps up our discussion of the Method section for VC-Attention.
- 10:03Evan: Let's move on to the experiments and results.
- 10:07Ashley, what did the authors set up to test their proposed methods?
- 10:11Ashley: Sure, Evan.
- 10:13The authors implemented VC-Attention on a variety of GPUs including the B200, B300, H200, RTX PRO 6000, and RTX 5090, and evaluated it across several video diffusion models: Wan2.2, LongCat-Video, HunyuanVideo-1.5, and MiniMax-H3.
- 10:35Evan: That's quite a range.
- 10:36What benchmarks or metrics did they use to measure the performance?
- 10:41Ashley: They used several metrics to evaluate both fidelity and speed.
- 10:45Fidelity was measured using Peak Signal-to-Noise Ratio, or PSNR, Structural Similarity Index Measure, or SSIM, and Learned Perceptual Image Patch Similarity, or LPIPS.
- 10:57Speed was evaluated in terms of attention kernel time and end-to-end generation time for video clips.
- 11:03Evan: So, how did VC-Attention fare against existing baselines?
- 11:09Ashley: Really well.
- 11:10The results show that VC-Attention significantly improved fidelity over existing low-bit baselines.
- 11:16When tested on Wan2.2, LongCat-Video, HunyuanVideo-1.5, and MiniMax-H3, VC-Attention led to notable improvements in PSNR, SSIM, and LPIPS scores.
- 11:30Evan: Can you share any specific figures from the results?
- 11:35Ashley: For instance, on the Wan2.2 model at 8 bits, VC-Attention improved PSNR by 2.3 dB and reduced LPIPS by 13% compared to SageAttention2.
- 11:47When fusing ExpCast-FP8, PSNR was still 0.7 to 2.1 dB higher than SageAttention2 across different models.
- 11:56At 4 bits, it improved PSNR by 2.9 dB on Wan2.2 and by 3.6 dB on LongCat-Video over SageAttention3, while reducing LPIPS by up to 41%.
- 12:08Evan: Wow, those are substantial improvements in fidelity.
- 12:12How about the speed improvements?
- 12:15Ashley: VC-Attention significantly sped up the attention computation as well.
- 12:19For example, on the B200 GPU, it made attention 1.59 times faster than BF16 FlashAttention-4 and about 6.02 times faster than SageAttention2.
- 12:31On workstation GPUs, the speedups were even more pronounced.
- 12:35For instance, on the RTX PRO 6000, it accelerated attention by 2.27 times and the end-to-end video generation by 1.36 times.
- 12:45Evan: That’s quite a leap in performance.
- 12:48Did the authors mention any practical implications of these speedups?
- 12:52Ashley: Definitely.
- 12:53Faster attention mechanisms mean quicker video generation which is crucial for real-time applications.
- 13:00Moreover, the improved fidelity ensures higher quality outputs, making VC-Attention highly applicable for commercial video generation systems and other similar tasks where both speed and quality matter.
- 13:12Evan: It's good to see both speed and accuracy benefits.
- 13:16Were there any specific setups or configurations highlighted in their experiments?
- 13:21Ashley: Yes, many.
- 13:22For instance, they grouped the value tokens only in the first quarter of the denoising steps, which proved to be the most efficient.
- 13:29This arrangement provided a good balance of overhead and quality.
- 13:33Also, ExpCast-FP8 was shown to work exceptionally well in 8-bit configurations on datacenter GPUs like B200 and H200, while skipping it for 4-bit setups where different constraints apply.
- 13:46Evan: Were there any ablation studies or additional configurations tested to validate the effectiveness of their methods?
- 13:54Ashley: They conducted detailed ablation studies to understand the impact of grouping steps and fusing different parts of the preprocessing chain.
- 14:02For example, they found that grouping on the first quarter of the denoising steps with ExpCast-FP8 provided the best balance between efficiency and fidelity.
- 14:11Comparing distributed configurations, the speedup gains varied but consistently showed a clear improvement over the baseline methods.
- 14:19Evan: It's fascinating to see such a thorough approach to testing, ensuring all angles are covered.
- 14:25Any insights on how the configurations were managed to ensure consistency across different GPUs?
- 14:31Ashley: Yes, the study was quite detailed in its evaluation protocol, ensuring consistent conditions across different setups.
- 14:38They used uniform prompts and random seeds for each model to maintain a fair comparison.
- 14:44Additionally, they measured attention speedups and end-to-end generation times separately to get precise insights into where the gains were coming from.
- 14:52Evan: That's very methodical.
- 14:55How did they handle any potential variance in the preprocessing stages, especially given the complex operations involved?
- 15:03Ashley: Great question.
- 15:04The team minimized variance by fusing the preprocessing stages into the quantization kernels, ensuring that intermediate high-precision tensors never hit the memory bottleneck.
- 15:15This not only sped up the individual stages but also streamlined the entire pipeline, resulting in noticeable performance improvements across various hardware settings.
- 15:24Evan: It sounds like they were very comprehensive in their evaluation.
- 15:29Any final thoughts on the experimental results?
- 15:32Ashley: The experimental results definitely support the claims made for VC-Attention.
- 15:37Its ability to enhance both speed and fidelity makes it a promising advancement for low-bit video generation using Diffusion Transformers.
- 15:45Evan: That wraps up our discussion on the Experiment section for VC-Attention.
- 15:52Evan: Now that we've covered the experiments, let's move on to situating this work in the context of existing research.
- 15:59Ashley, can you walk us through the Related Work section?
- 16:03Ashley: Sure thing, Evan.
- 16:04The authors begin by discussing efficient video generation approaches.
- 16:08Video diffusion transformers or DiTs have seen improvements from various techniques aimed at reducing their computational cost.
- 16:16For instance, few-step distillation helps shorten the sampling trajectory, as seen in works by Wang et al., 2023, and Ding et al., 2025.
- 16:26Evan: What does few-step distillation involve?
- 16:28Ashley: Few-step distillation essentially involves reducing the number of steps needed to generate a high-quality video clip.
- 16:35This can drastically lower the computational burden during inference.
- 16:39Evan: Got it.
- 16:40What other methods do they mention?
- 16:42Ashley: The paper also discusses feature caching, which reuses activations across adjacent steps to save computational resources.
- 16:50Liu et al., 2025, and Ma et al., 2024 have shown promising results in this area.
- 16:57Then there's distributed engines, like those explored by Fang et al., 2024, which partition the sequence or the transformer blocks across multiple GPUs.
- 17:06Evan: And how about attention-specific improvements?
- 17:10Ashley: Attention mechanisms themselves have seen notable advancements.
- 17:14Sparse attention, for example, leverages the spatiotemporal locality of video to skip most token interactions, reducing computational costs.
- 17:23Static, predicted, and trained patterns for sparse attention have been explored by researchers like Li et al., 2025, and Xi et al., 2025.
- 17:33Evan: Could you elaborate on one of these sparse attention techniques?
- 17:39Ashley: Sure.
- 17:39Predicted sparse attention, as researched by Yang et al., 2025, predicts which tokens are most likely to interact and focuses computational resources on those interactions, effectively skipping unnecessary computations.
- 17:53This makes the process more efficient without sacrificing significant accuracy.
- 17:58Evan: That sounds very efficient.
- 18:00How does this paper's approach compare to these methods?
- 18:03Ashley: This paper's approach, VC-Attention, complements these existing methods by reducing the cost of each interaction rather than altering the attention pattern or sampling schedule.
- 18:14This makes it compatible with many of the other techniques, like sparse attention and few-step distillation, offering a versatile solution.
- 18:22Evan: Interesting.
- 18:23And what about low-bit quantization work?
- 18:26Ashley: Low-bit quantization has seen significant attention, particularly in the context of diffusion models.
- 18:32Many previous works focus on linear layers, introducing techniques like timestep-aware calibration and channel rescaling, as seen in SmoothQuant by Xiao et al., 2023, and AWQ by Lin et al., 2024.
- 18:46There's also QuaRot, which rotates the channels to manage outliers better.
- 18:51Evan: How do these quantization methods relate to the work proposed in this paper?
- 18:57Ashley: Most of these methods address linear layers, but they don't typically handle the operands of the attention product.
- 19:03VC-Attention, on the other hand, directly focuses on optimizing the attention product through innovative low-bit quantization techniques.
- 19:12Specifically, it targets both the accuracy and efficiency limitations that existing methods leave unaddressed.
- 19:19Evan: So this paper essentially fills a gap in the existing solutions for low-bit attention?
- 19:27Ashley: Precisely.
- 19:28It introduces techniques like Value smoothing to manage outliers dynamically and ExpCast-FP8 to streamline the softmax computation.
- 19:37These innovations directly enhance the core operations within the attention mechanism, while being compatible with other improvements in the field.
- 19:45Evan: Sounds like a well-rounded approach.
- 19:48Anything else covered in the Related Work section?
- 19:52Ashley: Yes, they also discuss prior works related to quantized attention mechanisms.
- 19:57For example, FlashAttention, a key comparison in this paper, has seen enhancements through various low-bit implementations, like INT-FlashAttention and SageAttention, which quantize the QK product to INT8 or even INT4.
- 20:12Evan: And how does VC-Attention differentiate from these methods?
- 20:18Ashley: While these methods primarily aim at reducing probability error, VC-Attention focuses on the value error.
- 20:24By employing Value smoothing and a fused softmax, it ensures that not only the probabilities are accurate but that the value representation remains precise as well.
- 20:34Evan: So in essence, VC-Attention targets a critical gap by addressing value errors in addition to probability errors?
- 20:43Ashley: Exactly, Evan.
- 20:44This dual focus on accuracy and efficiency in low-bit attention helps it stand out in the landscape of related works.
- 20:52Evan: That's a great overview of how this paper builds on and complements existing research.
- 20:57Thanks for breaking that down, Ashley.
- 20:59Ashley: My pleasure, Evan.
- 21:01And that wraps up our discussion on the Related Work section.
- 21:06Evan: Let's bring it all together and summarize the key contributions and takeaways of this paper, Ashley.
- 21:13Ashley: Sure, Evan.
- 21:14To recap, the paper introduces VC-Attention, a training-free, low-bit attention framework designed to improve both accuracy and speed in video diffusion transformers.
- 21:24Evan: And how does it achieve these improvements?
- 21:28Ashley: It does so through two primary techniques: Value smoothing, or V-Smooth, and ExpCast-FP8.
- 21:35V-Smooth effectively clusters value tokens to minimize outlier impact and quantizes the residual values, thus reducing quantization errors.
- 21:44ExpCast-FP8 simplifies the softmax computation by directly mapping log-domain scores to probability codes, eliminating the need for costly FP32 exponential calculations.
- 21:55Evan: Right, and this streamlining improves both accuracy and computational efficiency.
- 22:01Ashley: Exactly.
- 22:02Experiments across various GPUs and video models demonstrated that VC-Attention not only improves fidelity metrics like PSNR and SSIM but also significantly speeds up attention calculation, making it over 1.5 times faster on datacenter GPUs and up to 3.6 times faster on some workstation GPUs.
- 22:23Evan: So, it addresses critical challenges in the domain of low-bit video generation by delivering better performance and quality, making it a valuable contribution.
- 22:34Ashley: Indeed, Evan.
- 22:36This work stands out as a promising advancement for improving the efficiency and quality of video generation using diffusion transformers.
- 22:45Evan: Well, that's all we have for today's episode.
- 22:48Ashley: Thank you all for tuning in to Daily Paper Cast.
- 22:52We hope you found our discussion on 'VC-Attention: Value Smoothing and Softmax Casting for Low-bit Attention' insightful.
- 23:00Evan: If you enjoyed this episode, don't forget to subscribe and join us for our next episode, where we'll discuss another cutting-edge research paper from the Hugging Face daily paper list.
- 23:11Ashley: Until then, keep exploring, keep learning, and stay curious.
- 23:17Evan: Goodbye for now!