- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
The paper studies the expressiveness of prefix-tuning for a fixed pretrained autoregressive Transformer. The central question is whether, for a user input x and desired output sequence y, one can construct a prefix that makes the frozen model generate y. The authors restrict attention to targets that are already reachable from the pretrained model from some source input x', and they prove an existence result under an additional rank/distinguishability condition on the attention heads. For Transformers with residual connections and positional encodings, the theorem also requires the source and user inputs to have matching lengths and the same final token. The constructive proof uses attention matching: the prefix is designed so that the attention outputs during generation from the prefixed user input match those from the source input. By allowing generalized, head-specific key/value prefixes, the construction reduces to solving linear systems and then repeating prefix vectors enough times to override the original input contribution. Experiments on GPT-2, using synthetic sentence buckets generated with Gemini Flash, report high success rates for short outputs and lower but still substantial success rates for longer outputs; appendices include counterexamples, parameter ablations, and a proof-of-concept memory/KV-cache attack scenario.
Strengths and weaknesses
The paper is solid.
The authors give an explicit construction of the prefix tokens for each head for each layer, via attention matching. One question I have is whether the construction is sensitive to small details of the architecture—if there are positional encodings (discussed briefly on line 160), or a W_V matrix, does a modification of the construction still work?
Decoding is done via greedy decoding, and it is argued that as long as the number of times the prefix tokens are repeated is sufficiently large, then each MHA layer’s output will be the same between the prefix-tuned user input and the source input. My intuition from reading the main paper is that when m is sufficiently large, the self attention contributions from the user input is drowned out. Is there a sense of how large m needs to be to achieve some approximation guarantees to when the input is the source input?
I feel the main weakness is the restriction to the one-input one-output case. Theorem 2.2 provides an impossibility result for the case of even two input-output pairs, but this feels worst-case/adversarially constructed. The multi input-output case is probably hard without assumptions on the input-output so I am fine with the limitation of the current scope to one input/output pair. But I am curious if there is a way to understand the multi input-output pair setting from the one input-output pair setting.
Questions
- Is the construction is sensitive to small details of the architecture
- Is there a sense of how large m needs to be to achieve some approximation guarantees to when the input is the source input?
- Is there is a way to understand the multi input-output pair setting from the one input-output pair setting.
Limitations
-
The paper discusses assumptions made (Equation (10)). It could discuss a little more how the theoretical formulation differs or is similar to prefix tuning used empirically — e.g. in practice, do practitioners actually instantiate m different tokens for each head for each layer?
-
Is it realistic to assume access to the source input? If you want to steer your LLM to generate y given user input x, but the source input is unknown, are there reasonable heuristics to find an approximate source input? What are the ways people steer their LLM to generate a particular output y in the absence of a source input?
-
They mention that this is for the one-input one-output setting, whereas fine-tuning involves multiple pairs. They prove a negative result in the case where there are just two input-output examples.
Paper formatting concerns
n/a
Final justification
Rebuttal addresses my questions
We thank the reviewer for their thoughtful feedback. Below, we address the concerns and questions raised in the review.
Question 1: Is the construction is sensitive to small details of the architecture
We are currently conducting experiments on additional models, but the results are not yet available due to the limited rebuttal timeframe. We will report these findings as soon as they are ready.
Question 2: Is there a sense of how large m needs to be to achieve some approximation guarantees to when the input is the source input?
In principle, it may be possible to derive such a bound theoretically. However, any general worst-case guarantee is likely to be extremely large. Empirically, as reported in Section 5, we find that 90 repetitions are sufficient for GPT-2.
Question 3: Is there is a way to understand the multi input-output pair setting from the one input-output pair setting.
Although our work substantially extends the existing theory, the multi-input/output setting remains an important open problem. We hope our results will motivate further research in this direction. On a positive note, our counterexamples suggest that the primary challenge arises from inconsistencies between the pretrained model's behavior and the desired fine-tuning dataset. We believe these insights provide useful guidance for formulating assumptions that work for the multi-input/output setting.
Limitation 1: The paper discusses assumptions made (Equation (10)). It could discuss a little more how the theoretical formulation differs or is similar to prefix tuning used empirically — e.g. in practice, do practitioners actually instantiate m different tokens for each head for each layer?
There are two main differences between our theoretical settings and the practical settings: (i) As we discussed, our work focuses on one input-output pair but in practice the fine-tuning dataset is much larger. (ii) In practice, the prefix is often obtained from training but not explicit construction. Our work essentially provides evidence that some good prefix exists, but we do not expect people simply use our constructed prefix for their downstream applications. That said, since prefix optimization can sometimes be unstable, our construction may potentially serve as a useful initialization, which we leave as an interesting direction for future work.
As to whether practitioners actually instantiate m different tokens for each head for each layer, from the documentation of one of our references (Poth et al., 2023), they seem to allow the prefix to be head-dependent. Therefore we believe our head-dependent assumption is reasonable.
Limitation 2: Is it realistic to assume access to the source input? If you want to steer your LLM to generate y given user input x, but the source input is unknown, are there reasonable heuristics to find an approximate source input? What are the ways people steer their LLM to generate a particular output y in the absence of a source input?
The lack of access to the source input in practice does not affect our result as we are analyzing prefix-tuning from a theoretical perspective. Nevertheless, practical heuristics for identifying suitable source inputs do exist, and we discuss several of them in Appendix C.