NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning From Cheap Synthetic Images by Gating Which Teacher Features to Trust

Training a small image model from synthetic pictures is expensive mainly because of the generator. A diffusion model, which produces an image by denoising random noise over many steps, pays for every step on every image. Pipelines therefore either render each image at full quality or render many and throw most of them away. We propose a third option. Render most training images with very few denoising steps, so they are cheap and visibly flawed. Then have the student copy the teacher's features only where those features are reliable for that particular image. A small learned gate, borrowed from the adaptive feature-fusion literature, predicts for each image region and each feature channel how far the teacher's representation of the cheap render is from what it would be on the full-quality render. The distillation loss is weighted by that prediction.

The idea fits in two sentences. Cheap, few-step synthetic images are mostly fine, and their flaws land in particular regions and feature channels rather than spoiling the whole image. A gate that learns where the flaws are should let a student trained on cheap images match one trained on expensive images, at a fraction of the generation compute. If that holds, synthesis cost stops being a fixed tax paid per image. It becomes a budget that can be spent unevenly, with most images rendered cheaply and a few rendered carefully.

Core Claim

The starting point is Feature Distillation Improves Zero-Shot Transfer from Synthetic Images. That work generates class images with Stable Diffusion XL from Llama-2 prompts. It then trains a TinyViT-11M student to match the image embeddings of a CLIP ViT-B/32 teacher under a plain squared-error loss. The student matches the teacher on six fine-grained datasets with 92% fewer parameters. Under shuffled spurious features it keeps about 88% accuracy, where image–text distillation drops to 48–60%.

That paper fixes the training objective but leaves two things alone. Every image is rendered at full step count, and every feature dimension is weighted equally. The research file names the per-sample latency of multi-step diffusion as a central overhead of this regime, citing Beyond Cropping and Rotation among others.

Our claim has two parts. When the denoising budget is cut aggressively, the teacher's features on the cheap render differ from its features on the full render. We expect that difference to be concentrated in a minority of patch tokens and channel groups, and to be predictable from the cheap render alone. A content-dependent gate that exploits this should recover full-quality student accuracy at a much smaller synthesis cost than uniform distillation on cheap images.

The proposal moves the gating idea from where prior work applies it to a new place. Prior work gates either at inference or on whole samples. Here the gate acts inside the training loss, and its job is to make cheap generation usable.

How the Gate Is Built and Trained

The gate's design comes from Attentional Feature Fusion. That paper replaces fixed addition of feature maps with a multi-scale channel attention module. The module combines a global pooled context with a local pointwise-convolution context before emitting weights between 0 and 1. With it, an iAFF-ResNet-50 reaches 20.2% top-1 error on ImageNet against 23.2% for ResNet-101.

We reuse that module's structure because our problem has the same channel-versus-spatial tension that paper identifies. Artifacts from few-step sampling are often local, such as smeared fine texture or a broken part of an object, so purely global channel weights would miss them. A weight for every token and every channel would be noisy and expensive, so we gate over channel groups instead.

Concretely, let $f_T(x)$ be the teacher's penultimate-layer patch tokens together with its pooled embedding for image $x$. Let $x_k$ be a render with $k$ denoising steps and $x_K$ the full-step render with the same prompt and seed. On a small calibration set of such paired renders, a gate $G$ sees only $f_T(x_k)$. It is trained to predict a reliability map $r$ that is high where the gap between $f_T(x_k)$ and $f_T(x_K)$ is small, per token and per channel group. The calibration renders are charged to the synthesis budget.

The student $f_S$ is then trained on cheap renders with

$$\mathcal{L} = \frac{\sum_{i} r_i(x_k)\,\lVert f_S(x_k)_i - f_T(x_k)_i \rVert^2}{\sum_i r_i(x_k)} + \lambda \sum_i \lVert f_S(x_K)_i - f_T(x_K)_i \rVert^2,$$

Here $i$ indexes token–channel-group cells, the gate is frozen, and the second term runs on the small set of full-step images with weight $\lambda$. Normalizing by the total gate mass stops the gate from shrinking the cheap-data loss toward zero. Keeping the full-step term means channels the gate distrusts still receive clean supervision somewhere. Both choices respond to the gating-collapse failure the file describes for jointly trained gates, which is a second reason to freeze $G$.

Two existing gating approaches are close to this, and the gate differs from both. GRACE gates distillation using the entropy of the teacher's predictions on a fixed, pre-collected dataset. Our gate is learned from paired renders at different fidelities and acts below the logit level. In SynCPR/FAFA, a multimodal judge discards 59% of generated triplets and adaptive alignment appears only inside the downstream retriever. In our setup nothing is discarded, and the adaptive weighting is what makes cheap synthesis viable in the first place.

Research Program

The program has three stages.

Stage 1: diagnostic, before any method work. For step counts from very low up to the full SDXL schedule, we measure the gap between teacher features on paired renders. We then ask how concentrated that gap is across tokens and channel groups, and how well a small probe can predict it from the cheap render alone. This stage decides whether the project should continue (see the final section).

Stage 2: gate construction. We build the gate at three granularities: a single scalar per image, per-channel-group only, and per token times channel group. The comparison shows which granularity carries the gain.

Stage 3: cost–accuracy frontiers. We trace student accuracy against total generation GPU-hours. Every method gets the same total budget, and the budget can be divided among cheap renders, full renders, and calibration pairs.

Results on DISCO and Beyond Quantity shape how we read these frontiers. DISCO shows 75,000 filtered counterfactuals beating more than a million noisy ones. Beyond Quantity shows that adding synthetic volume saturates early. Together they warn that cheap volume is not automatically useful. We therefore hold prompt diversity fixed across conditions, so that any gain cannot be explained by a larger number of distinct prompts.

Baselines

Naive reference. The do-nothing reference is the method of Feature Distillation Improves Zero-Shot Transfer from Synthetic Images, run exactly as published with full-step SDXL renders and uniform squared-error feature distillation. We run it at the full budget and also at the reduced budgets we target. At a reduced budget it simply has fewer images.

Uniform distillation on cheap renders. The same objective with a uniform loss, trained on as many few-step images as the budget buys. This is the naive way to spend a budget on cheap generation.

Strongest existing method. Full-step uniform feature distillation at the full budget is the strongest competitor. It is the published recipe that already matches the teacher and already resists spurious features. The file reports that the TinyViT-11M student matches CLIP ViT-B/32 across six fine-grained datasets with 92% fewer parameters. It also reports about 88% accuracy under shuffled spurious features, against 48–60% for image–text distillation. The file gives no per-dataset absolute accuracy for Oxford Pets or Stanford Cars ("no reported result found on Lacuna for per-dataset zero-shot accuracy of the TinyViT-11M student"). We will therefore reproduce it ourselves and report our own numbers alongside the qualitative claims from the paper.

Fairness conditions. All methods share the teacher, the student architecture, the prompt set, the number of student training steps, and the hyperparameter search budget. Synthesis cost is metered in GPU-hours on identical hardware.

What counts as beating it. The gated method beats the strongest baseline if, at roughly a quarter of its generation budget or less, it matches that baseline's mean accuracy on the six datasets within seed noise. It must also keep comparable accuracy on the shuffled-spurious-feature evaluation.

Ablations. Three ablations isolate the key ingredient, which is content-dependent weighting below the sample level.

  • Image-level gate. A gate that outputs one weight per image. This reduces the method to soft sample weighting.
  • Static mask. A fixed per-channel-group mask computed once by averaging calibration discrepancies. This keeps the weighting fine-grained but removes its dependence on the input.
  • Unsupervised gate. A gate trained only on the student's loss, without the paired calibration target. This tests whether the fidelity supervision matters.

Why not just…?

Why not just weight each synthetic image by a quality score, or filter with a judge? This is the most natural competitor and is how SynCPR and DISCO manage quality, the former through a multimodal judge and the latter through a teacher filter on label flips. Its weakness here is that a few-step render with one damaged region still carries clean signal elsewhere, and whole-image weighting must either keep the damage or lose the signal. That argument only holds if the damage really is localized. The image-level gate ablation tests this directly. If it matches the token-and-channel gate, the honest conclusion is that sample weighting suffices, and we will report that.

Why not just use uniform feature distillation on the cheap images, since it is already robust? The source paper shows that feature distillation tolerates spurious co-occurrences. Few-step artifacts are a different problem, because they corrupt the teacher's own target on that image. The uniform-cheap baseline measures how much this matters. It is a real threat: if teacher features turn out to be insensitive to step count, the gate has nothing to fix. The Stage 1 diagnostic is designed to expose that outcome early.

Why not just render fewer images at full quality? Under a fixed budget, fewer but cleaner images is a legitimate strategy, and the evidence above shows curated data can beat volume. That is why every comparison is iso-cost. The full-step baseline at the reduced budget is exactly this alternative, and the gated method must beat it on the cost–accuracy frontier, not only at one point.

Why not just use a faster one-step or distilled diffusion sampler? No result on this is found in the file. A faster sampler is complementary rather than competing: it lowers the cost of each render but still produces its own artifacts, and the gate can be calibrated against whatever cheap sampler is used. We will add a cheaper sampler as an extra cheap-fidelity condition where one is available, and report whether the gate's benefit persists.

Proposed Experiments and Decisive Checks

The main experiments use the fine-grained zero-shot setting of the feature-distillation paper, including Oxford Pets and Stanford Cars. The teacher is CLIP ViT-B/32 and the students are TinyViT-11M and EfficientNet, with SDXL as the generator. Metrics are zero-shot top-1 accuracy per dataset and on average, accuracy under the shuffled-spurious-feature protocol, and total generation GPU-hours including calibration pairs. The headline result is the full accuracy-versus-cost curve.

First decisive check (Stage 1). If the top 20% of token–channel-group cells hold well under half of the total feature discrepancy, the corruption is diffuse. Fine-grained gating then has no structure to exploit, and we would pivot to reporting the optimal division of the budget between fidelities.

Second check. On held-out pairs, the gate's predicted reliability must correlate with the true discrepancy clearly better than a static per-channel-group mask does. Otherwise the content-dependent part of the gate is doing no work.

Third check. The gated student at a quarter of the budget must match the full-budget uniform baseline. It must also beat both the image-level gate and the static mask by more than the variation across seeds.

A secondary test of transfer applies the same calibrated gate idea to the 59% judge-rejected pool in SynCPR, evaluated on ITCPR. There, FAFA reports 46.54% Rank-1, falling to 41.33% without its dynamic alignment. The test is whether softly weighted rejected triplets add accuracy beyond the 41% that were kept.