# TC0

**TC0**（也写作 TC⁰）是一个电路复杂性类：由多项式大小、常数深度、门为无界扇入（一个逻辑门接受的输入数）阈值门——通常是多数门——再加上非门的布尔电路族所识别的形式语言集合。<sup>[1](https://www.cs.rutgers.edu/~allender/papers/division.pdf)</sup><sup> • </sup><sup>[2](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00493/112604/Saturated-Transformers-are-Constant-Depth)</sup> 阈值门在其输入的加权和超过某个固定值时输出 1，因此多数门是所有输入的权重均为 1、阈值为扇入一半的特殊情形。<sup>[3](https://eccc.weizmann.ac.il/report/2009/085/revision/1/download/)</sup> 该类最初由[安德拉什·哈伊纳尔](https://www.edgepedia.org/zh/andras-hajnal)（András Hajnal）、沃尔夫冈·马斯（Wolfgang Maass）、帕维尔·普德拉克（Pavel Pudlák）、马里奥·塞格迪（Márió Szegedy）和哲尔吉·图兰（György Turán）于 1987 年在非一致情形下定义。<sup>[4](https://users.math.cas.cz/~jerabek/papers/dsc.pdf)</sup><sup> • </sup><sup>[5](https://cir.nii.ac.jp/crid/1360292618954566912?lang=en)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 由多项式大小、常数深度、无界扇入的多数（阈值）门和非门构成的电路族所识别的语言<sup>[1](https://www.cs.rutgers.edu/~allender/papers/division.pdf)</sup> |
| 已知包含关系 | AC0 ⊂ TC0 ⊆ NC1 ⊆ L ⊆ P；TC0 还包含 ACC0<sup>[1](https://www.cs.rutgers.edu/~allender/papers/division.pdf)</sup><sup> • </sup><sup>[6](https://complexityzoo.net/Complexity_Zoo%3AT)</sup> |
| 起源 | 由哈伊纳尔、马斯、普德拉克、塞格迪和图兰在《有界深度阈值电路》（“Threshold circuits of bounded depth”），FOCS 1987 中定义<sup>[4](https://users.math.cas.cz/~jerabek/papers/dsc.pdf)</sup><sup> • </sup><sup>[5](https://cir.nii.ac.jp/crid/1360292618954566912?lang=en)</sup> |
| 完全问题 | 整数乘法在 AC0 归约下是 TC0 完全的；迭代加法和排序也是完全的<sup>[4](https://users.math.cas.cz/~jerabek/papers/dsc.pdf)</sup> |
| 一致算术 | 除法、幂运算和迭代乘法属于 DLOGTIME 一致的 TC0（赫斯（Hesse）、阿伦德（Allender）和米克斯·巴林顿（Mix Barrington），2002）<sup>[1](https://www.cs.rutgers.edu/~allender/papers/division.pdf)</sup> |
| 深度层级 | 深度为 3 的 TC0 电路严格强于深度为 2 的电路；某些 AC0 函数需要指数大小的深度为 2 的 TC0 电路<sup>[7](https://satoshihada.github.io/complexity-zoo/ComplexityZoo_T_tc.html)</sup> |
| 下界前沿 | 对于显式函数，针对深度为 3 的 TC0 电路已知最好的门下界是 n^(1.5−o(1))（凯恩（Kane）和威廉姆斯（Williams），STOC 2016）<sup>[8](https://simons.berkeley.edu/talks/review-some-recent-lower-bounds-against-low-depth-threshold-circuits)</sup> |
| 神经网络联系 | 具有浮点值的饱和 Transformer 可由常数深度阈值电路模拟，因此 TC0 给出它们所识别语言的上界<sup>[9](https://aclanthology.org/2022.tacl-1.49/)</sup> |

## 定义及其在电路类中的位置

电路复杂性类是由具有一定大小、深度和门集合的电路族所识别的一组形式语言。<sup>[2](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00493/112604/Saturated-Transformers-are-Constant-Depth)</sup> 对 TC0 而言，族中的每个电路计算该语言在长度为 n 的输入上的特征函数，由扇入不受限制的多数门加非门组成，深度为 O(1)，大小为 n^O(1)。<sup>[1](https://www.cs.rutgers.edu/~allender/papers/division.pdf)</sup> 等价的表述允许无界加权阈值门，因为与门和或门可通过适当设置由阈值门模拟，而非门可被翻转权重函数吸收。<sup>[3](https://eccc.weizmann.ac.il/report/2009/085/revision/1/download/)</sup> 反过来，每个阈值函数都是输入数大约为其两倍的多数门的子函数，因此仅用多数门的电路就足够了。<sup>[10](https://www.math.toronto.edu/rossman/2429-L7.pdf)</sup>

已知关系为 AC0 ⊂ TC0 ⊆ NC1 ⊆ L ⊆ P，其中 AC0 使用无界扇入的与门、或门和非门，NC1 使用对数深度的有界扇入门，L 和 P 分别表示对数空间和多项式时间计算。<sup>[1](https://www.cs.rutgers.edu/~allender/papers/division.pdf)</sup><sup> • </sup><sup>[2](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00493/112604/Saturated-Transformers-are-Constant-Depth)</sup> 严格包含 AC0 ⊂ TC0 可由以下事实推出：奇偶性及其他对称函数需要指数大小的 AC0 电路，却可由多项式大小的深度为 2 的多数电路计算。<sup>[10](https://www.math.toronto.edu/rossman/2429-L7.pdf)</sup> TC0 还包含 ACC0，即带模门的 AC0[m] 类的并集。<sup>[6](https://complexityzoo.net/Complexity_Zoo%3AT)</sup><sup> • </sup><sup>[10](https://www.math.toronto.edu/rossman/2429-L7.pdf)</sup>

TC0 是否严格小于 NC1 仍是未解问题；将已知的只读一次阈值公式下界推广到 TC0 中的所有函数，将建立分离 TC0 ≠ NC1。<sup>[11](https://www.sciencedirect.com/science/article/pii/030439759390254Q)</sup>

## TC0 中的算术

TC0 常被视为基本算术运算的自然复杂性类：整数乘法在 AC0 归约下是 TC0 完全的，而加法、减法和大小比较属于 AC0。<sup>[4](https://users.math.cas.cz/~jerabek/papers/dsc.pdf)</sup> 1984 年，比姆（Beame）、库克（Cook）和胡佛（Hoover）给出了并行算法，将除法、幂运算和迭代乘法放入 NC1；赖夫（Reif）很快观察到这些算法可由常数深度、多项式大小的阈值电路实现，从而将这些问题放入 TC0。<sup>[1](https://www.cs.rutgers.edu/~allender/papers/division.pdf)</sup>

这些电路的一致性多年来是悬而未决的问题。赫斯、阿伦德和米克斯·巴林顿在 2002 年证明，除法、幂运算和迭代乘法都属于 DLOGTIME 一致的 TC0，解决了 P 一致构造与完全一致构造之间的最后差距。<sup>[1](https://www.cs.rutgers.edu/~allender/papers/division.pdf)</sup> 他们的证明通过中国剩余表示进行，将一个数存储为它模许多小素数的剩余，并证明用于模小素数幂运算的辅助谓词本身可在一阶逻辑中定义。<sup>[1](https://www.cs.rutgers.edu/~allender/papers/division.pdf)</sup> 基于这些结果，其他问题，如多项式除法、插值，以及足够好的幂级数的逼近，包括对数、指数、根式和三角函数，都可在一致 TC0 中计算。<sup>[4](https://users.math.cas.cz/~jerabek/papers/dsc.pdf)</sup> 耶扎贝克（Jeřábek）后来证明，常数次单变量有理多项式的根可由一致 TC0 算法计算到给定精度。<sup>[12](https://arxiv.org/abs/1112.3925)</sup>

对其中一些问题，深度界是紧的：在整数权重多项式有界时，多重求和可在深度 2 中计算，乘法和除法可在深度 3 中计算，而根据哈伊纳尔等人以及霍夫迈斯特（Hofmeister）和普德拉克的下界，这些深度是最优的。<sup>[13](https://epubs.siam.org/doi/abs/10.1137/S0895480192228619)</sup>

## 一致性与描述复杂性

电路族默认是非一致的，这意味着不同输入长度的电路之间不必有任何关系。<sup>[2](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00493/112604/Saturated-Transformers-are-Constant-Depth)</sup> 一致性条件对构造第 n 个电路的难易程度作出限制。P 一致的 TC0 要求多项式时间构造，L 一致的 TC0 要求对数空间构造，而 DLOGTIME 一致的 TC0 要求随机访问对数时间机器能回答关于电路的局部问题，例如门 i 是否是门 j 的子节点；电路复杂性研究者广泛认为 DLOGTIME 一致性是小电路类的正确条件。<sup>[1](https://www.cs.rutgers.edu/~allender/papers/division.pdf)</sup>

DLOGTIME 一致的 TC0 有一个描述复杂性刻画：它与 FOM 重合，即在有限结构上加上多数量词的一阶逻辑。<sup>[1](https://www.cs.rutgers.edu/~allender/papers/division.pdf)</sup><sup> • </sup><sup>[4](https://users.math.cas.cz/~jerabek/papers/dsc.pdf)</sup> 它也等同于由具有 O(1) 个阈值的 O(log n) 时间阈值图灵机计算，或在具有多项式数量的处理器的阈值随机访问机器上常数时间计算。<sup>[4](https://users.math.cas.cz/~jerabek/papers/dsc.pdf)</sup> 在有界算术中，由阮（Nguyen）和库克（Cook）引入的理论 VTC0，其可证全函数恰好是与 TC0 相关联的那些。<sup>[14](https://arxiv.org/abs/cs/0505013)</sup>

## 下界与未解问题

证明 TC0 的超多项式大小下界是复杂性理论中一个著名的未解问题。<sup>[15](https://arxiv.org/abs/1805.10698)</sup> 对于显式函数，针对深度为 3 的 TC0 电路已知最强的门下界是 n^(1.5−o(1))，由丹尼尔·凯恩（Daniel Kane）和瑞安·威廉姆斯（Ryan Williams）在 STOC 2016 上给出，并用随机限制证明；一个相关的、针对 ACC0 与深度为 2 的线性阈值电路复合所得电路的界，用多项式方法证明，来自与乔什·阿尔曼（Josh Alman）和[蒂莫西·陈](https://www.edgepedia.org/zh/timothy-chan)（Timothy Chan）在 FOCS 2016 上的工作，苏古鲁·塔马基（Suguru Tamaki）也有类似结果。截至该综述报告时，两者仍是当时的最佳结果。<sup>[8](https://simons.berkeley.edu/talks/review-some-recent-lower-bounds-against-low-depth-threshold-circuits)</sup> 一个主要前沿是证明 NEXP 没有多项式大小的深度为 2 的线性阈值门电路。<sup>[15](https://arxiv.org/abs/1805.10698)</sup>

类内的一些分离是已知的。深度为 3 的 TC0 电路严格强于深度为 2 的电路，这一方向上的舍斯托夫（Sherstov）式工作包括一个显式 AC0 函数在受限深度为 2 的阈值电路上的指数下界，而对不受限的深度为 2 的 TC0 电路的此类下界仍未解决。<sup>[7](https://satoshihada.github.io/complexity-zoo/ComplexityZoo_T_tc.html)</sup><sup> • </sup><sup>[19](https://eccc.weizmann.ac.il/report/2008/016/download/)</sup> 对于一致电路，阿伦德在 1999 年证明 0-1 矩阵的积和式不能在一致 TC0 中计算，推广了科西努斯（Caussinus）、麦肯齐（McKenzie）、泰里安（Thérien）和福尔默（Vollmer）的结果，后者表明计数层级中的问题需要超多项式大小的一致 TC0 电路。<sup>[16](https://scholarship.libraries.rutgers.edu/esploro/outputs/journalArticle/The-permanent-requires-large-uniform-threshold/991031890082404646)</sup>

自然证明屏障限制了进展：纳奥尔（Naor）和赖因戈尔德（Reingold）给出了一个可在 TC0 中计算的候选伪随机函数族，其安全性假设因数分解困难性有次指数下界；这意味着在该假设下，不存在分离 TC0 与 P/poly 的自然证明，并且 TC0 中的函数很可能难以学习。<sup>[7](https://satoshihada.github.io/complexity-zoo/ComplexityZoo_T_tc.html)</sup><sup> • </sup><sup>[17](https://oamonitor.ireland.openaire.eu/rpo/rcsi/search/publication?pid=10.1145%2F972639.972643)</sup>

## 与神经网络和密码学的联系

由于阈值门是带有加权和与阈值的神经元的离散类比，TC0 可作为神经网络计算能力的模型。梅里尔（Merrill）、萨巴瓦尔（Sabharwal）和史密斯（Smith）在 2022 年证明，具有饱和注意力——硬注意力的一种推广，更贴近实际 Transformer 中可学习的注意力模式——和浮点值的 Transformer 可由常数深度阈值电路模拟，从而给出 TC0 作为此类 Transformer 所识别形式语言的上界。<sup>[9](https://aclanthology.org/2022.tacl-1.49/)</sup> 相关工作表明，任何在对数精度下、在单次前向传播中求值的 Transformer 只计算对数空间一致的 TC0 中的函数。<sup>[18](https://www.tmls.nyc/research/cot-expressivity-complexity)</sup> 饱和 Transformer 是否属于一致 TC0，仍是该方向工作提出的未解问题。<sup>[2](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00493/112604/Saturated-Transformers-are-Constant-Depth)</sup>

在密码学中，纳奥尔和赖因戈尔德的数论伪随机函数可在 TC0 中求值，并且由于这些函数具有直接的代数构造，它们支持额外能力——例如，在已对密钥 s 作出承诺时，验证 y = f_s(x) 或证明 y ≠ f_s(x) 的零知识证明。<sup>[17](https://oamonitor.ireland.openaire.eu/rpo/rcsi/search/publication?pid=10.1145%2F972639.972643)</sup>

## References

1. [William Hesse, Eric Allender, David A. Mix Barrington (2002). Uniform constant-depth threshold circuits for division and iterated multiplication. Journal of Computer and System Sciences 65(4):695–716.](https://www.cs.rutgers.edu/~allender/papers/division.pdf)
2. [saturated transformers are constant-depth threshold circuits | transactions of the association for computational linguistics | mit press](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00493/112604/Saturated-Transformers-are-Constant-Depth)
3. [ECCC Report No. 85 (2009), Revision 1.](https://eccc.weizmann.ac.il/report/2009/085/revision/1/download/)
4. [Emil Jeřábek. Bounded arithmetic (chapter: Root finding with threshold circuits).](https://users.math.cas.cz/~jerabek/papers/dsc.pdf)
5. [Threshold circuits of bounded depth, 28th Annual Symposium on Foundations of Computer Science (FOCS 1987), IEEE, pp. 99–110.](https://cir.nii.ac.jp/crid/1360292618954566912?lang=en)
6. [complexity zoo:t - complexity zoo](https://complexityzoo.net/Complexity_Zoo%3AT)
7. [Complexity Zoo: TC0.](https://satoshihada.github.io/complexity-zoo/ComplexityZoo_T_tc.html)
8. [A Review of Some Recent Lower Bounds Against Low-Depth Threshold Circuits, Simons Institute for the Theory of Computing.](https://simons.berkeley.edu/talks/review-some-recent-lower-bounds-against-low-depth-threshold-circuits)
9. [William Merrill, Ashish Sabharwal, Noah A. Smith (2022). Saturated Transformers are Constant-Depth Threshold Circuits. Transactions of the Association for Computational Linguistics 10:843–856.](https://aclanthology.org/2022.tacl-1.49/)
10. [CSC2429/MAT1304 Circuit Complexity, Lecture 7, University of Toronto.](https://www.math.toronto.edu/rossman/2429-L7.pdf)
11. [On read-once threshold formulae and their randomized decision tree complexity, Theoretical Computer Science.](https://www.sciencedirect.com/science/article/pii/030439759390254Q)
12. [Emil Jeřábek (2012). Root finding with threshold circuits. Theoretical Computer Science 462:59–69.](https://arxiv.org/abs/1112.3925)
13. [Kai-Yeung Siu, Vwani P. Roychowdhury (1994). On Optimal Depth Threshold Circuits for Multiplication and Related Problems. SIAM Journal on Discrete Mathematics 7(2):284–292.](https://epubs.siam.org/doi/abs/10.1137/S0895480192228619)
14. [Phuong Nguyen, Stephen Cook (2006). Theories for TC0 and Other Small Complexity Classes. Logical Methods in Computer Science.](https://arxiv.org/abs/cs/0505013)
15. [Lijie Chen (2018). Toward Super-Polynomial Size Lower Bounds for Depth-Two Threshold Circuits. arXiv:1805.10698.](https://arxiv.org/abs/1805.10698)
16. [Eric Allender (1999). The permanent requires large uniform threshold circuits. Chicago Journal of Theoretical Computer Science.](https://scholarship.libraries.rutgers.edu/esploro/outputs/journalArticle/The-permanent-requires-large-uniform-threshold/991031890082404646)
17. [Moni Naor, Omer Reingold (2004). Number-theoretic constructions of efficient pseudo-random functions. Journal of the ACM 51:231–262.](https://oamonitor.ireland.openaire.eu/rpo/rcsi/search/publication?pid=10.1145%2F972639.972643)
18. [The Complexity Limits of Chain-of-Thought, TMLS.NYC research summary.](https://www.tmls.nyc/research/cot-expressivity-complexity)
19. [eccc.weizmann.ac.il](https://eccc.weizmann.ac.il/report/2008/016/download/)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Computational complexity › Circuit complexity

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/tc0

English original: https://www.edgepedia.org/tc0
