# 张量补全

张量补全是一种数值与机器学习技术，它通过假设底层数据具有低秩结构来恢复多维数组（张量）的缺失条目，将[矩阵补全](https://www.edgepedia.org/zh/matrix-completion)扩展到三阶及更高阶。它被用于图像与视频修复、磁共振成像（MRI）重建、高光谱成像和推荐，在这些场景中观测稀疏或已损坏。

| 关键事实 | 详情 |
|---|---|
| 输入与输出 | 输入是一个张量，其中一部分条目已知；输出是一个补全张量，与观测一致，并在所选秩度量下具有低秩。<sup>[1](https://vigir.missouri.edu/~gdesouza/Research/Conference_CDs/IEEE_ICCV_2009/contents/pdf/iccv2009_273.pdf)</sup> |
| 奠基性表述 | 张量的迹范数是其各矩阵化迹范数的平均值，在二阶时退化为矩阵迹范数。<sup>[1](https://vigir.missouri.edu/~gdesouza/Research/Conference_CDs/IEEE_ICCV_2009/contents/pdf/iccv2009_273.pdf)</sup> |
| 凸求解器 | SiLRTC、FaLRTC 和 HaLRTC 分别通过块坐标下降、平滑和 ADMM 求解凸表述。<sup>[2](https://psycnet.apa.org/doi/10.1109/TPAMI.2012.39)</sup> |
| 样本复杂度障碍 | 一个秩为 r 的 \( n \times n \times n \) 不相干张量可从大约 \( r \cdot n^{3/2} \) 个观测中恢复，并有证据表明该界是紧的。<sup>[3](https://proceedings.neurips.cc/paper/2020/file/dab1263d1e6a88c9ba5e7e294def5e8b-Paper.pdf)</sup> |
| 管秩保证 | 在张量不相干条件下，从 \( O(r \cdot n_1 \cdot n_3 \log((n_1+n_2) \cdot n_3)) \) 个随机样本中可精确恢复一个管秩为 r 的 \( n_1 \times n_2 \times n_3 \) 张量。<sup>[4](https://ar5iv.labs.arxiv.org/html/1708.00601)</sup> |
| 对缺失的鲁棒性 | CP-WOPT 可对缺失率高达 99% 的张量进行因子分解，并可扩展至已知条目为五百万的 \( 1000 \times 1000 \times 1000 \) 张量。<sup>[5](https://doi.org/10.1016/j.chemolab.2010.08.004)</sup> |
| 难度 | 计算张量的 CP 秩是 NP 完全问题，因此直接进行秩最小化并不现实。<sup>[6](https://doi.org/10.1016/0196-6774%2890%2990014-6)</sup> |

## 工作原理

输入是一个张量 \( \mathcal{M} \in \mathbb{R}^{n_1 \times n_2 \times n_3} \)（或更高阶），其条目仅在一个索引集 \( \Omega \) 上已知；输出是一个张量 \( \mathcal{X} \)，它在 \( \Omega \) 上与 \( \mathcal{M} \) 一致且低秩，从而由低秩结构预测未观测条目。矩阵补全对二维数组求解同一问题；张量补全必须首先选择“秩”对三个或更多模式意味着什么。

三种秩概念占主导。CP 秩是求和得到该张量的秩一张量的最小数目；Tucker 秩（或 n-秩）是沿每个模式展开张量所得矩阵的秩构成的向量；管秩是在可逆线性变换 \( L \) 下的 t-SVD \( \mathcal{A} = \mathcal{U} *_L \mathcal{S} *_L \mathcal{V}^{\top} \) 中 \( \mathcal{S} \) 的非零奇异管的数目。<sup>[7](https://canyilu.github.io/publications/2019-CVPR-TNNtrans.pdf)</sup> 方法相应地分为 CP 分解、Tucker 分解和基于 t-SVD 的族。<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0925231221009243)</sup>

凸表述用范数替换秩。对于 Tucker 秩，使用各展开矩阵核范数之和（SNN）；奠基性论文中的张量迹范数是这些迹范数的平均值。<sup>[1](https://vigir.missouri.edu/~gdesouza/Research/Conference_CDs/IEEE_ICCV_2009/contents/pdf/iccv2009_273.pdf)</sup> 对于管秩，管核范数是 DFT 域张量各正面切片核范数的平均值，\( \|\mathcal{A}\|_{\mathrm{TNN}} = (1/n_3) \sum_{i=1}^{n_3} \|\hat{\mathcal{A}}^{(i)}\|_* \)。<sup>[4](https://ar5iv.labs.arxiv.org/html/1708.00601)</sup> 一个典型的规划是

\[ \min_{\mathcal{X}} \|\mathcal{X}\|_* \quad \text{s.t.} \quad \mathcal{P}_{\Omega}(\mathcal{X}) = \mathcal{P}_{\Omega}(\mathcal{M}), \]

其中 \( \mathcal{P}_{\Omega} \) 限制在已观测条目上。<sup>[7](https://canyilu.github.io/publications/2019-CVPR-TNNtrans.pdf)</sup> 基于展开的替代函数有结构性代价：矩阵化无法利用张量结构，可能次优 <sup>[9](https://doi.org/10.1007/s10208-015-9269-5)</sup>，而展开会破坏多路结构，导致信息损失和性能下降。<sup>[10](https://doi.org/10.1109/tip.2017.2762595)</sup> 该表述本身也是不适定的，需要额外约束以确保解族非平凡。<sup>[11](https://dl.acm.org/doi/10.1145/3604649)</sup>

恢复保证与矩阵情形类似。坎德斯（Candès）和雷希特（Recht）证明，大多数秩为 r 的 \( n \times n \) 矩阵可由核范数最小化从 \( m \ge C \cdot n^{1.2} \cdot r \log n \) 个随机条目中完美恢复 <sup>[12](https://doi.org/10.1007/s10208-009-9045-5)</sup>，而约 \( n \cdot r \log^2 n \) 个含噪样本给出的误差与噪声水平成正比。<sup>[13](https://ar5iv.labs.arxiv.org/html/0903.3131)</sup> 对于张量，巴拉克（Barak）和莫伊特拉（Moitra）表明，通过半定松弛，可从大约 \( r \cdot n^{3/2} \) 个观测中近似恢复一个秩为 r 的不相干 \( n \times n \times n \) 张量，并有证据表明该界是紧的；然而，张量核范数难以计算，因此凸方法不能给出算法保证。<sup>[3](https://proceedings.neurips.cc/paper/2020/file/dab1263d1e6a88c9ba5e7e294def5e8b-Paper.pdf)</sup> 在管秩下，张（Zhang）和埃龙（Aeron）证明了在张量不相干条件下从 \( O(r \cdot n_1 \cdot n_3 \log((n_1+n_2) \cdot n_3)) \) 个随机样本中可精确恢复 <sup>[4](https://ar5iv.labs.arxiv.org/html/1708.00601)</sup>，而基于变换的 TNN 最小化具有数量级最优的采样界。<sup>[7](https://canyilu.github.io/publications/2019-CVPR-TNNtrans.pdf)</sup>

## 如何实现

凸松弛求解器在展开或变换后的核范数上操作。奠基性论文的 TPAMI 期刊版本提供了三种算法：SiLRTC 用块坐标下降，FaLRTC 用平滑方案，HaLRTC 用交替方向乘子法（ADMM）。<sup>[2](https://psycnet.apa.org/doi/10.1109/TPAMI.2012.39)</sup> 甘迪（Gandy）、雷希特和山田（Yamada）引入了 n-秩的可处理凸松弛，并给出了基于道格拉斯–拉赫福德分裂和 ADMM 的算法。<sup>[14](https://doi.org/10.1088/0266-5611/27/2/025010)</sup> 张量迹范数并非张量秩的紧凸松弛，而更紧的正则化子可用 ADMM 求解。<sup>[15](https://proceedings.neurips.cc/paper_files/paper/2013/file/c26820b8a4c1b3c2aa868d6d57e14a79-Paper.pdf)</sup>

因子分解方法直接对张量参数化。TCTF 将一个低管秩张量分解为两个较小张量的 t-积，尺寸分别为 \( n_1 \times r \times n_3 \) 和 \( r \times n_2 \times n_3 \)，每次迭代成本远低于 TNN 的 \( O(n_1 \cdot n_2 \cdot n_3 \log n_3 + n_1 \cdot n_2 \cdot n_3 \min(n_1,n_2)) \)。<sup>[10](https://doi.org/10.1109/tip.2017.2762595)</sup> CP-WOPT 是一种用于不完全张量 CP 分解的一阶加权最小二乘法。<sup>[5](https://doi.org/10.1016/j.chemolab.2010.08.004)</sup> 黎曼方法在固定多线性秩的流形上运行非线性共轭梯度，其计算成本随张量大小线性增长。<sup>[16](https://doi.org/10.1007/s10543-013-0455-z)</sup> ScaledGD 使用缩放投影步骤，一旦样本量超过 \( n^{3/2} \) 这一数量级，在 Tucker 和 t-SVD 两种框架中都以与条件数无关的速率线性收敛。<sup>[17](https://www.jmlr.org/papers/volume23/21-1390/21-1390.pdf)</sup>

实践者必须估计秩（对于管秩，一种实用方法沿第三维做 DFT，并利用正面切片平均奇异值之间的比值和间隙 <sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0925231221009243)</sup>），并在基于变换的 TNN 中选择变换，其中 TNN-DCT 在测试的变换中取得了最佳 PSNR。<sup>[7](https://canyilu.github.io/publications/2019-CVPR-TNNtrans.pdf)</sup>

## 起源

张量补全从经由核范数的矩阵补全发展而来。坎德斯和雷希特 2009 年发表于《计算数学基础》（Foundations of Computational Mathematics）的论文确立了通过凸优化进行精确矩阵补全 <sup>[12](https://doi.org/10.1007/s10208-009-9045-5)</sup>，他们的因子分解表述是获胜的[奈飞奖](https://www.edgepedia.org/zh/netflix-prize)（Netflix Prize）团队预测引擎的基础组件之一。<sup>[12](https://doi.org/10.1007/s10208-009-9045-5)</sup> 甘迪、雷希特和山田 2011 年发表于《[反问题](https://www.edgepedia.org/zh/inverse-problems)》（Inverse Problems）的论文引入了用于张量补全和低 n-秩张量恢复的 n-秩可处理凸松弛，并给出了基于道格拉斯–拉赫福德分裂和 ADMM 的算法。<sup>[14](https://doi.org/10.1088/0266-5611/27/2/025010)</sup> 后来的工作使方法多样化：克雷斯纳（Kressner）、施泰因莱希纳（Steinlechner）和范德雷克（Vandereycken）在固定秩流形上的[黎曼优化](https://www.edgepedia.org/zh/riemannian-optimization) <sup>[16](https://doi.org/10.1007/s10543-013-0455-z)</sup>，阿贾尔（Acar）及其同事针对不完全数据的 CP 分解 <sup>[5](https://doi.org/10.1016/j.chemolab.2010.08.004)</sup>，张量列车分解 <sup>[18](https://doi.org/10.1137/090752286)</sup>，袁（Yuan）和张提出具有改进样本要求的直接张量核范数最小化 <sup>[9](https://doi.org/10.1007/s10208-015-9269-5)</sup>，周（Zhou）及其同事用于低秩补全的张量分解 <sup>[10](https://doi.org/10.1109/tip.2017.2762595)</sup>，以及佟（Tong）及其同事的缩放梯度方法。<sup>[19](https://doi.org/10.48550/arxiv.2104.14526)</sup>

## 变体

命名方法主要在秩模型和优化器上不同。HaLRTC 用 ADMM 求解凸表述。<sup>[2](https://psycnet.apa.org/doi/10.1109/TPAMI.2012.39)</sup> TCTF 和 Tubal-Alt-Min 都对低管秩张量进行因子分解，区别在于优化算法（Tubal-Alt-Min 每次迭代使用中位数最小二乘和平滑 QR）和秩估计策略。<sup>[10](https://doi.org/10.1109/tip.2017.2762595)</sup> 统一张量分解（UTF）模型将因子分解和 TNN 正则化整合到一个公式中，证明 t-积张量核范数等于两个小张量因子的弗罗贝尼乌斯范数之和的一半，Tubal-Alt-Min 和 TCTF 是其特例。<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0925231221009243)</sup> 基于变换的 TNN 用任意可逆线性变换替换 DFT。<sup>[7](https://canyilu.github.io/publications/2019-CVPR-TNNtrans.pdf)</sup> 张量环方法对数据做汉克尔化，并利用稀疏核心表示（TRDSR）。<sup>[20](https://iopscience.iop.org/article/10.1088/2632-2153/abcb4f/meta)</sup>

## 应用

奠基性论文在 3%、20% 和 80% 采样率下测试了合成 \( 40 \times 40 \times 40 \times 40 \) 张量和尺寸为 \( 181 \times 217 \times 181 \) 的脑部 MRI 数据，性能优于启发式 HOSVD/Tucker 方法，尤其是在 3% 采样率下。<sup>[1](https://vigir.missouri.edu/~gdesouza/Research/Conference_CDs/IEEE_ICCV_2009/contents/pdf/iccv2009_273.pdf)</sup> 甘迪、雷希特和山田完成了三阶 MRI 扫描和高光谱数据的补全。<sup>[14](https://doi.org/10.1088/0266-5611/27/2/025010)</sup> 在图像修复中，一种采用分块汉克尔化的多级张量环方法在 90%、95% 和 99% 缺失像素时优于 TT-WOPT、TR-ALS、TR-LRF 和 HaLRTC；在 99% 缺失时，TR-ALS 完全没有输出。<sup>[21](https://pmc.ncbi.nlm.nih.gov/articles/PMC8415089/)</sup> 在尺寸为 \( 6100 \times 260 \times 3 \times 85 \) 且去除了 80% 体素的 GunShot 视频上，TRDSR 优于 TR-ALS、MDT 和 SPC。<sup>[20](https://iopscience.iop.org/article/10.1088/2632-2153/abcb4f/meta)</sup> CP-WOPT 即使在 95% 数据缺失时也能恢复秩为 5 的张量的潜在因子。<sup>[5](https://doi.org/10.1016/j.chemolab.2010.08.004)</sup> 在推荐中，作为动机的矩阵问题规模大且极端稀疏：奈飞数据有 48 万观众和 1.8 万部电影，仅约 1.2% 的条目被观测到。<sup>[22](https://hastie.su.domains/Papers/SVD_JMLR.pdf)</sup>

## 局限与替代方案

文献中反复出现若干失效模式。计算 CP 秩是 NP 完全问题 <sup>[6](https://doi.org/10.1016/0196-6774%2890%2990014-6)</sup>，而秩最小化问题、低秩矩阵补全和张量秩可相互归约，因此三者都继承了这种难度。<sup>[23](https://doi.org/10.1080/03081087.2015.1083565)</sup> SNN 替代函数明显次优，需要的测量数远多于 Tucker 秩张量的自由度。<sup>[7](https://canyilu.github.io/publications/2019-CVPR-TNNtrans.pdf)</sup> TNN 正则化方法必须在每次迭代中计算耗时的 t-SVD，而因子分解方法速度快，但容易陷入局部极小且结果不唯一 <sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0925231221009243)</sup>；当因子相关时，标准交替最小化也可能停滞在局部极小。<sup>[3](https://proceedings.neurips.cc/paper/2020/file/dab1263d1e6a88c9ba5e7e294def5e8b-Paper.pdf)</sup> 对于结构化（非随机）缺失数据，精度在比随机缺失更低的缺失百分比下就会下降，而且许多算法无法处理缺失的列、行或块。<sup>[5](https://doi.org/10.1016/j.chemolab.2010.08.004)</sup><sup> • </sup><sup>[20](https://iopscience.iop.org/article/10.1088/2632-2153/abcb4f/meta)</sup> 在逐元素噪声下，误差随样本数的平方根衰减，这基本上是最优的 <sup>[3](https://proceedings.neurips.cc/paper/2020/file/dab1263d1e6a88c9ba5e7e294def5e8b-Paper.pdf)</sup>，而加权管核范数加 ℓ1 最小化可在无需调参的情况下从稀疏损坏的条目中恢复不相干张量。<sup>[4](https://ar5iv.labs.arxiv.org/html/1708.00601)</sup>

近期工作针对这些限制。楔形采样将观测分配给二分采样图中的长度为二的模式，对 k 阶张量实现了近线性的 \( \tilde{O}(n) \) 样本复杂度，消除了 \( \tilde{O}(n^{k/2}) \) 均匀采样障碍，其作者认为统计-计算差距在很大程度上是均匀条目采样模型的后果。<sup>[24](https://proceedings.mlr.press/v336/luo26a.html)</sup> 哪一类方法更可取取决于数据：在相同秩假设下，基于 Tucker 的方法通常比基于 CP 的方法更有效 <sup>[25](https://dl.acm.org/doi/10.1145/3278607)</sup>，而据报道，基于 t-SVD 的方法在捕捉真实数据中的空间相关性方面更优。<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0925231221009243)</sup>

## References

1. [Tensor Completion for Estimating Missing Values in Visual Data (ICCV 2009, Liu, Musialski, Wonka, Ye)](https://vigir.missouri.edu/~gdesouza/Research/Conference_CDs/IEEE_ICCV_2009/contents/pdf/iccv2009_273.pdf)
2. [Tensor Completion for Estimating Missing Values in Visual Data (TPAMI journal version, DOI 10.1109/TPAMI.2012.39)](https://psycnet.apa.org/doi/10.1109/TPAMI.2012.39)
3. [Tensor Completion Made Practical (NeurIPS 2020)](https://proceedings.neurips.cc/paper/2020/file/dab1263d1e6a88c9ba5e7e294def5e8b-Paper.pdf)
4. [Exact Tensor Completion from Sparsely Corrupted Observations via Convex Optimization (arXiv 1708.00601)](https://ar5iv.labs.arxiv.org/html/1708.00601)
5. [Evrim Acar and colleagues (2010). Scalable tensor factorizations for incomplete data. Chemometrics and Intelligent Laboratory Systems.](https://doi.org/10.1016/j.chemolab.2010.08.004)
6. [Tensor rank is NP-complete (Journal of Algorithms, 1990)](https://doi.org/10.1016/0196-6774%2890%2990014-6)
7. [Low-Rank Tensor Completion With a New Tensor Nuclear Norm Induced by Invertible Linear Transforms (CVPR 2019)](https://canyilu.github.io/publications/2019-CVPR-TNNtrans.pdf)
8. [Unifying tensor factorization and tensor nuclear norm approaches for low-rank tensor completion (Neurocomputing)](https://www.sciencedirect.com/science/article/abs/pii/S0925231221009243)
9. [Ming Yuan, Cun-Hui Zhang (2015). On Tensor Completion via Nuclear Norm Minimization. Foundations of Computational Mathematics.](https://doi.org/10.1007/s10208-015-9269-5)
10. [Pan Zhou and colleagues (2017). Tensor Factorization for Low-Rank Tensor Completion. IEEE Transactions on Image Processing.](https://doi.org/10.1109/tip.2017.2762595)
11. [Tensor Completion with Provable Consistency and Fairness Guarantees for Recommender Systems (ACM TORS)](https://dl.acm.org/doi/10.1145/3604649)
12. [Emmanuel J. Candès, Benjamin Recht (2009). Exact Matrix Completion via Convex Optimization. Foundations of Computational Mathematics.](https://doi.org/10.1007/s10208-009-9045-5)
13. [Matrix Completion with Noise (Candès & Plan, Proc. IEEE)](https://ar5iv.labs.arxiv.org/html/0903.3131)
14. [Silvia Gandy, Benjamin Recht, Isao Yamada (2011). Tensor completion and low-n-rank tensor recovery via convex optimization. Inverse Problems.](https://doi.org/10.1088/0266-5611/27/2/025010)
15. [A New Convex Relaxation for Tensor Completion (Romera-Paredes & Pontil, NIPS 2013)](https://proceedings.neurips.cc/paper_files/paper/2013/file/c26820b8a4c1b3c2aa868d6d57e14a79-Paper.pdf)
16. [Daniel Kressner, Michael Steinlechner, Bart Vandereycken (2013). Low-rank tensor completion by Riemannian optimization. BIT Numerical Mathematics.](https://doi.org/10.1007/s10543-013-0455-z)
17. [Scaled Gradient Descent for Low-rank Tensor Completion (JMLR vol. 23)](https://www.jmlr.org/papers/volume23/21-1390/21-1390.pdf)
18. [I. V. Oseledets (2011). Tensor-Train Decomposition. SIAM Journal on Scientific Computing.](https://doi.org/10.1137/090752286)
19. [Tong, Tian and colleagues (2021). Scaling and Scalability: Provable Nonconvex Low-Rank Tensor Estimation from Incomplete Measurements. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2104.14526)
20. [Matrix and tensor completion using tensor ring decomposition with sparse representation (Machine Learning: Science and Technology)](https://iopscience.iop.org/article/10.1088/2632-2153/abcb4f/meta)
21. [Image Completion in Embedded Space Using Multistage Tensor Ring Decomposition (Sensors, 2021)](https://pmc.ncbi.nlm.nih.gov/articles/PMC8415089/)
22. [Spectral Regularization Algorithms for Learning Large Incomplete Matrices (Soft-Impute, Mazumder, Hastie, Tibshirani, JMLR)](https://hastie.su.domains/Papers/SVD_JMLR.pdf)
23. [Harm Derksen (2015). Matrix completion and tensor rank. Linear and Multilinear Algebra.](https://doi.org/10.1080/03081087.2015.1083565)
24. [Wedge Sampling: Efficient Tensor Completion with Nearly-Linear Sample Complexity (COLT 2026)](https://proceedings.mlr.press/v336/luo26a.html)
25. [Tensor Completion Algorithms in Big Data Analytics (ACM Computing Surveys, 2018)](https://dl.acm.org/doi/10.1145/3278607)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods › Supervised, unsupervised, and semi-supervised learning › Dimensionality reduction and manifold learning

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/tensor-completion

English original: https://www.edgepedia.org/tensor-completion
