An Iterative Algorithm for Rescaled Hyperbolic Functions Regression

05/01/2023
by   Yeqi Gao, et al.
0

Large language models (LLMs) have numerous real-life applications across various domains, such as natural language translation, sentiment analysis, language modeling, chatbots and conversational agents, creative writing, text classification, summarization, and generation. LLMs have shown great promise in improving the accuracy and efficiency of these tasks, and have the potential to revolutionize the field of natural language processing (NLP) in the years to come. Exponential function based attention unit is a fundamental element in LLMs. Several previous works have studied the convergence of exponential regression and softmax regression. The exponential regression [Li, Song, Zhou 2023] and softmax regression [Deng, Li, Song 2023] can be formulated as follows. Given matrix A ∈ℝ^n × d and vector b ∈ℝ^n, the goal of exponential regression is to solve min_xexp(Ax) - b _2 and the goal of softmax regression is to solve min_x⟨exp(Ax) , 1_n ⟩^-1exp(Ax) - b _2 . In this work, we define a slightly different formulation than softmax regression. min_x ∈ℝ^d u(x) - ⟨ u(x) , 1_n ⟩· b _2 where u(x) ∈{exp(Ax), cosh(Ax) , sinh(Ax) }. We provide an input sparsity time algorithm for this problem. Our algorithm framework is very general and can be applied to functions like cosh() and sinh() as well. Our technique is also general enough to be applied to in-context learning for rescaled softmax regression.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/05/2023

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

Large language models (LLMs) have brought significant and transformative...
research
03/28/2023

Solving Regularized Exp, Cosh and Sinh Regression Problems

In modern machine learning, attention computation is a fundamental task ...
research
08/28/2023

Solving Attention Kernel Regression Problem via Pre-conditioner

Large language models have shown impressive performance in many tasks. O...
research
08/16/2023

Convergence of Two-Layer Regression with Nonlinear Units

Large language models (LLMs), such as ChatGPT and GPT4, have shown outst...
research
04/20/2023

Attention Scheme Inspired Softmax Regression

Large language models (LLMs) have made transformed changes for human soc...
research
06/11/2018

Navigating with Graph Representations for Fast and Scalable Decoding of Neural Language Models

Neural language models (NLMs) have recently gained a renewed interest by...
research
07/16/2023

Fast Quantum Algorithm for Attention Computation

Large language models (LLMs) have demonstrated exceptional performance a...

Please sign up or login with your details

Forgot password? Click here to reset