All That RL for a Constant Shift? How 288K Parameters Recover Most of a Text Rendering Gain
Based on: RL Post-Training in Diffusion Transformers Is Activation Steering — Tuna Han Salih Meral, Kaan Oktay, Alec Helbling, Atakan Kara, Duen Horng Chau, Pinar Yanardag
Ask an image generator for a vintage library stamp reading “Forbidden Knowledge” or a food truck bearing the slogan “Tacos Save Lives,” and the lettering gives you a simple way to judge the result. Can you read back the words you asked for? Across 1,018 OCR test prompts and three sampling seeds, the text read from Stable Diffusion 3.5 Medium’s images matched the requested phrase exactly in 21.4% of cases.
Reinforcement learning (RL) can improve those odds. A version of the same generator post-trained with Flow-GRPO and an OCR reward produced an exact match in 62.9% of cases. Its rank-32 LoRA (low-rank adaptation) adapter had 18.8 million parameters. Because the words change with every prompt, it seems natural that an adapter would need to learn a different correction for each input.
In a November 2026 preprint, Tuna Han Salih Meral, Kaan Oktay, Alec Helbling, Atakan Kara, Duen Horng Chau, and Pinar Yanardag, spanning Virginia Tech, fal, Georgia Tech, and IBM Research, put that idea to the test. Read the paper on arXiv.
The authors froze the base model, SD3.5-M, and added a set of static vectors to its block outputs. Together the vectors contain 288,768 parameters, about one sixty-fifth as many as the LoRA. Each vector takes the same value for every prompt, token in its stream, and sampling seed. Nothing in it specifies what the stamp or the food truck should say.
Yet this constant shift recovered 94.4% of the RL model’s text rendering reward gain. Measured by exact matches across the three seeds, the steered model got 60.2% of the phrases right.
In a separate experiment, the team trained the vectors directly with online RL. The vectors exceeded the LoRA’s reward gain on the OCR test set. That leaves an intriguing possibility: the frozen model can do much of the prompt-specific work of spelling once a small, shared shift steers it toward the task.

The Spelling Paradox in Image Generation
Text rendering is inherently prompt-dependent. Rendering “Rent A Bike Here” on a bicycle kiosk calls for different letters and a different arrangement from carving “Kingdom of the Sun” into a weathered stone tablet. How could a correction that knows nothing about either phrase help with both?
Under a standard weight update, an adapter changes a linear layer’s weights by $\Delta W$. For token input $z_i$, the resulting activation change is $\Delta W z_i$. Even though the weights stay fixed after training, two tokens with different inputs can receive different corrections. That flexibility seems well suited to visual generation.
Meral et al. asked how much of the RL reward gain actually requires that flexibility. To find out, they used activation steering, a technique also studied in language models, to give every token at a particular block output the same correction. The rest of the diffusion transformer could still respond to the prompt as usual.
Anatomy of a Constant Shift
The parameterization is deliberately minimal. For token $i$ in one stream of transformer block $\ell$, the steered hidden state is
$$\tilde h_{\ell,i} = h_{\ell,i} + \alpha s_{\ell,p,k(t)}.$$
Here, $h_{\ell,i}$ is the block output in the frozen network, $s$ is the steering vector for that stream, and $\alpha$ controls its strength. The authors used $\alpha = 1$ for fitting and for the main results.
The choice of vector depends on four things:
- Block index $\ell$. Each block output has its own vectors.
- Token stream. SD3.5-M processes image and text tokens in separate streams that interact through joint attention. The two streams have separate vectors.
- Guidance pass $p$. Classifier-free guidance (CFG) combines a conditional pass using the prompt with an unconditional pass using the empty prompt. Each has its own vectors.
- Step bin $k(t)$. Sampling runs from noise ($t=1$) to a clean latent ($t=0$). The authors split SD3.5-M’s 40-step schedule into two equal groups, with early steps at $t \geq 0.75$ and late steps at $t < 0.75$.
On SD3.5-M, 47 block outputs, two guidance passes, and two step bins yield 188 vectors of dimension 1,536. That gives 288,768 parameters in all, about 1.5% of the rank-32 LoRA’s parameter count. Once the block output, pass, and step bin are set, every token in that stream receives exactly the same numeric offset.
Finding the Shift with Velocity Matching
How do you find those vectors? A straightforward, training-free baseline is to measure the difference between the RL-tuned and base models’ block outputs, then average it across tokens, prompts, and noise levels in each bin. The authors call the resulting vectors $s_{\mathrm{mean}}$.
The average helped, but on SD3.5-M it recovered only 21.5% of the OCR reward gain and 12.2% of the GenEval composition gain. A later check showed what the average missed. The authors split their fitted OCR vectors into a component along the mean difference and a component perpendicular to it. The perpendicular component alone retained 96% of the fitted vectors’ OCR gain.
To find the fitted vectors, the authors used velocity matching. At each sampling step, a flow-matching model predicts a velocity that guides the noisy latent toward an image. The team cached final samples from the public RL-tuned checkpoint and added noise back to obtain training states $x_t$. With both models frozen, they trained only the steering vectors to minimize
$$L(s) = \mathbb{E}\left[\left|v_{\theta,s}(x_t,t,y_p)-v_{\theta_{\mathrm{RL}}}(x_t,t,y_p)\right|^2\right].$$
In plain terms, both models see the same noisy state, noise level, and guidance input. The vectors learn to bring the base model’s predicted velocity closer to the RL checkpoint’s prediction. Several details matter for interpreting the cost:
- Reward use. The regression loss uses no OCR or preference scores. The authors did use validation rewards to choose checkpoints.
- Sampling. Generating the cache requires sampling the RL-tuned model. Once the cache exists, fitting can reuse those samples without running fresh generation rollouts.
- Prompt count. In an OCR ablation, a fit using 64 distinct training prompts retained 94% of the gain of a fit using 10,000 prompts. Both used about 10,000 generated samples and started from the mean-difference vectors.
- Compute. Generating samples, measuring the mean difference, and fitting the vectors together took 6.9 H100 GPU-hours for the SD3.5-M OCR checkpoint and 8.9 for its PickScore counterpart.
The Empirical Scorecard Across Eight Checkpoints
The main comparison covers six public RL-tuned image checkpoints and two video checkpoints. For each one, the authors measured how much its reward improved over the base model, then asked what share of that improvement the fitted vectors recovered. The brackets give paired 95% bootstrap intervals.
| Base architecture | RL method | Evaluated reward | Steering parameters | Share of RL gain recovered |
|---|---|---|---|---|
| SD3.5-M | Flow-GRPO LoRA | OCR | 288,768 | 94.4% [90.8, 97.9] |
| SD3.5-M | Flow-GRPO LoRA | GenEval | 288,768 | 95.9% [92.0, 99.7] |
| SD3.5-M | Flow-GRPO LoRA | PickScore | 288,768 | 90.8% [89.8, 91.7] |
| SD3.5-M | Flow-GRPO LoRA, no KL penalty | PickScore | 288,768 | 95.2% [94.4, 96.1] |
| FLUX.1-dev | Flow-GRPO LoRA | PickScore | 466,944 | 90.0% [88.9, 91.1] |
| FLUX.1-dev | DanceGRPO full fine-tune | HPSv2.1 | 466,944 | 96.3% [95.5, 97.2] |
| Wan2.1-1.3B | GenRL GRPO LoRA | HPSv3 | 184,320 | 111.9% [106.5, 118.0] |
| Wan2.2-5B | VBVR-Pro RLVR full fine-tune | In-domain rule score | 184,320 | 89.8% [76.2, 105.6] |
On the SD3.5-M OCR test set, at one sampling seed, the Flow-GRPO LoRA gained 0.344 raw reward points over the base model. The fitted vectors gained 0.325 points. That is what the paper’s 94.4% measures. On video, the authors first evaluated six public RL-tuned models. The two in the table were the ones whose reward gains had 95% intervals entirely above zero.
The recovery held on hard prompts. For each held-out seed, the authors selected GenEval prompts the base model had failed at the other three seeds. The vectors recovered 97.7% of the RL checkpoint’s gain on that test. On OCR, among the prompt-seed pairs where the base model missed the exact phrase and the RL model got it right, the steered model also got it right 75.3% of the time.
The SD3.5-M OCR and PickScore vectors also transferred across sampling settings. Fitted at 512 pixels, 40 steps, and CFG 4.5, the OCR vectors recovered 85% to 101% of the corresponding RL gain across tests with different step counts or guidance scales. At 768 and 1024 pixels, they recovered 93% to 98%.
Some side effects transferred too. The SD3.5-M PickScore checkpoint trained with a KL penalty reduced color energy, measured by chroma variance, to 0.550 of the base model’s value. The steered model reached 0.542. Within-prompt diversity, measured from DINOv3 image embeddings across seeds, fell to 0.517 of the base value under RL and to 0.522 with steering.
How Static Offsets Produce Different Words
How does an unvarying vector help a model spell “Forbidden Knowledge” in one image and “Rent A Bike Here” in another?
The authors traced the signal through SD3.5-M. First, they isolated which parts of the model carried the OCR and PickScore gains:
- Guidance pass. Vectors fitted solely to the conditional pass gained more than the full set on both rewards. The conditional and unconditional vectors pointed in similar directions, and classifier-free guidance gives the unconditional prediction a negative weight at the scale used here.
- Step timing. Keeping only the early-step vectors from the full set retained most of the gain. Keeping only the late-step vectors retained much less.
- Token stream. Within the full set, the text-stream vectors carried more of the gain when applied alone. When the team fitted fresh vectors to just one stream, however, either stream could recover most of the gain.
Combining those observations, the authors fitted vectors only to the text stream, on the conditional pass, at early sampling steps. That set contained just 35,328 parameters, roughly one five-hundred-and-thirty-first of the rank-32 LoRA’s count. It recovered 89.5% of the OCR gain and 73.7% of the PickScore gain.
Second, the team tested how the signal reached the image. In joint attention, image tokens can read information from text tokens through their keys and values. The researchers made the image queries read the unsteered base model’s text keys and values, computed on the same noisy state.
With that substitution, only 20.5% of the fitted vectors’ OCR gain remained. Repeating the test on the OCR-tuned LoRA left 26.4% of its gain. The reverse experiment was particularly telling. Giving the OCR-tuned model text keys and values from the OCR-steered base model preserved 95.2% of its gain. Using the PickScore-steered model’s text keys and values preserved only 44.0%.
The paper gives a mathematical illustration in Theorem S1. Suppose an image token with query $q_i$ assigns a share $m_i$ of its attention to text. Hold the query and image keys and values fixed, and shift every text key after normalization by the same vector $\delta^{\mathrm{key}}$. The new attention share $m'_i$ satisfies
$$\frac{m'_i}{1-m'_i}=\frac{m_i}{1-m_i}\exp\left(\frac{q_i^\top\delta^{\mathrm{key}}}{\sqrt{d_h}}\right),$$
where $d_h$ is the attention head dimension. The same key shift can therefore change how much attention two image tokens pay to text by different amounts, because each has its own query. In SD3.5-M, the steering vectors enter before normalization and projection, so the resulting key and value changes can themselves vary across tokens. The frozen network supplies the prompt dependence.

Where Steering Falls Short on Supervised Fine-Tuning
Can constant vectors recover the gains of a model taught a new subject from reference images? The authors tested that question with DreamBooth, a supervised fine-tuning technique. They fitted vectors to four public DreamBooth LoRAs, then trained six additional DreamBooth LoRAs on images of fictional people. The fictional identities addressed a complication with public subjects, whose appearance the base model might already partly know.
Here, the difference between a fixed shift and an input-dependent adapter became visible:
- On the six fictional people, vectors recovered 68% to 83% of DreamBooth’s facial identity gain, measured with ArcFace.
- On the four public subjects, vectors recovered 73% to 95% of the subject-similarity gain. They could reproduce a cat toy’s coarse appearance while missing its painted face, or draw a cactus character while missing its thorns.
- A LoRA fitted on the same objective with as many parameters as the vectors recovered 81% to 91% of the identity gain on people and 94% to 100% of the similarity gain on the public subjects. It preserved fine details more often.
That comparison puts a boundary around the spelling result. A fixed shift was enough for most of the measured RL reward gain. Reproducing a specific new identity gave the input-dependent adapter a measurable advantage, even with the same parameter budget.
Training Vectors from Scratch with Online RL
Matching an existing checkpoint shows that a small set of vectors can reproduce its reward gain. Can policy-gradient RL find those vectors directly?
The authors froze SD3.5-M, initialized all 188 vectors at zero, and ran online Flow-GRPO with only their 288,768 parameters trainable. This time the training signal came from the reward itself. Each task had its own run, with no RL-tuned checkpoint supplying velocity targets.
| SD3.5-M target | Intervention | Trainable parameters | Share of LoRA reward gain | User study win rate vs base | User study win rate vs RL checkpoint |
|---|---|---|---|---|---|
| PickScore | Flow-GRPO LoRA reference | 18.8M | 100.0% | — | — |
| PickScore | Fitted vectors | 288,768 | 90.8% | 64% | 51% |
| PickScore | RL-trained vectors | 288,768 | 103.6% | 62% | 52% |
| OCR | Flow-GRPO LoRA reference | 18.8M | 100.0% | — | — |
| OCR | Fitted vectors | 288,768 | 94.4% | 60% | 50% |
| OCR | RL-trained vectors | 288,768 | 104.6% | 65% | 52% |
Direct RL training reached 104.6% of the LoRA’s OCR gain and 103.6% of its PickScore gain. Both 95% intervals lay above 100%. In pairwise comparisons across 50 test prompts and 25 raters, images from the RL-trained OCR vectors earned a 65% overall preference rate against the base model, counting a tie as half a win. Against the OCR LoRA, the rate was 52%, statistically indistinguishable from 50%.
Why It Matters for Document Parsing and OCR Systems
For practitioners working with synthetic text images, the distinction between rendering and reading matters. The trained model here draws the text. OCR supplies a way to score what it drew. The paper measures improvements in that generator and leaves the effect on a downstream document reader open.
- Checking the text in synthetic images. The raw reward and exact-match results answer different questions. Recovering 94.4% of the LoRA’s OCR reward gain still meant reproducing the requested phrase exactly in 60.2% of the tested prompt-seed pairs across three seeds. If the phrase will serve as a training label, exact agreement is the more directly relevant number.
- Sizing an adaptation. The SD3.5-M result gives a concrete parameter budget of 288,768 learned scalars for the full vector set, or 35,328 for the restricted fit. At inference, applying a vector takes one addition per steered block output. The paper reports parameter counts and fitting costs. It leaves serving latency and memory use in a document pipeline unmeasured.
- Investigating a rendering failure. On the paper’s “Kingdom of the Sun” stone tablet, substituting the base model’s text keys and values turned clean lettering back into garbled text. For SD3.5-M, that experiment connects a visible spelling failure to what image tokens read from text. Whether the same test explains a misaligned table or a malformed receipt remains open.
- Budgeting for post-training. Fitting vectors to an existing OCR checkpoint took 6.9 H100 GPU-hours including cache generation. Learning the OCR vectors directly from reward took 183 B200 GPU-hours. A small trainable parameter count is compatible with either route, but a team choosing between them needs to know whether it already has a tuned checkpoint to imitate.
Open Questions and What Remains Unsolved
First, all eight RL-tuned checkpoints in the main comparison used policy gradients. Whether constant shifts would recover the gains of direct preference optimization or direct reward backpropagation remains untested.
Second, the experiments establish what steering can reproduce. They leave open whether the RL-tuned weights reach their gains through a correction that is itself constant or low-rank. The DreamBooth comparison also leaves a practical question for document work. How far would steering reach on an unfamiliar script or a rare typeface? The OCR experiments supply no measurement for either case.
Finally, the paper leaves two possibilities open. Perhaps these visual rewards mostly call for capabilities the pretrained generator already has. Perhaps current policy-gradient methods struggle to learn new input-dependent transformations that would raise the rewards further. The striking result is how far the first explanation goes on the tasks measured here. The same 188 vectors helped SD3.5-M render different words on a library stamp, a food truck, and a bicycle kiosk, while the prompt supplied the letters each image needed.