Teachers That Also Check the Data: Cheaper Synthetic Training for Vision Transformers

Vision Transformers learn well only from very large datasets, because they start with almost no built-in assumptions about images. Generated images from diffusion models, which produce pictures by gradually denoising random noise, look like a cheap substitute for that data. They are not cheap in practice. Every image costs many forward passes of a large network, and a sizeable fraction are mislabeled, ambiguous, or full of generator artifacts. The usual response is to generate more and throw away the bad ones, which raises the cost of every image that survives. This proposal adds almost no machinery. Small convolutional and involutional teachers already exist in cross-architecture distillation, where they hand a Transformer their built-in assumptions about local texture and spatial layout. We use the same teachers to decide, image by image, whether a generated sample should be trusted, relabeled, or down-weighted. Rejected samples are rescued rather than discarded wherever possible.

In two sentences for a colleague: the weak teachers that give a Transformer its "convolutional common sense" have different blind spots, so their agreement or disagreement on a generated image is a cheap and fairly independent check on that image. If we use that check to weight, relabel, or drop synthetic samples, and at the same time distill the teachers' priors into the student, we should reach a given accuracy with far fewer generated images, counting the generator compute spent on images we end up rejecting.

Core Claim

The claim has three parts, and each can fail on its own.

First, disagreement between teachers with different built-in assumptions detects bad generated images better than two routes that cost the same. One route is the confidence of a single teacher. The other is disagreement between two copies of the same architecture trained from different random seeds.

Second, the best use of that signal is not a hard filter but a three-way routing:

  • When both teachers agree with the label the generator was asked for, the sample is kept.
  • When both teachers agree on a different label, the sample is relabeled.
  • When the teachers disagree, the sample is kept at low weight, and its distillation signal is dropped.

Third, a student that has been given the teachers' priors needs fewer synthetic samples. Its accuracy-versus-compute curve should therefore dominate that of the same student trained on the same data without transfer.

We measure every result against total generation compute. That total is the generator GPU-hours spent on all sampled images, accepted or not, plus the teacher forward passes.

Where This Sits

The bias-transfer side supplies the method. Training data-efficient image transformers & distillation through attention (DeiT) adds a token trained to match a convolutional teacher, letting a Transformer train on ImageNet-1k alone. DearKD distills only in an early phase and then switches distillation off so attention can grow global. It reports 72.3% top-1 on 50% of ImageNet-1k versus DeiT-Ti's 72.2% on the full set. Co-advise: Cross Inductive Bias Distillation (CivT) shows that two weak teachers with opposite biases outperform one strong teacher. The two are a convolutional network, which looks at local texture, and an involutional network, which is spatially specific and captures layout; together they reach 82.0% with a small student versus DeiT-S at 79.8%.

All three train on clean real images. CivT is the closest idea to ours, because its teachers disagree by design. However, it reconciles that disagreement passively through parallel losses and never uses it to judge whether a training sample is valid.

The filtering side motivates the design and also constrains it. Ensemble-Instruct keeps generated instructions only when several language models agree. It reports 46.8 Rouge-L on SuperNI from about 45k filtered samples, versus 39.9 from 82k GPT-3 samples. Its ensemble members are all Transformers with shared failure modes, and it pays for three generators per sample. DISCO keeps a counterfactual only when a separate task model confidently flips its label. That works, but the method discards much of the paid generation volume. Both works establish that filtering helps. Both also show the cost we want to avoid: rejection multiplies the price of each accepted sample.

DF-DearKD is the one prior case of training a distilled ViT purely on synthetic images. It inverts a teacher to create images, reaching 71.2%, and deliberately uses no post-hoc filter. Our proposal takes the opposite position: an inexpensive filter is worthwhile if it salvages rather than discards samples.

The overhead literature motivates cost-aware reporting. TrueTeacher spends 540B-parameter inference to label 1.4M examples. From Big to Small Without Losing It All profiles student gains against API spend. Neither asks whether a stronger student prior reduces how much must be generated in the first place.

Research Program

The setting is data-scarce image classification. We have a small real labeled set: 10% of ImageNet-1k for the headline experiments and a subsampled TinyImageNet for fast sweeps. We also have a fixed off-the-shelf class-conditional diffusion generator that is not trained on the held-out evaluation data. We use one generator throughout so that cost comparisons are apples to apples.

We train two weak teachers on the real subset in the CivT style. One is a small ResNet, a convolutional network; the other is a small involution network. For each generated image $x$ requested with class $y$, the teachers give predicted distributions $p_C$ and $p_I$. We compute a trust weight

$$w(x) = \sqrt{p_C(y \mid x)\, p_I(y \mid x)},$$

which is the geometric mean of the two teachers' probabilities on the requested label. It is high only if both architectures independently recognize the class.

When $w$ is low, we check whether the two teachers agree on some other label $y'$ with high probability. If they do, the sample is relabeled to $y'$ rather than dropped. Otherwise it stays in training with cross-entropy weight $w(x)$ and no distillation loss. The idea is to keep ambiguous long-tail samples without teaching the student a teacher's guess on them.

The student is a DeiT-Ti-sized ViT with CivT's two auxiliary tokens. Distillation runs only for an early phase, following DearKD, and the tokens are discarded at inference. We then sweep the generation budget along a logarithmic grid. For each budget we record accuracy together with total compute, where total compute is generator sampling on all images plus teacher passes. Teacher passes are expected to be a small fraction of the total, and we will report them rather than assume it.

The analysis addresses three questions:

  • Error independence. Is cross-architecture disagreement more independent of generator errors than seed disagreement? We measure this by hand-auditing a stratified sample of a few thousand generated images for label correctness and artifacts, then computing precision and recall of each filter against the audit.
  • Relabel versus drop. How much of the gain comes from relabeling rather than dropping? This is measured as the fraction of paid compute recovered.
  • Bias transfer and shortcuts. Does bias transfer reduce the student's reliance on generator shortcuts? We test on ImageNet-R, which InBiaseD used to show that shape-oriented distillation resists texture shortcuts.

Baselines

Unfiltered generation. The naive reference is the same ViT trained on unfiltered generated images plus the real subset, with no distillation, at every point of the budget sweep. This shows how far raw volume alone gets. Our method must reach this baseline's best accuracy with at most half its generation compute to count as a real saving.

DeiT-style continuous distillation. This is a single ResNet teacher distilling throughout training (DeiT). Its teacher is a ResNet whose total parameter count equals the sum of our two teachers. The data is the same, and it uses our best filter, so the comparison isolates the teacher design.

Strongest competitor. The strongest existing method is CivT's two-teacher distillation trained on the same unfiltered synthetic pool. It already contains both teachers and both priors; the only thing it lacks is using their disagreement to route samples. Beating it at matched compute is therefore the direct test of our contribution.

Reference numbers. CivT-Ti reports 74.9% on ImageNet-1k with full real data (Co-advise). DearKD-Ti reports 72.3% on 50% real data. DF-DearKD reports 71.2% with zero real data (DearKD). The file has no reported result on Lacuna for a ViT trained on 10% real ImageNet plus diffusion-generated images, so we will establish that reference ourselves. A useful target is to match DearKD-Ti's 72.3% while using only 10% real data and a stated synthetic budget.

Tuning and hardware. All methods get the same number of hyperparameter trials, chosen on a held-out real validation split, and run on the same hardware.

Key-ingredient ablations. Two ablations isolate the key ingredient, which is bias diversity in the filter.

  • Homogeneous pair. Replace the involution teacher with a second ResNet from a different seed. We match its real-data accuracy to within one point of the involution teacher, so any gap comes from bias diversity rather than strength.
  • Single-teacher weighting. Replace the geometric-mean weight with the confidence of the stronger single teacher alone.

A third ablation swaps soft routing for a hard filter at the same trust threshold. It tests whether salvaging samples matters beyond detecting bad ones.

Why not just…?

Why not just generate more images and skip filtering? Volume does wash out some label noise. The experience of Ensemble-Instruct and DISCO, where 75k filtered samples beat more than a million uncurated ones, suggests that noise ceilings arrive before compute runs out. That evidence comes from text, not images. The budget sweep settles it directly: if the unfiltered curve reaches the same accuracy at the same total compute, the filtering half of this proposal is unnecessary, and we will report that.

Why not just filter by one strong teacher's confidence? This is the most serious threat. A single classifier trained on real data may catch most mislabeled generations, and it is simpler. Our argument for two teachers is CivT's finding that complementary weak teachers beat one strong one, together with the concern that one teacher systematically rejects images outside its own blind spots. That rejection would shrink coverage. The single-teacher ablation, combined with the hand audit, measures both precision and the diversity of accepted samples. If single-teacher weighting matches ours, the contribution narrows to "reuse the distillation teacher as a free filter and relabel instead of drop." That is still useful, but it is smaller, and we would say so.

Why not just ensemble seeds of one architecture? Seed ensembles are simpler and remove individual-model noise. However, they share architectural blind spots, which is the correlated-error failure noted for same-family language model ensembles. The weight averaging in Artificial Inductive Bias for Synthetic Tabular Data Generation also improved fidelity without any per-sample check. The matched-accuracy homogeneous-pair ablation measures this directly.

Why not just train a CNN student, which already has the right priors? For a fixed small budget, a ResNet student may well win. We include one trained on the same data. The case for the ViT rests on the higher ceiling that DearKD and CivT report once enough data is available. We will report the budget at which the ViT student overtakes the CNN student, if it does. If it never does within our sweep, that is a finding about the synthetic regime worth stating.

Proposed Experiments

Decisive check 1: filter quality. On TinyImageNet with 10% real data, we run the full budget sweep for all baselines and ablations, three seeds each. The first decision is a filter-quality result against the hand audit. Cross-architecture disagreement should achieve higher precision than seed disagreement at equal recall for identifying mislabeled or artifact-dominated generations. If it does not, the core premise fails, and we stop before ImageNet scale.

Decisive check 2: compute to reach a target accuracy. The second decision is compute-to-target. At the accuracy that unfiltered training reaches at its largest budget, we compare the total generation GPU-hours each method needs, including rejected samples. We expect our method to need substantially less, with relabeling recovering a measurable share of the samples a hard filter would discard.

Headline replication and robustness. The headline replication repeats the best two configurations and CivT-on-synthetic at 10% ImageNet-1k with a DeiT-Ti student. We report top-1 accuracy, ImageNet-R accuracy, and Expected Calibration Error (the gap between confidence and accuracy), since InBiaseD found calibration moves strongly with shape bias. A separate check trains a student with no distillation on data weighted by our filter. This separates the filter's contribution from the bias transfer's and tests the third claim: that the transferred prior shifts the accuracy-versus-compute curve beyond what clean data alone provides.

Cost reporting. Every table reports generator sampling steps, GPU-hours, accepted fraction, relabeled fraction, and teacher-pass overhead. The file notes that such numbers are rarely published, and they are the point of the exercise.