LLMs as High-Dimensional Nonlinear Autoregressive Models with Attention: Training, Alignment and Inference

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autore principale: Krishnamurthy, Vikram
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917236998930432
author Krishnamurthy, Vikram
author_facet Krishnamurthy, Vikram
contents Large language models (LLMs) based on transformer architectures are typically described through collections of architectural components and training procedures, obscuring their underlying computational structure. This review article provides a concise mathematical reference for researchers seeking an explicit, equation-level description of LLM training, alignment, and generation. We formulate LLMs as high-dimensional nonlinear autoregressive models with attention-based dependencies. The framework encompasses pretraining via next-token prediction, alignment methods such as reinforcement learning from human feedback (RLHF), direct preference optimization (DPO), rejection sampling fine-tuning (RSFT), and reinforcement learning from verifiable rewards (RLVR), as well as autoregressive generation during inference. Self-attention emerges naturally as a repeated bilinear--softmax--linear composition, yielding highly expressive sequence models. This formulation enables principled analysis of alignment-induced behaviors (including sycophancy), inference-time phenomena (such as hallucination, in-context learning, chain-of-thought prompting, and retrieval-augmented generation), and extensions like continual learning, while serving as a concise reference for interpretation and further theoretical development.
format Preprint
id arxiv_https___arxiv_org_abs_2602_00426
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle LLMs as High-Dimensional Nonlinear Autoregressive Models with Attention: Training, Alignment and Inference
Krishnamurthy, Vikram
Machine Learning
Artificial Intelligence
Computation and Language
Signal Processing
Large language models (LLMs) based on transformer architectures are typically described through collections of architectural components and training procedures, obscuring their underlying computational structure. This review article provides a concise mathematical reference for researchers seeking an explicit, equation-level description of LLM training, alignment, and generation. We formulate LLMs as high-dimensional nonlinear autoregressive models with attention-based dependencies. The framework encompasses pretraining via next-token prediction, alignment methods such as reinforcement learning from human feedback (RLHF), direct preference optimization (DPO), rejection sampling fine-tuning (RSFT), and reinforcement learning from verifiable rewards (RLVR), as well as autoregressive generation during inference. Self-attention emerges naturally as a repeated bilinear--softmax--linear composition, yielding highly expressive sequence models. This formulation enables principled analysis of alignment-induced behaviors (including sycophancy), inference-time phenomena (such as hallucination, in-context learning, chain-of-thought prompting, and retrieval-augmented generation), and extensions like continual learning, while serving as a concise reference for interpretation and further theoretical development.
title LLMs as High-Dimensional Nonlinear Autoregressive Models with Attention: Training, Alignment and Inference
topic Machine Learning
Artificial Intelligence
Computation and Language
Signal Processing
url https://arxiv.org/abs/2602.00426