Test-Time Instance-Specific Parameter Composition: A New Paradigm for Adaptive Generative Modeling

Minh-Tuan Tran, Xuan-May Le, Quan Hung Tran, Mehrtash Harandi, Dinh Phung, Trung Le

Here is a blog-style summary of the paper.

Dynamic Weights on the Fly: Adapting Generative Models Without Fine-Tuning

TL;DR

The authors introduce Composer, a plug-in meta-generator that dynamically synthesizes input-conditioned, low-rank parameter updates for pretrained generative models at inference time. By generating instance-specific weight adjustments in a single forward pass, Composer allows models like Diffusion and Visual Auto-Regressive (VAR) networks to specialize for each unique prompt without expensive test-time fine-tuning or architectural overhauls.

What Problem Does This Paper Address?

Modern generative models are remarkably powerful, but they suffer from a fundamental design limitation: they are static. Whether you prompt a model to draw a simple "red apple" or a highly complex, ambiguous scene, it uses the exact same set of pretrained weights. This rigidity often leads to oversmoothed or inconsistent images when dealing with complex or unusual contexts.

To make models adaptive, researchers previously turned to Test-Time Training (TTT), which fine-tunes weights via gradient descent on the fly during inference. However, running backpropagation at inference time is prohibitively slow and memory-heavy—especially for high-resolution image generation. Other methods like Mixture-of-Experts (MoE) offer conditional routing but are coarse-grained, require altering the core architecture, and demand full retraining from scratch.

Composer bridges this gap by offering fine-grained, per-input parameter adaptation without iterative optimization or retraining.

Figure 1. Comparison of static versus adaptive parameterization. Composer dynamically composes instance-specific parameter up- dates, allowing per-input adaptation without fine-tuning.

Methods

Instead of optimizing weights via gradients at test time, Composer uses a lightweight, transformer-based meta-generator to predict weight updates directly from the input condition (e.g., a text prompt or class embedding).

Here is how the mechanism works:

  1. Low-Rank Parameter Composition: Inspired by LoRA, the weight update is formulated as a low-rank decomposition ($W' = W + AB$). However, unlike LoRA—where $A$ and $B$ are static matrices learned during training—Composer generates unique $A$ and $B$ matrices dynamically for every single input.
  2. Token Initialization: To preserve the backbone's prior knowledge, the meta-generator initializes its internal tokens by linearly projecting the pretrained weight matrices (specifically the Query and Value projections, $W_Q$ and $W_V$).
  3. Efficient Attention Scheme: To keep the parameter generation fast, the authors designed a specialized attention mechanism combining Local Block-wise Attention (to maintain intra-block coherence) and Global First Token Attention (to capture inter-block correlations), as shown in Figure 3.
  4. Context-Aware Training Pipeline: To prevent the meta-generator from collapsing or over-fitting, the authors introduce a training pipeline that splits each batch using a parameter $\alpha$. A percentage of the batch samples semantically similar inputs to enforce adaptation consistency, while the rest samples distinct contexts to preserve output diversity.
Figure 3. Illustration of the attention scheme. Component tokens attend to prompt tokens for context, maintain local block-wise at- tention, and the first token of each block captures inter-block cor- relations.

Beyond standard generation, Composer can also be applied to Post-Training Quantization (PTQ), where it learns to generate low-precision, instance-specific updates that correct quantization errors in highly compressed models (e.g., 2-bit or 4-bit weights).

Datasets

The authors evaluated Composer across two primary benchmarks:

  • ImageNet ($256 \times 256$ and $512 \times 512$): Used for class-conditional image generation across various model scales.
  • MS-COCO 2014: Used for text-to-image synthesis, test-time scaling evaluations, and post-training quantization experiments.

Key Insights and Ideas

  • Prediction Over Optimization: The core "aha moment" is that we don't need backpropagation to adapt a network at test time. A feed-forward meta-network can learn the mapping from "prompt space" to "weight space" effectively.
  • Upfront Adaptation: Composer generates the parameter updates exactly once before the multi-step generation process begins. Because the weights are merged upfront, the actual iterative generation loop (which might take 50 to 250 steps in diffusion) runs at native speed.
  • Quantization Error Correction: Quantization typically degrades image quality because rounding weights introduces static noise. Composer acts as a dynamic, input-dependent error corrector, shifting the quantized boundaries based on what the model is trying to draw.

Key Results

Composer consistently outperforms standard static baselines and TTT across multiple architectures (VAR and DiT), delivering better image quality with negligible overhead.

  • Class-Conditional Generation (ImageNet $256\times256$): For a VAR-d16 backbone, Composer reduced the Frechet Inception Distance (FID) from 3.55 to 3.15. Crucially, while TTT achieved an FID of 3.22 at the cost of a massive +10,030% increase in inference time, Composer only added a tiny +5% overhead.
  • Rescuing Quantized Models: In extreme 2-bit weight / 8-bit activation settings (2/8 quantization on Q-Diffusion), the baseline model's Inception Score (IS) cratered to 49.08. Adding Composer dramatically restored the IS to 78.21 and slashed the FID significantly.
  • Text-to-Image Scaling: Applied to Stable Diffusion 2.1, Composer improved both image fidelity (FID-30K dropped from 13.45 to 13.07) and text-image alignment (CLIP score improved from 0.30 to 0.32) with only a 2% runtime overhead.

Limitations and Future Work

While Composer introduces negligible overhead for standard multi-step generation models (e.g., less than 0.1% overhead for a 250-step Diffusion Transformer), its relative computational footprint becomes more noticeable in few-step or single-step generative models, since the parameter composition step happens entirely upfront.

In the future, the authors aim to extend this dynamic parameter composition paradigm to broader vision tasks, such as frozen-backbone transfer learning.

Summary updated

BibTeX
@inproceedings{tran2026test,
  author = {Minh-Tuan Tran and Xuan-May Le and Quan Hung Tran and Mehrtash Harandi and Dinh Phung and Trung Le},
  title = {{Test-Time Instance-Specific Parameter Composition: A New Paradigm for Adaptive Generative Modeling}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=3dmTYXukry},
}
Figure