In theoretical computer science, and specifically computational complexity theory and circuit complexity, TC0 (Threshold Circuit) is the first class in the hierarchy of TC classes. TC0 contains all languages which are decided by Boolean circuits with constant depth and polynomial size, containing only unbounded fan-in AND gates, OR gates, NOT gates, and MAJ gates (equivalently, threshold gates). TC0 contains several important problems, such as sorting n n-bit numbers, multiplying two n-bit numbers, integer division or recognizing the Dyck language with multiple types of parentheses. It is commonly used to model the computational complexity of bounded-depth neural networks, and indeed, it was originally proposed for this purpose.
Definitions A Boolean circuit family is a sequence of Boolean circuits C1,C2,C3,… consisting of a feedforward network of Boolean functions. A binary language L∈2∗ is in the TC0 class if there exists a Boolean circuit family C1,C2,C3,…, such that
There exists a polynomial function p, and a constant d. Each Cn is composed of up to p(n) unbounded fan-in AND, OR, NOT, and MAJ gates in up to d layers. For each x∈2n, we have x∈L iff Cn(x)=1.
Equivalently, instead of majority gates, we can use threshold gates with integer weights and thresholds, where all weights and thresholds are bounded by a polynomial. A threshold gate with k inputs is defined by a list of weights w1,…,wk and a single threshold θ. Upon binary inputs x1,…,xk, it outputs +1 if ∑iwixk>θ, else it outputs −1. A threshold gate is also called an artificial neuron. Consider the gates AND, OR, NOT, and threshold. AND and OR are monotonic in the sense that flipping an input from -1 to +1 can only change the output from -1 to +1, never the reverse. This is not for NOT. As for threshold, it is monotonic if all weights are non-negative. Theoreticians have studied the theory of monotonic Boolean circuits, those with only monotonic gates. The TC0 can be cast into the monotonic form as follows. In addition to the original inputs x1,…,xk, also provide the network with negations of binary inputs: ¬x1,…,¬xk. With these, a 1-layer TC0 circuit can be converted to a monotonic 1-layer monotonic TC0 circuit with twice as many inputs. Iterating this, any d-layer TC0 circuit can be converted to a d-layer monotonic TC0 circuit, where each layer has at most twice as many wires. Formally, therefore, TC0 is the languages decidable by some Boolean circuit family C1,C2,C3,… such that
There exists a polynomial function p, and a constant d. Each Cn is composed of up to p(n) threshold gates in up to d layers, whose weights are non-negative integers, thresholds are integers, and both weights and thresholds are bounded within ±p(n). For each x∈2n, we have x∈L iff Cn(x)=1. In this article, we by default consider Boolean circuits with a polynomial number of AND, OR, NOT, and threshold gates, with polynomial bound on integer weights and thresholds. The polynomial bound on weights and thresholds can be relaxed without changing the class 𝖳𝖢0. In arithmetic circuit complexity theory, 𝖳𝖢0 can be equivalently characterized as the class of languages defined as the images of sign∘fn, where each fn:{0,1}n→ℤ is computed by a polynomial-size constant-depth unbounded-fan-in arithmetic circuits with + and × gates, and constants from {−1,0,+1}.
Complexity class relations
We can relate TC0 to other circuit classes, including AC0 and NC1 as follows:
𝖠𝖢0⊊𝖠𝖢0[p]⊊𝖳𝖢0⊆𝖭𝖢1.
Whether 𝖳𝖢0⊆𝖭𝖢1 is a strict inclusion is "one of the main open problems in circuit complexity". In fact, it is even open whether 𝖳𝖢0⊆𝖯/𝗉𝗈𝗅𝗒 is a strict inclusion! This is in some sense unsurprising, since there is no natural proof for 𝖳𝖢0⊊𝖯/𝗉𝗈𝗅𝗒, assuming that there is a cryptographically secure pseudorandom number generator in 𝖳𝖢0, which have been explicitly constructed under the assumption that factoring Blum integers is hard (i.e. requires circuits of size 2𝗉𝗈𝗅𝗒(n)), which is widely suspected to be true. More generally, randomness and hardness for have been shown to be closely related. It is also an open question whether 𝖭𝖤𝖷𝖯⊆𝖳𝖢0. Indeed, 𝖭𝖤𝖷𝖯⊈𝖠𝖢𝖢0 was only proven in 2011. Note that because non-uniform 𝖳𝖢0 and 𝖠𝖢𝖢0 can compute functions that are not Turing-computable, it is certainly the case that 𝖳𝖢0⊈𝖭𝖤𝖷𝖯 and 𝖠𝖢𝖢0⊈𝖭𝖤𝖷𝖯. The 2011 result simply shows that 𝖠𝖢𝖢0 and 𝖭𝖤𝖷𝖯 are incomparable classes. The open question is whether 𝖳𝖢0 and 𝖭𝖤𝖷𝖯 are incomparable as well. Note that, while the nondeterministic time hierarchy theorem proves that 𝖭𝖯⊊𝖭𝖤𝖷𝖯, both complexity classes are uniform, meaning that a single Turing machine is responsible for solving the problem at any input length. In contrast, a 𝖳𝖢0 circuit family may be non-uniform, meaning that there may be no good algorithm for finding the correct circuit, other than exhaustive search over all 2𝗉𝗈𝗅𝗒(n) possible Boolean circuits of bounded depth and 𝗉𝗈𝗅𝗒(n) size, then checking all 2n possible inputs to verify that the circuit is correct. It has been proven that if 𝖳𝖢0=𝖭𝖢1, then for any ϵ>0, there exists a 𝖳𝖢0 circuit family of gate number O(n1+ϵ) that solves the Boolean Formula Evaluation problem. Thus, any (strongly) superlinear bound suffices to prove 𝖳𝖢0≠𝖭𝖢1.
… excerpt ends here. Continue reading the full article.
