arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.16610cs.LGcs.GL
收藏

张量烹饪书:通过图表掌握张量

Tensor Cookbook: Mastering Tensors through Diagrams

Mila & DIRO(Mila与DIRO);Université de Montréal(蒙特利尔大学);CIFAR AI Chair(CIFAR人工智能主席)

Beheshteh T. Rakhshan, Guillaume Rabusseau

AI总结:

本文通过图表语言阐述张量网络及其在张量代数中的应用,展示如何用图形化方法简化高维数据处理和梯度推导。

摘要:

高维数据在许多科学和工程领域自然出现,包括机器学习、信号处理、计算物理和统计学。此类数据通常表示为张量,即矩阵的多维推广。尽管张量为多模态结构提供了自然表示,但随着阶数增长,直接操作变得困难:参数数量呈指数增长,涉及多个索引的代数表达式难以理解和实现。张量网络(TNs)提供了解决这些挑战的有效框架。最初由Penrose引入并在量子物理中得到广泛发展,张量网络的图形语言将收缩表示为图中的边,减少了符号开销并揭示了被索引表示掩盖的结构特性。尽管高维张量在现代机器学习和数值分析中扮演核心角色,但张量网络图在量子计算之外仍被低估,部分原因是缺乏一个自包含的数学参考,可供广泛的技术受众使用。本文提供了一个自包含的张量网络指南及其在张量代数中的应用。我们介绍了张量的主要操作,如收缩、乘积和重塑,通过图形符号,并展示经典张量分解及相关计算如何自然地表达在此框架中。我们还说明了张量网络如何简化梯度推导和高维概率分布的操作。在整个过程中,我们展示了图示方法能够产生真正更简洁和透明的证明,证明经典恒等式、秩界和梯度公式,否则需要繁琐的索引操作。

英文摘要:

High-dimensional data arise naturally in many areas of science and engineering, including machine learning, signal processing, computational physics, and statistics. Such data are often represented as tensors, multi-dimensional generalizations of matrices. While tensors provide a natural representation for multi-modal structure, their direct manipulation quickly becomes challenging as the order grows: the number of parameters increases exponentially, and algebraic expressions involving many indices become difficult to interpret and implement. Tensor networks (TNs) provide an effective framework for addressing these challenges. Originally introduced by Penrose and developed extensively in quantum physics, the graphical language of tensor networks encodes contractions as edges in a graph, reducing notational overhead and revealing structural properties obscured by index notation. Despite the central role of high-dimensional tensors in modern machine learning and numerical analysis, tensor network diagrams remain underutilized outside quantum computing, partly due to the lack of a self-contained mathematical reference accessible to a broad technical audience. This manuscript provides a self-contained guide to tensor networks and their use in tensor algebra. We present the main operations on tensors, contractions, products, and reshaping through, graphical notation, and show how classical tensor decompositions and related computations are naturally expressed in this framework. We also illustrate how tensor networks simplify the derivation of gradients and the manipulation of high-dimensional probability distributions. Throughout, we show that the diagrammatic approach yields genuinely shorter and more transparent proofs of classical identities, rank bounds, and gradient formulas that would otherwise require laborious index manipulation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑