Uploaded a filewrite content in section Discussion on the Limitations of Prompt Tuning and J.2 Lemma C.2 verbatim!
Assistant
Here is the verbatim text from the requested sections:
Discussion on the Limitations of Prompt Tuning:"For simplicity, consider a single-layer transformer function class with 1 head of size s and r MLP hidden neurons:TC1,s,r:={τ:Rd×L→Rd×L∣τ=f(FF)(f(SA)(⋅))}T^{1,s,r}_C := {\tau : \mathbb{R}^{d \times L} \to \mathbb{R}^{d \times L} | \tau = f(FF)(f(SA)(\cdot))}TC1,s,r:={τ:Rd×L→Rd×L∣τ=f(FF)(f(SA)(⋅))}.
The tokenwise output of the transformerτ\tauτwith input[P,X]∈Rd×(Lp+L)[P,X] \in \mathbb{R}^{d \times (L_p+L)}[P,X]∈Rd×(Lp+L)is
where[P,X][P,X][P, the concatenation of a promptP∈Rd×LpP \in \mathbb{R}^{d \times L_p}P∈Rd×Lpand a dataX∈Rd×LX \in \mathbb{R}^{d \times L}X∈Rd×L. By taking the inverse of feed-forward functionf(FF−1):Rd→Rdf(FF^{-1}) : \mathbb{R}^d \to \mathbb{R}^df(FF−1):Rd→Rd, we have
wherex=X:,ix = X_{:,i}x=X:,iandyyyis the corresponding label token forxxx.
Next, to better understand how the promptPPPaffect the output of the transformer, we focus on the output token of the attention layer corresponding to some data tokenx=X:,ix = X_{:,i}x=X:,i,
This manipulation highlights prompt tuning’s ability to subtly refine and leverage the pretrained model’s knowledge without disrupting its core attention dynamics. However, it constrains prompt tuning’s expressiveness, as it cannot change the direction of the attention output vectorf(Att)(x,X)f(Att)(x,X)f(Att)(x,X). Thus, prompt tuning is limited to realigning latent knowledge within the model, failing to learn new knowledge, which would require altering the model’s core attention dynamics."
J.2 of Lemma C.2. We restate the proof from [ and , 2024] for completeness.
We first observe that
whereδij\delta_{ij}δijis the delta function, i.e.,δij=1\delta_{ij} = 1δij=1only wheni= we have
Sincepi>0p_i > 0pi>0, we only need to focus on the second term
This means
By usingmaxjzj≤lnZ(z)\max_j z_j \leq \ln Z(z)maxjzj≤lnZ(z)[Boyd and Vandenberghe, 2004, p. 72] andS(p)≤lnnS(p) \leq \ln nS(p)≤lnn, we have that, when
the Boltzmann operatorBoltz(z)\text{Boltz}(z)Boltz(z)monotonically decreases in the direction ofziz_izi."
If you need further details or additional sections, let me know!
Cite this conversation
“Uploaded a filewrite content in section Discussion on the Limitations of Prompt Tuning….” Conversation with ChatGPT (version unspecified), from the ShareChat — Chatbot Conversations in the Wild dataset. The Chat Archive, 2026. https://thechatarchive.com/c/01m84vz4kc3aw9056eynf3wzkd