A Formal Comparison Between Chain of Thought and Latent Thought โ€” part 7/9

Cleaned-text code points [93498, 109327). Bibliography omitted here; source.md includes it.

For the upper bound ๐–ซ๐—ˆ๐—ˆ๐—‰ [ log k n , ๐—‰๐—ˆ๐—…๐—’ ( n ) , 1 (resp. log n ) ] โІ ๐– ๐–ข k (resp. ๐–ณ๐–ข k ) , \mathsf{Loop}[\log^{k}n,\,\mathsf{poly}(n),\,1\ \textup{(resp.\ }\log n)]\subseteq\mathsf{AC}^{k}\ \textup{(resp.\ }\mathsf{TC}^{k}), we follow the argument of ( Li et al., 2024 ) . Their key observation is that a restricted form of automaton can model iterative computation under constant precision: the rounding operation preserves monotonicity, and constant precision yields counter-free, restricted state spaces, which are therefore computable by ๐– ๐–ข 0 \mathsf{AC}^{0} circuits. In the case of polynomial precision, prefix summation can be simulated by ๐–ณ๐–ข 0 \mathsf{TC}^{0} , which also allows the detection and correction of rounding in floating-point arithmetic.

###### Theorem B.9 ( Li et al., 2024 ) .

For s โก ( n ) โˆˆ ๐—‰๐—ˆ๐—…๐—’ โก ( n ) s(n)\in\mathsf{poly}(n) , sum s โก ( n ) : ( ๐”ฝ s โก ( n ) ) n โ†’ ๐”ฝ s โก ( n ) \mathrm{sum}_{s(n)}:(\mathbb{F}_{s(n)})^{n}\to\mathbb{F}_{s(n)} is computable by ๐–ณ๐–ข 0 \mathsf{TC}^{0} circuits, and by ๐– ๐–ข 0 \mathsf{AC}^{0} circuits when s โก ( n ) s(n) is constant.

It has also been shown that gates can be efficiently simulated by feedforward layers.

###### Lemma B.10 ( Li et al., 2024 ) .

Unbounded-fanin and , ๐–ฎ๐–ฑ \and,\mathsf{OR} (resp. ๐‘‚๐‘ƒ๐ธ๐‘ ๐–ฌ๐– ๐–ฉ๐–ฎ๐–ฑ๐–จ๐–ณ๐–ธ ) : { 0 , 1 } n โ†’ { 0 , 1 } \mathsf{MAJORITY}):\{0,1\}^{n}\to\{0,1\} can be simulated by a two-layer feedforward ReLU network with constant (resp. log โก n \log{n} ) bits of precision constant hidden dimension and additional n n constant inputs of value 1 1 .

###### Proof for Theorem 3.12 .

๐–ซ๐—ˆ๐—ˆ๐—‰ [ log k n , ๐—‰๐—ˆ๐—…๐—’ ( n ) , 1 (resp. log n ) ] โІ ๐– ๐–ข k (resp. ๐–ณ๐–ข k ) : \mathsf{Loop}[\log^{k}n,\,\mathsf{poly}(n),\,1\ \textup{(resp.\ }\log n)]\subseteq\mathsf{AC}^{k}\ \textup{(resp.\ }\mathsf{TC}^{k}): In Transformers, constant-depth computation is defined by Summation with Iterative Rounding (see Definition B.3 ), which by Theorem B.9 can be simulated in ๐– ๐–ข 0 \mathsf{AC}^{0} (resp. ๐–ณ๐–ข 0 \mathsf{TC}^{0} ). A looped TF simply stacks these computations vertically through iteration, and thus the result follows.

๐– ๐–ข k (resp. ๐–ณ๐–ข k ) โІ ๐–ซ๐—ˆ๐—ˆ๐—‰ [ log k n , ๐—‰๐—ˆ๐—…๐—’ ( n ) , 1 (resp. log n ) ] : \mathsf{AC}^{k}\ \textup{(resp.\ }\mathsf{TC}^{k})\subseteq\mathsf{Loop}[\log^{k}n,\,\mathsf{poly}(n),\,1\ \textup{(resp.\ }\log n)]: Since Boolean circuits are DAGs, the claim follows directly from Theorem 3.10 together with Lemma B.10 . โˆŽ

## Appendix C Deferred Proofs for Section 4

### C.1 Definition for Models of Computation

We model a language model as a probabilistic process that, given an input and a generated prefix, produces either an internal reasoning state or an output token. This process induces a probability distribution over final outputs. We first formalize CoT under this setting. We focus on the saturated hardmax attention as in ( Merrill et al., 2022 ; Nowak et al., 2024 ) .

###### Definition C.1 (Language model with CoT) .

Let ๐’ฑ {\mathcal{V}} be a vocabulary. Given an input x โˆˆ ๐’ฑ โˆ— x\in{\mathcal{V}}^{*} , a language model with CoT stochastically generates a sequence of output blocks of the form ( r 1 , e , y 1 , e โ€ฒ , r 2 , e , y 2 , e โ€ฒ , โ‹ฏ r m , e , y m , e โ€ฒ ) , \Big(r_{1},\,e,\,y_{1},\,e^{\prime},\;r_{2},\,e,\,y_{2},\,e^{\prime},\;\cdots\;r_{m},\,e,\,y_{m},\,e^{\prime}\Big), (80) where each r i โˆˆ ๐’ฑ โˆ— r_{i}\in{\mathcal{V}}^{*} represents an explicit reasoning trace, y i โˆˆ ๐’ฑ y_{i}\in{\mathcal{V}} is an output token, and e , e โ€ฒ โˆˆ ๐’ฑ e,e^{\prime}\in{\mathcal{V}} are special delimiter tokens. The final output is the string y 1 โ‹ฏ y m y_{1}\cdots y_{m} . Generation proceeds autoregressively: at iteration i i , the model generates a reasoning segment r i r_{i} followed by an output token y i y_{i} , conditioned on the input x x , the previously generated outputs y < i y_{<i} , and prior reasoning segments r < i r_{<i} . We denote by p โก ( y โˆฃ x ) p(y\mid x) the resulting distribution over final outputs.

Then we define the language models with latent thought reasoning: Coconut and looped TF.

###### Definition C.2 (Language model with Coconut) .

Let ๐’ฑ {\mathcal{V}} be a vocabulary. Given an input x โˆˆ ๐’ฑ โˆ— x\in{\mathcal{V}}^{*} , a language model with Coconut generates a sequence of blocks ( r 1 , y 1 , r 2 , y 2 , โ€ฆ , r m , y m ) , \Big(r_{1},\,y_{1},\,r_{2},\,y_{2},\,\ldots,\,r_{m},\,y_{m}\Big), (81) where each r i โˆˆ ๐”ฝ d โˆ— r_{i}\in{\mathbb{F}^{d}}^{*} represents an internal continuous reasoning state, and each y i โˆˆ ๐’ฑ y_{i}\in{\mathcal{V}} is an output token.

Generation proceeds autoregressively. At each iteration, the internal continuous reasoning state r i r_{i} is generated deterministically as a function of the input x x , the previously generated outputs y < i y_{<i} , and the prior internal states r < i r_{<i} , while the output token y i y_{i} is generated stochastically. The decision of when to emit an output token is determined internally by the model.

For looped TF models, the computation proceeds through internally repeated iterations before producing any output tokens. The number of iterations is determined by the model as a function of the input.

###### Definition C.3 (Language model with looped TF) .

Given an input x โˆˆ ๐’ฑ โˆ— x\in{\mathcal{V}}^{*} , a looped TF produces an output sequence autoregressively. At each iteration i โˆˆ [ m ] i\in[m] , the model internally performs a number of repeated transformation steps before emitting an output token y i y_{i} , conditioned on the input x x and the previously generated outputs y < i y_{<i} . The number of internal loop iterations required to generate each output token is determined internally by the model as a function of the input x x and the generated prefix y < i y_{<i} .

We define complexity classes corresponding to language models under different reasoning paradigms. In contrast to the non-uniform models typically used in parallel computation analysis, we adopt a uniform setting analogous to Turing machines: a single model with a fixed set of parameters is applied to all input lengths, while the number of reasoning steps is allowed to grow as a function of the input size n n . Following the convention in ( Merrill and Sabharwal, 2024 ) , we allow O โก ( log โก n ) O(\log n) bits of numerical precision to represent positional embeddings and internal activations. Furthermore, we extend the output space beyond simple binary decisions. Specifically, the modelโ€™s output is not restricted to ฮฃ k \Sigma^{k} , but can be an arbitrary finite binary string in ฮฃ โˆ— \Sigma^{*} . This extension enables the model to represent functions of the form f : ฮฃ โˆ— โ†’ โ„ f:\Sigma^{*}\to\mathbb{R} , thereby capturing counting, probabilistic modeling, and approximation tasks.

###### Definition C.4 (Complexity Classes ๐—‰๐–ข๐—ˆ๐–ณ \mathsf{pCoT} , ๐—‰๐–ข๐–ณ \mathsf{pCT} , and ๐—‰๐–ซ๐–ฎ๐–ฎ๐–ฏ \mathsf{pLOOP} ) .

Let ๐—‰๐–ข๐—ˆ๐–ณ โก [ T โก ( n ) ] \mathsf{pCoT}[T(n)] , ๐—‰๐–ข๐–ณ โก [ T โก ( n ) ] \mathsf{pCT}[T(n)] , and ๐—‰๐–ซ๐–ฎ๐–ฎ๐–ฏ โก [ T โก ( n ) ] \mathsf{pLOOP}[T(n)] denote the classes of probabilistic computations that define an output distribution p : ฮฃ โˆ— ร— ฮฃ โˆ— โ†’ [ 0 , 1 ] p:\Sigma^{*}\times\Sigma^{*}\to[0,1] . A function f f belongs to such a class if there exists a language model โ„ณ \mathcal{M} , employing CoT, Coconut, or looped TF, respectively, such that for any input x โˆˆ ฮฃ n x\in\Sigma^{n} , the model induces the distribution p โก ( x , โ‹… ) p(x,\cdot) within O โก ( T โก ( n ) ) O(T(n)) steps using O โก ( log โก n ) O(\log n) bits of numerical precision.

### C.2 Lemma: Universality of Chain of Thought

###### Definition C.5 .

A probabilistic Turing machine M = ( Q , ฮฃ , ฮ“ , q 0 , q 1 , ฮด 1 , ฮด 2 ) M=(Q,\Sigma,\Gamma,q_{0},q_{1},\delta_{1},\delta_{2}) is defined as: โ€ข Q Q is a finite set of states,

โ€ข ฮฃ \Sigma is the input/output alphabet,

โ€ข ฮ“ \Gamma is the tape alphabet, with ฮฃ โІ ฮ“ \Sigma\subseteq\Gamma and a distinguished blank symbol โŠ” โˆˆ ฮ“ \sqcup\in\Gamma ,

โ€ข q 0 โˆˆ Q q_{0}\in Q denotes the initial state, and q 1 โˆˆ Q q_{1}\in Q denotes the final state,

โ€ข ฮด 1 , ฮด 2 : Q ร— ฮ“ โ†’ Q ร— ฮ“ ร— ( ฮฃ โˆช { ฮต } ) ร— { L , S , R } \delta_{1},\delta_{2}:Q\times\Gamma\to Q\times\Gamma\times(\Sigma\cup\{\varepsilon\})\times\{L,S,R\} are two transition functions.

At each step, M M chooses uniformly at random between ฮด 1 \delta_{1} and ฮด 2 \delta_{2} . Each transition ฮด i โ€‹ ( q , a ) = ( q โ€ฒ , b , ฯƒ , D ) \delta_{i}(q,a)=(q^{\prime},b,\sigma,D) is interpreted as: writing b โˆˆ ฮ“ b\in\Gamma on the work tape, writing ฯƒ โˆˆ ฮฃ \sigma\in\Sigma on the output tape, where ฮต \varepsilon means that nothing is written, and moving the tape head in direction D โˆˆ { L , S , R } D\in\{L,S,R\} , where L L = left, R R = right, and S S = stay. The output of M M is defined to be the string remaining on the output tape when the machine halts.

Prior work has shown that probabilistic CoT can simulate any such PTM, thereby demonstrating its universality.

###### Lemma C.6 ( Nowak et al., 2024 ) .

Let M M be a PTM with input and output alphabet ฮฃ \Sigma , and running time bounded by T โก ( n ) T(n) on inputs of length n n . Then there exists a log-precision CoT model with stochastic decoding, denoted ๐–ข๐—ˆ๐–ณ M \mathsf{CoT}_{M} , such that the induced output distribution of ๐–ข๐—ˆ๐–ณ M \mathsf{CoT}_{M} coincides exactly with that of M M . Formally, for every input string x โˆˆ ฮฃ โˆ— x\in\Sigma^{*} and output string y โˆˆ ฮฃ โˆ— y\in\Sigma^{*} , Pr [ ๐–ข๐—ˆ๐–ณ M ( x ) = y ] = Pr [ M ( x ) = y ] . \Pr\bigl[\mathsf{CoT}_{M}(x)=y\bigr]\;=\;\Pr\bigl[M(x)=y\bigr]. (82) Moreover, the number of reasoning steps of ๐–ข๐—ˆ๐–ณ M \mathsf{CoT}_{M} is bounded by ๐—‰๐—ˆ๐—…๐—’ โก ( | x | ) \mathsf{poly}(|x|) .

### C.3 Self-Reducibility and Complexity of Approximate Counting

Here, we provide the definitions of relation and associated counting problems.

###### Definition C.7 (Relation) .

A relation over an alphabet ฮฃ \Sigma is a subset R โІ ฮฃ โˆ— ร— ฮฃ โˆ— . R\subseteq\Sigma^{*}\times\Sigma^{*}. For an input x โˆˆ ฮฃ โˆ— x\in\Sigma^{*} , we denote R โก ( x ) := { y โˆˆ ฮฃ โˆ— : ( x , y ) โˆˆ R } . R(x):=\{\,y\in\Sigma^{*}:(x,y)\in R\,\}.

###### Definition C.8 (Counting) .

Given a relation R R , the associated counting function is defined as N R : ฮฃ โˆ— โ†’ โ„• , N R โ€‹ ( x ) := | R โก ( x ) | . N_{R}:\Sigma^{*}\to\mathbb{N},\qquad N_{R}(x):=|R(x)|.

###### Definition C.9 ( p p -relation) .

A relation R โІ ฮฃ โˆ— ร— ฮฃ โˆ— R\subseteq\Sigma^{*}\times\Sigma^{*} is called a p p -relation if โ€ข the membership ( x , y ) โˆˆ R (x,y)\in R can be decided in time polynomial in | x | |x| , and

โ€ข there exists a polynomial p p such that for all ( x , y ) โˆˆ R (x,y)\in R , we have | y | โ‰ค p โก ( | x | ) |y|\leq p(|x|) .

###### Definition C.10 .

The extension counting function associated with a relation R โІ ฮฃ โˆ— ร— ฮฃ โˆ— R\subseteq\Sigma^{*}\times\Sigma^{*} is EXT R : ฮฃ โˆ— ร— ฮฃ โˆ— โ†’ โ„• , EXT R โก ( x , w ) := | { z โˆˆ ฮฃ โˆ— : ( x , w โ€‹ z ) โˆˆ R } | . \operatorname{EXT}_{R}:\Sigma^{*}\times\Sigma^{*}\to\mathbb{N},\qquad\operatorname{EXT}_{R}(x,w):=\bigl|\{\,z\in\Sigma^{*}:(x,wz)\in R\,\}\bigr|.

The complexity class # โ€‹ ๐–ฏ \#\mathsf{P} consists of counting problems associated with p p -relations ( Valiant, 1979 ) . Then, we provide definitions of schemes for approximate counting. In the remainder of this paper, we say that an algorithm produces an output approximating f โก ( x ) f(x) within ratio 1 + ฮต 1+\varepsilon if its output f ^ โ€‹ ( x ) \hat{f}(x) satisfies ( 1 โˆ’ ฮต ) โ€‹ f โ€‹ ( x ) โ‰ค f ^ โ€‹ ( x ) โ‰ค ( 1 + ฮต ) โ€‹ f โ€‹ ( x ) , (1-\varepsilon)f(x)\leq\hat{f}(x)\leq(1+\varepsilon)f(x),

###### Definition C.11 (FPTAS) .

An algorithm is called a fully polynomial-time approximation scheme (FPTAS) for a function f f if, for any input x x and any ฮต > 0 \varepsilon>0 , it produces an output approximating f โก ( x ) f(x) within ratio 1 + ฮต 1+\varepsilon , and runs in time polynomial in | x | |x| and 1 / ฮต 1/\varepsilon .

###### Definition C.12 (FPRAS) .

An algorithm is a fully polynomial-time randomized approximation scheme (FPRAS) for a function f f if, for any input x x and any ฮต > 0 \varepsilon>0 and ฮด > 0 \delta>0 , it produces an output approximating f โก ( x ) f(x) within ratio 1 + ฮต 1+\varepsilon with probability at least 1 โˆ’ ฮด 1-\delta , and runs in time polynomial in | x | |x| , 1 / ฮต 1/\varepsilon , and log โก ( 1 / ฮด ) \log(1/\delta) .

The following proposition formalizes the relationship between approximate counting and the extension counting function.

###### Proposition C.13 ( Jerrum et al., 1986 ) .

Let R R be a p p -relation and let x โˆˆ ฮฃ n x\in\Sigma^{n} . Let m = p โก ( n ) m=p(n) and define r = 1 + ฮต 2 โ€‹ m r=1+\frac{\varepsilon}{2m} . If there exists a FPRAS that approximates Ext R โ€‹ ( x , w ) \mathrm{Ext}_{R}(x,w) within ratio r r for all prefixes w w with probability at least 1 โˆ’ ฮด / m 1-\delta/m , then there exists an FPRAS that approximates N R โ€‹ ( x ) N_{R}(x) within ratio 1 + ฮต 1+\varepsilon with probability at least 1 โˆ’ ฮด 1-\delta .

This reduction transforms the global counting problem into a sequence of local estimation steps.

###### Proposition C.14 .

For any 0 < ฮต โ‰ค 1 0<\varepsilon\leq 1 and any integer m โ‰ฅ 1 m\geq 1 , it holds that ( 1 + ฮต 2 โ€‹ m ) m < 1 + ฮต . \left(1+\frac{\varepsilon}{2m}\right)^{m}<1+\varepsilon. (83)

###### Proof.

We use the standard inequality 1 + x โ‰ค e x 1+x\leq e^{x} , which holds for all x โˆˆ โ„ x\in\mathbb{R} . Substituting x = ฮต 2 โ€‹ m x=\frac{\varepsilon}{2m} , we have: ( 1 + ฮต 2 โ€‹ m ) m โ‰ค ( exp โก ( ฮต 2 โ€‹ m ) ) m = e ฮต / 2 . \left(1+\frac{\varepsilon}{2m}\right)^{m}\leq\left(\exp\left(\frac{\varepsilon}{2m}\right)\right)^{m}=e^{\varepsilon/2}. (84) For 0 < ฮต โ‰ค 1 0<\varepsilon\leq 1 , we show that e ฮต / 2 < 1 + ฮต e^{\varepsilon/2}<1+\varepsilon . Let f โก ( ฮต ) = 1 + ฮต โˆ’ e ฮต / 2 f(\varepsilon)=1+\varepsilon-e^{\varepsilon/2} . Then f โก ( 0 ) = 0 f(0)=0 and f โ€ฒ โ€‹ ( ฮต ) = 1 โˆ’ 1 2 โ€‹ e ฮต / 2 f^{\prime}(\varepsilon)=1-\frac{1}{2}e^{\varepsilon/2} . Since e ฮต / 2 โ‰ค e 1 / 2 < 2 e^{\varepsilon/2}\leq e^{1/2}<2 for all ฮต โˆˆ [ 0 , 1 ] \varepsilon\in[0,1] , it follows that f โ€ฒ โ€‹ ( ฮต ) > 0 f^{\prime}(\varepsilon)>0 . Thus, f f is strictly increasing on [ 0 , 1 ] [0,1] , implying f โก ( ฮต ) > f โก ( 0 ) = 0 f(\varepsilon)>f(0)=0 , or equivalently e ฮต / 2 < 1 + ฮต e^{\varepsilon/2}<1+\varepsilon . โˆŽ

###### Proof for Proposition C.13 .

Let x โˆˆ ฮฃ n x\in\Sigma^{n} and m = p โก ( n ) m=p(n) . We express N R โ€‹ ( x ) N_{R}(x) as a product of m m ratios. Let w = y 1 โ€‹ y 2 โ€‹ โ€ฆ โ€‹ y m w=y_{1}y_{2}\dots y_{m} be a witness, and let w ( i ) w^{(i)} denote its prefix of length i i . We can write: N R โ€‹ ( x ) = Ext R โ€‹ ( x , ฮป ) = โˆ i = 1 m Ext R โ€‹ ( x , w ( i โˆ’ 1 ) ) Ext R โ€‹ ( x , w ( i ) ) โ‹… Ext R โ€‹ ( x , w ( m ) ) . N_{R}(x)=\mathrm{Ext}_{R}(x,\lambda)=\prod_{i=1}^{m}\frac{\mathrm{Ext}_{R}(x,w^{(i-1)})}{\mathrm{Ext}_{R}(x,w^{(i)})}\cdot\mathrm{Ext}_{R}(x,w^{(m)}). (85) In the standard self-reducibility framework, we estimate each ratio ฯ i = Ext R โ€‹ ( x , w ( i โˆ’ 1 ) ) / Ext R โ€‹ ( x , w ( i ) ) \rho_{i}=\mathrm{Ext}_{R}(x,w^{(i-1)})/\mathrm{Ext}_{R}(x,w^{(i)}) using the assumed approximation scheme. Let A i A_{i} be the estimator for the i i -th ratio such that: โ„™ [ 1 r โ‰ค A i ฯ i โ‰ค r ] โ‰ฅ 1 โˆ’ ฮด m . \mathbb{P}\left[\frac{1}{r}\leq\frac{A_{i}}{\rho_{i}}\leq r\right]\geq 1-\frac{\delta}{m}. (86) By the union bound, the probability that at least one of these m m estimations fails to stay within the ratio r r is at most m โ‹… ( ฮด / m ) = ฮด m\cdot(\delta/m)=\delta . Therefore, with probability at least 1 โˆ’ ฮด 1-\delta , all m m estimations are successful. Under this condition, the final estimate N ^ = โˆ i = 1 m A i \hat{N}=\prod_{i=1}^{m}A_{i} satisfies: 1 r m โ‰ค N ^ N R โ€‹ ( x ) โ‰ค r m . \frac{1}{r^{m}}\leq\frac{\hat{N}}{N_{R}(x)}\leq r^{m}. (87) From Proposition C.14 , we have r m = ( 1 + ฮต 2 โ€‹ m ) m < 1 + ฮต r^{m}=(1+\frac{\varepsilon}{2m})^{m}<1+\varepsilon . Furthermore, for 0 < ฮต โ‰ค 1 0<\varepsilon\leq 1 , it holds that 1 / r m > ( 1 + ฮต ) โˆ’ 1 โ‰ฅ 1 โˆ’ ฮต 1/r^{m}>(1+\varepsilon)^{-1}\geq 1-\varepsilon , ensuring a relative error of at most ฮต \varepsilon .