Test-Time Weak-to-Strong Alignment: Transferring Implicit Rewards from Weak to Strong Flow Models

University of New South Wales (UNSW Sydney)
Equal contribution.   Corresponding author.

Sample images generated by AlignGraft on the SD3.5-Large backbone. The generations align with the text prompt and human preference while keeping strong visual aesthetics.

More image examples ↓
Prompt: Over the shoulder camera shot. A huge lizard creature sits in a midcentury orange swivel chair. The light is dim and volumetric, casting an eerie glow across the scene. The creature uses its arms to maniacally push buttons on a gigantic control panel. Above the control panel is a panoramic window looking out and down on 1940s New York City. The room should invoke midcentury science fiction aesthetics, like rusty orange colors, bright flashing control buttons, and space-age flair. As the creature continues to quickly push buttons, the New York City scene out of the window moves closer, as though the creature is in a gigantic robot stomping through the city. The scene should give the feeling of frantic action, highlighting the intensity of piloting a giant robot. The scene should take inspiration from midcentury Japanese monster films.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: Cherry blossom petals falling over a quiet Kyoto street
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A slow-motion video of a drop of liquid mercury bouncing on a surface.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: Light passing through a fine glass sculpture, creating an intricate play of shadows and refracted colors on the surrounding surfaces.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft

Sample videos generated by AlignGraft on the Wan-Fun-14B backbone. Each case shows the source base (Wan-Fun-1.3B), the aligned source, the frozen large model (Wan-Fun-14B), and large model + AlignGraft.

More video examples ↓

Abstract

Aligning a text-to-image generation flow model with a reward makes it follow objectives that the training data alone does not provide. Alignment fine-tuning delivers this by reinforcement learning (RL) or preference optimization, but it must be repeated for every checkpoint and returns a model fixed at the reward and strength it was trained with. Test-time alignment instead steers a frozen model during sampling, allowing task-specific and sample-specific guidance. Existing methods obtain this only by drawing the per-step signal from the reward function itself, through its gradient, or through a separately trained value function.

We propose changing the supervision source: let a pair of weak models, not a reward function, supply the supervision. A source aligned model, kept together with its base as a source alignment pair, stores its training reward as an implicit, step-wise, KL-anchored signal expressed in the sampler's own coordinates. We explore whether this model-form supervision can cross scale, and show that it does: our method, AlignGraft, aligns a larger, frozen, never-tuned model by adding the pair's velocity difference during sampling. The transport is exact under a shared noising kernel and needs neither the reward nor its gradient at test time. The method has no schedules, only a single scalar that controls the alignment strength and can extrapolate it beyond that of the source alignment pair.

Across image and video flow models (Stable Diffusion 3.5, FLUX, and Wan), the transfer lifts the frozen large model on preference, compositional, and text-rendering rewards, can exceed the source aligned model itself, and preserves the large model's fidelity at a small constant sampling overhead. Extensive experiments show that one alignment run on a weak model produces supervision that the whole model family can reuse at test time.



Method Overview


A small frozen source pair \((\theta_s,\theta_s^{\mathrm{RL}})\) supplies an alignment delta \(\Delta v_s\) that steers a larger, frozen, never-tuned target model \(\theta_l\) during sampling — no training, no reward model, no gradients.



At every sampling step, add the source pair's alignment delta to the target model's velocity:

\[ v_l^{\star}(z,t)\;=\;v_l(z,t)\;+\;w\,\underbrace{\big(v_s^{\mathrm{RL}}(z,t)-v_s(z,t)\big)}_{\Delta v_s(z,t)} \]

The density-ratio tilt reduces to one additive velocity term; every \(t\)-dependent factor cancels exactly, so there is no schedule, no window, no filter, and no tuned exponent. \(w\) is the single exposed knob.

We are given three frozen generators from one model family: a large target model \(\theta_l\), and a small source pair — a base model \(\theta_s\) and its aligned counterpart \(\theta_s^{\mathrm{RL}}\), post-trained against a reward \(r\) under a KL constraint. The pair stores \(r\) implicitly as a log-density ratio \( r(z_0)/\beta = \log\big(p_s^{\mathrm{RL}}(z_0)/p_s(z_0)\big) + \text{const} \). AlignGraft samples from the target aligned to the same reward, \( p^{\star}(z_0)\propto p_l(z_0)\,[\,p_s^{\mathrm{RL}}(z_0)/p_s(z_0)\,]^{w} \), using only forward passes of the three frozen models — no access to \(r\), no gradients, no candidate search.



Qualitative Results


Transfer across source rewards on SD3.5. Blocks (a) PickScore, (b) GenEval, and (c) OCR each transfer a Flow-GRPO source pair into the frozen SD3.5-Large target. Columns: source base (SD3.5-Medium), aligned source (Flow-GRPO), frozen target (SD3.5-Large), and our transfer (SD3.5-Large + AlignGraft). Each reward transfers its own behavior while the target keeps its native fidelity.



Quantitative Results


MethodAesPickIRHPS
SD3.5-M (source base)5.92922.541.0840.3003
Flow-GRPO (aligned source)6.35023.851.4040.3318
SD3.5-L (large model)5.98222.701.1540.3072
SD3.5-L + AlignGraft6.49624.061.3840.3360

PickScore source pair transferred into frozen SD3.5-Large (\(w{=}3\)). The transfer lifts the larger model above the aligned source itself.


MethodOverallSingleTwoCountColorsPositionColor attr.
SD3.5-M (source base)0.630.980.820.550.810.280.52
Flow-GRPO (aligned source)0.930.990.980.880.910.900.82
SD3.5-L (large model)0.680.970.850.670.840.280.61
SD3.5-L + AlignGraft0.900.990.970.840.870.910.79

GenEval source pair transferred into frozen SD3.5-Large (\(w{=}2\)). Overall score rises \(0.68\!\rightarrow\!0.90\), with the largest gains on position and counting.



Guidance-strength search on SD3.5: six reward metrics as \(w\) sweeps \(0.5\)–\(8\), with source base, aligned source, and frozen target as dashed references. Every metric follows an inverted U, peaking at or above the aligned source.



Effect of Guidance Strength


AlignGraft under different guidance strength \(w\) on SD3.5 backbones. At moderate \(w\) the transferred reward and the visual quality improve together; past a peak, larger \(w\) over-extrapolates the source pair's KL anchor.



Additional SD3.5 Results



PickScore-based guidance on SD3.5 (\(w{=}3\))






OCR score-based guidance on SD3.5 (\(w{=}1\))






GenEval score-based guidance on SD3.5 (\(w{=}1\))






Effect of guidance strength on SD3.5




Generalization across Backbones and Modalities

The transfer requires only a shared latent space and forward kernel — not a scaled-up sibling or the image modality. We test a same-family FLUX sibling and the video modality (Wan); both improve on the quantitative metrics as well.



Same-Family Sibling Transfer (FLUX)


MethodAesPickIRHPS
FLUX.1-dev (source base)6.21722.751.0970.3087
DanceGRPO (aligned source)6.44523.121.2760.3463
FLUX.1-Krea (large model)6.04122.861.1430.3051
FLUX.1-Krea + AlignGraft6.22023.101.2290.3314

Cross-sibling generalization within the FLUX family: a DanceGRPO pair on FLUX.1-dev transferred into the frozen FLUX.1-Krea (\(w{=}1\)), improving all four metrics.








Text-to-Video Generation (Wan-Fun)


RewardMethodAesMPSIRHPS v2.1HPSv3VQMQTA
HPSv2Wan-Fun-1.3B (source base)4.9420.088−0.4660.22352.887−0.829−0.500−0.962
Fun-Reward-HPS (aligned source)5.5080.1040.3940.27787.865−0.403−0.430−0.430
Wan-Fun-14B (large model)5.0290.095−0.1680.22924.470−0.761−0.339−0.602
Wan-Fun-14B + AlignGraft5.5330.1110.5490.28398.780−0.314−0.318−0.147
MPSWan-Fun-1.3B (source base)4.9320.087−0.4950.21711.743−0.818−0.464−0.894
Fun-Reward-MPS (aligned source)5.3840.101−0.0200.25105.615−0.468−0.399−0.580
Wan-Fun-14B (large model)5.1870.0970.0600.23765.416−0.717−0.348−0.483
Wan-Fun-14B + AlignGraft5.5300.1120.5000.26667.983−0.331−0.321−0.231

Text-to-video transfer on Wan-Fun backbones with two reward sources (\(w{=}1\)). The transfer surpasses both the frozen large model and the aligned source on every judge, with motion quality preserved.



Text-to-video transfer on Wan2.1-Fun. A small source pair (Wan-Fun-1.3B base and its reward-aligned counterpart) guides the frozen Wan-Fun-14B target at \(w{=}1\). Each case shows four branches generated from the same prompt — source base, aligned source, frozen target, and Target + Ours (highlighted). Use “Play all” to compare synchronously, or click a clip to enlarge.

HPSv2.1 source pair
Prompt: In a mysterious underwater cave, ancient ruins lie scattered among the coral, illuminated by beams of light filtering down from the surface, hinting at a forgotten past.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: Dew on blue rose petals, HD, close up, detail
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A paper origami dragon riding a boat in waves. Realistic style.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: an old man wearing a green dress and a sun hat taking a pleasant stroll in Johannesburg South Africa during a colorful festival
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A vintage steam train crossing a stone viaduct through autumn forest
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: Fireworks blooming over a city skyline reflected in a river
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A whale breaching beside a small fishing boat, spray hanging in air
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A barista steaming milk, pouring a rosetta into a ceramic cup
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A neon-lit ramen stall in a rainy Tokyo alley, steam rising as the cook works
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: Autumn leaves swirling around a cyclist crossing an old iron bridge
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: The person's whole face glowed with contentment as she snuggled up with a good book.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A cityscape at night, with light reflections glimmering on the wet pavement after a rain shower, creating a shimmering glow.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: a toy robot wearing purple overalls and cowboy boots taking a pleasant stroll in Johannesburg South Africa during a colorful festival
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: a woman wearing a green dress and a sun hat taking a pleasant stroll in Antarctica during a winter storm
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: an adorable kangaroo wearing a green dress and a sun hat taking a pleasant stroll in Antarctica during a colorful festival
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A crystal ball sitting on a table, with sunlight streaming through it and casting a circle of rainbow colors on the floor.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A close-up of a butterfly's wings, showing the intricate patterns and vibrant colors in fine detail.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (HPS v2)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
MPS source pair
Prompt: A gondolier steering through a narrow Venetian canal at golden hour
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A lighthouse village waking up as fishing boats leave the harbor at dawn
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A glass greenhouse full of orchids, mist drifting from sprinklers
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: An ice skater tracing figures on a frozen lake between mountains
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A lighthouse beam sweeping across stormy waves at dusk
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A wide-angle shot of a vast desert landscape at sunset, with dunes stretching into the distance under a sky ablaze with color.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A man grinned with satisfaction after completing the challenging task.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: an old man wearing purple overalls and cowboy boots taking a pleasant stroll in Johannesburg South Africa during a beautiful sunset
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: a woman wearing blue jeans and a white t shirt taking a pleasant stroll in Johannesburg South Africa during a winter storm
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: an adorable kangaroo wearing a green dress and a sun hat taking a pleasant stroll in Antarctica during a colorful festival
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A peaceful riverside village with quaint cottages lines the water's edge, while villagers stroll along the riverbank or paddle small boats across the gentle current.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A crystal ball sitting on a table, with sunlight streaming through it and casting a circle of rainbow colors on the floor.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft
Prompt: A woman is playing a soft melody on his lute while sitting by the fountain in the castle courtyard.
Wan-Fun-1.3B
Post-RL Wan-Fun-1.3B (MPS)
Wan-Fun-14B
Wan-Fun-14B + AlignGraft


BibTeX


@article{xie2026aligngraft,
  title={Test-Time Weak-to-Strong Alignment: Transferring Implicit Rewards from Weak to Strong Flow Models},
  author={Xie, Xin and Zhang, Fan and Gong, Dong},
  journal={arXiv preprint},
  year={2026}
}
            


Acknowledgements

Website adapted from the following template.