Top 3 in FG 2021 Families In the Wild Kinship Verification Challenge

Junyi Huang, Maxwell Benjamin Strome, Ian Jenkins, Parker Williams, Bo Feng, Yaning Wang, Roman Wang, Vaibhav Bagri, Newman Cheng, Iddo Drori

Abstract

This paper presents a novel hybrid approach to kinship verification, combining human expertise with AI-driven program synthesis. By ensembling Siamese neural networks designed by both human experts and OpenAI’s Codex, the authors achieved a top-3 finish in the 2021 Recognizing Families in the Wild (RFIW) challenge. This work marks the first documented use of program synthesis to automatically generate and diversify model architectures for kinship verification, demonstrating that AI-assisted coding can significantly enhance model performance.

The Challenge of Kinship Verification

Kinship verification—determining if two individuals are related based solely on facial images—is a complex computer vision task. Unlike standard face recognition, algorithms must identify shared familial traits while remaining invariant to differences in age, gender, lighting, and pose. The search space for optimal architectures is vast, often requiring weeks of manual hyperparameter tuning.

Example of a non-kin pair from the dataset, illustrating the difficulty of distinguishing unrelated individuals with similar features.

Hybrid Architecture and Methodology

The core of the proposed approach is a Siamese Network architecture. In this configuration, two images are processed through identical "backbone" networks to create feature embeddings, which are subsequently fused and fed into a classifier.

Overview of the hybrid Siamese network architecture incorporating human-designed models and Codex-generated variations.

The methodology integrates several key components:

  • Diverse Backbones: Pre-trained models such as ResNet50, SENet50, FaceNet, and VGGFace were used to extract robust facial features.
  • Advanced Feature Fusion: Beyond simple concatenation, features were combined using the Hadamard product, squared differences, and the absolute difference of squares ($|x_1^2 - x_2^2|$).
  • Program Synthesis via OpenAI Codex: The most novel contribution involves prompting Codex to generate architectural variants, write ensemble code, and produce end-to-end scripts including image preprocessing (e.g., rotation based on facial landmarks).
  • Data Augmentation: The team employed training-time augmentation and Test-Time Augmentation (TTA) to stabilize predictions.

Datasets

The study utilized the Families In the Wild (FIW) dataset, the largest of its kind, containing over 32,000 unique faces across 953 families. It includes 11 relationship types, from siblings (SIBS) to grandmother-grandson (GMGS). The dataset is structured into disjoint sets for training, validation, and testing to ensure the model generalizes to unseen families.

Key Insights

  • Program Synthesis Utility: Codex suggested architectural modifications, such as specific fully connected layer sequences, that improved upon human-designed baselines.
  • Ensemble Diversity: The highest performance resulted from ensembling human-written models with Codex-generated variants, leveraging their different "perspectives" to cover blind spots.
  • Feature Engineering: Mathematical intuition remains vital; adding the absolute difference of squares to the fusion step led to a significant jump in accuracy.
  • Strategic Sampling: Sampling evenly across families, then individuals, then images proved superior to random sampling for generalization.

Results and Performance

The hybrid approach ranked in the top 3 of the 2021 RFIW challenge. Ablation studies showed a steady increase in accuracy: a baseline model achieved 0.510, while the final ensemble reached 0.741 on the internal validation subset. Notably, Codex-generated variants performed on par with human designs, achieving individual accuracies between 0.75 and 0.76. While the model excelled at identifying sibling relationships (up to 0.84 accuracy for Sister-Sister), grandparent-grandchild pairs remain a significant challenge for the field.

Limitations and Future Work

While program synthesis is effective, the "logic" behind AI-generated architectures remains a black box, posing challenges for interpretability. Future research should focus on incorporating age-invariant features to close the performance gap in distant relationships and scaling this hybrid framework to other computer vision tasks to automate research cycles.

Summary updated

BibTeX
@inproceedings{huang2021top,
  author = {Junyi Huang and Maxwell Benjamin Strome and Ian Jenkins and Parker Williams and Bo Feng and Yaning Wang and Roman Wang and Vaibhav Bagri and Newman Cheng and Iddo Drori},
  title = {{Top 3 in FG 2021 Families In the Wild Kinship Verification Challenge}},
  booktitle = {FG},
  year = {2021},
  doi = {10.1109/fg52635.2021.9666971},
}
Figure