Skip to content
AI360Xpert
Beta

Adapters for Vision Tuning

Slide small down-up bottlenecks into frozen layers and train only them. A few percent of weights adapts big vision.

Adapters add tiny bottlenecks inside frozen vision layers
Adapters add tiny bottlenecks inside frozen vision layers

Why Does This Exist?

Full copies per task bloat storage. Adapters keep one frozen backbone and store 33 percent task weights as bottlenecks after attention and MLP. Fine-tuning becomes swapping small files.

This page covers vision adapters only. Prompt tokens are sibling pages.

The one idea you need first.

Adapter is down WdW_d to 6464, nonlinearity, up WuW_u back, plus skip: y=x+Wu(σ(Wdx))y = x + W_u(\sigma(W_d x)). Only Wd,WuW_d, W_u learn. Place after attention and MLP per block.

Think of It Like This

Plug-in pedals on a shared guitar rig

A guitarist keeps one amp rig and clips pedals for rock versus jazz. Pedals shape tone without rewiring the amp, and each gig bag holds its own set.

Backbone is the rig, adapters are pedals, and skips keep clean tone underneath. Where it stops: pedals cannot fix a broken amp, so huge shifts still retune.

How It Actually Works

Freeze ViT ff. Insert adapters in each block. Train adapters plus head hh on task data. Bottleneck 6464 sets size; larger 256256 helps hard shifts. Store adapters per task and compose by swapping.

In plain words: narrow, bend, widen, then add back to the stream.

Worked example

ViT-B 8686M: adapters 2.62.6M, about 3.03.0 percent. Pets accuracy 94.294.2 versus 94.694.6 full, gap 0.40.4. Ten tasks store 2626M versus 860860M full copies, a 3333x saving. The math favors adapters past three tasks.

Watch Out For

Adapters too narrow for large shifts

Rank 88 starves sketch-to-photo jumps and gaps hit 55 points. Tuning stalls while loss looks fine. Raise to 6464 or 256256 for far shifts before judging adapters.

The Quick Version

  • Adapters are down-up bottlenecks with skips in frozen layers.
  • Rank 64 with 3 percent weights suits most tasks.
  • Place after attention and MLP blocks.
  • Swap small files per task.
  • Widen rank for far domain shifts.