Chain-of-Thought Prompting for Demographic Inference with Large Multimodal Models

Yongsheng Yu, Jiebo Luo

Abstract

Conventional demographic inference methods have predominantly operated under the supervision of accurately labeled data, yet struggle to adapt to shifting social landscapes and diverse cultural contexts, leading to narrow specialization and limited accuracy in applications. Recently, the emergence of large multimodal models (LMMs) has shown transformative potential across various research tasks, such as visual comprehension and description. In this study, we explore the application of LMMs to demographic inference and introduce a benchmark for both quantitative and qualitative evaluation. Our findings indicate that LMMs possess advantages in zero-shot learning, interpretability, and handling uncurated 'in-the-wild' inputs, albeit with a propensity for off-target predictions. To enhance LMM performance and achieve comparability with supervised learning baselines, we propose a Chain-of-Thought augmented prompting approach, which effectively mitigates the off-target prediction issue.

Introduction

Demographic inference—the task of identifying age, gender, and ethnicity from visual data—is a cornerstone of social science research and targeted AI applications. Traditionally, this task has relied on specialized models trained on massive, precisely labeled datasets. While effective in controlled environments, these "black box" models often struggle with "in-the-wild" imagery, such as half-body portraits or photos with complex backgrounds, and fail to adapt to evolving social contexts.

Large Multimodal Models (LMMs), such as LLaVA, offer a promising alternative due to their vast common-sense knowledge and zero-shot capabilities. However, LMMs face a significant hurdle: "off-target" predictions. When prompted for a specific demographic attribute, a naive LMM may provide a verbose description or a vague range instead of a discrete value, complicating quantitative analysis. This research investigates how to harness the reasoning power of LMMs while ensuring precise, structured outputs through a Chain-of-Thought (CoT) prompting strategy.

Methodology: Chain-of-Thought Augmented Prompting

To address the limitations of standard LMM prompting, we propose a two-stage CoT approach that encourages the model to "think" before arriving at a final demographic conclusion. This process is divided into two primary phases:

1. Demographic Description Generation

Instead of requesting a label immediately, the model is prompted to generate a "Facial Feature Collection" (FFC). The model analyzes the image for specific visual cues:

  • Ethnicity features: Skin tone, eye shape, and nose bridge height.
  • Age features: Presence of wrinkles, jawline tautness, and age spots.
  • Gender features: Facial hair and facial fat distribution.
  • Naming: The model is asked to suggest a likely name for the individual. Because LMMs are trained on diverse text corpora, they recognize the statistical correlation between names and cultural or geographical backgrounds, using this as a proxy for ethnicity.

2. Demographic Reasoning

The model then utilizes its own detailed description and suggested name as context to perform the final inference. By grounding the final answer (e.g., "Age: 49, Gender: Male, Race: White") in the previously articulated visual evidence, the model's output becomes more consistent and reliable.

Experimental Setup

The effectiveness of the CoT strategy was evaluated across three benchmark facial image datasets:

  • UTKFace: Contains over 20,000 images with a wide age range (0–116 years) and annotations for gender and ethnicity.
  • FairFace: Comprises 108,501 images balanced across seven racial groups to mitigate racial bias.
  • CACD (Celebrity Age Dataset): Includes over 160,000 images of 2,000 celebrities, primarily used for age inference testing.

Key Insights and Results

Eliminating Off-Target Predictions

The CoT strategy proved highly effective at constraining model behavior. For models like LLaVA and InternLM, the CoT approach reduced the off-target prediction rate to 0.0%, ensuring that every response was formatted correctly for quantitative use.

Performance Metrics

On the UTKFace dataset, LLaVA with CoT achieved a Mean Absolute Error (MAE) of 4.80 for age prediction, a significant improvement over the naive LMM's MAE of 5.13. In gender and ethnicity classification on the FairFace dataset, the CoT-augmented LLaVA reached 95.8% accuracy for gender and 69.2% for ethnicity. Notably, in some metrics, the CoT-augmented LMM outperformed state-of-the-art (SOTA) supervised learning methods, despite having no specific training on these datasets.

Interpretability and the "Bunny Trap"

One of the primary advantages of this approach is interpretability. Unlike traditional models, CoT-augmented LMMs provide a logical "receipt" for their predictions. However, this reasoning can sometimes lead to errors based on cultural stereotypes. For instance, in one test case, the model misidentified a male infant as female because the child was wearing a "cute bunny-style outfit." This highlights a critical challenge: LMMs may occasionally prioritize superficial cultural cues over biological indicators.

Conclusion

This study demonstrates that Chain-of-Thought prompting significantly enhances the utility of Large Multimodal Models for demographic inference. By reducing off-target predictions and providing interpretable reasoning, CoT-augmented LMMs offer a versatile, zero-shot alternative to traditional supervised models. Future work will focus on mitigating the computational costs associated with LMM inference and addressing the inherent biases and stereotypes present in the models' training data to ensure fairer demographic analysis.

Summary updated

BibTeX
@inproceedings{yu2024chain,
  author = {Yongsheng Yu and Jiebo Luo},
  title = {{Chain-of-Thought Prompting for Demographic Inference with Large Multimodal Models}},
  booktitle = {ICME},
  year = {2024},
  doi = {10.1109/icme57554.2024.10687914},
}
Figure