THIN: THrowable Information Networks and Application for Facial Expression Recognition in the Wild

Estèphe Arnaud, Arnaud Dapogny, Kévin Bailly

Abstract

For a number of machine learning problems, an exogenous variable can be identified such that it heavily influences the appearance of the different classes, and an ideal classifier should be invariant to this variable. An example of such exogenous variable is identity if facial expression recognition (FER) is considered. In this paper, we propose a dual exogenous/endogenous representation. The former captures the exogenous variable whereas the second one models the task at hand (e.g. facial expression). We design a prediction layer that uses a tree-gated deep ensemble conditioned by the exogenous representation. We also propose an exogenous dispelling loss to remove the exogenous information from the endogenous representation. Thus, the exogenous information is used two times in a throwable fashion, first as a conditioning variable for the target task, and second to create invariance within the endogenous representation. We call this method THIN, standing for THrowable Information Networks. We experimentally validate THIN in several contexts where an exogenous information can be identified, such as digit recognition under large rotations and shape recognition at multiple scales. We also apply it to FER with identity as the exogenous variable. We demonstrate that THIN significantly outperforms state-of-the-art approaches on several challenging datasets.

Introduction: The Nuisance of Identity

In computer vision, identifying a target class (e.g., a specific facial expression) is often complicated by variables that are irrelevant to the task but significantly alter the visual data. These are known as exogenous variables. For instance, in Facial Expression Recognition (FER), a person's unique identity, age, and gender act as exogenous variables that create high intra-class variability. A "disgust" expression on a young child looks physically different from the same expression on an elderly man.

Examples of exogenous variables: (a) rotation in MNIST, (b) scale in dSprites, and (c) identity in facial images.

Ideally, a classifier should be invariant to identity but conditioned by it to understand the context of the movement. Most existing methods either try to ignore identity entirely or require datasets where every person is labeled with every possible expression—a luxury rarely found in "in-the-wild" web-scraped datasets.

The THIN Framework

The authors propose THIN (THrowable Information Networks), a dual-representation architecture designed to treat exogenous information as "throwable"—useful during the process to specialize predictions but eventually removed to ensure final model robustness.

Dual Representations and Tree-Gated Ensembles

The core of THIN lies in extracting two distinct feature vectors from the input:

  1. Endogenous Representation ($h_{endo}$): Captures the target task (e.g., the expression).
  2. Exogenous Representation ($h_{exo}$): Captures the context (e.g., the identity).
The THIN architecture: Exogenous and endogenous features are extracted separately. A tree gate uses the exogenous context to weight a committee of specialist classifiers.

Instead of a single "strong" classifier, THIN employs a Deep Tree Gate that uses the exogenous representation to condition a Deep Ensemble of specialist predictors ($C_{\theta_1} \dots C_{\theta_4}$). This allows the model to partition the identity space—for example, having branches specialized for different age groups or facial structures—leading to more accurate local predictions.

Exogenous Dispelling Loss

To ensure the endogenous features don't "leak" identity information, the authors introduce a novel dispelling loss. This loss uses an angular distance metric to semantically orthogonalize the two feature spaces, forcing the expression features to be as uninformative about identity as possible. The identity information is used to pick the right specialist and then "thrown away" to clean the task features.

Experimental Results

THIN was validated on synthetic benchmarks (MNIST-R for rotation and dSprites for scale) and large-scale real-world FER datasets including RAF-DB, AffectNet, and ExpW. Notably, THIN does not require identity labels for the target FER dataset; it leverages a separate, pre-trained face recognition model (trained on LFW).

Key performance highlights include:

  • RAF-DB: Achieved 87.81% accuracy, surpassing the previous state-of-the-art (RAN) of 86.9%.
  • AffectNet: Reached 63.97%, a significant jump over the 59.5% seen in prior work.
  • ExpW: Hit 76.08% accuracy, outperforming EAFR (71.90%).

Ablation studies confirmed that while the tree-gated ensemble provides a strong boost, the addition of the dispelling loss provides the final accuracy needed to break records.

Conclusion

THIN demonstrates that "nuisance" variables like identity are actually valuable resources. By using them to specialize predictors and then dispelling them to ensure feature purity, THIN achieves superior performance in challenging, "in-the-wild" scenarios without requiring explicit identity labels during training on the target task.

Summary updated

BibTeX
@article{arnaud2023thin,
  author = {Estèphe Arnaud and Arnaud Dapogny and Kévin Bailly},
  title = {{THIN: THrowable Information Networks and Application for Facial Expression Recognition in the Wild}},
  journal = {IEEE Trans. Affect. Comput.},
  year = {2023},
  doi = {10.1109/taffc.2022.3144439},
}
Figure