In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trick

07/05/2023
∙
by   Yeqi Gao, et al.
∙
0
∙

Large language models (LLMs) have brought significant and transformative changes in human society. These models have demonstrated remarkable capabilities in natural language understanding and generation, leading to various advancements and impacts across several domains. We consider the in-context learning under two formulation for attention related regression in this work. Given matrices A_1 ∈ℝ^n × d, and A_2 ∈ℝ^n × d and B ∈ℝ^n × n, the purpose is to solve some certain optimization problems: Normalized version min_X D(X)^-1exp(A_1 X A_2^⊤) - B _F^2 and Rescaled version exp(A_1 X A_2^⊤) - D(X) · B _F^2. Here D(X) := diag( exp(A_1 X A_2^⊤) 1_n ). Our regression problem shares similarities with previous studies on softmax-related regression. Prior research has extensively investigated regression techniques related to softmax regression: Normalized version ⟨exp(Ax) , 1_n ⟩^-1exp(Ax) - b _2^2 and Resscaled version exp(Ax) - ⟨exp(Ax), 1_n ⟩ b _2^2 In contrast to previous approaches, we adopt a vectorization technique to address the regression problem in matrix formulation. This approach expands the dimension from d to d^2, resembling the formulation of the regression problem mentioned earlier. Upon completing the lipschitz analysis of our regression function, we have derived our main result concerning in-context learning.

READ FULL TEXT

Please sign up or login with your details

Continue with:
Or login with email
Enter Password
Re-enter Password

Forgot password? Click here to reset
Success!
Error Icon An error occurred

Sign in with Google

×

Use your Google Account to sign in to DeepAI

×
Pro

Consider DeepAI Pro

Subscribe to DeepAI Pro
DeepAI Pro
Provides a limited generation allowance each month. When exceeded, you are charged overage rates available at deepai.org/pricing. Also includes an ad-free experience and API access. Renews automatically until canceled. Non-refundable.
Subtotal
Total due today

Payment

Add DeepAI credits
DeepAI credits
One-time purchase. Credits are added to your wallet after payment.
Subtotal
Total due today

Payment