Rare-Emotion Drift in Fast Face Generators: Distilling Attention on the Student's Own Trajectory

Small, fast image generators are increasingly proposed as a way to fill the empty corners of emotion datasets. Real-world face collections contain thousands of smiling or neutral faces and only a few hundred frightened or disgusted ones. Classifiers trained on them learn to ignore the rare emotions, and synthetic faces are a natural fix. The generators people actually want to run at scale are compressed: a large latent diffusion model (a generator that denoises random noise into an image inside the compact code space of an autoencoder) is shrunk into a small student that samples in a handful of steps. We argue that this compression step quietly undoes the purpose of the augmentation. A few-step student is trained only on states the teacher would visit. At sampling time it feeds on its own slightly wrong intermediate images, an error known as exposure bias. We expect this drift to be largest for exactly the rare emotions, because the training data covers those regions of latent space thinly. The faces get distorted first in the small muscle movements that define fear and disgust.

The proposal is a single change to how such students are distilled. KOALA-style distillation matches the teacher's attention maps on teacher-generated states. We instead roll out the student, then ask the teacher where it would attend and what it would predict on the student's own drifted latents, and weight this correction by class rarity. The claim is testable in two parts. First, exposure bias in compressed face generators is class-dependent and concentrated on tail emotions. Second, on-trajectory attention distillation removes this tail-specific drift better than training-free fixes, and the improvement carries over to tail-class recall of a downstream expression classifier.

Core Claim

Two pieces of prior work set up the gap. KOALA compresses the SDXL U-Net to 700M–1B parameters. It shows that distilling decoder self-attention maps beats distilling raw features, because it prevents "appearance leakage" between regions, and its students run in 10 or fewer steps. However, it distills on teacher trajectories over broad open-domain data and has no mechanism for the student's own drift. Separately, Manifold Constraint Reduces Exposure Bias in Accelerated Diffusion Sampling shows that in the 4–10 step regime, drift off the data manifold is strongly magnified in the predicted clean image. Elucidating the Exposure Bias in Diffusion Models shows that sampled states carry systematically higher variance than training states and that models over-predict noise magnitude. Neither of these papers asks whether drift is uniform across classes, and both evaluate on balanced data.

Our hypothesis is that it is not uniform. In a face generator trained on AffectNet-like data, the per-step variance gap $\delta_t$ (the metric from the Elucidating paper) should be larger for fear and disgust than for happiness and neutral. The student's attention should diverge from the teacher's mostly over brow, eye and mouth regions. The method that follows from this is on-trajectory, rarity-weighted attention distillation. Let $\hat z_t$ be a latent produced by running the student's own sampler from noise to step $t$ under emotion condition $c$. Let $A^{T}_\ell(\hat z_t, c)$ and $A^{S}_\ell(\hat z_t, c)$ be teacher and student self-attention maps at matched decoder layer $\ell$, and $\epsilon^{T}$, $\epsilon^{S}$ their noise predictions on that same state. The loss is

$$ \mathcal{L} = \mathbb{E}_{c,\,\hat z_t \sim \text{student}}\; w_c \Big[ \sum_{\ell} \big\| A^{T}_\ell(\hat z_t,c) - A^{S}_\ell(\hat z_t,c) \big\|_2^2 \;+\; \lambda \big\| \epsilon^{T}(\hat z_t,c) - \epsilon^{S}(\hat z_t,c) \big\|_2^2 \Big], $$

where $w_c$ is the inverse effective-number weight of class $c$ and $\lambda$ balances the two terms. The effective-number weighting is borrowed from the re-balancing in Leave No Stone Unturned. Two choices define the method. The first is that the expectation is over the student's distribution, not the teacher's. This is the on-policy idea used for language models in SpikeOPD and for autoregressive video in Context-Matched Distillation, carried here into few-step latent diffusion. The second is that the supervised quantity is attention, which KOALA found to be the right target for spatial structure. The attention term is a hypothesis we test, not an assumption.

Research Program

The teacher is a latent diffusion face generator conditioned on emotion category and action units (labelled facial muscle movements). It follows the design of SynFER, which adds an action-unit adapter and semantic guidance to Stable Diffusion and reports a facial-expression FID of 16.32 versus 88.40 for plain Stable Diffusion. It is trained on AffectNet. We reuse SynFER's released components if available and otherwise reproduce its adapter design. The student is a KOALA-style pruned U-Net run at 4, 6 and 10 steps. Attention distillation is restricted to the decoder self-attention layers, as in KOALA, at latent resolutions where the quadratic memory cost of full attention maps is manageable.

The work has three stages. The first is diagnostic. For teacher and off-policy-distilled student, we measure per-class $\delta_t$ along the trajectory. We also measure per-class attention divergence between student and teacher on student states. In addition, we measure per-class autoencoder reconstruction error on real faces. The reconstruction check matters because the autoencoder bounds everything downstream. If the autoencoder itself erases the subtle muscle movements of fear, no sampler correction can recover them, and the problem is in the tokenizer, not the trajectory. The second stage trains the on-trajectory student with student rollouts refreshed periodically. The rollout cost is bounded by the step count of 4–10. The third stage uses the student to generate balanced tail data and trains expression classifiers on RAF-DB and AffectNet.

Baselines

The naive reference point has two parts. The first is the real imbalanced data alone. The second is balanced resampling, which Semantic Data Augmentation for Long-tailed Facial Expression Recognition reports at ResNet34 mAP 0.6412 on RAF-DB, against 0.5587 with no augmentation. Its own latent VAE-GAN covariance augmentation reaches 0.6737. That VAE-GAN augmentation is the strongest non-diffusion generative baseline. We rerun it with the same ResNet34 and the same number of synthetic tail images. Beating it means exceeding its mAP and its fear and disgust recall at matched synthetic volume.

The strongest discriminative competitor is RAC with re-balanced smooth labels from Leave No Stone Unturned. That method forces the classifier to produce attention maps for every class on every image, and it reports 89.77% overall and 82.44% mean accuracy on RAF-DB. It raised disgust and fear from about 59% to 66%. We treat it as the classifier to beat and to build on. The fair comparison is RAC trained on real data against the identical RAC recipe trained on real data plus our synthetic tail faces, with the same backbone, epochs and tuning budget. Beating it means a statistically reliable gain in mean accuracy and in fear and disgust accuracy over three seeds.

On the generator side, the strongest competitor is the uncompressed teacher sampled with many steps, which is the SynFER regime. SynFER reports AffectNet accuracy rising from 67.23% to 69.84% with synthetic data five times the size of AffectNet. We compare at matched numbers of synthetic images and report wall-clock cost. The bar for "beating" it is matching its downstream tail recall at a fraction of its sampling cost, not exceeding its image quality. Training-free drift correction applied to an off-policy KOALA-style student forms a third baseline. This means Epsilon Scaling, which on CelebA-HQ 256 LDM moved FID from 29.62 to 15.68, and MCDO, which reports 15.60 FID for 10-step SDXL on MS-COCO. Their scaling factor and cutoff threshold get the same tuning budget we give our own $\lambda$. We also report a trained prompt network following Anti-Exposure Bias in Diffusion Models if compute allows.

Three ablations isolate the ingredients. The first is on-trajectory distillation with only the output term, which shows whether attention matters. The second is off-trajectory attention distillation with rarity weights, which shows whether the on-policy part matters. The third is on-trajectory attention distillation without rarity weights, which shows whether weighting matters. All students share architecture, data, step count and GPU-hours.

Why not just…?

Why not just apply Epsilon Scaling or MCDO to the fast student? This is the most serious threat, and it is cheap. Both methods correct a global statistic: noise magnitude in one case, the variance of the predicted clean image in the other. Neither has any notion of class or spatial region. If tail drift is mostly a larger magnitude error, a class-conditional scale factor could match our method. We therefore include class-conditional Epsilon Scaling as a stronger variant of this baseline. If it closes the gap, we will report that the problem is magnitude, not direction, and that training is unnecessary. Our method earns its cost only if residual attention divergence over action-unit regions remains after scaling and is removed by on-trajectory training.

Why not just skip compression and sample the big teacher longer? For offline dataset building, cost is the only argument against it. Input Perturbation Reduces Exposure Bias in Diffusion Models shows that more steps also means more steps over which exposure bias accumulates, so longer is not automatically better for tail fidelity. We run the teacher at several step counts. If the teacher at full cost dominates and the student matches it only on head classes, the honest conclusion is that compression should not be used for tail augmentation.

Why not just oversample tail prompts during ordinary KOALA distillation? This changes what the student sees but not whose states it sees. It is exactly our third ablation with weights on and rollouts off. If it matches the full method, the on-policy component is unnecessary and the contribution reduces to class-weighted distillation.

Why not just distill outputs on student rollouts, as on-policy language model distillation does? That is the output-only ablation. KOALA's evidence that attention beats feature matching was obtained off-policy on open-domain images, so it may not transfer. A null result here would be informative in its own right.

Proposed Experiments

The first decisive check is the premise. We run an off-policy student at 4–10 steps and test whether per-class $\delta_t$ and attention divergence are larger for fear, disgust and sadness than for happiness and neutral, after controlling for autoencoder reconstruction error. If not, the class-specific framing is wrong. We would then report the measurement and retreat to a plain on-policy distillation study.

The second check is generator quality per class. We report per-class FID against held-out AffectNet faces and tail-class recognizability by an independently trained expression classifier. We also report action-unit agreement between the conditioning and an action-unit detector applied to generated faces. Each is reported for the full method, every ablation and every drift-correction baseline, at 4, 6 and 10 steps.

The third check is downstream. On RAF-DB (281 fear versus 4,772 happiness training images) and AffectNet, we train ResNet34 and the RAC recipe with each generator's synthetic tail data at matched volume. We report overall accuracy, mean class accuracy, mAP, and per-class recall for fear and disgust over three seeds. We also test on FERPlus without retraining to expose generator-specific artifacts. For FERPlus, no reported result was found on Lacuna, so we report our own reproduced baseline. The headline result we would need is this: the on-trajectory, attention-weighted student at 4–6 steps matches the many-step teacher's downstream tail recall, beats class-conditional Epsilon Scaling on the same student, and lifts RAC's fear and disgust accuracy above its reported ~66%.