Keywords: computer vision, visual prompting, MAE-VQGAN, task vectors, activation patching, REINFORCE
TL;DR: We analyze the activation space of the visual prompting model MAE-VQGAN and identify task-related activations, equipping them to improve model performance on downstream tasks by using the REINFORCE algorithm to find optimal patching positions.
Abstract: Visual Prompting is a technique for teaching models to perform a visual task via in-context examples, without any additional training. In this work, we analyze the activations of MAE-VQGAN, a recent Visual Prompting model (Bar et al., 2022), and find Task Vectors, activations that encode task-specific information. We then demonstrate that it is possible to identify the Task Vectors and use them to guide the network towards performing different tasks without having to provide any in-context input-output examples. To find Task Vectors, we compute the mean activations of the attention heads in the model per task and use the REINFORCE (Williams, 1992) algorithm to patch into a subset of them with a new query image. The resulting Task Vectors guide the model with better performance than the original model.
Submission Number: 113
Loading