Exp-Graph: Facial Expression Recognition
- Exp-Graph is a graph-based modeling framework for facial expression recognition that uses facial landmarks as dynamic graph vertices.
- It combines Vision Transformer patch encoding with graph convolutional networks to integrate local appearance and geometric features.
- Careful hyperparameter tuning and dynamic edge construction yield superior performance on datasets like Oulu-CASIA, eNTERFACE05, and AFEW.
Searching arXiv for the topic and related papers.
Exp-Graph is a graph-based modeling framework for facial expression recognition in which facial landmarks serve as graph vertices, edge formation combines landmark proximity with local appearance similarity encoded by a vision transformer, and graph convolutional networks integrate these structural dependencies into the facial-attribute representation. The framework is designed to exploit both local and global dependencies among facial attributes that are essential for the recognition of facial expressions, and it was evaluated on Oulu-CASIA, eNTERFACE05, and AFEW, where it achieved recognition accuracies of , , and , respectively (Sharma et al., 19 Jul 2025).
1. Facial-attribute graph construction
The core object in Exp-Graph is a facial-attribute graph derived from a detected and aligned face image . A fixed set of facial landmarks , with , becomes the vertex set. Around each landmark , a local patch of size is cropped, resized, and encoded by a pre-trained Vision Transformer into a 0-dimensional feature vector 1. The feature vectors are 2-normalized, and pairwise appearance affinity is computed by
3
Geometry is incorporated through the Euclidean landmark distance
4
Exp-Graph combines appearance and geometry in an un-thresholded adjacency score
5
To retain only the most significant connections, the global mean 6 and standard deviation 7 of 8 are computed, and a threshold is set as
9
The binary adjacency matrix is then defined by
0
The resulting graph therefore encodes edges 1 through a joint criterion: local appearance resemblance and geometric proximity (Sharma et al., 19 Jul 2025).
This construction yields a dynamic graph rather than a fixed anatomical template. The reported interpretation is that Eqns. (1)–(2) fuse local appearance and geometric proximity to capture the most salient facial-attribute relationships. A plausible implication is that the graph topology varies with both expression-dependent morphology and local visual evidence, rather than being prescribed a priori.
2. Vision-transformer embedding and graph-convolutional propagation
The patch encoder follows the standard ViT pipeline. Each patch 2 is tokenized into smaller sub-patches, each flattened and linearly projected to 3. A learnable class token 4 and fixed positional encodings 5 are prepended to form 6. Transformer blocks are then applied: 7
8
for 9, and the final 0 row of 1 is used as the local descriptor 2.
Given the graph 3, Exp-Graph applies a GCN over the landmark graph. Self-loops are added and the adjacency is symmetrically normalized as
4
With 5, propagation at layer 6 is
7
After 8 layers, node outputs are pooled, for example by mean- or max-pooling over nodes, to obtain a graph-level embedding 9, which is then passed through an MLP and softmax for 0-way expression classification (Sharma et al., 19 Jul 2025).
The architectural division of labor is explicit. The Vision Transformer supplies rich local patch descriptors; the GCN integrates these descriptors according to the learned graph topology. The reported conclusion is that the vision transformer and graph convolutional blocks help the framework exploit the local and global dependencies among the facial attributes that are essential for the recognition of facial expressions.
3. Objective function, preprocessing, and evaluation protocol
Training uses the standard cross-entropy objective on predicted expression probabilities 1 and one-hot labels 2: 3 No additional structural or regularization terms were added beyond standard weight-decay on network parameters (Sharma et al., 19 Jul 2025).
The reported preprocessing pipeline consists of face detection and alignment with Dlib, resizing the full face to 4, extracting patches around each of 68 landmarks, and normalizing pixel intensities. Optimal patch size is dataset-dependent; examples given are 5 on Oulu-CASIA and 6 on eNTERFACE05. The implementation uses PyTorch 2.1.2, CUDA 12.8, NVIDIA RTX A6000, and random seed 7. Optimization uses Adam with initial learning rate 8, decayed to 9, weight decay 0, batch size typically 1–2, dropout 3 in GCN layers, hidden units 4, and GeLU as the primary activation, although ReLU and ELU were also reported to give comparable results.
Threshold selection is explicitly treated as a model-selection variable. The threshold parameter 5 is grid-searched over 6, with best values reported as around 7 on Oulu-CASIA and 8 on eNTERFACE05 and AFEW. Patch size is also grid-searched over 9. Evaluation metrics are Accuracy (Acc), Weighted Average Recall (WAR), Unweighted Average Recall (UAR), and 0-score (Sharma et al., 19 Jul 2025).
These design choices establish Exp-Graph as a dynamically constructed landmark graph pipeline rather than a static GCN on predefined facial topology. A plausible implication is that much of the method’s behavior is controlled not only by backbone capacity but also by graph sparsification and receptive-field calibration through 1 and 2.
4. Benchmark performance and comparative results
Exp-Graph was evaluated on three benchmark datasets spanning controlled and unconstrained conditions.
| Dataset | Exp-Graph accuracy | Best prior |
|---|---|---|
| Oulu-CASIA | 98.09% | 92.03% (AT-ViG) |
| eNTERFACE05 | 79.01% | 54.35% (Vnet) |
| AFEW | 56.39% | 52.74% (DSAN-VGG) |
On Oulu-CASIA, backbone and graph-operator ablations show large differences. For GCN-based variants, ResNet18+GCN achieved 3 Acc, 4 5, 6 WAR, and 7 UAR; EfficientNet+GCN achieved 8 Acc, 9 0, 1 WAR, and 2 UAR; ViT+GCN achieved 3 Acc, 4 5, 6 WAR, and 7 UAR. For GAT-based variants, ResNet18+GAT achieved 8 Acc, 9 0, 1 WAR, and 2 UAR; EfficientNet+GAT achieved 3 Acc, 4 5, 6 WAR, and 7 UAR; ViT+GAT achieved 8 Acc, 9 0, 1 WAR, and 2 UAR. The reported conclusion is that ViT+GCN outperforms the alternatives by a large margin (Sharma et al., 19 Jul 2025).
The same section also reports that t-SNE visualizations confirm that well-tuned 3 yield clearly separated clusters for each expression. This suggests that the graph-construction hyperparameters materially affect representation geometry, not merely end-task classification.
5. Ablation studies and operational sensitivities
The threshold ablation on Oulu-CASIA gives a sharply non-monotonic pattern: 4 Acc, 5, 6, 7, and 8. The best result occurs at approximately 9, which is described as a balance between connectivity and sparsity. Patch-size ablation on the same dataset gives 00, 01, 02, 03, and 04. On eNTERFACE05, the best patch size is 05 (Sharma et al., 19 Jul 2025).
The paper’s interpretation is explicit on both forms of tuning. Too low a threshold produces an overly dense graph, whereas too large a threshold fragments the graph; both harm performance. Likewise, patches that are too small miss contextual cues, while overly large patches conflate distinct landmarks. These observations place graph sparsification and patch sampling at the center of the method rather than treating them as secondary implementation details.
The broader explanatory account given in the study attributes Exp-Graph’s performance in both laboratory and in-the-wild settings to three factors: synergy of global-local encoding in the ViT and relational reasoning in the GCN, dynamic edge learning rather than fixed predefined graphs, and robustness to illumination, pose, and occlusion through the geometry-aware graph and attention in ViT. Since these are interpretive claims from the study rather than formal guarantees, they should be understood as the authors’ account of the empirical behavior.
6. Position within adjacent graph-representation literature
The name “Exp-Graph” is potentially ambiguous because closely related labels designate distinct graph-learning frameworks in other subfields. “Towards Expressive Graph Representation” introduces ExpGNN, a graph neural network framework built around continuous injective set functions for neighborhood aggregation, with the goal of matching the discriminative power of the 06-WL test; despite the similarity in naming, that work addresses expressive graph representation learning in general GNNs rather than facial expression recognition (Mao et al., 2020). “ExpGraph: Model-Agnostic Experience Learning with Graph-Structured Memory for LLM Agents” uses an experience graph to organize reusable skills and failure lessons for frozen and replaceable LLM executors, which is again unrelated in task domain and graph semantics (Feng et al., 29 May 2026). A further nearby term is “Expander Graph Propagation,” which superimposes expander templates on input graphs to mitigate bottlenecks and oversquashing in whole-graph learning (Deac et al., 2022).
Within this naming landscape, Exp-Graph denotes a specific facial-attribute graph framework in which graph vertices are facial landmarks, node features are ViT-encoded landmark patches, and graph edges are induced by joint appearance-geometry criteria. A common misconception would be to read the name as referring to “expressive graphs” or “expander graphs”; the literature indicates that these are separate research lines with distinct formal objects, objectives, and evaluation regimes.