Different Tasks, Different Timesteps: Temporal Task-Aware Quantization for Diffusion Language Models

Ofek Avivi, Eliron Rahimi, Avi Mendelson, Chaim BaskinarXiv 2026 · arXiv

TL;DR

Diffusion Language Models (DLMs) exhibit quantization sensitivity that varies significantly both over time (denoising steps) and across different tasks. The authors introduce $T^2Quant$, a framework that uses a label-free proxy to predict these sensitivities and optimally allocates activation precision across the denoising trajectory, improving accuracy by up to 6.7 percentage points under a fixed bit-width budget.

What Problem Does This Paper Address?

Unlike standard autoregressive (AR) language models that generate text token-by-token from left to right, Diffusion Language Models (DLMs) generate text through an iterative denoising process. This process involves multiple model evaluations, making efficient inference through quantization (reducing numerical precision) highly desirable.

However, existing quantization methods for DLMs typically apply a fixed bit-width across all denoising steps. This paper identifies a major gap: quantization sensitivity is not uniform. A model might be very sensitive to noise in early steps for one task but more sensitive in the middle steps for another. By ignoring these temporal and task-specific dynamics, current methods waste "bit budget" on steps where precision doesn't matter and starve the steps where it does.

Methods

The authors propose $T^2Quant$ (Task and Time-Aware Quantization), which consists of three main stages:

  1. Label-Free Calibration: The framework profiles a few unlabeled prompts from a target task. It measures a "sensitivity signal" by combining two factors:
  2. Local Divergence ($K_w$): How much quantization changes the model's immediate predictions in a given window of steps.
  3. Downstream Influence ($I_w$): How much those changes actually affect the model's future "beliefs" about the remaining masked tokens.
  4. Sensitivity Prediction: By multiplying these two factors, they create a proxy ($S_w$) that predicts the accuracy gain from upscaling a specific window's precision. Crucially, this requires no ground-truth labels.
  5. Optimal Allocation: Using Dynamic Programming (DP), the framework treats bit allocation as a resource management problem. It finds the optimal schedule of bit-widths (e.g., choosing between 3, 4, 6, or 8 bits for different windows) to maximize the predicted gain while staying within a fixed average bit-width budget (e.g., 4.0 bits).
Overview of the $T^2Quant$ framework, showing calibration, gain prediction, and the final DP-based allocation.

Datasets

The researchers evaluated their method across three open-source DLMs: Dream-7B-Instruct, LLaDA-1.5-8B, and LLaDA-8B-Instruct. They tested these models on six diverse benchmarks:

  • GSM8K: Mathematical word problems.
  • HumanEval: Python coding tasks.
  • MMLU-Pro: Multi-task language understanding.
  • ARC-Challenge: Grade-school science questions.
  • DROP: Reading comprehension requiring discrete reasoning.
  • BBH (BIG-bench Hard): Challenging tasks for language models.

Key Insights and Ideas

  • Sensitivity is Task-Specific: One of the biggest "aha" moments is that different tasks have completely different "precision profiles." For example, GSM8K (math) is "front-loaded," meaning precision is most critical in the very first denoising steps. In contrast, HumanEval (coding) is most sensitive in the middle of the trajectory.
  • Divergence $\neq$ Importance: Simply measuring how much quantization changes the output at one step isn't enough. You must also account for whether those changes actually influence the final result. The authors show that "influence-weighted" divergence is a far superior predictor of where to spend bits.
  • Precision as a Resource: By treating activation precision as a resource to be allocated over time rather than a fixed setting, they can achieve "free" accuracy gains just by moving bits from less sensitive steps to more sensitive ones.
Figure 1: Task-dependent temporal sensitivity to acti- vation quantization. Each curve shows, per eight-step denoising window, the KL divergence DKL(pfp ∥pq) summed over the positions committed in that window that the task’s scoring function reads.

Key Results

  • Consistent Accuracy Boosts: $T^2Quant$ improved average accuracy across all nine baseline/model combinations tested. The most significant gain was 6.7 percentage points on the Dream-7B model.
  • Closing the Gap to FP16: In many cases, the best $T^2Quant$ configurations approached the accuracy of the full-precision (FP16) models while using only 4-bit activations on average.
  • Efficiency: The method is highly data-efficient; using just 16 unlabeled prompts for calibration recovered roughly 75% of the potential accuracy gains.
  • Superiority over Randomness: Mixed-precision schedules generated by $T^2Quant$ significantly outperformed random schedules with the same bit budget, which often performed 14–19 points worse.

Limitations and Future Work

  • Hardware Efficiency: While the paper focuses on accuracy under a bit budget, it does not extensively measure actual hardware speedups or energy consumption. Implementing mixed-precision kernels that can switch bit-widths mid-generation remains a practical engineering challenge.
  • Safety and Robustness: The authors note that quantization can sometimes alter model behavior in unexpected ways, such as affecting safety-related responses. Future work is needed to ensure that temporal bit allocation doesn't introduce new vulnerabilities.
  • Static vs. Dynamic: Currently, $T^2Quant$ produces a fixed schedule per task. A more advanced version might dynamically adjust precision step-by-step based on the specific content being generated in real-time.

Summary updated

Abstract

Diffusion Language Models (DLMs) introduce unique quantization challenges due to their iterative denoising process. In this work, we reveal that quantization sensitivity is both taskand time-dependent, with different downstream tasks exhibiting distinct precision requirements across denoising steps. We further show that these patterns can be predicted without groundtruth labels or task-specific evaluation metrics. Building on these findings, we introduce T 2Quant, a task and time-aware mixedprecision quantization framework that uses a label-free sensitivity signal to optimally allocate activation precision across denoising steps under a fixed bit-width budget. Extensive experiments across three DLMs and six benchmarks demonstrate that T 2Quant consistently improves the average accuracy of existing quantization methods, achieving gains of up to 6.7 percentage points under the same budget.
BibTeX
@misc{avivi2026different,
  author = {Ofek Avivi and Eliron Rahimi and Avi Mendelson and Chaim Baskin},
  title = {{Different Tasks, Different Timesteps: Temporal Task-Aware Quantization for Diffusion Language Models}},
  year = {2026},
  eprint = {2610.31198},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.31198},
}
Figure