# 最近向量问题

最近向量问题（CVP）是格上的一种计算问题（格是由基向量的整数组合生成的点所构成的规则网格）：给定一个格的基和一个目标向量，找出距离目标最近的格向量。形式化地说，对于由基 \( \mathbf{B} \) 生成的格 \( \mathcal{L}(\mathbf{B}) \) 以及位于格张成空间中的目标 \( \mathbf{t} \)，CVP 要求找出一个向量 \( \mathbf{w} \in \mathcal{L}(\mathbf{B}) \)，使得 \( \|\mathbf{w} - \mathbf{t}\| = \mathrm{dist}(\mathbf{t}, \mathcal{L}(\mathbf{B})) \)，即目标到任意格点的最小距离<sup>[1](https://www.mdpi.com/2410-387X/10/2/17)</sup>。它是最短向量问题（SVP）的非齐次伴随问题，后者要求找出最短的非零格向量<sup>[2](https://cseweb.ucsd.edu/classes/fa19/cse206A-a/lec3.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | 给定格基 \( \mathbf{B} \) 和目标 \( \mathbf{t} \)，找出使 \( \|\mathbf{w} - \mathbf{t}\| \) 最小的 \( \mathbf{w} \in \mathcal{L}(\mathbf{B}) \)<sup>[1](https://www.mdpi.com/2410-387X/10/2/17)</sup> |
| 困难性 | 精确 CVP 是 NP 难的（van Emde Boas，1981）<sup>[3](https://mathworld.wolfram.com/ClosestVectorProblem.html)</sup>；对某个常数 \( c > 0 \)，在 \( n^{c/\log\log n} \) 因子内近似也是 NP 难的（Dinur、Kindler、Raz 和 Safra，2003）<sup>[4](https://weizmann.elsevierpure.com/en/publications/approximating-cvp-to-within-almost-polynomial-factors-is-np-hard/)</sup> |
| 枚举 | Kannan 1983 年的算法以多项式空间在 \( n^{O(n)} \) 时间内求解精确 CVP<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9090713/)</sup> |
| 筛法 | Ajtai、Kumar 和 Sivakumar 给出了欧几里得范数下 \( (1+\epsilon) \)-CVP 的随机化 \( 2^{O(n)} \) 时间、\( 2^{O(n)} \) 空间算法<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9090713/)</sup> |
| 精确 \( 2^n \) 型算法 | Micciancio 和 Voulgaris（2010）：通过 Voronoi 胞腔实现 \( 2^{2n+o(n)} \) 时间、\( 2^{n+o(n)} \) 空间<sup>[1](https://www.mdpi.com/2410-387X/10/2/17)</sup>；Aggarwal、Dadush 和 Stephens-Davidowitz（2015）：通过离散高斯采样实现 \( 2^{n+o(n)} \) 时间和空间<sup>[6](https://arxiv.org/abs/1504.01995)</sup> |
| 密码学角色 | CVP 及其特例有界距离解码（BDD）构成了基于格的密码学的基础；LWE 问题就是平均情况下的 BDD<sup>[7](https://perso.ens-lyon.fr/damien.stehle/LBCF_course.html)</sup> |

## 变体

该问题通常以欧几里得范数表述，但也可以针对任意范数定义，其中 \( \ell_p \) 范数得到了单独研究<sup>[2](https://cseweb.ucsd.edu/classes/fa19/cse206A-a/lec3.pdf)</sup>。在近似版本中，近似因子为 \( \gamma \ge 1 \) 的 \( \gamma \)-CVP 要求找出一个格向量 \( \mathbf{y} \)，使得 \( \|\mathbf{y} - \mathbf{t}\| \le \gamma \cdot \mathrm{dist}(\mathbf{t}, \mathcal{L}) \)；随着 \( \gamma \) 缩小趋近于 1，问题变得越来越难<sup>[8](https://ir.cwi.nl/pub/23044/23044B.pdf)</sup>。一种承诺版本区分距离格不超过 \( r \) 的目标与距离超过 \( \gamma(n) \, r \) 的目标<sup>[3](https://mathworld.wolfram.com/ClosestVectorProblem.html)</sup>。

两种特殊情况在实践中很重要。有界距离解码（BDD）承诺目标位于格的 \( \alpha \cdot \lambda_1(\mathcal{L}) \) 范围内，其中 \( \alpha < 1/2 \)，\( \lambda_1 \) 是最短非零向量长度，并要求找出最近的向量；与近似 CVP 不同，BDD 随着 \( \alpha \) 增大而变得更难<sup>[8](https://ir.cwi.nl/pub/23044/23044B.pdf)</sup>。以短基作为陷门时，界相对于基的 Gram–Schmidt 长度较小的 BDD 可由 Babai 算法高效求解<sup>[9](https://www.lattices.io/crypto/cvp)</sup>。带预处理的最近向量问题（CVPP）允许事先对格进行无限量的计算，因此查询时才需提供目标向量<sup>[10](https://arxiv.org/abs/1607.04789)</sup>。

## 困难性

Van Emde Boas 于 1981 年证明了精确 CVP 是 NP 难的<sup>[3](https://mathworld.wolfram.com/ClosestVectorProblem.html)</sup>。近似同样是困难的：Dinur、Kindler、Raz 和 Safra 的一系列工作于 2003 年发表在 *Combinatorica* 上，确立了在因子 \( n^{c/\log\log n} \)（对某个常数 \( c > 0 \)）内近似 CVP 是 NP 难的，这是一个近乎多项式的不可近似性结果<sup>[4](https://weizmann.elsevierpure.com/en/publications/approximating-cvp-to-within-almost-polynomial-factors-is-np-hard/)</sup>。对每个 \( \ell_p \) 范数，CVP 都是 NP 难的<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9090713/)</sup>。

细粒度复杂性进一步厘清了这一图景。在强指数时间假设（SETH）下，先前的工作给出了当度量是 \( \ell_2 \) 以外的 \( \ell_p \) 范数时 CVP 的 \( 2^{(1-o(1))n} \) 下界，而对于 \( \ell_2 \) 和任何偶数 \( p \)，存在障碍阻止此类结果<sup>[11](https://arxiv.org/abs/2501.03688)</sup>。Abboud 和 Kumar 于 2025 年证明了受限 (0,1)-CVP——其中格向量是基向量子集之和——在输入坐标绝对值为 \( 2^{o(n)} \) 时，在欧几里得范数下存在 \( O(1.7299^n) \) 时间的精确算法，并且对所有偶数 \( p \) 在计算上等价于 Max-\( p \)-SAT<sup>[11](https://arxiv.org/abs/2501.03688)</sup>。

## 算法

**枚举。** Kannan 1983 年的算法使用多项式空间在 \( n^{O(n)} \) 时间内求解精确 CVP 和 SVP<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9090713/)</sup>。枚举比筛法使用更少的内存，而筛法则以更少的时间作为补偿<sup>[12](https://trepo.tuni.fi/bitstream/10024/230825/2/MauriJouni.pdf)</sup>。

**筛法。** Ajtai、Kumar 和 Sivakumar 引入了随机筛法，对 \( (1+\epsilon) \)-CVP\(_2\) 实现了 \( 2^{O(n)} \) 时间和空间，这是首个单指数界；Blömer 和 Naewe 将该方法推广到所有 \( p \) 的 \( (1+\epsilon) \)-CVP\(_p \)，时间为 \( O(1+1/\epsilon)^{2n} \)，空间为 \( O(1+1/\epsilon)^{n} \)<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9090713/)</sup>。Dadush 将筛法推广到任意范数下的 \( (1+\epsilon) \)-CVP，运行时间相同<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9090713/)</sup>；Dadush 和 Kun 后来给出了任意范数下的确定性 \( 2^{O(n)}(1+1/\epsilon)^n \) 时间算法，使用 \( 2^n \, \mathrm{poly}(n) \) 空间<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9090713/)</sup>。

**Voronoi 胞腔与离散高斯。** 在 STOC 2010 上，Micciancio 和 Voulgaris 给出了一种确定性算法，在 \( 2^{2n+o(n)} \) 时间和 \( 2^{n+o(n)} \) 空间内构造格的 Voronoi 胞腔，并在这些界内求解 CVPP；该胞腔最多有 \( 2(2^n - 1) \) 个面<sup>[1](https://www.mdpi.com/2410-387X/10/2/17)</sup><sup> • </sup><sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9090713/)</sup>。2015 年，Aggarwal、Dadush 和 Stephens-Davidowitz 给出了欧几里得格上精确 CVP 的随机化 \( 2^{n+o(n)} \) 时间和空间算法，改进了确定性的 \( \widetilde{O}(4^n) \) 时间 Micciancio–Voulgaris 算法，使用了格平移上的离散高斯采样<sup>[6](https://arxiv.org/abs/1504.01995)</sup>。目前最快的精确 CVP\(_2\) 算法使用离散高斯采样，需要 \( 2^{n+o(n)} \) 的时间和空间<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9090713/)</sup>。

**预处理。** Laarhoven 针对 CVPP 的筛法方法实现了 \( 2^{0.636d} \) 的空间和预处理，查询时间为 \( 2^{0.136d} \)；以 \( (1/\epsilon)^{O(d)} \) 的预处理和内存为代价，查询成本可降至 \( 2^{\epsilon d} \)<sup>[10](https://arxiv.org/abs/1607.04789)</sup>。对于近似因子较大 \( k = \Omega(\sqrt{d/\log d}) \) 的近似 CVPP，多项式大小的辅助信息足以支持多项式时间求解<sup>[10](https://arxiv.org/abs/1607.04789)</sup>。

**实践中的近似。** 当输入基是 LLL 约化的时候，Babai 的舍入算法在指数因子内近似 CVP，LLL 约化也是实际密码分析所依赖的格约化方法<sup>[13](https://people.csail.mit.edu/vidick/JoMC08.pdf)</sup>。

**结构化与低维情形。** 困难性适用于一般格；特殊结构有所帮助。对于三角格——它用于模糊提取器和模糊签名中，后两者从 128 到 512 维的生物特征数据中导出密码学密钥——Takahashi 和 Nakamura 于 2024 年给出了 \( O(n \log n) \) 时间的 CVP 算法，改进了传统的 \( O(n^2) \) 方法，随后又给出了 \( O(n) \) 时间算法<sup>[14](https://arxiv.org/abs/2412.06091)</sup>。

## 在密码学中的作用

基于格的密码学建立在 CVP 和 SVP 的假定难解性之上；这两个问题是其安全性所依赖的主要困难问题<sup>[10](https://arxiv.org/abs/1607.04789)</sup>。LWE 问题是平均情况下的有界距离解码，SIS 是平均情况下的近似 SVP<sup>[7](https://perso.ens-lyon.fr/damien.stehle/LBCF_course.html)</sup>。大多数基于格的方案对应于近似因子 \( \gamma = \mathrm{poly}(n) \)，人们普遍认为对于这样的 \( \gamma \)，不存在亚指数量子算法能在最坏情况下求解 \( \gamma \)-SVP 或 \( \gamma \)-CVP<sup>[15](https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/ise2.12101)</sup>。对于这些格问题，尚不知道有类似于 Shor 算法（该算法破解了基于因子分解的密码学）的算法<sup>[16](https://www.livescience.com/technology/computing/quantum-computing-will-make-cryptography-obsolete-but-computer-scientists-are-working-to-make-them-unhackable)</sup>。CVP 在编码理论中也有直接的类比：对接收到的线性码（一个格陪集）的含噪码字进行解码，恰好就是一个最近向量问题，而一般码是难以解码的<sup>[9](https://www.lattices.io/crypto/cvp)</sup><sup> • </sup><sup>[17](https://courses.cs.washington.edu/courses/cse599r/08au/LectureNotes/Crypto599class10.pdf)</sup>。

## References

1. [A Survey on Classical Lattice Algorithms, MDPI *Cryptography*](https://www.mdpi.com/2410-387X/10/2/17)
2. [CSE 206A: Lattice Algorithms and Applications, lecture notes, UC San Diego](https://cseweb.ucsd.edu/classes/fa19/cse206A-a/lec3.pdf)
3. [Closest Vector Problem, Wolfram MathWorld](https://mathworld.wolfram.com/ClosestVectorProblem.html)
4. [Dinur, Kindler, Raz, Safra (2003). Approximating CVP to within almost-polynomial factors is NP-hard. *Combinatorica* 23(2), 205–243](https://weizmann.elsevierpure.com/en/publications/approximating-cvp-to-within-almost-polynomial-factors-is-np-hard/)
5. [Covering Convex Bodies and the Closest Vector Problem, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC9090713/)
6. [Aggarwal, Dadush, Stephens-Davidowitz (2015). Solving the Closest Vector Problem in \( 2^n \) Time, arXiv:1504.01995](https://arxiv.org/abs/1504.01995)
7. [Damien Stehlé, Hard lattice problems, course page, ENS Lyon](https://perso.ens-lyon.fr/damien.stehle/LBCF_course.html)
8. [Lattice algorithms lecture notes, CWI](https://ir.cwi.nl/pub/23044/23044B.pdf)
9. [Closest Vector Problem (CVP) and Babai's Algorithm, Lattices.io](https://www.lattices.io/crypto/cvp)
10. [Laarhoven (2016). Sieving for closest lattice vectors (with preprocessing), arXiv:1607.04789](https://arxiv.org/abs/1607.04789)
11. [Abboud, Kumar (2025). On Beating \( 2^n \) for the Closest Vector Problem, arXiv:2501.03688](https://arxiv.org/abs/2501.03688)
12. [Solving the shortest vector problem with enumeration algorithms, Tampere University](https://trepo.tuni.fi/bitstream/10024/230825/2/MauriJouni.pdf)
13. [Sieve Algorithms for the Shortest Vector Problem are Practical](https://people.csail.mit.edu/vidick/JoMC08.pdf)
14. [Takahashi, Nakamura (2024). A Linear-Time Algorithm for the Closest Vector Problem of Triangular Lattices, arXiv:2412.06091](https://arxiv.org/abs/2412.06091)
15. [Wang et al. (2023). Lattice-based cryptosystems in standardisation processes: A survey, *IET Information Security*](https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/ise2.12101)
16. [Quantum computing will make cryptography obsolete. But computer scientists are working to make them unhackable, Live Science](https://www.livescience.com/technology/computing/quantum-computing-will-make-cryptography-obsolete-but-computer-scientists-are-working-to-make-them-unhackable)
17. [Cryptanalysis lecture notes, University of Washington CSE 599](https://courses.cs.washington.edu/courses/cse599r/08au/LectureNotes/Crypto599class10.pdf)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Number theory › Computational and probabilistic number theory › Integer-relation and lattice algorithms

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/closest-vector-problem

English original: https://www.edgepedia.org/closest-vector-problem
