大语言模型的数值线性代数
研究论文 · 2026/10/07
数值线性代数(NLA)长期推动科学进步,提供解决科学与工程基础问题的工具。随着机器学习(ML)尤其是大语言模型(LLM)的兴起,矩阵和张量方法成为其核心。本文是一篇综述,旨在向数值方法专家阐明大语言模型的核心概念,并探讨LLM技术中使用的关键数值线性代数概念,同时突出NLA对该领域的近期重要贡献。
本文连接数值线性代数与大语言模型,为数值方法专家提供理解LLM的桥梁,并总结NLA在该领域的最新进展,对跨学科研究具有重要参考价值。
Numerical Linear Algebra (NLA) has consistently played a vital role in advancing science by providing tools to solve fundamental problems encountered in scientific and engineering applications. Over the decades, it has continually evolved to meet the demands driven by successive waves of scientific discovery. For instance, during the 1950s and 1960s, substantial efforts were devoted to developing methods for solving eigenvalue problems that emerged from the rapidly growing field of aerodynamics. This led to the discovery of the LR and QR algorithms. Later the attention turned to the solution of sparse linear systems that were common in applications like computational aerodynamics. Today we are experiencing yet another wave of major scientific advancement and NLA is once more at the heart of its development. This Machine Learning (ML) wave is proving to be utterly disruptive in science and engineering. Many tools in ML particularly Large Language Models (LLMs) are grounded in matrix and tensor methods. As we are approaching Artificial General Intelligence (AGI), it is clear that matrix methods will be called to play an even more significant role. For the numerical linear practitioner the speed of the current change makes it particularly challenging to adapt. This is a survey article that centers on machine learning techniques, with a particular focus on large language models. It has two main objectives. The first is to clarify the core concepts behind Large Language Models in a manner accessible to specialists in numerical methods. The second is to examine the key Numerical Linear Algebra concepts employed by LLM techniques, while also highlighting several significant recent contributions of NLA to the field.