[Paper Review] ChatGPT and biometrics: an assessment of face recognition, gender detection, and age estimation capabilities
This paper evaluates GPT-4's capabilities in face recognition, gender detection, and age estimation by using crafted prompts to bypass its privacy safeguards. Despite not being fine-tuned for biometrics, GPT-4 achieves high accuracy in face recognition and gender detection, and reasonable performance in age estimation, revealing strong potential for foundation models in biometric applications through prompt engineering alone.
This paper explores the application of large language models (LLMs), like ChatGPT, for biometric tasks. We specifically examine the capabilities of ChatGPT in performing biometric-related tasks, with an emphasis on face recognition, gender detection, and age estimation. Since biometrics are considered as sensitive information, ChatGPT avoids answering direct prompts, and thus we crafted a prompting strategy to bypass its safeguard and evaluate the capabilities for biometrics tasks. Our study reveals that ChatGPT recognizes facial identities and differentiates between two facial images with considerable accuracy. Additionally, experimental results demonstrate remarkable performance in gender detection and reasonable accuracy for the age estimation tasks. Our findings shed light on the promising potentials in the application of LLMs and foundation models for biometrics.
Motivation & Objective
- To investigate whether large language models like GPT-4 can perform biometric tasks such as face recognition, gender detection, and age estimation.
- To address the challenge that GPT-4 blocks direct queries about biometric data due to privacy safeguards.
- To develop and apply a prompting strategy that circumvents these safeguards to evaluate GPT-4’s analytical capabilities on facial data.
- To assess the reliability and accuracy of GPT-4’s responses in biometric tasks without model fine-tuning.
- To explore the implications of LLMs disclosing sensitive biometric information through prompt engineering, highlighting risks and research needs.
Proposed method
- Designed a prompting strategy that frames facial images as AI-generated to bypass GPT-4’s privacy safeguards.
- Submitted facial images with specially crafted prompts to elicit responses on identity comparison, gender, and age.
- Used GPT-4 itself to analyze its initial responses via sentiment classification to refine accuracy metrics.
- For gender detection, used a binary yes/no prompt comparing GPT-4’s output to ground truth.
- For age estimation, evaluated whether the ground truth age fell within the predicted range using a yes/no prompt.
- Applied the same evaluation pipeline to non-biometric image classification (CIFAR-10) to test generalization.
Experimental results
Research questions
- RQ1Can GPT-4 accurately recognize and differentiate facial identities when prompted with AI-generated image pairs?
- RQ2How effective is GPT-4 in detecting gender from facial images, especially in challenging age groups?
- RQ3To what extent can GPT-4 estimate age, and how accurate are the predicted age ranges compared to ground truth?
- RQ4Can prompt engineering effectively bypass GPT-4’s privacy safeguards to elicit biometric responses?
- RQ5How does GPT-4’s performance compare to specialized models like DeepFace in gender detection tasks?
Key findings
- GPT-4 demonstrated high accuracy in distinguishing between different facial identities, even in cases of false positives where descriptions were highly persuasive.
- The model achieved a notable performance in gender detection, outperforming the specialized DeepFace model, particularly in identifying young and elderly individuals.
- For age estimation, GPT-4 often provided age ranges rather than single values, with narrower and more accurate ranges for younger individuals compared to broader, less precise ranges for those over 60.
- On the CIFAR-10 benchmark, GPT-4 achieved an overall accuracy of 70.8%, rising to 83.4% when low-resolution images were excluded.
- Despite not being fine-tuned for biometrics, GPT-4 showed strong zero-shot performance across all tasks, indicating strong few-shot generalization from its pretraining.
- The study revealed that LLMs can be prompted to disclose sensitive biometric information, highlighting vulnerabilities in current safeguard mechanisms.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.