IA3 (Infused Adapter by Inhibiting and Amplifying Inner Activations)
The Lightest Fine-Tuning Method in the Module
The name first, since it is entirely descriptive. IA³, or (IA)³, stands for Infused Adapter by Inhibiting and Amplifying Inner Activations. The cube counts the three words starting with I or A. Put plainly: nothing is added to the model, you simply turn the volume up or down on what flows through it.
The flaw it fixes: LoRA adds two matrices per targeted matrix, hence tens of millions of parameters to learn. When you have only a dozen training examples, that is far too many: the model has room to memorize them instead of extracting a rule. IA³ comes down to a few hundred thousand parameters.
No new layer, no matrix. Just vectors whose every component multiplies one dimension. Rather than rewiring the circuit, you turn volume knobs.
Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning (Liu et al., 2022)IA³ learns three vectors per layer: one for attention's keys (), one for its values (), and one for the small neural network that follows, the feed-forward network, abbreviated FFN ().
Each of these vectors performs an element-wise multiplication: its first component multiplies the first dimension, its second the second, and so on. Nothing more.
The Idea: Intelligently Multiplying Activations
Attention Scaling
In each attention layer, two interventions only:
The symbol means element-wise multiplication: no matrix product here, just each number multiplied by its counterpart. and are the keys and values computed on the text, and the two learned vectors, as wide as the model.
It is a colour filter held in front of an image: some dimensions amplified, others dimmed.
Why keys and values and not queries? Because the three enter attention asymmetrically: queries and keys are paired against each other, so scaling one or the other has much the same effect on the score. Tuning both would be redundant.
Here is a point that makes the whole page clearer, and it applies to LoRA too.
The keys are computed as , where is a learned and frozen weight matrix and the layer's input. IA³ then computes .
But multiplying the result element-wise by , or pre-multiplying each row of the weight matrix by the matching component of , gives the exact same number. The two formulations are equivalent.
The practical consequence: once training is done, the vectors can be absorbed into the weight matrices and you serve an ordinary model, with no extra multiplication. IA³ therefore costs nothing at inference, for the same reason LoRA does not.
The FFN's vector, on the other hand, applies after a non-linear function: that one cannot be absorbed so simply, exactly as the non-linearity inside adapters forbids merging them.

Modulating the FFN
The feed-forward network does three things: a projection out to a wider dimension, a non-linear function, then a projection back. IA³ slots in between the second and the third:
Symbol by symbol: is the network's input; and are its two weight matrices, learned during pre-training then frozen; "activation" is the non-linear function; is the only learned parameter here, one coefficient per neuron of the wide layer; is still element-wise multiplication.
In words: decides which neurons of the network count for your task, and how much.

Initialization: Starting from Identity
All the vectors are initialized to 1, i.e. they contain nothing but ones. Multiplying by 1 changes nothing: at the outset, the model behaves exactly as before. Training then lets those values drift.
It is the same principle as LoRA's B matrix initialized to zero, or the adapters' residual connection: start from the identity, so nothing breaks before anything is learned. Note the difference: for an addition the neutral element is 0; for a multiplication it is 1.
The Numbers: Ridiculously Compact
Work it out on LLaMA-2 7B: 32 layers, width , FFN inner width .
Per layer, three vectors, each as long as whatever it multiplies:
Across the 32 layers: parameters. Against the model's 6.74 billion: , one parameter in eleven thousand.
Two comparisons to place it:
- Against rank-8 LoRA on the four attention matrices, which counts million parameters: fourteen times fewer.
- As a file, at 2 bytes per parameter: megabytes. Against 34 MB for a rank-16 LoRA.
Note that IA³'s formula contains no setting at all: no rank to pick, no prefix length. The parameter count is dictated entirely by the model's architecture. It is the only method in the module with that property.
The paper's setting is few-shot learning: only five to thirty-two training examples are available. Two ways of using them compete:
- in-context learning: just put the examples in the instruction and train nothing;
- efficient fine-tuning: actually train, but very few parameters.
The paper's title settles it: the second is "better and cheaper" than the first. What is checkable in its abstract: the full recipe, named T-Few and built on the T0 model, beats the state of the art by 6 points absolute on the RAFT benchmark and reaches super-human level there for the first time.
The abstract does not claim to beat full fine-tuning. That is what figure 2 of the paper (reproduced below) shows, in this specific very-few-examples setting, and the reason is simple: with half a million free parameters and ten examples, the model has no room to memorize them. It is forced to generalize.
Why Scaling Works: Inhibition and Amplification
The name says it all: inhibit and amplify. Each learned component falls into one of three regimes.
- A value near 0 switches the dimension off. The model has learned it carried nothing but noise for this task.
- A value above 1 amplifies it. The model puts the spotlight on it.
- A value near 1 leaves it alone, preserving the original behaviour.
This is learned feature selection. Where LoRA transforms the representations (rotates them, recombines them) IA³ merely picks which ones to keep. An audio mixer: you do not change the instruments, you set the volume on each track.
How This Differs from Attention
Attention answers the question "which words in the text matter?". IA³ answers a different one: "which dimensions of the representation matter for my task?"
The distinction is the same one that runs through this whole module. Attention is recomputed for every text; it depends on what is being read. IA³'s vectors are learned once and depend on no text at all.
Comparison: Who Weighs How Much?
All the figures below are for a 7-billion-parameter model, and follow from the formulas given on each page.
| Method | Learned parameters | Share of the model | What is modified | Added latency |
|---|---|---|---|---|
| Prompt tuning, 20 fake words | 81,920 | 0.0012% | the input | negligible |
| IA³ | 614,400 | 0.009% | one coefficient per dimension | none, absorbed into the weights |
| Prefix tuning, prefix of 20 | 5.2 million | 0.08% | the input of every layer | slight |
| LoRA rank 8 on attention | 8.4 million | 0.12% | the targeted matrices | none, merged |
| Adapters | tens of millions | about 0.3% | inserted layers | significant |
| Full fine-tuning | 6.74 billion | 100% | everything | none |

In the extreme cases: very few training examples, very constrained storage, or thousands of micro-tasks each with a handful of examples.
The storage arithmetic, for ten thousand clients each with their own preferences:
- ten thousand sets of IA³ vectors, at 1.2 MB: 12 GB;
- ten thousand rank-16 LoRA adapters, at 34 MB: 340 GB;
- ten thousand soft prompts, at 164 KB: 1.6 GB, less still, but prompt tuning only works well on very large models.
So the choice is not only about size: it is a trade-off between storage, the size of the model you have, and how much training data you hold.
Honest Limitations
An Expressiveness Bounded by the Maths
This is not an impression, it is a constraint of form. IA³ can only rescale dimensions one at a time; it can never mix dimension 7 with dimension 342. LoRA can, since its product recombines dimensions with each other.
The consequence: for a deep adaptation (moving from medical to legal, learning a new language) IA³ lacks the means. It can steer the model, not turn it around.
Tasks That Require Learning Something New
As soon as new associations have to be learned rather than existing ones amplified, LoRA takes the lead. We put no number on that gap: it depends entirely on the task and we have no reference measurement to cite. The direction, though, follows from the constraint above.
IA³ multiplies activations by learned coefficients. Layer normalization does something that looks similar: it too has a learned multiplicative coefficient per dimension, conventionally written , plus an additive shift .
The difference lies in what comes before. Layer normalization first pulls the activations to mean zero and standard deviation one (that is its job, keeping magnitudes in check) and its and only give the network back the freedom just taken from it. IA³ normalizes nothing: it modulates directly.
Implementation: A Few Lines Are Enough
from peft import IA3Config, get_peft_model
config = IA3Config(
target_modules=["k_proj", "v_proj", "down_proj"],
feedforward_modules=["down_proj"],
)
model = get_peft_model(base_model, config)
model.print_trainable_parameters()
# On LLaMA-2 7B: 614,400 trainable parameters
# out of 6,738,415,616 total, i.e. 0.009%
Note the three targets named in the code: k_proj and v_proj are the weight matrices for keys and values, down_proj the FFN's return projection. That is exactly the list of three vectors described above, and the absence of q_proj confirms that queries are left alone.
A 1.2 MB file to save. Hugging Face's PEFT library ships IA3Config directly.
Place in the Ecosystem
LoRA remains the majority choice, because it strikes a better balance between expressiveness and cost in the common case: plenty of training data. IA³ keeps a domain of its own, the very-few-examples regime, where the advantage flips.
The lesson outlives the method: tiny, well-placed modifications to internal activations suffice to reorient a giant model. That says something about how these models store information, apparently, much of what a new task needs is already there, and only has to be brought forward.
The full comparison of the module's methods is in PEFT: comparing the methods.
In short. IA³ shows that adapting a 7-billion-parameter model does not necessarily take millions of new parameters. Knowing which dimensions to amplify and which to switch off is sometimes enough, 614,400 numbers, a 1.2 MB file, no setting to choose, and nothing to pay at inference.
1. Why does IA³ cost nothing at inference, even though it adds multiplications in every layer?
2. Why does IA³ scale the attention's keys and values, but never the queries?
3. IA³'s vectors are initialized to 1, whereas LoRA initializes its B matrix to 0. A contradiction?
4. What is IA³'s fundamental expressiveness limit?
5. Layer normalization also has a learned multiplicative coefficient per dimension. What sets it apart from IA³?