Notes

IA3

Fine-tuning a large model by rewriting all of its weights is the brute-force option; most adaptation methods instead bolt something small onto a frozen model. IA3 — Infused Adapter by Inhibiting and Amplifying Inner Activations — takes the smallest version of that idea seriously: rather than adding layers, it learns a handful of numbers that turn individual activations up or down.

What it actually trains

Each transformer block gets three learned vectors, multiplied element-wise into three specific places: the keys in attention, the values in attention, and the intermediate activations inside the feed-forward network. The base weights never move. Because each vector is only as wide as the activations it scales, the whole adaptation comes to roughly 0.01% of the model's parameters — an order of magnitude smaller than a typical LoRA configuration.

Free at inference

Scaling is multiplication, so once training is finished the vectors can be folded directly into the frozen weight matrices they act on. The deployed model is then exactly the shape and speed of the original: no extra layers, no added latency, nothing to merge at request time. That property is what makes it attractive when many task-specific variants of one base model have to be served.

Where it came from

IA3 arrived with the T-Few recipe, which showed that parameter-efficient tuning on a few dozen labelled examples beat putting those same examples in the prompt as few-shot demonstrations — and cost less per query, since the examples are no longer re-sent in every context. It ships in Hugging Face PEFT alongside LoRA and prefix tuning, and suits small, well-defined tasks better than wholesale changes in behaviour.

IA3 (Infused Adapter by Inhibiting and Amplifying Inner Activations) is a parameter-efficient fine-tuning method that freezes the model and learns three small vectors per transformer block, which rescale the attention keys, the attention values and the feed-forward activations. It trains roughly 0.01% of the parameters, far fewer than LoRA, and the vectors fold into the existing weights after training, so the served model gains no extra layers and no additional latency.

Picture a huge mixing desk with millions of settings already dialled in by someone far more experienced than you. Retraining an AI model from scratch is like re-recording the whole track. IA3 does the opposite: it leaves every original setting alone and adds a few small volume knobs, learning only how far to turn each one up or down so the model does your particular job well. Because it is only adjusting volumes, those adjustments can be baked back into the desk when you are finished. The model then runs exactly as fast as before, and your custom version costs almost nothing to store.