Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
102 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

An Iterative Algorithm for Rescaled Hyperbolic Functions Regression (2305.00660v1)

Published 1 May 2023 in cs.LG and stat.ML

Abstract: LLMs have numerous real-life applications across various domains, such as natural language translation, sentiment analysis, LLMing, 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 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 \in \mathbb{R}{n \times d}$ and vector $b \in \mathbb{R}n$, the goal of exponential regression is to solve \begin{align*} \min_{x} | \exp(Ax) - b |2 \end{align*} and the goal of softmax regression is to solve \begin{align*} \min{x} | \langle \exp(Ax) , {\bf 1}n \rangle{-1} \exp(Ax) - b |_2 . \end{align*} In this work, we define a slightly different formulation than softmax regression. \begin{align*} \min{x \in \mathbb{R}d } | u(x) - \langle u(x) , {\bf 1}_n \rangle \cdot b |_2 \end{align*} where $u(x) \in { \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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (3)
  1. Yeqi Gao (14 papers)
  2. Zhao Song (253 papers)
  3. Junze Yin (26 papers)
Citations (28)