Solving the Families In the Wild Kinship Verification Challenge by Program Synthesis

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

TL;DR

This paper tackles the challenge of automatically determining kinship between people from images, a task with applications in social media, forensics, and family reunification. The authors achieved a top-3 ranking in the RFIW 2021 challenge by ensembling models generated by both human experts and OpenAI's Codex, demonstrating the power of program synthesis for creating diverse and effective computer vision models.

What Problem Does This Paper Address?

Recognizing familial relationships from images, known as kinship verification, is a complex computer vision problem. The difficulty arises from the wide variations in image quality, lighting, poses, and facial expressions commonly encountered in real-world scenarios. Existing methods have made significant progress, but accurately identifying kinship across diverse datasets remains a challenge. The annual "Recognizing Families In the Wild" (RFIW) challenge aims to push the boundaries by providing large, multi-task datasets. This paper focuses on the RFIW 2021 challenge, specifically the binary classification task of determining if two individuals are kin or not kin.

Methods

The core of the proposed solution is a Siamese neural network architecture. This architecture uses two identical branches, each processing one image from a pair through a pre-trained convolutional backbone (like ResNet50 or SENet50) to generate a feature embedding. These embeddings are then combined using feature fusion techniques (including Hadamard product, squared difference, and absolute difference of squares) and fed into a fully connected network for a final kin/non-kin prediction.

What's novel here is the extensive use of program synthesis via OpenAI's Codex. The authors prompted Codex to generate model variants by suggesting architectural modifications and hyperparameter tuning. This allowed for rapid generation of a diverse set of models, which were then ensembled with human-designed models. This hybrid approach, combining human expertise with AI-generated code, is a key contribution. Additionally, the paper details data augmentation strategies for regularization and test-time augmentation to improve robustness.

Datasets

The primary dataset used is Families In the Wild (FIW) [14], which is described as the largest publicly available dataset for kinship recognition. The paper notes that FIW is split into disjoint training, validation, and test sets, and provides statistics on the number of unique faces and families in each split. The dataset includes 11 types of kinship relationships, categorized into sibling pairs, parent-child pairs, and grandparent-grandchild pairs, along with non-kin pairs.

Key Insights and Ideas

  • Program Synthesis for Model Diversity: Using OpenAI's Codex to generate model variants proved highly effective in creating a diverse set of architectures and hyperparameters, which significantly boosted performance when ensembled. This highlights the potential of AI-generated code for accelerating research and development in computer vision.
  • Ensembling is Crucial: The paper consistently shows that ensembling multiple models, especially those with different architectures and generated through various methods (human and AI), leads to the best performance. This underscores the importance of leveraging diverse perspectives and approaches.
  • Data Augmentation and Test-Time Augmentation: While standard data augmentation improved models, test-time augmentation (applying transformations to test images and averaging predictions) provided a further boost in accuracy, demonstrating its value for improving generalization.
  • Feature Fusion Techniques Matter: The specific feature fusion methods (Hadamard product, squared difference, absolute difference of squares) used to combine embeddings from the Siamese branches are critical for capturing the subtle visual cues indicative of kinship.

Key Results

The paper reports achieving a top 3 ranking in the RFIW 2021 kinship verification challenge.

  • The final ensembled model achieved an average accuracy of 0.80 across all relationship types.
  • Specific relationship accuracies are detailed in Table II, with the model performing particularly well on sibling pairs (e.g., BB: 0.82, SS: 0.84) and parent-child pairs (e.g., FD: 0.75, MD: 0.77).
  • An ablation study (Table I) showed that ensembling multiple instances of multiple models yielded the highest accuracy, outperforming simpler ensembles or single models.
  • Codex-generated model variants showed competitive performance, with "Codex model variant 1" achieving 0.75 average accuracy and "Codex model variant 2" achieving 0.76, demonstrating the effectiveness of AI-driven architectural exploration.

Limitations and Future Work

  • Dataset Specificity: While the FIW dataset is large, the models are trained and evaluated on this specific dataset. Generalizing to entirely unseen datasets with different characteristics might still be a challenge.
  • Computational Cost: Ensembling multiple complex models, especially with test-time augmentation, can be computationally expensive, which might be a limitation for real-time applications.
  • Future Work: The authors suggest that this hybrid human-machine approach using program synthesis could be extended to other computer vision challenges, opening up new avenues for research and development. They also implicitly suggest further exploration of different program synthesis prompts and techniques to generate even more diverse and effective models.

Summary updated

BibTeX
@inproceedings{huang2021solving,
  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 = {{Solving the Families In the Wild Kinship Verification Challenge by Program Synthesis}},
  booktitle = {FG},
  year = {2021},
  doi = {10.1109/fg52635.2021.9666971},
}
Figure