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

Behaviour4All: A Dependency-Aware Toolkit for in-the-wild Facial Behaviour Analysis

Dimitrios Kollias, Chunchang Shao, Odysseus Kaloidas, Ioannis PatrasNeurIPS 2026

TL;DR

Human faces tell one unified story, yet computer vision usually reads them through fragmented models—separately analyzing muscle twitches, emotion labels, and mood intensity. Behaviour4All is an open-source, real-time toolkit that brings these pieces together, using psychological ground truths to make different facial analysis tasks actively teach and check each other. The result is a single, fast model that learns gracefully from messy, partially labeled datasets and beats specialized state-of-the-art systems across the board.

What Problem Does This Paper Address?

When affective computing researchers analyze a face, they typically look through three distinct lenses:

  1. Action Units (AUs): Specific, localized muscle movements (e.g., AU12 is pulling up your lip corners).
  2. Basic Expressions (EXP): Discrete categories like happiness, anger, or surprise.
  3. Valence–Arousal (VA): Continuous coordinates measuring how positive/negative (valence) and intense/calm (arousal) an emotion feels.

Obviously, these are deeply connected—you rarely look genuinely "happy" while feeling miserable and suppressing a smile. Yet, existing toolkits either train completely separate models for each task (missing out on shared clues) or mash them into standard Multi-Task Learning (MTL) setups that optimize a naive weighted sum of losses.

Standard MTL breaks down quickly in the wild because almost no dataset labels all three tasks at once. When you train on mismatched, partially labeled datasets without teaching the network how the tasks relate, you get conflicting gradients, negative transfer (tasks actively hurting each other's accuracy), and semantic drift (a model absurdly predicting "happy" alongside strongly negative valence).

Methods

Behaviour4All splits its pipeline into two stages: a standard pre-processing module (FaceLocalizationNet using RetinaFace to detect and align faces to $112 \times 112$) and the core innovation, FaceMultiBehaviourNet, a multi-task CNN predicting 17 AUs, 7 expressions, and VA values simultaneously.

Figure 1: Behaviour4All Toolkit, composed of: FaceLocalizationNet (simultaneous Face and Land- mark Detection & Alignment) and FaceMultiBehaviourNet (simultaneous 17 AUs Detection, 7 Basic Expression Recognition & Valence-Arousal Estimation)

Instead of hoping a shared backbone figures things out on its own, the authors introduce a dependency-aware optimization framework combining three loss families:

  • Task-Specific Supervision: Standard losses (Cross-Entropy for EXP, Binary Cross-Entropy for AUs, and Concordance Correlation Coefficient for VA) to keep individual heads sharp on labeled data.
  • Relational Priors: Explicit psychological rules linking the tasks. The authors map expressions to empirical VA centroids and known AU muscle patterns. Using these, they enforce bidirectional consistency—for instance, if predicted AUs imply "happiness," mapping that expression back must reconstruct those exact AUs, and VA predictions must reconstruct cleanly back to their implied expression centroids. Crucially, they add Confidence-Weighted Distribution Synchronization (CW-DS), which measures the entropy of the VA prediction and dials down strict cross-task alignment on ambiguous or neutral faces so noisy gradients don't destabilize training.
  • Geometry Modelling: Contrastive losses operating directly on the classifier prototypes in the shared latent space, pulling compatible concepts (like a "happy" sample and AU12) together while pushing incompatible ones (like "sadness") apart.
Figure 2: FaceMultiBehaviourNet integrates 3 complementary components: (i) task-specific supervi- sion for VA-E, EXP recognition and AU-D; (ii) cross-task dependency modelling via relational priors (VA–EXP, AU–EXP, CW-DS); (iii) geometry modelling for coherent representations across tasks.

To prevent gradient shock during training, these losses are phased in gradually over 50 epochs: warming up on task losses alone (epochs 1–6), ramping up relational priors (epochs 7–27), and finally shaping the latent geometry (epochs 28–50).

Datasets

The authors train on a merged collection of seven major datasets with partial, heterogeneous labels: Aff-Wild (VA), AffectNet (EXP, VA), RAF-DB (EXP), and EmotioNet, DISFA, BP4D, and BP4D+ (all AUs).

Notably, alongside original splits, they evaluate on newly repartitioned "New" splits (for AffectNet, RAF-DB, EmotioNet, and DISFA) introduced in recent literature to balance demographics and ensure fair, leak-free comparisons. Finally, they test zero-shot cross-dataset generalization and downstream transfer on unseen benchmarks: Aff-Wild2, AFEW-VA, GFT, and compound expression subsets of EmotioNet and RAF-DB.

Key Insights and Ideas

  • Naive MTL actively hurts expression recognition: In ablation studies, vanilla multi-task learning performed worse on expression datasets than single-task models (e.g., dropping from 68.4% to 65.1% F1 on RAF-DB)—textbook negative transfer. Adding relational priors and geometry completely reversed this, vaulting performance to 79.8%.
  • More raw data isn't the secret sauce: You might suspect Behaviour4All wins simply because it merges seven training sets. The authors verify this isn't the case—blindly pooling same-task data actually hurts due to annotation biases and label noise unless structured cross-task priors are there to regularize it.
  • Know when not to enforce consistency: Forcing a neutral or transitional face to strictly obey prototypical emotion-muscle rules amplifies noise. Modulating cross-task constraints via VA confidence (CW-DS) keeps optimization stable.

Key Results

Behaviour4All outperforms both specialized state-of-the-art models and existing toolkits (like OpenFace 2.0, py-feat, and LibreFace) across all tasks:

  • Expression Recognition (F1): Hits 79.8% on RAF-DB (beating SOTA by +10.7% and other toolkits by >20%) and 62.9% on the strict AffectNet "New" split (+2.6% over SOTA).
  • Valence–Arousal (CCC): Reaches 59.3% on Aff-Wild and 63.7% on AffectNet (+6.2% over SOTA on both; no other toolkit even supports VA).
  • Action Units (F1): Achieves massive jumps, reaching 81.8% on EmotioNet (+18.2% over SOTA, +45.3% over toolkits) and 82.1% on DISFA (+12.0% over SOTA).
  • Generalization & Speed: On completely unseen datasets, it beats dataset-trained SOTA models (e.g., 70.5% vs. 54.0% CCC on AFEW-VA) and excels at zero-shot Compound Expression Recognition. Despite predicting all three tasks at once, it matches LibreFace's real-time speed and runs much faster than OpenFace and py-feat, while improving demographic fairness across age, gender, and race.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@inproceedings{kollias2026behaviour,
  author = {Dimitrios Kollias and Chunchang Shao and Odysseus Kaloidas and Ioannis Patras},
  title = {{Behaviour4All: A Dependency-Aware Toolkit for in-the-wild Facial Behaviour Analysis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=f4bSbN3cg8},
}
Figure