VLMs are very good at identifying events in videos. But it is hard to focus their attention on a specific action or object, specially if the object or action is a small part of the video. Humans use visual cues to attract attention towards a region or action, e.g. a stop sign on the road or a wiggly line drawn under wrongly spelled text. Once focused we can observe finegrained details from that region. This experiment is to determine if using visual cues like bboxes/trajectories will help VLMs focus better.
TLDR : Not really. Adding cues confuses models.
Without cues

With cues [bounding boxes and trajectories of relevant objects]

A ~9.5k video subset of ssv2 dataset which has 50 verbs and ~4000 objects.
>> random.sample(verbs, 5)
>> ['picking', 'dropping', 'throwing', 'poking', 'twisting']
>> random.sample(objects, 5)
>> ['a teaspoon', 'amrutanjan balm', 'teapoy', 'a pamphlet', 'salt container']
Create multiple choice questions for every video, to predict the object or verb
Videos

Questions
Q1. dropping _____ into red rubber ice-tray.
Options: crumpled paper, a gift bag, thermos bottle, a cheese cube
Answer: a cheese cube
Q2. dropping a cheese cube into _____.
Options: dettol bottle, salt shaker, stack plastic cups, red rubber ice-tray
Answer: red rubber ice-tray
Q3. _____ a cheese cube into red rubber ice-tray.
Options: hitting, pulling, falling, dropping
Answer: dropping
(rank=64, alpha=64) over llm onlyBefore finetuning, object accuracy is lower for cued videos.
| model | videos | object_acc | verb_acc | overall_acc |
|---|---|---|---|---|
| pretrained | plain | 90.77% | 63.90% | 79.39% |
| pretrained | trajectory | 85.74% | 64.40% | 76.29% |
After finetuning, cued videos perform worse in both object and verb category.
| model | videos | object_acc | verb_acc | overall_acc |
|---|---|---|---|---|
| finetuned | plain | 96.40% | 98.30% | 97.29% |
| finetuned | trajectory | 93.77% | 98.00% | 95.65% |
What happens to attention when we add these boxes and trajectory lines ? Intuitively, results should be much better because there is a clear indicator of region which will fetch correct answer. But something else happens.
We debug this in multiple ways by checking attention of vit, llm and measuring perplexity of different types of images.
Attention disrupted : visual cues attract attention away from natural visual features [attach map]
VLMs have fragmented attention: VLMs are a combination of a clip based embedder and an llm. In this exercise we finetune only the language part. [show clip attention map, and compare with llm attentions]
Model bias: pretrained models that have not see many trajectories or bounding boxes, dont interpret these as natural features and get confused. [high activations on bbox boundaries, not inside]
Cues are a different language from natural visual features. They require understanding abstractions. e.g. a black triangle on road implies slope ahead. [add examples of perplexity of a visual cues being much higher than a normal image]
This indicates that
Follow instructions at : github repo