Pre-Trained Language Transformers are Universal Image Classifiers

01/25/2022
by   Rahul Goel, et al.
37

Facial images disclose many hidden personal traits such as age, gender, race, health, emotion, and psychology. Understanding these traits will help to classify the people in different attributes. In this paper, we have presented a novel method for classifying images using a pretrained transformer model. We apply the pretrained transformer for the binary classification of facial images in criminal and non-criminal classes. The pretrained transformer of GPT-2 is trained to generate text and then fine-tuned to classify facial images. During the finetuning process with images, most of the layers of GT-2 are frozen during backpropagation and the model is frozen pretrained transformer (FPT). The FPT acts as a universal image classifier, and this paper shows the application of FPT on facial images. We also use our FPT on encrypted images for classification. Our FPT shows high accuracy on both raw facial images and encrypted images. We hypothesize the meta-learning capacity FPT gained because of its large size and trained on a large size with theory and experiments. The GPT-2 trained to generate a single word token at a time, through the autoregressive process, forced to heavy-tail distribution. Then the FPT uses the heavy-tail property as its meta-learning capacity for classifying images. Our work shows one way to avoid bias during the machine classification of images.The FPT encodes worldly knowledge because of the pretraining of one text, which it uses during the classification. The statistical error of classification is reduced because of the added context gained from the text.Our paper shows the ethical dimension of using encrypted data for classification.Criminal images are sensitive to share across the boundary but encrypted largely evades ethical concern.FPT showing good classification accuracy on encrypted images shows promise for further research on privacy-preserving machine learning.

READ FULL TEXT

page 8

page 10

page 12

page 17

research
04/16/2022

Privacy-Preserving Image Classification Using Isotropic Network

In this paper, we propose a privacy-preserving image classification meth...
research
05/24/2022

Privacy-Preserving Image Classification Using Vision Transformer

In this paper, we propose a privacy-preserving image classification meth...
research
07/17/2020

A Privacy-Preserving Machine Learning Scheme Using EtC Images

We propose a privacy-preserving machine learning scheme with encryption-...
research
08/16/2020

Adding Recurrence to Pretrained Transformers for Improved Efficiency and Context Size

Fine-tuning a pretrained transformer for a downstream task has become a ...
research
03/05/2018

2^B3^C: 2 Box 3 Crop of Facial Image for Gender Classification with Convolutional Networks

In this paper, we tackle the classification of gender in facial images w...
research
09/05/2023

Domain Adaptation for Efficiently Fine-tuning Vision Transformer with Encrypted Images

In recent years, deep neural networks (DNNs) trained with transformed da...
research
01/29/2014

Use HMM and KNN for classifying corneal data

These days to gain classification system with high accuracy that can cla...

Please sign up or login with your details

Forgot password? Click here to reset