Text-Aligned Scratchpads for Pixel-Space Text-to-Image Diffusion

Image generators that work directly on raw pixels, with no compressing autoencoder in between, now match or beat their compressed-space rivals on class-conditional ImageNet. Text-to-image is different. Pixel models that follow text prompts still converge slowly unless they inherit weights from a model first trained in a compressed space. We think a large share of that slowdown comes from one hard step: turning a sentence into a visual layout. That is a translation between two modalities whose representations normally sit in separate regions of any shared embedding space, a well-documented separation called the modality gap. A pixel model trained from scratch has to learn this translation at the same time as low-level RGB statistics, and the pixel loss gives it almost no direct signal about it.

We propose to separate the two jobs and then ask which intermediate representation makes the translation cheapest. Latent Forcing showed that a pixel diffusion model (a generator that learns to turn random noise into images by removing noise step by step) improves sharply if it first fully denoises a small "scratchpad" of semantic features and only then denoises pixels. That result holds for class labels. Our claim is that for text prompts, the geometry of the scratchpad matters. A scratchpad whose patch features sit close to the text embeddings in plain distance, and not just in ranking, turns the text-to-layout step into something near a copy-and-arrange operation. That should speed up from-scratch training and improve attribute binding. A vision-only scratchpad such as DINOv2, or a CLIP-style scratchpad that still has the gap, should do worse on this step. The scratchpad is thrown away after sampling, so the output keeps the lossless fidelity of pure pixel generation.

Core Claim and What Is New

Our central hypothesis concerns from-scratch pixel text-to-image training. The cost of learning prompt following, measured as GenEval and DPG-Bench score reached per unit of training compute, should fall as the distance-level alignment between text tokens and scratchpad patch features rises. Two things drive the gain: the reordering itself, and the cross-modal geometry of the space being reordered. The reordering is the part Latent Forcing established. The geometry is the new variable.

Latent Forcing supplies the mechanism. It co-diffuses pixels with frozen DINOv2 or Data2Vec2 features under separate time variables and denoises the features first. That cut unguided ImageNet-256 FID from 25.18 (the JiT baseline) to 9.76 at 80 epochs, better than aligning internal features to the same encoder, which gave 18.60. It was never tested with free-form text, and it never asked which feature space works best as a scratchpad for text conditioning.

Two papers motivate the geometric variable. Towards understanding the modality gap in CLIP shows that contrastive training leaves image and text embeddings so separated that a linear classifier splits them perfectly. Closing the Modality Gap Aligns Group-Wise Semantics shows that this gap barely affects retrieval, which depends only on ranking, but badly hurts anything that depends on distance. With its ModGap loss, which pulls true pairs together and spreads pair centroids apart, the gap metric on MS-COCO drops from 0.47 to 0.03 and clustering V-Measure roughly doubles. Our bet is that conditional generation behaves like clustering here, not like retrieval.

The natural objection is that a diffusion model reads text through attention, so absolute distances might not matter. If that were true, all scratchpads with equal visual content would perform the same. That outcome is one of our testable predictions, not an assumption.

Research Program

We will build a single-stage pixel diffusion transformer that uses large 16×16 patches and a lightweight convolutional detail head, following DiP. Two pieces come from prior work unchanged: the x-prediction objective and the noise-scale calibration factor of 2 reported by An Empirical Study of Training Pixel-Space Text-to-Image Diffusion Models. A frozen text encoder feeds text tokens through joint attention. Following Latent Forcing, the transformer also receives a spatial grid of scratchpad features $z$ with its own noise level. Training minimizes

$$\mathcal{L} = \mathbb{E}\big[\lVert \hat{x}_\theta - x \rVert^2 + \lambda \lVert \hat{z}_\theta - z \rVert^2\big],$$

where $x$ is the clean image, $z$ the clean scratchpad from a frozen encoder, $\hat{x}_\theta$ and $\hat{z}_\theta$ the model's predictions from the jointly noised inputs at independently sampled times $t_{\text{pixel}}$ and $t_{\text{latent}}$, and $\lambda$ a weight. At sampling time, $z$ is denoised to completion first and pixels are denoised afterwards.

The experimental variable is the scratchpad space, with everything else held fixed. We compare four spaces. The first is DINOv2 patch features, which carry no text alignment. The second is patch features from a contrastive image-text encoder that still has its native modality gap. The third is the same encoder after we fine-tune its projection heads with ModGap's pair-alignment and centroid-uniformity losses so that the gap closes. We apply the shared projection to patch tokens and check with a patch-to-phrase probe that local alignment improves along with global alignment. The fourth concatenates DINOv2 features with the gap-closed features. This last variant tests the obvious trade-off: text alignment may cost the visual detail that makes DINOv2 a good guide for pixels.

For each space we measure the modality gap metric and linear separability between text and patch features, so that every generation result can be plotted against a geometric quantity rather than an encoder name. We also measure how hard the text-to-scratchpad stage is on its own, using the scratchpad-denoising loss on held-out captions.

Baselines

The naive reference point is the same pixel transformer trained from scratch with text conditioning and no scratchpad and no representation alignment. It uses identical data, compute, and tuning budget. This is the "do nothing" model whose slow convergence motivates the work. It is also the setting where An Empirical Study of Training Pixel-Space Text-to-Image Diffusion Models reports that latent pre-training becomes necessary.

The strongest published pixel method trained without a compressed-space stage is PixNerd, from PixNerd: Pixel Neural Field Diffusion. It adds representation alignment (REPA, which pulls the model's internal features toward a frozen visual encoder's features) to rectified-flow pixel training. It reports 0.73 overall on GenEval and 80.9 on DPG-Bench for PixNerd-XXL/16. We cannot match its 45-million-image scale for every arm. We will therefore reimplement REPA alignment inside our backbone and run it at our matched budget. We will also train one full-scale run of our best configuration to compare against the published 0.73 and 80.9.

The strongest method overall is latent-to-pixel transfer, also from the empirical study. It trains a compressed-space model on 20 billion image-text pairs and then transfers its weights to pixel space, reaching 0.7644 GenEval against 0.7510 for its latent counterpart. We will run that recipe at matched total compute, with the latent pre-training and pixel adaptation phases sharing our budget. Beating it at matched compute, with no autoencoder at any stage, would be the headline result. Tying it would still count as a meaningful simplification.

The key ablation is plain Latent Forcing with a DINOv2 scratchpad plus text conditioning. It isolates our ingredient: if the gap-closed scratchpad does not beat it on GenEval attribute binding and position, and on DPG-Bench relations, then scratchpad geometry does not matter. A second ablation keeps the gap-closed encoder but uses it only as a REPA target, with no reordering, which separates the effect of geometry from the effect of ordering.

For the controlled small-scale study we also train on MS-COCO captions from scratch. The reference point there is XMC-GAN, a single-stage pixel GAN with region-word contrastive losses that reports a COCO FID of 9.33.

Why not just…?

Why not just use REPA with a text-aligned encoder, as PixNerd does with a visual one? Alignment and reordering are different interventions. On ImageNet, Latent Forcing's reordering beat REPA distillation from the same encoder, with unguided FID of 9.76 against 18.60. We still test this directly through the REPA-only ablation with the gap-closed encoder. If that ablation matches the full method, the reordering is unnecessary for text, and we will report that.

Why not just pre-train in a compressed space and transfer, as the empirical study does? This is the most serious threat, because it already works and scores 0.7644 on GenEval. Its limits are that it still needs an autoencoder-trained model first, and that it explains nothing about why pixel training is slow. The matched-compute comparison settles the question. If transfer wins clearly, our contribution shrinks to a diagnostic of where the difficulty lies. That diagnostic is still useful, but it is weaker, and we will say so.

Why not just use a stronger text encoder or a timestep-aware connector, as ELLA does? ELLA bridges a frozen language model to a compressed-space U-Net with a connector that adapts the conditioning to each denoising timestep, raising DPG-Bench from 74.65 to 80.23. It improves how well text is understood, but it does not change how hard it is to turn text into a layout in pixel space. We will add an ELLA-style connector to the naive pixel baseline. If that alone reaches our scratchpad model's scores, the scratchpad is redundant.

Why not just close the gap inside the generator, by adding ModGap losses between text tokens and the transformer's own features? This is simpler, but it pushes a contrastive geometry onto features that must also reconstruct pixels. Registers Matter for Pixel-space Diffusion Transformers shows that those features are already strained by the pixel loss. It also finds that text tokens act as implicit "norm sinks": they absorb the extreme activation values that would otherwise distort the image tokens. We will run this variant as a secondary arm, and we will measure internal feature total variation alongside generation quality.

Proposed Experiments

The decisive experiment is the scratchpad sweep at a fixed from-scratch budget. We plot GenEval sub-scores for attribute binding and position, DPG-Bench, and COCO FID against training steps, and against each scratchpad's measured modality gap. Our hypothesis predicts a monotone relationship: smaller gap should mean faster prompt-following gains and higher final binding scores, while FID should not get worse. The concatenated variant should hold FID steady if text alignment costs visual detail.

A null result is also informative. If the four spaces tie on binding and differ only by their visual quality, then the modality gap is irrelevant to attention-conditioned generation. That would bound how far the distance-sensitivity finding of Closing the Modality Gap Aligns Group-Wise Semantics extends beyond clustering.

As a second check, we report held-out scratchpad-denoising loss, conditioned on text, for each space. This tests whether the cross-modal stage really becomes easier, independently of the pixel stage.

Finally, we run the full-scale comparison of the best configuration against PixNerd's reported 0.73 GenEval and 80.9 DPG-Bench, and against matched-compute latent-to-pixel transfer. This establishes whether the effect survives at scale.