Choosing Which Face-Model Attention Heads Should Look Across Time

A face model trained only on still photos already knows a great deal about faces: where the eyes and mouth are, and how skin folds when a muscle contracts. It does not know how those deformations unfold over time. Recognizing emotion from video depends on that timing: how fast an expression starts, when it peaks, and how it fades. The usual remedy is to pre-train a video model from scratch on a million face clips, as MAE-DFER does on VoxCeleb2. This proposal tests a cheaper route. We take a still-image face transformer and repurpose a small, chosen set of its attention heads to look at neighbouring frames. An attention head is one of the parallel sub-units inside a transformer layer, each deciding which other image patches to read from. We pick those heads with a scoring rule that costs a few forward passes on unlabeled face video, so no candidate network has to be trained to completion.

The question is which heads to convert and at what time offset. That is a small architecture search, and the obvious ways to answer it are either costly (fine-tune many candidates) or known to rank poorly (generic scores computed at random initialization). We propose a score that only makes sense for an already pre-trained network. It measures, for each head, how much the still-image face representation loses if that head stops looking within the frame. It also measures how much that head, once pointed at a nearby frame, helps predict the motion between frames. Because the conversion follows ZeroI2V and is folded back into the original weights after training, the final video model has exactly the parameters and inference cost of the image model. The claim is that an image-pretrained face transformer with a searched set of temporal heads can approach video-pretrained face models on in-the-wild expression benchmarks. It would do so at a small fraction of their pre-training compute, and the head-selection score would rank configurations about as well as short fine-tuning runs while costing far less.

Core Claim

Spatial-to-temporal head allocation matters for faces, and a weight-aware, motion-grounded score can choose it without training candidates. Allocation should matter for faces in particular because the motion signal is concentrated in small regions and probably in specific layers. Early layers track local muscle deformation and deeper layers carry expression-level meaning, which is the layered picture suggested by work on face self-supervision (MAE-Face; UniLearn). A uniform or hand-picked split, like the one ZeroI2V uses for generic action video, should therefore leave accuracy on the table. If that is false, and random or uniform allocation does as well, the search component is unnecessary. The experiments are designed so that this outcome is visible.

Relation to Prior Work

Three lines of work sit closest to this proposal, each covering two of the three directions.

ZeroI2V turns some heads of an image transformer into temporal heads that attend to a frame offset by $\Delta t$. It trains with linear adapters that are merged into the original projections afterwards, so inference adds no parameters or computation. It reports 72.2% top-1 on Something-Something V2. Its head allocation is manual, its backbone is generic ImageNet-pretrained, and it was never tested on faces. We reuse its mechanism unchanged and replace the manual allocation with a search over a face-pretrained backbone.

MAE-DFER pre-trains a video transformer on VoxCeleb2 to reconstruct both masked pixels and masked frame differences ($I_t - I_{t-1}$). Its ablations show that a roughly even balance between appearance and motion targets works best. UniLearn pre-trains jointly on face images and videos and routes between hand-placed adapter experts. Both pay for video pre-training and both fix their spatiotemporal structure by hand. MAE-DFER plays two roles here. It motivates the proposal by showing that face-specific video data beats Kinetics-400 pre-training. It also supplies our motion signal, because we borrow its frame-difference target as the quantity our score measures.

On the search side, EZNAS evolves scoring formulas computed at random initialization, reaching a Kendall rank correlation of 0.65 on NASBench-201 against 0.57 for Synflow and NASWOT. It also reports that such scores rank the top 10% of architectures poorly. Rethinking Performance Estimation in NAS instead ranks candidates by short, reduced-budget training. It finds that epoch count and depth matter for preserving rankings while input resolution can be cut. Both papers constrain our design. Random-initialization scores cannot see what pre-training learned, so we do not use them as our method. Short training is the strongest cheap competitor to our score, so it is a required baseline. The genetic search of Deng et al. is the only face-expression architecture search in the file. It trains every CNN from scratch on static frames, and its benchmark saturation (100% on CK+) makes those benchmarks useless for our question.

Research Program

We start from a still-image face vision transformer. The preferred choice is a masked-autoencoder model pre-trained on face crops in the manner of MAE-Face, using its checkpoint if available, or otherwise re-pretrained on the same pooled face datasets with an accounted compute cost. An identity-trained face transformer from TransFace or TFace serves as a second backbone to test generality. The search space assigns each of the roughly 144 heads of a base-size model one of three states: spatial, temporal with $\Delta t = 1$, or temporal with $\Delta t = 2$. A fixed budget $B$ limits how many heads may become temporal.

For head $h$ we compute a score from the frozen pre-trained weights on a few hundred unlabeled face clips (VoxCeleb2 or the training split of the target set, without labels). The score has two terms. The first is a spatial cost, defined as the increase in masked-patch reconstruction loss on single frames when head $h$'s within-frame attention is removed. The second is a temporal gain, defined as the reduction in error of a lightweight linear probe that predicts masked frame differences, measured when head $h$ attends to frame $t-\Delta t$ instead of frame $t$. Concretely,

$$s(h,\Delta t) = G_{\text{motion}}(h,\Delta t) - \lambda\, C_{\text{spatial}}(h),$$

where $G_{\text{motion}}$ is that drop in frame-difference prediction error, $C_{\text{spatial}}$ is that rise in single-frame reconstruction error, and $\lambda$ trades them off. The single value of $\lambda$ is set on one validation fold and then frozen. Selecting the top-$B$ (head, offset) pairs under the constraint of one state per head is a small assignment problem. The whole search costs minutes of GPU time. We then fine-tune the chosen configuration with ZeroI2V adapters, merge them, and evaluate.

Beyond accuracy, the analysis asks where the selected temporal heads lie by layer, and whether they cluster on the eye and mouth regions in attention maps. It also asks whether the same allocation transfers across datasets, or whether each dataset wants a different one, as the varying depths found by Deng et al. hint. Known risks include in-the-wild alignment jitter, since MAE-Face reports sensitivity to misalignment and jitter could make frame-difference signals reflect head motion rather than muscle motion. We control for this by running the score on both raw and landmark-stabilized clips.

Baselines

The naive reference point is the same face-pretrained image model fine-tuned on single frames, with predictions averaged over the 16 sampled frames and no temporal heads. It shows how much of the task is solvable without any temporal modelling. Matching it would mean the temporal machinery contributes nothing on these benchmarks.

The strongest existing methods are the video-pretrained face models. UniLearn reports 76.68% weighted average recall (WAR) on DFEW, 53.65% WAR on FERV39k, and 58.44% WAR on MAFW. Those are the numbers to approach, with the gap reported alongside the pre-training compute each method consumed. For MAE-DFER, the file gives only relative gains (+6.30% UAR on DFEW, +8.34% UAR on MAFW over supervised baselines). No absolute MAE-DFER number was found on Lacuna, so we will rerun its released model on our splits if possible and otherwise compare against UniLearn. We do not need to exceed UniLearn to succeed. Success means landing within about two WAR points of it at under a tenth of its pre-training cost and with identical inference cost to the image model. Exceeding it would be a bonus.

The baselines that isolate the search are run at the same head budget $B$, the same 16-frame input, and the same fine-tuning schedule and tuning sweep, with three seeds each. The first is ZeroI2V's manual allocation transplanted onto the face backbone. The second is uniform allocation, with an equal number of temporal heads per layer. The third is the best of 20 random allocations, which is deliberately given 20 times our fine-tuning compute. The fourth is a short-training ranker in the style of budgeted performance estimation. It fine-tunes each of 50 candidate allocations for one epoch at reduced resolution and keeps the best, and its GPU-hours are reported next to ours. The fifth set is generic initialization-time scores (Synflow, NASWOT) applied to the same candidates.

Two ablations target the key ingredient. One computes our score with an ImageNet-pretrained backbone, which tests whether face pre-training is what makes the score informative. The other drops each of the score's two terms in turn. Beating these baselines means our allocation exceeds uniform, manual, and random allocation by more than seed variance on at least two of the three in-the-wild benchmarks, and matches the short-training ranker within one WAR point at a small fraction of its cost.

Why not just…?

Why not just fine-tune MAE-DFER or UniLearn and stop? If accuracy is all that matters, that is the right answer, and we expect those models to stay ahead by some margin. Our question is different: how much of their benefit can be bought without million-clip video pre-training? That matters whenever a strong image face model exists but face-video pre-training is out of reach. The comparison against UniLearn's reported WAR, with compute on the other axis, settles whether the cheaper route is worth taking.

Why not just use uniform or random head allocation? This is the most serious threat. ZeroI2V's success with simple heuristics on generic video suggests allocation might not matter much. If uniform or best-of-20-random allocation matches ours on DFEW, FERV39k, and MAFW, we will report that the search is unnecessary and that the contribution reduces to "ZeroI2V works on face backbones." That is a useful finding, but a smaller one. The layer-wise analysis also matters here. If the selected heads are spread roughly uniformly across layers, that would explain such a null result.

Why not just rank candidates with one epoch of fine-tuning? Short training is the known strong cheap estimator, and it uses labels our score never sees. It may rank better. We measure both approaches against a ground-truth ranking and report rank correlation against cost. If short training wins clearly, the honest recommendation is to use it and treat our score only as a pre-filter.

Why not just put an LSTM on per-frame face embeddings? Prior evidence is discouraging. Hassani and Mahoor found that adding LSTMs to deep face features worsened valence estimation on Aff-Wild, and FERV39k reports only 44.54% WAR for a two-stream VGG13-LSTM. We still include an LSTM-on-frozen-features run at matched parameter count, because the frame embeddings here come from a much stronger face model.

Proposed Experiments

The first experiment builds a ground-truth ranking. Sixty head allocations, spanning manual, uniform, random, layer-concentrated, and score-selected designs, are fully fine-tuned on DFEW fold 1. We then report Kendall rank correlation with final WAR, both overall and within the top 10%, for our score, the short-training ranker, and the generic initialization-time scores. EZNAS's 0.65 on NASBench-201 is a reference for what "good" looks like in a very different setting, not a target. The second experiment is the main comparison on DFEW, FERV39k, and MAFW using unweighted and weighted average recall, plus per-class recall for disgust and fear, where AU-DFER and UniLearn show minority classes collapse. Compute is reported as pre-training GPU-hours, search GPU-hours, and inference cost.

The decisive check that the model really uses timing is a reversal test. We play each test clip backwards and measure how much predictions change, and we train a linear probe to tell onset-to-apex from apex-to-offset segments. Averaging over frames cannot separate these orders, as Jiang et al. point out, so a model with real temporal heads should. The naive frame-averaged baseline gives the zero point. We also run the score-based selection on a lab dataset with clear onset structure (CREMA-D or RAVDESS) and check whether the selected allocations transfer between lab and in-the-wild data.

The proposal is supported if three things hold together. The searched allocation must beat uniform and random allocation beyond seed noise. The score must rank within reach of short training at a small fraction of its cost. The reversal probe must show order sensitivity that the frame-averaged baseline lacks.