Manuscript Offprint
arXiv:2611.05956The Complexity of Unpredictability
Abstract
In this work, we initiate the study of middle-bit predictors: functions that take as input a string with exactly one missing bit and attempt to predict the value of that bit. These are closely related to next-bit predictors, a classical object in pseudorandomness.
We study the deterministic complexity of the problem of computing an unpredictable distribution (UNPRED): given as input a list of middle-bit predictors in circuit form and a parameter , output a multiset of strings such that each predictor succeeds with probability on a uniformly sampled string from this multiset. We denote the version in which the predictors are restricted to be circuits by .
We show that UNPRED offers a unified route towards resolving several major open problems in catalytic computation. The most important of these is understanding the relationship between catalytic logspace (CL and SearchCL) and deterministic polynomial time (P and FP). It is widely believed that SearchCL FP. We prove the following implications:
The questions of whether and whether are therefore almost equivalent, up to the restriction to circuits.
Furthermore, we show that any deterministic polynomial-time algorithm for must exploit properties of Boolean circuits, either in the algorithm itself or in its analysis. We are not aware of any such algorithm for any natural problem. Thus, a deterministic polynomial-time algorithm for would not only make progress in catalytic computation but would also advance our understanding of Boolean circuits.
Together, our results provide strong evidence that middle-bit predictors could be the key to unlocking several major open problems in catalytic computation, pseudorandomness, and Boolean circuit complexity.
Contents
1 Introduction 1
1.1 Catalytic Computation ..... 1
1.2 Our Results: UNPRED ..... 2
1.3 Catalytic Computation: Comparison with Past Work and Connections to Other Problems ..... 3
1.4 Connection to Pseudorandomness ..... 6
1.5 Our Results: NextBitUNPRED ..... 7
1.6 Future Directions and Open Problems ..... 9
1.7 Proof Overview ..... 10
1.8 Organization of the Paper ..... 16
2 Preliminaries 17
2.1 Notation ..... 17
2.2 Standard Complexity Classes ..... 17
2.3 Predictors and UNPRED ..... 18
2.4 Catalytic and In-Place Computation ..... 20
2.5 Oracle Model ..... 22
3 Catalytic Logspace Algorithms for UNPRED 23
4 Catalytic Logspace Reduces to UNPRED 28
4.1 WeakExcess Reduces to UNPRED ..... 29
4.2 LossyCoding Reduces to WeakExcess ..... 33
4.3 SearchCL Reduces to UNPRED ..... 38
5 Lower Bounds for UNPRED and NextBitUNPRED 39
5.1 Lower Bound for UNPRED ..... 40
5.2 Lower Bound for NextBitUNPRED ..... 42
6 StableCL versus SearchCL 46
7 Next-Bit Predictors, Pessimistic Estimators, and Graph Sparsification 49
7.1 Computing Approximate Solutions to Pessimistic Estimator Instances Reduces to NextBitUNPRED ..... 51
7.2 Graph Sparsification Reduces to NextBitUNPRED ..... 53
7.3 NextBitUNPRED Reduces to Computing Approximate Solutions to Pessimistic Estimator Instances ..... 54
8 BlockLossyCoding Reduces to UNPRED 58
9 Artificial Intelligence Disclosure 62
Acknowledgements 63
References 64
A Online Hypercube Graph Balancing Problem 68
B Online Prefix-Tree Balancing Problem 69
C A Uniform Version of UNPRED 70
i
Understanding the strength of middle-bit predictors was explicitly posed as an open problem by Pyne and Tell in their recent survey on derandomizing low-space algorithms [PT26b]. The recent independent work of Doron, Moshkovitz, Oh, and Zuckerman [DMOZ26] also studies middle-bit predictors in a slightly different setting; we describe their work in more detail later.
In this work, we define the problem UNPRED: given as input a list of middle-bit predictors over and a parameter , output a multiset such that each of these predictors succeeds with probability less than on a string sampled uniformly at random from . Observe that a random multiset of size is a valid output with constant probability; thus, UNPRED is easy with randomized algorithms, and in this work we seek deterministic algorithms.
The motivation for our work comes from two separate but deeply related fields: catalytic computation and pseudorandomness.
1.1 Catalytic Computation
The framework of catalytic computation was introduced by Buhrman, Cleve, Koucký, Loff, and Speelman [BCK14] in order to study the power of space that contains important but irrelevant information. In this model a space-bounded Turing machine is given access to a much longer read-write ‘catalytic’ tape. The catalytic tape initially contains an arbitrary string chosen by an adversary, and upon termination it must contain exactly the same string.
Catalytic computation has recently been at the center of several breakthroughs in space-bounded complexity. Examples include the Cook-Mertz algorithm for the tree evaluation problem [CM24], Williams’ simulation of time using low space [Wil25], and the OpenAI preprint claiming a proof that [Ope26]. Furthermore, techniques from catalytic computation have also recently been applied to hardness versus randomness results in low-space derandomization [DPT24, LPT24, DPTW25, PT26a]. We refer interested readers to the survey of Pyne and Tell [PT26b]. Thus, obtaining a complete understanding of catalytic computation could be crucial to future progress in space-bounded complexity theory.
[BCK14] introduced the class catalytic logspace (CL), in which a logspace machine is augmented with a polynomial-length catalytic tape. Surprisingly, they gave strong evidence that CL is significantly more powerful than ordinary logspace (L), by showing that a CL machine can simulate log-depth threshold circuits (). is believed to be stronger than , and in particular contains nondeterministic logspace (NL). On the other hand, while is contained in deterministic polynomial time (P), [BCK14] were unable to prove that . Instead, they showed that any catalytic logspace algorithm can be simulated by zero-error randomized polynomial-time algorithms (ZPP).
Each predictor is given as a Boolean circuit, along with the index that it is predicting as an integer from 1 to . At this point it is unclear whether there is a human who understands OpenAI’s proof of . However, catalytic computation seems to feature prominently in the preprint.
Theorem 1.1 ([BCK⁺14]).
The following problem naturally arises from their work.
Problem 1.2 ([Kou16, Mer23, CLMP25]).
Standard derandomization assumptions [IW97] would imply that , and thus . Therefore, Problem 1.2 should be viewed as a derandomization problem. We show that the problem of designing a deterministic polynomial-time (FP) algorithm for UNPRED is almost equivalent to the search analogue of Problem 1.2 (SearchCL FP).
1.2 Our Results: UNPRED
1.2.1 SearchCL FP and UNPRED FP Are Almost Equivalent
Our first result concerns an oracle version of UNPRED, which we call UNPRED. In this model, the predictors are not explicitly given to the algorithm as circuits, but can only be queried as black-box oracles (see Section 2.5 for the catalytic oracle model). We show that there exists a catalytic logspace algorithm for UNPRED in this oracle model.
Theorem 1.3 (Theorem 3.3).
A corollary of this theorem is that the version of UNPRED where the predictors are explicitly given as input in the form of circuits can be solved in SearchCL. We refer to this problem as UNPRED.
Corollary 1.4 (Corollary 3.4).
This corollary follows by simply replacing each oracle query in the algorithm of Theorem 1.3 with an explicit evaluation of the circuit of the predictor, using the CL algorithm of Buhrman, Cleve, Koucký, Loff, and Speelman [BCK⁺14] to do so.
Corollary 1.4 shows that a deterministic polynomial-time algorithm for UNPRED is necessary for establishing SearchCL FP. The following theorem shows that a deterministic polynomial-time algorithm for UNPRED is sufficient.
Theorem 1.5.
Thus, Corollary 1.4 and Theorem 1.5 together place the search version of the CL versus P problem between two versions of UNPRED:
It is very surprising to us that this weak equivalence is possible, since middle-bit predictors have no superficial connection to the catalytic condition of restoring space.
Of course, there is a gap between the two ends of this chain: one uses UNPRED, while the other uses UNPRED. This gap can be closed in two ways. First, one can define a uniform version of
UNPRED where the predictors are given as input in the form of polynomial-time Turing machines with certain complicated properties. One can then prove both Corollary 1.4 and Theorem 1.5 using this complicated version of UNPRED, eliminating the gap entirely. An older draft of this paper indeed followed this approach. However, we concluded that this approach is overly complicated, and obfuscates the key technical arguments that make this reduction possible ³. In Section C, we define this version and state the corresponding theorems without proof. Second, we can actually show that all problems currently known to be in CL (or SearchCL) reduce directly to UNPRED⁺C¹. We will do this in Sections 7 and 8.
Our takeaway from this set of results is straightforward: any future work on resolving the search analogue of Problem 1.2 can ignore the mysterious catalytic condition of restoring space, and simply try to design a deterministic polynomial-time algorithm for UNPRED. Such an algorithm would immediately imply SearchCL ⊆ FP and thus CL ⊆ P. A natural starting point for this would be to design a deterministic polynomial-time algorithm for UNPRED⁺C¹, which is a necessary condition.
1.2.2 A Deterministic Polynomial-Time Algorithm for UNPRED Must Exploit Properties of Boolean Circuits
By Theorem 1.5, an FP algorithm for UNPRED would suffice to prove that SearchCL ⊆ FP and CL ⊆ P. The most direct approach towards this would be to design a deterministic polynomial-time oracle algorithm for UNPRED⁰P, similar to the catalytic logspace algorithm of Theorem 1.3. Replacing each oracle query in such an algorithm with circuit evaluations would imply that UNPRED ∈ FP and thus CL ⊆ P. Unfortunately, the following theorem shows that this is unconditionally impossible.
Theorem 1.6 (Corollary 5.4). Every deterministic oracle algorithm for UNPRED⁰P, on instances with predictors over and , has worst-case running time . In particular,
This shows that any deterministic algorithm for UNPRED or UNPRED⁺C¹ which treats the input predictors purely as functions must take exponential time in the worst case. Therefore, any FP algorithm would have to exploit properties of Boolean circuits, either in the algorithm itself or in its analysis. We are not aware of any deterministic polynomial-time algorithm for any comparable problem which is able to exploit such properties of large circuit classes (as large as TC¹). Therefore, a deterministic polynomial-time algorithm for UNPRED or UNPRED⁺C¹ would not only make substantial progress on (or completely resolve) Problem 1.2, but would also significantly advance our understanding of Boolean circuits.
A more pessimistic interpretation of this result would be that this oracle barrier is too strong, and thus SearchCL ⊆ FP is not solvable with current techniques.
Both interpretations solidify UNPRED⁺C¹ as the eventual starting point towards attacking Problem 1.2.
1.3 Catalytic Computation: Comparison with Past Work and Connections to Other Problems
1.3.1 Comparison with Past Work
There are two papers that we would like to compare our work with:
³If a reader is interested in this older draft, we would be happy to share it.
-
Cook, Ghentiyala, Mertz, Pyne, and Sheffield [CGM 25] gave an oracle relative to which , ruling out relativizing proofs of . Theorems 1.3 and 1.6 in our work can also be interpreted as a relativization barrier. However, we believe that ours is a more meaningful barrier, since it identifies a precise problem, UNPRED, that requires substantially different techniques to be solved in and in . More importantly, our barrier gives a precise way forward: a polynomial-time algorithm for UNPRED with explicitly given predictor circuits would imply .
-
Cook, Li, Mertz, and Pyne [CLMP25] show that SearchCL reduces in polynomial time to LossyCoding: the problem of finding a string that a compressor and decompressor circuit fail to accurately reconstruct (see Definition 4.9). Since UNPRED LossyCoding (by Lemma 3.2), Theorem 1.5 is a strengthening of their result. To see why this strengthening matters, imagine a universe where CL can evaluate any circuit. That is, . Then Theorems 1.3 and 1.5 would imply that UNPRED is SearchCL-complete under polynomial-time reductions. In contrast, even in this extreme case, it is unclear whether LossyCoding SearchCL. More generally, for any circuit class such that , Theorem 1.3 implies that UNPRED SearchCL, whereas this is entirely unclear for LossyCoding. Thus, UNPRED more accurately captures the strength of CL.
1.3.2 CL versus NC
As stated earlier, we view (Problem 1.2) as a derandomization problem. Such a viewpoint suggests that CL may itself be able to simulate certain randomized algorithms deterministically. Pyne [Pyn24] and Cook, Li, Mertz, and Pyne [CLMP25] demonstrated this derandomization ability of CL through a technique called compress-or-random. At a high level, the idea is that a CL algorithm could use its catalytic tape as the random string for a zero-error randomized algorithm. If the catalytic tape is not a good random string for the randomized algorithm, then the CL algorithm could compress the string on the catalytic tape and create free space. This win-win argument was used to develop an understanding of the structure of catalytic computing [CLMP25, KMPS25, Pyn24]. However, these works did not place a ‘new’ problem in CL. That is, at this point, no problem was known to be in CL beyond the original inclusion of [BCK14]. is contained in the class of problems solvable in parallel with polylogarithmic depth and polynomial work (NC). This led to the following question.
Problem 1.7 ([Kou16, Mer23]).
Unlike Problem 1.2, there was no reason to believe that this is true, except for the fact that all problems known to be in CL were contained in NC. Agarwala and Mertz [AM25] broke this barrier by showing that bipartite maximum matching can be solved in CL. Agarwala, Alekseev, and Vinciguerra [AAV26] then showed that linear matroid intersection can be solved in CL. Arvind, Chakraborty, and Datta [ACD26] used the same techniques to show that the exact matching problem on planar graphs can be solved in CL. Chakraborty, Datta, Kusre, Mukhopadhyay, and Sinhababu [CDK26] generalized the bipartite matching algorithm of [AM25] and showed that the maximum matching problem on general graphs can also be solved in CL. Finally, Marcussen, Pyne, and Rubinfeld [MPR26] recently showed that the graph spectral sparsification problem can be solved in CL.
At the time, none of these problems were known to be in NC. Thus, these papers presented their algorithms as barriers towards proving that (Problem 1.7). Any proof of would immediately imply that all of these problems are contained in NC. For many of these problems, this was a longstanding open question. In a recent breakthrough result, Chatterjee, Ghosh, Gurjar, Raj, and Thierauf [CGG 26] showed that bipartite matching and linear matroid intersection can be solved in NC, destroying the barriers of [AM25, AAV26]. Unfortunately, their algorithm also did not give any insight about how to tackle Problem 1.7. This example shows that barriers to Problems 1.2 and 1.7 based on individual graph problems can be fickle, and if solved do not necessarily provide any insight into the strength of CL. Instead, we will give a barrier to Problem 1.7 which we believe is both stronger and more meaningful than these graph problems. This barrier will be based on a subproblem of UNPRED.
1.3.3 Search Versus Decision for Catalytic Logspace
Many of our theorems concern the search analogues of Problem 1.2 and Problem 1.7. This naturally raises the following question: are the search and decision versions of catalytic logspace equivalent? For example, if one were to obtain the very strong result that , would it then imply that ? Formally,
Problem 1.8.
Readers familiar with complexity theory may notice that this is similar to the question of whether SearchBPP equals . It is known that is equal to the class of search problems solvable by polynomial time pseudodeterministic algorithms [GG11]. These are randomized algorithms which, for any input, output the same solution with high probability. These algorithms remove the additional instability in the output of search problems caused by randomness.
In our work, we define StableCL to be the class of search problems solvable by catalytic logspace algorithms which, for any input, output the same solution for all initial catalytic tape configurations. Thus, a stable algorithm removes the additional instability in the output of search problems caused by the catalytic tape. We prove that StableCL has the same relationship with FL and CL that PseudodeterministicBPP has with FP and BPP.
Theorem 1.9 (Corollary 6.5).
Therefore, Problem 1.8 is equivalent to the following.
Problem 1.10.
The SearchCL algorithms for bipartite matching [AM25], general matching [CDK 26], linear matroid intersection [AAV26], and graph sparsification [MPR26] are not stable, and it is unclear whether these algorithms can be made stable.
We prove in Sections 7 and 8 that all four of these SearchCL algorithms can be interpreted as reductions to . Therefore, the instability in these algorithms is due to the fact that our SearchCL algorithm for (Corollary 1.4) is not stable.
It turns out that there is a good reason for this. Our SearchCL algorithm for UNPRED has a special property: there is a point in the algorithm where its entire output is explicitly written on the catalytic tape. We call such algorithms restorable. In Corollary 6.9, we show unconditionally that UNPRED does not have a restorable catalytic logspace algorithm which is additionally stable. Thus, a StableCL algorithm for UNPRED (which is a necessary condition for resolving Problem 1.10 positively) would require substantially new ideas: in particular, it must not be restorable. We emphasize that restorability is a natural by-product of the compress-or-random technique, and is not an artificial feature of our algorithm. We elaborate significantly in Section 6.
Thus, UNPRED provides a unified route towards resolving three major questions related to catalytic computation: P versus CL (Problem 1.2), NC versus CL (Problem 1.7), and SearchCL versus StableCL (Problem 1.10).
1.4 Connection to Pseudorandomness
A next-bit predictor over -bit strings at an index is a function . is said to succeed on a string if, given as input the length prefix of , it produces as output the bit of . Next-bit predictors are a classical object in pseudorandomness, going back to the work of Blum and Micali [BM84] and Yao [Yao82]. We refer to the version of UNPRED where the input consists of next-bit predictors, instead of middle-bit predictors, as NextBitUNPRED. Observe that every next-bit predictor is also a middle-bit predictor which simply ignores the suffix of its input after the index . Thus, middle-bit predictors are a stronger object than next-bit predictors.
A central tool in the hardness-to-randomness paradigm [Yao82, BM84, NW94, IW97], which aims to show that BPP = P, is a distinguish-to-predict (D2P) transformation. Yao's classical distinguish-to-predict lemma [Yao82] constructs, for any randomized polynomial-time algorithm and input , a list of next-bit predictors and a parameter such that any polynomial-size solution to NextBitUNPRED on would suffice to derandomize on input . This argument almost reduces the problem of derandomizing to NextBitUNPRED, except for the fact that Yao's argument is probabilistic, and a naive derandomization of his argument results in exponentially many next-bit predictors. Li, Pyne, and Tell [LPT24] provide an alternative argument that results in only polynomially many next-bit predictors; however, their construction of these next-bit predictors is non-uniform.
It makes intuitive sense that this reduction, which we call next-bit D2P, is so difficult: Goldreich and Wigderson [GW00] and Li, Pyne, and Tell [LPT24] showed that NextBitUNPRED has a deterministic polynomial-time algorithm. Thus, an efficient next-bit D2P algorithm would simply derandomize . Li, Pyne, and Tell [LPT24] formalize this framework of derandomization: for a fixed algorithm , given as input , first solve next-bit D2P, and then solve NextBitUNPRED. In this framework, however, the second step is easy: the deterministic polynomial-time algorithms for NextBitUNPRED in [GW00, LPT24] are fairly straightforward and do not use any technical machinery. Thus, all of the hardness lies in the first step: next-bit D2P.
We believe that middle-bit predictors may offer a more promising route towards derandomization. Consider the same framework as above, but with middle-bit predictors instead of next-bit predictors. This would reduce derandomization to two problems: middle-bit D2P and UNPRED. Since middle-bit predictors are more powerful than next-bit predictors, UNPRED should be harder than NextBitUNPRED, and thus middle-bit D2P should be easier than next-bit D2P. Intuitively, this framework with middle-bit predictors seems to be more balanced than the framework with next-bit predictors.
In fact, they gave deterministic polynomial-time algorithms for the oracle version NextBitUNPRED.
Our results support this conclusion: Theorem 1.6 rules out deterministic polynomial-time oracle algorithms for UNPRED. This is in sharp contrast to NextBitUNPRED, which has simple deterministic polynomial-time oracle algorithms due to Goldreich and Wigderson [GW00] and Li, Pyne, and Tell [LPT24]. Thus, middle-bit predictors are unconditionally stronger than next-bit predictors in the oracle versions of the problems. Similarly, Theorem 1.5 is precisely a middle-bit D2P for SearchCL algorithms, whereas a next-bit D2P for SearchCL is not known, and would imply that SearchCL FP. Finally, we note that the smallest class of polynomial-time randomized algorithms that has been formally studied in the context of derandomization, as far as we are aware, is FLOSSY [Kor22, CLMP25]. We do not define this class here, but we note that UNPRED belongs to this class, since UNPRED LossyCoding. Thus, while Theorems 1.6 and 1.5 show that UNPRED is harder than NextBitUNPRED, UNPRED lies in the smallest class of derandomization problems that has been studied, which shows that it is not unreasonably hard either.
The recent work of Doron, Moshkovitz, Oh, and Zuckerman [DMOZ26] also supports our conclusion. As far as we are aware, this is the only other work that studies middle-bit predictors. They give a middle-bit D2P for a class of randomized algorithms that they call ‘insensitive algorithms’ with parameters that improve on the hybrid argument. A long line of work on ‘beating the hybrid argument’ has aimed to achieve such an improvement for next-bit predictors [FSUV12, DMOZ22, CT21, SV22]. Thus, their paper, along with ours, provides promising evidence that middle-bit predictors warrant further study in the context of pseudorandomness.
In this work, in addition to the new problem UNPRED, we also study the classical problem NextBitUNPRED, and provide a complete characterization of it.
1.5 Our Results: NextBitUNPRED
1.5.1 Sequential Algorithms Are Optimal for NextBitUNPRED
The deterministic NextBitUNPRED algorithms of [GW00, LPT24] are inherently sequential: they construct the output strings one bit at a time, using rounds of queries. It remained open whether there are deterministic parallel algorithms for NextBitUNPRED. We answer this question negatively, showing that sequential algorithms are essentially optimal for NextBitUNPRED.
Theorem 1.11 (Corollary 5.8). Let . Every deterministic parallel oracle algorithm for NextBitUNPRED of depth , on instances with predictors over with , has worst-case work . In particular,
Now, while a SearchCL FP proof would have to show that UNPRED, a SearchCL NC proof would have to additionally show that NextBitUNPRED. This gives a new barrier towards proving the search analogue of CL NC (Problem 1.7). Crucially, NextBitUNPRED is incomparable to the problem of UNPRED: UNPRED is a harder problem than NextBitUNPRED, but the parallel model is more restrictive than the sequential one. Therefore, future work on Problems 1.2 and 1.7 could start with trying to design an NC algorithm for NextBitUNPRED. Since next-bit predictors are classically studied, this problem may be more approachable than UNPRED. Furthermore, a positive solution to this problem would give the first algorithm for NextBitUNPRED or UNPRED which exploits properties of circuits. Thus, this would likely give valuable insight towards proving that UNPRED.
1.5.2 NextBitUNPRED Is Equivalent to Computing Approximate Solutions to Pessimistic Estimator Instances
The SearchCL algorithms for bipartite matching [AM25], linear matroid intersection [AAV26], and general matching [CDK⁺26] are very similar to one another. In particular, these three algorithms use the compress-or-random framework in a manner which allows the compression and decompression procedures to be implemented in NC. This was specifically noted by Agarwala and Mertz [AM25].
However, the SearchCL algorithm for graph sparsification by Marcussen, Pyne, and Rubinfeld [MPR26] is quite different from these. It is unclear whether the compression and decompression subroutines in [MPR26] can be implemented in NC. This is explicitly listed as an open problem in their work⁵.
Their algorithm works by defining a TC¹-computable pessimistic estimator over strings of length poly(n), and then computing an approximate solution to this pessimistic estimator instance. We refer readers unfamiliar with pessimistic estimators to Section 7 for a definition. For now, it suffices to know that pessimistic estimators, introduced by Raghavan [Rag88], are a generalization of the method of conditional expectation (also known as the method of conditional probabilities [ES73, Spe87]). It is a classical technique in derandomization and can be found in various textbooks, such as the ones by Alon and Spencer [AS16] and by Motwani and Raghavan [MR95].
We show that computing an approximate solution to a pessimistic estimator instance reduces to NextBitUNPRED, and vice versa. Both reductions involve only minor changes in the parameters: the circuits grow polynomially in size and by a constant factor in depth. Thus, NextBitUNPRED is equivalent to the algorithmic task underlying this classical technique.
Theorem 1.12 (Informal; Theorem 7.6, Corollary 7.12, and Observation 7.13). NextBitUNPRED is equivalent to computing approximate solutions to pessimistic estimator instances.
Applying this theorem to the pessimistic estimator instance of Marcussen, Pyne, and Rubinfeld [MPR26] immediately gives the following corollary.
Corollary 1.13 (Theorem 7.8).
UNPREDTC¹ (and hence also NextBitUNPREDTC¹) can be solved by a compress-or-random procedure in which both the compression and the decompression can be implemented in logspace-uniform TC¹ (and hence in NC). We do not state this formally, but it follows from the observation that our compression and decompression procedures in Section 3 (Lemma 3.2) can be implemented in TC¹ when the predictors are TC¹ circuits. Together with Corollary 1.13, this answers the open question posed by Marcussen, Pyne, and Rubinfeld [MPR26]. This is another example of how NextBitUNPRED and UNPRED can shed light on catalytic computation.
We summarize our results in Tables 1, 2, and 3. We omit the results related to the StableCL versus SearchCL problem (Problem 1.10), since they require additional definitions in order to be accurately stated. This will be done in Section 6.
⁵They state this question as whether GraphSparsification reduces to LossyCoding over NC circuits. We define and discuss the LossyCoding problem later in Definition 4.9.
Table 1: Characterization of UNPRED and NextBitUNPRED.
| UNPRED | Informal: UNPRED is polynomial time equivalent to SearchCL, up to circuit evaluation. and |
|---|---|
| NextBitUNPRED | Informal: NextBitUNPRED is logspace equivalent to computing approximate solutions to pessimistic estimator instances. |
Table 2: All problems currently known to be in SearchCL reduce to UNPRED.
| Reduction |
|---|
| BipMATCH UNPRED |
| LinearMatroidIntersection UNPRED |
| MATCH UNPRED |
| GraphSparsification NextBitUNPRED |
Table 3: Oracle hardness of UNPRED and NextBitUNPRED.
| Lower bound | Separation | |
|---|---|---|
| UNPRED | Deterministic algorithm requires time. | UNPRED |
| NextBitUNPRED | Deterministic parallel algorithm with depth requires work. | NextBitUNPRED |
| Bounds are worst-case, for deterministic oracle algorithms with predictors over , , and fixed . | ||
1.6 Future Directions and Open Problems
We believe that our contribution in this work is providing strong evidence that UNPRED (and middle-bit predictors generally) warrants further study, specifically because it may hold the key to solving several major open problems in catalytic computation and pseudorandomness. In this section we discuss directions that future work should explore.
One ambitious goal to pursue is the following.
Problem 1.14. Is UNPRED FP?
A positive solution to this problem would immediately imply and (Problem 1.2). By Theorem 1.6, any deterministic polynomial-time UNPRED algorithm would need to avoid the oracle barrier of . Thus, we begin by asking a simpler question.
Problem 1.15. Is UNPRED?
A positive solution to this weaker problem would provide the first UNPRED algorithm that does not simply treat the predictors as black-box functions. In particular, it would need to use properties of Boolean circuits. It is likely that this would provide a substantial clue about how to solve Problem 1.14.
Similarly, future work could focus on studying parallel algorithms for NextBitUNPRED. As we said earlier, these would be incomparable to sequential algorithms for UNPRED.
Problem 1.16. Is NextBitUNPRED?
A positive solution to this problem would immediately imply several NC inclusions which are not known, such as GraphSparsification (due to our reduction from Section 7.2).
Again, it would also be valuable to solve Problem 1.16 for weak circuits. This would serve as a blueprint to overcome the oracle lower bound from Theorem 1.11.
Problem 1.17. Is NextBitUNPRED?
Note that a positive solution to the search analogue of Problem 1.2 would require first solving Problem 1.15. Similarly, a positive solution to the search analogue of Problem 1.7 would require first solving Problem 1.17.
Now, we state a problem related to the versus SearchCL problem (Problem 1.8).
Problem 1.18. Is UNPRED?
A positive solution to this problem would immediately give StableCL algorithms for every problem currently known to be in SearchCL. Corollary 6.9 shows that a StableCL algorithm for UNPRED cannot be restorable. Thus, we state the following subproblem.
Problem 1.19. Construct a non-restorable SearchCL algorithm for UNPRED.
Of course, any algorithm can be made intentionally non-restorable. The spirit of this problem is to find an algorithm that cannot be made restorable.
Finally, we look at future directions in pseudorandomness. In our work we show an efficient middle-bit D2P for SearchCL algorithms. Doron, Moshkovitz, Oh, and Zuckerman [DMOZ26] show a middle-bit D2P for insensitive algorithms that beats the hybrid argument. In both cases, a next-bit D2P seems hard. Future work should explore how far these new predictors can go.
Problem 1.20. Construct efficient middle-bit D2Ps for classes of algorithms.
Here, efficiency refers to both computational efficiency, as in our work, and parameter efficiency, as in [DMOZ26]. Since UNPRED, positive solutions to this problem may place new problems in SearchCL.
1.7 Proof Overview
We now give a brief overview of our main ideas. Each section additionally begins with a far more detailed discussion.

Figure 1: A compress-or-random algorithm for UNPRED . Step 1: interpret the catalytic tape as a multiset of strings in . Step 2: If there is a predictor at index which succeeds on too many strings, replace the bit of each string with 0 if succeeds on , and with 1 otherwise. This makes the column sparse. Step 3: compress the sparse string in the column.
Catalytic Logspace Algorithm for UNPRED . Our catalytic logspace algorithm for UNPRED in the oracle model, i.e., UNPRED , follows the compress-or-random framework briefly described in the introduction. The idea is as follows: the algorithm interprets the catalytic tape itself as a multiset of n-bit strings. First, the algorithm checks whether this multiset is a valid output, by counting, for each predictor, the number of strings on which it succeeds. If every count is below , the algorithm outputs the multiset and halts. Otherwise, some predictor , at an index , succeeds on too many strings. The algorithm replaces the bit of each string with 0 if succeeds on the string, and 1 otherwise. The amount of information on the catalytic tape is exactly the same as before, since the bit of each string can be recovered by evaluating on the string and flipping its output if the bit stores 1. Since succeeds on too many strings, the bit of most strings is set to 0. This sparsity allows us to compress the catalytic tape. Thus, we simply iterate this process until either the catalytic tape contains a good output for the problem or until this repeated compression frees up enough space for the algorithm to perform a brute-force search over all multisets of size . Finally, the algorithm decompresses, restoring the catalytic tape. This is our entire algorithm. Replacing our oracle queries with circuit evaluations directly gives our UNPRED algorithm. See Figure 1 for a visual representation of the compression step.
Reduction from SearchCL to UNPRED. Cook, Li, Mertz, and Pyne [CLMP25] show that SearchCL reduces to LossyCoding: given a compressor and a decompressor , find such that . In their instances, is computable in polynomial time and is computable in polynomial time by an inplaceFL machine [CGM+25] . Such a machine has a read-write input tape and a read-write work tape of logarithmic size, and must halt with its output written on the read-write input tape. We exploit this in-place structure. To ensure that the input and output of have the same size, the input of is padded with an extra bit which is simply ignored by the computation. Consider the multigraph on which contains, for every non-solution (i.e., such that ) and every bit , the walk traced by the input tape of the in-place machine when it is run on : every step of the computation adds an edge, which is labelled by the -bit internal state of the machine (and

Figure 2: A non-solution in the graph . Vertex labels correspond to the string on the input tape of and edge labels correspond to the rest of its Turing machine configuration. The first edge of each walk is coloured green, the last edge is coloured red, and intermediate edges are coloured black. Each vertex has at most one outgoing green edge. Non-solutions, such as , have at least two incoming red edges. Each vertex has an equal number of incoming and outgoing black edges.

Figure 3: Reduction from WeakExcess to UNPRED. Case 1: the predictor outputs 1. Case 2: the predictor outputs 0. Case 3: the predictor outputs 0 or 1 with equal probability.
b). This walk starts at the vertex and ends at the vertex . Since the machine is deterministic, a non-solution is the start vertex of at most one walk but the end vertex of two: the walks starting at and . Hence, has strictly larger in-degree than out-degree. Thus, every vertex of with out-degree in-degree is a solution; we call the problem of finding such a vertex WeakExcess. See Figure 2 for a visual representation of this reduction.
We now briefly describe our reduction from WeakExcess to UNPRED. For every edge of the graph , the two endpoints of the edge differ in at most one bit. Moreover, the position of this bit is determined by the label of . For a label , we refer to this position as . For each label , we define a middle-bit predictor over at index as follows. Given as input a string , must output either 0 or 1. Let be the string obtained from by inserting a 0 in the position, and be the string obtained by inserting a 1. If outputs 0 then it would succeed on , and if it outputs 1 then it would succeed on . In order to decide between the two cases, the predictor looks at the edges between and with label in the graph . If there are more such edges directed from to than from to , then outputs 1. Else, if there are more such edges directed from to , then outputs 0. Else, if the numbers of edges in both directions are equal, outputs 0 or 1, each with probability half . See Figure 3 for a visual representation of these predictors. Since the labels have many bits, there are a total of poly many predictors. A solution to UNPRED on these middle-bit predictors (with a small enough parameter ) is a set of vertices such that each middle-bit predictor succeeds on very few vertices from this set. An averaging argument shows that this set must contain a single vertex on which very few of these middle-bit predictors succeed. Intuitively, these predictors are defined so that they are more likely to succeed on the head of an edge than its tail. Thus, if a vertex has higher in-degree than out-degree, many of these predictors will succeed on that vertex. The contrapositive of this statement is that a vertex on which very few of these predictors succeed should have out-degree in-degree. Thus, it would be a solution to WeakExcess. This is an informal description. It remains to analyze the computational complexity of these predictors, to give exact thresholds for the terms ‘very few’ and ‘many’ in our argument, and to show that a solution to WeakExcess can actually be efficiently extracted from a solution to UNPRED. We address these details in Section 4.1.
Lower Bounds for UNPRED and NextBitUNPRED. We obtain both lower bounds by constructing predictor oracles as adversaries. Consider an UNPRED instance over which has exactly one predictor at each index . Let be a query to the predictor . Let be the string obtained from by inserting a 0 in its position, and similarly be the string obtained by inserting a 1. If outputs 0 on the query , then it succeeds on and fails on . On the other hand, if outputs 1, then it fails on and succeeds on . This can be thought of as the predictor assigning an orientation to the edge in the -dimensional hypercube. If it fails on then the edge is oriented from to , and if it fails on then the edge is oriented from to . The goal of an UNPRED algorithm is to compute a set of strings such that each predictor succeeds on very few strings from this set. A subproblem of this is to identify a single string such that very few predictors succeed on that string. In our hypercube interpretation, this is analogous to computing a single vertex with large in-degree. Thus, the adversary wants to answer
We require predictors to be deterministic. Thus, we simulate this random guessing deterministically by constructing two predictors for each label, one which always outputs 1 in this equality case, and the other which always outputs 0.

Figure 4: Hypercube interpretation of UNPRED. The diagram on the left is a visual representation of the case when the predictor outputs 0 on the query string . The edge is oriented from to , indicating that the predictor fails on the string . The diagram on the right is a visual representation of the vertex that the UNPRED algorithm wants to find: a vertex with high in-degree.

Figure 5: Binary tree interpretation of NextBitUNPRED. A query to a predictor corresponds to an internal vertex of this tree. Depending on the answer of the predictor, it either fails on the entire subtree of or the entire subtree of .
queries in a manner which maximizes the number of queries that the algorithm needs to make in order to reveal a vertex with large in-degree. We formalize the problem that the adversary needs to solve as an online problem: given as input a sequence of hypercube edges, assign an orientation to each edge before seeing the next one, such that the orientation minimizes the maximum in-degree of any vertex in the subgraph formed by queried edges. We give a simple greedy algorithm for this online problem which, when implemented by the adversary, results in the algorithm needing to make queries in total to identify a single vertex with large in-degree. Our greedy algorithm is very simple: it can answer each query in poly time (note that the query itself has bits). This concludes our lower bound on UNPRED. This idea is formalized in Section 5.1. See Figure 4 for a visual representation of this hypercube argument.
We use a similar approach for our lower bound on NextBitUNPRED. As UNPRED naturally corresponds to the -dimensional hypercube, NextBitUNPRED naturally corresponds to the complete binary tree of depth . We label each vertex at the level of this tree with a string , and the two children of this vertex with the strings and (the root corresponds to the empty string ). A query to the next-bit predictor naturally corresponds to the vertex in the level of this tree with label . If outputs 1 on input , then it succeeds on every string in the subtree of and fails on every string in the subtree of . Else, if outputs 0, then it fails on every string in the subtree of and succeeds on every string in the subtree of . This can be viewed as placing a token on the child of vertex that it fails on. The number of predictors that fail on a string is equal to the number of tokens on the path from the root to the leaf in the binary tree. Thus, an adversary wants to answer queries in a manner which minimizes the maximum number of tokens on any root-to-leaf path. We once again formulate the problem that the adversary wants to solve as an online problem, and then give a simple greedy algorithm for this online problem which results in the exponential lower bound that we want. This is done in Section 5.2. See Figure 5 for a visual representation of this binary tree argument.
StableCL versus SearchCL. Our main contribution here is to show that UNPRED unconditionally does not have a stable restorable catalytic logspace algorithm. Our proof is via a simple counting argument. Assume for the sake of contradiction that UNPRED is computable by a stable restorable catalytic logspace Turing machine . Fix an input to describing an UNPRED instance over , where . For all initial configurations of the catalytic tape, reaches a state where its output is explicitly written on the catalytic tape. This follows from the fact that is restorable. Due to the fact that is stable, this output must be the same for all initial catalytic tape configurations. The output consists of at least one string, and thus consumes bits on the catalytic tape. Let the catalytic tape have length . At the point when the output is explicitly written on the catalytic tape, the machine could have at most different configurations. This is due to the fact that bits of the catalytic tape are fixed, so the catalytic tape could have at most different configurations, and the work tape has length . The remaining state of , i.e., tape head pointers, etc., can also be described using many bits (assuming , which is true because a catalytic logspace machine has a polynomial-length catalytic tape). Since is a catalytic machine, it must eventually revert the catalytic tape back to its original configuration. There are different initial configurations of the catalytic tape. Thus, by injectivity, we must have . For large enough , this is a contradiction. Thus, UNPRED does not have a stable restorable catalytic logspace algorithm. This argument is formalized in Section 6.
Next-Bit Predictors and Pessimistic Estimators. In Section 7 we show that the problem of computing an approximate solution to a pessimistic estimator instance is equivalent to NextBitUNPRED. The reduction from NextBitUNPRED to the problem of computing an approximate solution to a pessimistic estimator instance is very technical, and closely resembles an argument of Wigderson and Xiao [WX08]. We defer an explanation of this reduction to Section 7.3. The intuition for the other direction is as follows. A pessimistic estimator over is a function which takes as input a string of length at most , and produces a positive real number. The function has the property that for any string of length less than , . Therefore, appending a uniformly random bit to does not increase the value of in expectation. The goal of this problem is to compute a string such that , where is an approximation parameter. Given a pessimistic estimator , we construct a NextBitUNPRED instance over such that any solution contains an approximate solution to the pessimistic estimator instance. This instance consists of one next-bit predictor at each index . Given as input a string , outputs 1 with probability

Figure 6: BlockLossyCoding. The input is split into blocks. A single block is chosen and compressed. The red region represents free space.
, and outputs 0 with probability 7. Thus, for a string , if , the predictor is likely to succeed on . Any string such that must have many such indices, or have a few indices on which the inequality is very strong, i.e., on which is much larger than . Thus, on any string that is not an -approximate solution to the pessimistic estimator instance, these predictors are likely to succeed often. As a contrapositive, any string on which these predictors do not succeed often is an approximate solution to the pessimistic estimator instance. This is exactly what we wanted from our reduction. This argument is formalized in Section 7.1. As a corollary of this reduction, along with the algorithm by Marcussen, Pyne, and Rubinfeld [MPR26], we obtain a reduction from graph sparsification to NextBitUNPRED.
Reductions from Bipartite Matching, Linear Matroid Intersection, and General Matching to UNPRED. The compress-or-random algorithms of [AM25, AAV26, CDK] share a common structure: the catalytic tape is split into blocks of bits each, and the compressor selects one block, depending on the tape, and compresses only that block (BlockLossyCoding, Definition 8.1, Figure 6). We give a simple reduction from BlockLossyCoding to UNPRED. This reduction first reduces BlockLossyCoding to a version of UNPRED over alphabets of size poly(n). That is, instead of binary strings we have strings over an alphabet set , and the predictors try to guess a character of this string with probability . We show that this large alphabet version of UNPRED reduces to the binary version. This is done in Section 8.
1.8 Organization of the Paper
In Section 2 we give preliminaries. In Section 3 we give catalytic logspace algorithms for UNPRED and UNPRED (Theorem 1.3 and Corollary 1.4). In Section 4 we reduce SearchCL to UNPRED (Theorem 1.5). In Section 5 we prove oracle lower bounds for UNPRED and NextBitUNPRED.
7We require predictors to be deterministic. We approximate this random guessing by constructing deterministic copies of each predictor, where is a positive integer. Copy guesses 1 exactly when .
In Section 6 we discuss StableCL versus SearchCL. In Section 7 we prove the equivalence between NextBitUNPRED and pessimistic estimators, and its consequence for graph sparsification. In Section 8 we reduce bipartite matching, linear matroid intersection, and general matching to UNPRED. Section 9 contains our AI disclosure.
2 Preliminaries
2.1 Notation
Numbers and Logic. refers to the natural numbers , refers to the integers, and refers to the real numbers. We use notation such as to refer to the set of nonnegative integers. For , we define . We use log to refer to logarithms in base 2, and for logarithms in base . refers to the function . For a Boolean proposition , we use as an indicator function, which is 1 if is true and 0 otherwise.
Strings, Tuples, and Functions. We use to refer to the empty string. Let be a string of length and be an index. We use to refer to the character of . We use to refer to the string without its character. We use to refer to the length prefix of , and to refer to the length prefix of . We set for every string . For two strings and , is the concatenation of and . We identify tuples of strings with their concatenation. Similarly, for a tuple of elements, refers to the element in the tuple. For a function and , we use to refer to the function composed with itself times. That is, on an input , , where is applied times.
Graphs. All graphs in this paper are finite. For a graph , we use to refer to its vertex set, and for its edge set. A simple undirected graph has edges that are unordered pairs of distinct vertices, with no repeated pairs. A simple directed graph has edges that are ordered pairs of distinct vertices, with no repeated pairs. A directed multigraph may have multiple edges with the same ordered endpoints, including self-loops. In a multigraph, in-degrees and out-degrees count edge copies, and each self-loop contributes one to both.
Multisets. All multisets in this paper are finite. For a multiset , counts the number of elements in with multiplicity, and means that occurs in with non-zero multiplicity. For a set , we write if every element of belongs to . For a non-empty multiset , is the uniform distribution over the elements of , where an element of is sampled with probability proportional to its multiplicity. We also write in probability subscripts as shorthand for .
2.2 Standard Complexity Classes
Languages and Search Problems. A language is a subset of . A search problem is defined to be a subset of . An algorithm solves a search problem if, on every input , it computes such that .
Machine Classes. P is the class of languages decidable by a Turing machine in deterministic polynomial time. L is the class of languages decidable by a Turing machine with logarithmic work space. FP and FL are their search problem counterparts.
Randomized Classes. BPP and BPL are the classes of languages decidable by randomized Turing machines with error at most 1/3 on every input, with BPP machines restricted to run in polynomial time, and BPL machines restricted to use at most logarithmic work space. ZPP is the class of languages decidable by randomized Turing machines with zero error in expected polynomial time. SearchBPP consists of search problems solvable by randomized polynomial-time algorithms that output a valid solution with probability at least 2/3 on every input.
Circuits. Unless stated otherwise, circuits use AND, OR, NOT, and THRESHOLD gates. AND, OR, and THRESHOLD gates have unbounded fan-in, and NOT gates have fan-in 1. Circuits may have multiple output bits. For a circuit , is the number of gates of , including input gates. is the maximum number of gates on any directed path of . is the class of problems solvable by logspace-uniform families of polynomial-size, -depth circuits. We write when making this uniformity explicit. NC is the class of problems solvable by logspace-uniform families of polynomial-size, polylog()-depth circuits.
Measures of Computation. For a sequential algorithm , is the maximum number of steps that takes on any given input, as a function of its input size. For a fixed input , is the number of steps that takes on input . For a parallel algorithm , denotes the maximum number of sequential steps of on any given processor, and denotes the total number of operations of across all processors.
Search Reductions. Let be a computational class. For search problems and , means that there is (1) an instance map which maps instances of to instances of ; and (2) a solution map which takes as input an instance of and a solution of , and outputs a solution of , such that (1) both and are computable in ; and (2) for every , if ; that is, is a solution to the instance for the search problem , then ; that is, is a solution to the instance for the search problem . This definition traces a reduction as follows: in order to solve the problem , a machine can compute , solve on to obtain a solution , and then compute to obtain a solution for . In particular, means that both maps are computable in deterministic polynomial time, and means that both maps are computable by logspace-uniform circuit families.
2.3 Predictors and UNPRED
Definition 2.1 (Next-Bit Predictor). Let . A next-bit predictor over at index is a function . succeeds on a string if
That is, given a length prefix of the string, predicts its next bit.
Definition 2.2 (Middle-Bit Predictor). Let . A middle-bit predictor over at index is a function . succeeds on a string if
That is, given the entire string except its bit, predicts the remaining bit.
Definition 2.3 (Predictor Success and Advantage). Let , let be a (next or middle)-bit predictor over , and let be a probability distribution over . The success of on is
The advantage of on is
Let be a non-empty family of predictors. We overload the notation above by defining
Definition 2.4 (UNPRED). UNPRED is the search problem defined as follows:
- Input: , , Boolean circuits , and .
For all , is a middle-bit predictor over at index .
- Output: A non-empty multiset such that
To avoid precision issues with , we assume that we are given an integer in unary and .⁸ We assume that is also given in unary.
Variants of UNPRED. Let be a circuit class, such as . refers to a version of UNPRED where the predictor circuits belong to the class . refers to the version where the predictors can only be accessed through queries to a predictor oracle ; we define this oracle model formally in Section 2.5. We also consider the subproblem of UNPRED where each predictor circuit, instead of being a middle-bit predictor, is a next-bit predictor. We refer to the unrestricted version of this as , the version restricted to circuit class as , and the version with oracles as .
Output Size. Definition 2.4 does not bound the output size of UNPRED. As is the case with hitting sets, there is typically no need to bound it beyond the resource bounds of the algorithm: for a time-bounded algorithm, the size of the output is naturally bounded by the runtime. Catalytic logspace algorithms, however, are not bounded by polynomial runtime in the worst case. Thus, we will be explicit about output size bounds in our algorithms in this case. In fact, our catalytic algorithms write their entire output on the catalytic tape itself, whose size is polynomially bounded.
⁸In all reductions to UNPRED we implicitly convert to .
Parameters. If , then the problem is trivial, since for every distribution and predictor ; thus, we will assume that when convenient. We require because we view UNPRED as a total derandomization problem: if , then the Chernoff bound guarantees that a random multiset of size (where elements of are sampled independently with replacement) constitutes a valid output with probability at least . At , no valid output exists. We assume that is encoded in unary so that the output size of this randomized algorithm, , is polynomial in the input size. We assume that is encoded in unary since, in the oracle version, the input size could otherwise be much smaller than , and a logspace algorithm could not even index over the length of the strings that it needs to output.
Averaging Argument. The following is a simple fact that is used many times in this paper. It states that for any family of predictors and any multiset such that is small, there exists a string such that not too many predictors in succeed on .
Lemma 2.5. Let and . Let be a family of (middle or next)-bit predictors over . Let be a non-empty multiset such that
Then there exists such that .
Proof. Assume to the contrary that for all , . Then
This completes the proof.
2.4 Catalytic and In-Place Computation
Our main computational model in this paper is the catalytic space model:
Definition 2.6 (Catalytic Machines). Let and . A catalytic Turing machine with space and catalytic space is a Turing machine with a read-only input tape of length , a write-only output tape, a read-write work tape of length , and a second read-write work tape of length called the catalytic tape, which will be initialized to an adversarial string .
Definition 2.7 (Catalytic Computation of a Language). A catalytic Turing machine decides a language if for every and , the result of executing on input with initial catalytic tape (i.e., ) fulfils two properties: 1) terminates with 1 written on the output tape if , and with 0 otherwise; and 2) halts with written on the catalytic tape.
Even the natural alternative requirement cannot be met if contains both constant predictors at some index.
Definition 2.8 (Catalytic Decision Classes). We define to be the family of languages decidable by catalytic Turing machines with space and catalytic space . We also define catalytic logspace as
Past work defines the search class with the following semantics:
Definition 2.9 (Catalytic Computation of a Search Problem). A catalytic Turing machine computes a search problem if for every and , the result of executing on input with initial catalytic tape (i.e., ) fulfils two properties: 1) terminates with such that written on the output tape; and 2) halts with the catalytic tape in state .
Definition 2.10 (Catalytic Search Classes). We define to be the family of search problems computable by catalytic Turing machines with space and catalytic space . We also define as
In this work, we introduce a stronger definition. To see why we need it, suppose that a catalytic logspace machine decides a language on input whenever the string on its catalytic tape belongs to a set , and that a catalytic logspace machine computes the search problem . To decide , a catalytic machine could try to use to compute some , write on its catalytic tape, and then run . However, Definition 2.9 does not guarantee that can afterwards restore its catalytic tape to its original state. We therefore introduce 'restorable computation', which requires the catalytic computation to explicitly write the output to the search problem on its catalytic tape, and then restore it back to its original configuration.
Definition 2.11 (Restorable Catalytic Computation of a Search Problem). A restorable catalytic Turing machine consists of two procedures: and , which share a read-only input tape, a read-write work tape, and a read-write catalytic tape. computes a search problem if, for every input and every initial catalytic tape , it satisfies the following two properties: 1) halts with such that written on the first bits of its catalytic tape; and 2) starts from the work tape and catalytic tape configuration that halted with, and halts with written on the catalytic tape. We refer to the string as .
Similar to the classes and , we define the classes and .
Definition 2.12. We define to be the family of search problems restorably computable by catalytic Turing machines with space and catalytic space . We also define as
Continuing the example above Definition 2.11, if the machine restorably computed , then indeed could first use to obtain on the catalytic tape, then run the machine to decide , and finally use the procedure to obtain the original catalytic tape again. Previous work on catalytic computation [CLMP25, AM25, AAV26, CDK26] used pairs of ‘catalytic subroutines’ which compress and decompress the catalytic tape, which can be seen as restorable catalytic computation of compression functions. However, this previous work required all the information needed for restoration to be written on the catalytic tape. Our definition allows this information to be stored on the work tape, since has access to both the work tape and the catalytic tape of , not just the catalytic tape.
Definition 2.11 does not specify how the machine knows which prefix of the catalytic tape contains . In a catalytic logspace machine would be polynomially bounded, so this could be done in many ways, for example by writing on the work tape. This detail does not affect any of our results.
In-Place Computation. Recently, Cook, Ghentiyala, Mertz, Pyne, and Sheffield [CGM25] introduced in-place computation, in which the input tape is read-write, instead of being read-only. This model captures transformations that a catalytic Turing machine might make on the catalytic tape. For example, suppose the catalytic tape has a matrix written on it, and the algorithm needs to replace it with . Even though each entry of can be computed in catalytic logspace, the algorithm cannot simply overwrite the entries of one at a time, since each overwritten entry may be needed to compute the remaining entries of , and is much larger than the work tape. In order to study this situation, Cook et al. introduced the class inplaceFL.
Definition 2.13 ([CGM25]; inplaceFL). An in-place Turing machine has a read-write input tape and a read-write work tape. is defined to compute a search problem if, for every , the Turing machine when executed on input terminates with such that written on the first bits of the input tape.
Moreover, we say that if there exist an in-place Turing machine computing and such that, on any input , uses at most work space.
We emphasize that, in the above definition, the input tape has size exactly , and thus the output, , must have size at most as well.
2.5 Oracle Model
We will describe both algorithms and lower bounds in a query access model, where the predictors are not available to the algorithm in the form of their circuit representations. In this case, an algorithm is explicitly given as input only , and . For any , the algorithm may access the predictor at a specific input by producing the tuple . In response, the algorithm receives the bit on a length 1 read-only tape. Every time there is a query, this tape is overwritten with the result. This tape only provides 1 bit of additional space to the algorithm, which is insignificant for the purpose of this work. We refer to this version of the problem simply as , and define analogously. here refers to the predictor oracle, i.e., the function which takes as input the tuple and produces as output .
It remains to specify where the tuple is written. For time-bounded computation, we have an infinite-length work tape. Thus, the oracle query can simply be written on this work tape. For circuit computation, we define an extra ‘oracle gate’, where input wires to this gate carry the input to the oracle, and the wires leaving this gate carry the output of the oracle. In the case of space-bounded computation, the tuple can be encoded using bits, which will typically be too large to explicitly write on the work tape. In the catalytic computation model, we require any oracle query to be explicitly written on read-write tape(s).
Thus, we do not allow an imaginary oracle query tape in our catalytic models. We are being deliberately vague about what it means for the query to be written down. Formally, there should be a logspace-computable injective function which takes as input an index i, and produces as output the location of the bit of the oracle query. However, for the sake of readability, we will not consider this extra detail. In all of our oracle algorithms, it will be clear where the query is written. Moreover, none of our oracle lower bounds are in space-bounded models, and thus this detail is never exploited.
3 Catalytic Logspace Algorithms for UNPRED
This section contains our catalytic logspace algorithms for UNPRED and UNPRED .
We will first give a RestorableSearchCL algorithm for UNPRED in Theorem 3.3. This is the main algorithm for the section and contains our key ideas. Then, by replacing the oracle with explicit evaluation of circuits, we obtain a RestorableSearchCL algorithm for UNPRED in Corollary 3.4.
Now, let us describe our RestorableSearchCL algorithm for UNPRED . Our algorithm uses the compress-or-random framework in a way similar to Pyne's algorithm for simulating BPL in CL [Pyn24].
In the UNPRED problem, we receive as input an integer , indicating that the predictors are over , an integer , indicating that there are predictors, integers where is the index that the predictor is trying to predict, and finally the accuracy parameter . We have query access to the predictors .
We know that a uniformly random multiset of many strings in constitutes a valid output for UNPRED with constant probability. The compress-or-random framework suggests that we should treat the catalytic tape as a random string. Thus, we first check whether the bits on the catalytic tape constitute a valid output for the problem. That is, we interpret the first bits on the tape as a multiset , compute , and thus check whether . If this is true, then we already have a valid output on the catalytic tape, so we do not need to do anything more.
What if it turns out that is not a valid output? The compress-or-random framework dictates that in such a case one should try to compress the representation of . The fact that is not a valid output for this instance means that we have a predictor such that . In other words, the predictor performs too well on . Our approach towards compression is as follows: let where each is a string in . For every , we replace the bit of , i.e., , with a bit which we define to be 0 if and only if succeeds on the string . Observe that the original bit can be recovered by first computing the result of on the remaining bits of , and then taking the XOR of the result with .
Clearly, what we just did is not compression. For each , we replaced a single bit with another bit . Moreover, in order to recover the original bit , we now need to remember as well. Thus, not only did we not save space, but we now need extra space to store !
The key observation here is as follows: consider the length string . The fact that the predictor had implies that failed on at most many strings from . Thus, the string has at most many 1s in it. This shows that has very low Hamming weight. Thus, although the string is not shorter than the string it replaced, it has significantly more structure.
We prove in Lemma 3.1 that such a string with low Hamming weight can be efficiently compressed. Moreover, it can be compressed enough to also store the index and still be shorter than bits. This makes intuitive sense: Hoeffding's inequality shows that most strings of length have Hamming weight approximately . Thus, if a string has Hamming weight far lower than , one should be able to represent the string using significantly fewer than many bits.
Therefore, whenever the catalytic tape contains a multiset which is not a solution to the instance, we can compress the catalytic tape. We do this repeatedly until either the catalytic tape contains a string which is a solution, or until we have freed up bits on the catalytic tape. In the former case, we have a solution! In the latter case, we now have enough free space on the catalytic tape to run an algorithm which brute forces over all multisets of size until it finds a solution. In either case, we have the solution to the input instance explicitly written on the catalytic tape at some point. We can then decompress everything and thus restore the catalytic tape back to its initial state. Thus, we obtain a RestorableSearchCL algorithm for .
This concludes our overview. We now prove our lemma which shows that strings with unexpectedly low Hamming weight can be compressed.
Lemma 3.1 (Low Hamming Weight Strings Can Be Compressed). There exists a pair of inplaceFL algorithms HamComp and HamDecomp as follows. Let .
-
HamComp takes as input with . Let . HamComp replaces with a string where and .
-
For any string with ,
That is, HamDecomp takes as input the output of HamComp(s), above, and replaces it with the original string s.
Proof. The proof relies on a re-indexing of length binary strings which orders strings by their Hamming weight (in increasing order), and breaks ties lexicographically. Let denote the lexicographic rank of amongst all length binary strings which have the same Hamming weight as . Let be a length binary string with Hamming weight where and . Note that
and . We define .
The algorithm for HamComp is as follows:
-
Initialize on the work tape.
-
Iterate i from 1 to n:
(a) Let be the length i suffix of s, and let be the Hamming weight of .
(b) Replace on the work tape with . To do this, we only need to add 1 to if .
(c) Replace with on the input tape. is already written on the input tape. Using Equation 1, computing only involves adding to , if . Computing the binomial coefficient can be done in logspace [HAM02, BCK14], and the addition is easy to do in place. For this step, can first be temporarily written on the work tape and replaced with 0 on the input tape.
- Now, is written on the input tape and is written on the work tape. Replacing with just involves adding to . Since each binomial coefficient can be computed in logspace and each addition can be done in place, this can be done in .
By definition, . For , by the Chernoff bound, this is . This implies that
Thus, the binary encoding of has a prefix of at least many 0s.
We now proceed to the decompression algorithm. We define the following function:
and . Simply observe that for a string of Hamming weight , we have .
The algorithm for HamDecomp is as follows:
-
First, from on the input tape, write down the Hamming weight of on the work tape. This is easy to compute: it is simply the minimum integer such that . The sum of binomial coefficients can be computed in logspace, as can the comparison of -bit integers.
-
Once we have , subtract from on the input tape. Now, we simply want to compute , where is the string on the input tape, and is written on the work tape.
-
Use Equation 2 to replace with by iteratively replacing the prefix in rounds, similar to the algorithm for HamComp, where we replaced the suffix.
This completes the proof.
The following lemma uses the compression of low Hamming weight strings from Lemma 3.1 in order to compress a multiset which does not constitute a valid output to a instance.
Lemma 3.2 (Non-Solutions of UNPRED Can Be Compressed). Let , be a instance, and let such that . Let be a string of length written on the catalytic tape, where the first bits of are interpreted as binary strings of length . Let be the multiset formed by these strings. There exists a pair of subroutines and such that, if , then:
Note that this is possible due to the fact that , and thus fits inside bits of space occupied by .
-
Comp replaces on the catalytic tape with , where .
-
Decomp replaces on the catalytic tape with S.
Proof. Interpret the first bits of as . Let . That is, we assume that the strings are written in column-major order: the first bits of are the first bit of each of the strings, and so on. Of course, we can easily reorder strings between column-major and row-major order. We choose column-major ordering because it is convenient for us.
We will refer to the positions of the catalytic tape containing as the block of the catalytic tape. The algorithm for Comp is as follows:
-
If , then there exists such that . Such an can be computed in catalytic logspace by iterating over all and explicitly computing for all .
-
Let . Store and on the work tape. For all , replace on the catalytic tape with defined as follows:
Let .
-
Due to the fact that , the string has Hamming weight .
-
Apply HamComp from Lemma 3.1 on input to replace on the catalytic tape with , where .
-
Replace on the catalytic tape with .
-
Swap the block of the catalytic tape, now containing , with the block.
The algorithm for Decomp is as follows:
-
We have written in the block of the catalytic tape, and want to replace it with .
-
Let . Write down j and on the work tape.
-
In order to undo Step 6 of Comp, swap the block on the catalytic tape with the block, which contains .
-
Replace in the block of the catalytic tape with . That is, just replace with 0s.
-
Now, use HamDecomp from Lemma 3.1 to replace with .
-
Note that if and only if succeeds on . Moreover, for each , we have written on the catalytic tape. Thus, for each , we can re-obtain .
Note that the algorithms Comp and Decomp use the predictor oracles only in Steps 1 and 2 of Comp, and in Step 6 of Decomp. In all three cases, the input to the predictor is explicitly written down on the catalytic tape. Thus, these algorithms fit within our catalytic oracle model. This completes the proof.
Finally, we can combine our ideas to obtain a RestorableSearchCL algorithm for UNPRED . The idea is straightforward: at each stage either the string on the catalytic tape constitutes a valid output, or, by Lemma 3.2, it can be further compressed. In the former case, we are done. In the latter case, we can go ahead and compress. Eventually, either the catalytic tape will contain a valid output, or we will obtain a sufficient amount of free space on the catalytic tape to perform a brute-force search.
Theorem 3.3.
Moreover, for an instance with parameters , the algorithm outputs a multiset of size
Proof. We will describe the RestorableSearchCL algorithm that solves a UNPRED instance. Let the input instance be . Let
The multiset that we output will have size . It's easy to see that , and that . We divide the catalytic tape into two parts:
-
The first part has length kn. We will call this the 'output section'.
-
The second part has length kn. We will call this the 'reserve section'.
The algorithm works as follows:
-
Interpret the bits of the output section of as . Each is a string in , and is thus a size multiset of strings in .
-
Maintain a counter x on the work tape, which is initialized with value 1.
-
Check whether is a valid output for the input instance. To do this, for each predictor and each , check whether succeeds on . Count the number of strings on which succeeds, and simply check whether this number is at least . All of this can be done in logspace, treating the catalytic tape as read-only.
-
If constitutes a valid output for this instance, simply halt the compute procedure and skip to Step 6 for restoration.
-
Else, run Comp from Lemma 3.2 to compress down to a 0 followed by bits. Swap this 0 with the bit in the reserve section. Increment .
(a) If , then the reserve section is now a blank string of 0s. Use this reserve section to brute force over all possible size multisets of length binary strings, and check whether each of them is a valid solution for this instance (using the algorithm in step 3). We know that at least one of them will be, so as soon as we find one, swap the reserve section with the output section and halt the compute procedure. This swap is to ensure that the output, which is in the reserve section, occupies the first bits of the catalytic tape. As soon as the restoration procedure begins, swap the reserve section and the output section again, revert the reserve section to all 0s, and move to Step 6.
(b) Else, return to Step 3.
- While , swap the bit in the reserve section with the first bit of the output section, run Decomp from Lemma 3.2 on the output section, and decrement .
By the compression and decompression properties of Lemma 3.2, we are guaranteed to have the original catalytic tape upon termination of the restoration procedure. This algorithm uses the predictor oracle in Steps 3 and 5(a), and in the Lemma 3.2 subroutines. In each of these uses, the input to the predictor oracle is explicitly written on the catalytic tape. Thus, this algorithm fits within our catalytic oracle model, as defined in Section 2.5. This completes the proof.
Replacing oracle queries in the algorithm of Theorem 3.3 with explicit circuit evaluations implies the following corollary.
Corollary 3.4.
Moreover, for an instance with parameters , the algorithm outputs a multiset of size
Proof. Buhrman, Cleve, Koucký, Loff, and Speelman [BCK14] showed that
Thus, if the predictors are given as input in the form of circuits, then one can directly use the oracle algorithm in Theorem 3.3, and substitute every oracle call to the predictors with an explicit circuit evaluation using the algorithm from [BCK14]. This completes the proof.
4 Catalytic Logspace Reduces to UNPRED
In this section we show that would imply , which would of course imply that .
It was shown by Buhrman, Cleve, Koucký, Loff, and Speelman [BCK14] that . Their proof follows from the fact that for any catalytic logspace machine , there exists a logspace-computable polynomial such that for any input ,
Thus, a randomized algorithm could sample a uniformly random catalytic tape and run . If terminates within steps, then this is a polynomial-time simulation. Else, after many steps it could sample a fresh catalytic tape and start again. By Markov's inequality, the probability over a uniformly random catalytic tape that takes at most time is . Therefore, excluding the time required to sample , the expected runtime of this algorithm is , which implies that it is a ZPP algorithm.
A natural approach towards derandomizing this algorithm is to solve the following problem deterministically in polynomial time:
Definition 4.1 (Fast Catalytic Tape Construction). Let be a catalytic logspace machine which, on an input of length , uses at most catalytic space. Let be a function such that . is a search problem defined as follows:
-
.
-
such that .
We will show in this section (Theorem 4.20) that for every catalytic logspace machine there exists a logspace-computable polynomially bounded function such that . Thus, would imply , which would imply that can be simulated by a polynomial-time machine.
Our reduction from to goes through reductions to two problems that we have not formally introduced yet. The first is the LossyCoding problem (Definition 4.9). The second is the WeakExcess problem (Definition 4.3). These are both total derandomization problems.
In the LossyCoding problem you are given a pair of functions: one which compresses an -bit string to bits, and one which decompresses an -bit string to bits. You are asked to produce as output an -bit string which is not compressed and decompressed correctly by this pair of functions. Cook, Li, Mertz, and Pyne (Theorem 4.19) proved that reduces to an instance of LossyCoding where both functions are computable in polynomial time. Moreover, both functions are actually computable in-place using polynomial time and logarithmic work space.
In Section 4.2, we reduce such instances of LossyCoding to the WeakExcess problem. In this problem you are given as input a highly structured yet exponentially large directed graph in the form of its compressed circuit representation. You are required to produce as output a vertex of this graph whose out-degree is at least as large as its in-degree. We defer further intuition about this problem until after we have formally defined the class of graphs and the problem, in Section 4.1.
Thus, we walk backwards through our reductions. First, we reduce WeakExcess to UNPRED in Section 4.1. Then, we reduce certain families of LossyCoding to WeakExcess in Section 4.2. Finally, we complete our reduction from FastCatTape to UNPRED in Section 4.3.
4.1 WeakExcess Reduces to UNPRED
Before we can define the WeakExcess problem, we need to define a well-structured family of graphs that we work with. We call these deterministic hypercube digraphs. These are directed multigraphs over the vertex set . For every edge in such a graph, and differ in at most one bit. Finally, each edge of the graph has a label in . For each vertex and label , there must be at most one edge leaving which has the label .
Although our statements and proofs are general, we focus on the parameter regime .
Definition 4.2 (Deterministic Hypercube Digraph). Let . A deterministic hypercube digraph of dimension with -bit labels is defined to be a directed multigraph
where is the vertex set, a multiset of edges, is an edge-labelling function on with labels in the set , and is a function which maps labels in to indices in . The constraints of this definition are as follows:
-
.
-
For each vertex and label , there is at most one edge leaving with .
-
For all edges we have .
Moreover, . That is, for each edge label , the value tells you which index of the vertex string could change when you traverse an edge labelled with .
Now we define the WeakExcess problem. In this problem you are given a deterministic hypercube digraph of dimension with -bit labels and you need to compute a vertex such that out-degree in-degree. The catch of course is that the graph has size. Thus, you are given this graph with its representation compressed into a Boolean circuit. You may send the circuit queries of the form , where and . In response, the circuit accepts if and only if there exists a non-self-loop edge in leaving with label . We refer to this as an EdgeExists query.
Definition 4.3 (WeakExcess). WeakExcess is a total search problem defined as follows.
- Input: The input consists of integers and , given in unary. Then, a circuit . Finally, , explicitly given as a table.
There is a hidden deterministic hypercube digraph of dimension with -bit labels. Let this be . can be accessed via the circuit . if and only if there exists a non-self-loop edge leaving with label . Else, . Let this value be denoted by EdgeExists.
- Output: The output consists of such that
WeakExcess resembles the problem Excess, introduced by Beame, Cook, Edmonds, Impagliazzo, and Pitassi [BCE98], in which one is given access to a graph , along with a vertex where out-degree in-degree, and is asked to compute a vertex such that in-degree out-degree. It is unclear to us whether there is any connection between these problems beyond the superficial.
WeakExcess is an auxiliary problem that we use for the purpose of simplifying our exposition. We do not claim that it is worth studying in its own right, though it may well be. Nevertheless, in order to provide intuition for this problem we first show that WeakExcess is a total derandomization problem. That is, a randomly sampled multiset of size contains a solution to WeakExcess with constant probability.
Observation 4.4. Let be a deterministic hypercube digraph of dimension with -bit labels, let be a positive integer, and let be a random multiset of size , where each string in is drawn independently and uniformly at random from with replacement. Then
Thus, by setting , WeakExcess becomes a derandomization problem.
Proof. This is due to the fact that for all , we have out-degree. Thus, for every vertices that have in-degree, there must exist at least one vertex which has out-degree. Therefore,
This completes the proof.
We will now start proving our reduction from WeakExcess to UNPRED.
First, we introduce a bit of notation that will make the rest of this section far easier to read. For a string , an index , and a bit , we define to be the string in obtained by adding the bit in the position of . That is, .
In the following definition we will formally define the predictors that will be the result of our reduction. Before we do this, we briefly discuss the intuition underlying this definition.
Imagine the following family of middle-bit predictors: for each label , there is a predictor over at index . Given a string , has two options: if it outputs 0, then it is guessing that the completion of is the string , and otherwise it is guessing that the completion is . Thus, needs to decide between both of these strings. In order to do this, looks at the set of edges between the vertices and which have the label .
If there are strictly more edges going from to , then outputs 1. Else, if there are strictly more edges from to , then outputs 0. In the remaining case simply guesses an output uniformly at random.
In this construction, intuitively, predictors tend to guess the heads of edges more often than they do the tails. Thus, for a vertex , if is the head of an edge far more often than it is the tail (i.e., if has out-degree ), then these predictors are likely to perform well on it. As a corollary of this, if the predictors do not perform well on a vertex , it implies that must be a valid output for WeakExcess. This intuition is formalized in Lemma 4.6.
Now we formally define these predictors. In order to make the predictors deterministic, we have to simulate random guessing by constructing two predictors for each label l.
Definition 4.5 (Predictors Corresponding to a WeakExcess Instance). Let be a deterministic hypercube digraph of dimension n with -bit labels.
We define a family of middle-bit predictors . For and , is a middle-bit predictor over at index . For , we define
Lemma 4.6. Let be a deterministic hypercube digraph of dimension with -bit labels. For any string ,
Proof. This follows directly from the following facts:
-
For every label such that there exists a non-self-loop edge with with vertex as the , but not a non-self-loop edge with with vertex as the , both and succeed on .
-
For every label such that there exists a non-self-loop edge with with vertex as the , but not a non-self-loop edge with with vertex as the , neither nor succeeds on .
-
For every other label , only succeeds on s.
Let's say we have labels of the first type, of the second, and of the third. Of course, . Each label of type contributes 1 to , each label of type contributes -1, and each label of type contributes 0. Therefore, the right-hand side of Equation 3 can be written as . On the other hand, each label of type contributes to the left-hand side of Equation 3, each label of type contributes 0, and each label of type contributes . Therefore, the left-hand side can be written as . By substituting with , the left-hand side becomes , which is exactly the right-hand side. This completes the proof.
Corollary 4.7. Let be a deterministic hypercube digraph of dimension with -bit labels, and let be a non-empty multiset such that
S must contain a solution to WeakExcess on G.
Proof. By Lemma 2.5, there exists a string such that succeeds on . Combining this with Lemma 4.6 shows that , since both the in-degree and out-degree are integers. This shows that contains a solution to WeakExcess. This completes the proof.
Theorem 4.8.
WeakExcess UNPRED.
Proof. Let be a WeakExcess instance. Let be the deterministic hypercube digraph corresponding to this instance. Consider the UNPRED instance described by the predictors and . By Corollary 4.7, any solution to this UNPRED instance contains a solution to the WeakExcess instance.
It remains to verify the efficiency of this reduction. First, is polynomial in the size of the WeakExcess instance, and so it can be output in unary format in polynomial time. Then, the UNPRED instance is over and contains predictors. The circuit has input gates, which implies that . Therefore, can be produced as unary output, as can . Next, we need to verify that the circuit computing each predictor can be computed in polynomial time. The predictors are indexed by and . On an input , a predictor makes two simple EdgeExists queries and then computes a function over the resulting two outputs of , and . Thus, each predictor is essentially 2 copies of with the input bits hardwired to , along with the input bit in the two copies hardwired to 0 and 1 respectively. Clearly, these predictors can be computed in polynomial time. Finally, the index of a predictor corresponding to is just , which is explicitly given as input and thus can be copied directly.
Now, let be a polynomial-size solution to this UNPRED instance. For every , one can check whether is a solution to the WeakExcess instance using the following equation:
where refers to the string with the bit flipped. Clearly, this can be computed in polynomial time for each , since it only requires many queries to . By computing this value for each , we can simply output the first for which this value is non-positive. Such a must exist, and is a solution to the WeakExcess instance. This completes the proof.
This completes the reduction from WeakExcess to UNPRED. We will now describe the reduction from LossyCoding to WeakExcess.
4.2 LossyCoding Reduces to WeakExcess
The LossyCoding problem is a total derandomization problem introduced by Korten [Kor22].
Definition 4.9 (Lossy Coding). Let and . A string is a solution to LossyCoding on if .
Similar to UNPRED and WeakExcess, it is easy to see that LossyCoding is a total derandomization problem.
Observation 4.10 ([Kor22]). For any and ,
Therefore, LossyCoding is a derandomization problem.
LossyCoding has been studied in many regimes with various restrictions on the functions and . We will describe our own restrictions on and in a moment. First, for a LossyCoding instance , we define a function which is just with an extra input bit that is completely ignored by the function. This only serves the purpose of turning into a length-preserving function.
Definition 4.11 (Extension of ). Let be a LossyCoding instance with and . We define the function as follows. For ,
Definition 4.12 (LossyCoding Family). Let be a family of LossyCoding instances. We refer to LossyCoding on as the search problem where the input consists of and the output must consist of a solution to LossyCoding on .
Let be a family of LossyCoding instances. Our reduction from LossyCoding on this family to WeakExcess is efficient when two conditions hold: (1) and can be computed in polynomial time, and (2) can be computed by a polynomial-time inplaceFL machine with read-only access to advice . Note that the measures of efficiency, i.e., ‘polynomial’ time and ‘logarithmic’ space, are in terms of the length of . Thus, an implicit requirement is also that the instances are over strings of polynomial size, and this size is computable in polynomial time.
For an in-place Turing machine which has read-only access to advice and read-write input , we will refer to the machine's computation on as instead of . This is to avoid any confusion between the roles of the two strings.
Now, for a LossyCoding instance , we use NonSol to refer to the set of strings which are not a solution to the instance.
Definition 4.13. Let be a LossyCoding instance. We define the set NonSol as
We now define some additional notation for the remainder of this section. For an in-place Turing machine , we denote the configuration of by a tuple , where is the string on the read-write input tape, and is all remaining information about the configuration of : the work tape string, the tape-head locations, and the state of the finite-control automaton. We refer to the second element of the tuple, , as the state of . In cases where has access to read-only advice, we include the tape head location in the state, but not the advice string itself. Thus, observe that the length of is . We will refer to this as the state size of .
For a configuration , we use to denote the configuration reached by running for 1 step starting at . Following our function composition notation, denotes the configuration reached after running for steps. We denote by input-head() the current location of the input tape head. We use to denote the initial state of . Following standard notation, denotes the number of steps runs on input before halting.
Now, we informally describe our reduction to WeakExcess and the intuition behind it. We fix a lossy coding instance and an in-place Turing machine which computes . We construct a deterministic hypercube digraph as follows. The vertices of correspond to strings on the input tape of . The edges of will carry labels which correspond to the remaining configuration of , along with an additional bit which only serves to make the graph deterministic. Thus, for any edge of , the tail of the edge along with its label defines a total configuration of . We will define to be the union of all directed computation paths of on inputs of the form where and . Refer to Figure 7 for a visual representation of

Figure 7: A computation path of starting with input , represented in the graph . The boxes correspond to vertices, the arrows to edges, and the text on the right side of each arrow is the label of the corresponding edge. Here . The label of each vertex corresponds to the string on the read-write input tape of . The label of each edge corresponds to its state and the bit .
such a path in . We note that a computation path of , when projected to , forms a directed walk.
The intuition behind this construction is as follows: a solution to LossyCoding on is any string . For all strings , since is deterministic, will be the source of at most one computation path in : the one whose sink is . On the other hand, will be the sink of at least two computation paths: the ones whose sources are and respectively. Every other occurrence of in a computation path of will be as an intermediate vertex; such occurrences do not affect out-degree – in-degree. Thus, for any , we will have in-degree. The contrapositive of this statement is that for any vertex of such that out-degree, it must be the case that . Thus, a solution for WeakExcess on is a solution for LossyCoding on .
Definition 4.14. Let where and be a LossyCoding instance, and be an in-place Turing machine which computes . Let be the state size of . We define a deterministic hypercube digraph of dimension with -bit labels, , as follows:
-
.
-
, where
Note that this is a multigraph, and thus we may have and with . We retain both distinct copies in the graph.
- For every , , and , we define
- For any we define
Since has -bit labels, the input size of the corresponding WeakExcess instance is at least bits. In order for this to be at most polynomial, we need to be at most logarithmic. , being the state size of , is at least linear in the size of its work tape. This is precisely why we need to be an inplaceFL machine.
Observation 4.15. Let , and be as in Definition 4.14. is indeed a deterministic hypercube digraph of dimension with -bit labels.
Proof. First, for any vertex of and label , there is at most one edge leaving with label . This follows from the fact that the function is injective when restricted to inputs in the image of over . That is, for all , . If there were two edges and leaving the same vertex and carrying the same label, their corresponding computation paths must end in the same output, . This is only acceptable in two cases: (1) When these edges belong to different computation paths starting at and respectively; however, this would imply that , and thus the labels of these edges would differ; or (2) When these edges belong to the same computation path. However, this would mean that the computation of is cyclic, which violates the assumption that computes . Thus, the graph is indeed ‘deterministic’ (every vertex has at most one edge leaving it with any given label).
Second, the index of the bit of a vertex that can change when you traverse an edge leaving with label can be determined only from the label. This is easy to see: at any point in the computation of , the only input tape bit that can change is the one at the location of the input tape head. This location is exactly .
This completes the proof.
Lemma 4.16. Let where and be a LossyCoding instance, and be an in-place Turing machine which computes . Let be the state size of . Let . Then any vertex such that
satisfies . That is, any solution to WeakExcess on is a solution to LossyCoding on .
Proof. Observe that for any and , the family of edges
forms a directed walk (possibly with self-loops) from the vertex to the vertex . Thus, for all intermediate vertices on this walk, the contribution of this walk to
is 0. The first vertex of the walk, , receives a contribution of +1, and the last vertex of the walk, , receives a contribution of -1.
Therefore, for any vertex which satisfies out-degree in-degree, we have
Note that the left-hand side of this inequality is at most 1, since any and with would imply that and . The right-hand side of this inequality is either 0 or 2. The inequality thus implies that the right-hand side of the inequality is 0, which implies that . This implies that .
This completes the proof.
Observation 4.17. Let where and be a LossyCoding instance, and be an in-place Turing machine which computes . Let be the state size of . Let be a vertex of and be a label. The answer to an EdgeExists query on is true if and only if:
- There exists and such that
and
- . This is to ensure that the edge is not a self-loop.
This follows directly from definitions. Now, the following theorem observes that when is polynomial-time computable, and is a polynomial-time inplaceFL machine computing , these EdgeExists queries can be answered by a polynomial-size circuit.
Theorem 4.18. Let be a function and be a family of LossyCoding instances where and such that
-
The function is computable in polynomial time and is polynomially bounded. That is, .
-
There exists a polynomial-time Turing machine which, given as input and , computes .
-
There exists a polynomial-time inplaceFL Turing machine which, given read-only access to advice x and read-write input , computes .
Then
Proof. The reduction proceeds as follows. By the first assumption, one can compute in polynomial time. Now, since is a polynomial-time-bounded Turing machine, and is a polynomially bounded function, there must exist a polynomial-time computable and polynomially bounded function such that for all .
Now, the reduction needs to take as input and produce as output the WeakExcess instance corresponding to . By Lemma 4.16, any solution to this WeakExcess instance is a solution to the LossyCoding instance .
Observe that, because is an inplaceFL machine and , the state size of , say , is . Thus, every part of the WeakExcess instance corresponding to , except the circuit computing EdgeExists queries, can certainly be computed in polynomial time. In particular, the dimension of the graph and the bit-length of the labels can both be produced in unary. Furthermore, the index table can also be produced. This table has size. Since and , this is also . Therefore, all parts of the WeakExcess instance of except the circuit answering EdgeExists queries can indeed be produced in time.
Finally, for the circuit answering EdgeExists queries on , we refer to Observation 4.17. This circuit must check two conditions, and then simply take the logical and of their values. We will show that both conditions can be checked in polynomial time, and thus that a polynomial-size circuit which answers EdgeExists queries can be produced in polynomial time.
The second condition is easier: it simply requires simulating for one step, and checking whether this step changed the string on the input tape. Clearly the circuit which decides this can be computed in polynomial time.
The first condition is more complicated. Fix an input and to EdgeExists. The first condition requires checking whether there exists a string such that , when executed on input , reaches the configuration . Of course, running a brute-force search over all strings would be too expensive; it would be easier to solve LossyCoding directly. Instead, we do the following. We simulate the machine from the configuration until it terminates. If it does not terminate within steps, we can already reject, so let's assume that it terminated. Let be the string on the read-write input tape upon termination. If there indeed exists a string which makes the condition true, it must be the case that . Thus, we now need to check only two things: whether , and whether the machine , when executed on the input , reaches the configuration at any point. Since and are both polynomial-time machines, both of these facts can be checked in polynomial time. Thus, the first condition can also be checked in polynomial time. Since this check is uniform, it means that a circuit which decides the first condition can also be produced in polynomial time.
Combining the circuits corresponding to the two conditions provides a single circuit which answers EdgeExists queries. This completes the input to the WeakExcess problem, and thus completes the proof.
4.3 SearchCL Reduces to UNPRED
The following theorem is proven by Cook, Li, Mertz, and Pyne [CLMP25]. That paper was written before the one by Cook, Ghentiyala, Mertz, Pyne, and Sheffield [CGM 25] which introduced inplaceFL and related classes. Thus, the theorem statement uses different language. However, our restatement can be inferred directly by unpacking and repackaging definitions. This is a reduction from FastCatTape to LossyCoding, on the type of LossyCoding instances that Theorem 4.18 efficiently reduces to WeakExcess.
Theorem 4.19 (Theorem 3.1, [CLMP25]). Let be a catalytic logspace machine which, on an input of length , uses at most catalytic space. There exists a logspace-computable polynomially bounded function and a family of LossyCoding instances such that:
-
and , where the function is polynomially bounded and logspace computable.
-
There exists a polynomial-time Turing machine which takes as input and , and produces as output .
-
There exists a polynomial-time inplaceFL Turing machine which, given read-only access to advice and read-write input , computes .
-
For any , and for any solution to LossyCoding on , is a solution to FastCatTape on input .
This completes all of our intermediate reductions. We can now chain them together into the following concluding theorems.
Theorem 4.20. For every catalytic logspace machine , there exists a logspace-computable polynomially bounded function such that
Proof. The function is the one from the statement of Theorem 4.19. Theorem 4.19 reduces FastCatTape to LossyCoding, where the family of LossyCoding output instances satisfies the constraints of Theorem 4.18. Theorem 4.18 reduces such LossyCoding instances to WeakExcess. Finally, Theorem 4.8 reduces WeakExcess to UNPRED.
Therefore, through this chain, we reduce FastCatTape to UNPRED.
Theorem 4.21.
Proof. This follows directly as a corollary from Theorem 4.20.
5 Lower Bounds for UNPRED and NextBitUNPRED
In this section we will show two results. The first is that there does not exist a deterministic polynomial-time algorithm for UNPRED. This is in contrast to NextBitUNPRED, for which deterministic polynomial-time algorithms are known [GW00, LPT24]. The second result shows that the sequential algorithms of [GW00, LPT24] are, in some sense, optimal. We prove this by showing that there does not exist a deterministic parallel algorithm for NextBitUNPRED which has truly sublinear depth and polynomial work. Specifically, any truly sublinear depth algorithm must have superpolynomial work. Both of these results are unconditional.
For both problems we do this by explicitly constructing an adaptive adversary. Specifically, we construct predictor oracles which force any (parallel, in the case of NextBitUNPRED) algorithm either to make a superpolynomial number of queries or to produce an output set of superpolynomial size. Section 5.1 contains the lower bound for UNPRED and Section 5.2 contains the lower bound for NextBitUNPRED.
Both sections proceed in the same way: we begin by modelling the problem that this adversary needs to solve. In both cases, this is an online problem. We imagine that the queries made by an (or ) algorithm are the input to an online algorithm, which needs to make irrevocable decisions in response to these queries. Specifically, on each query, it needs to decide the value of a predictor on the queried string. In both cases, this online problem will be a graph balancing problem. We first provide a sufficiently good online algorithm for these problems, in Sections 5.1.1 and 5.2.1, and then show how these online algorithms can be used by the adversaries to obtain the final lower bounds in Sections 5.1.2 and 5.2.2.
For both problems, what we specifically show is a superpolynomial lower bound on the total number of queries made by the algorithm plus its output size. Naturally, the running time (or total work) of any algorithm is lower bounded by the sum of these values. We note that it is not possible to remove this dependence on output size: the naive algorithm which makes no queries and produces as output the entire space is an algorithm which makes 0 queries but solves . We capture such naive algorithms through the dependence on output size.
5.1 Lower Bound for UNPRED
In this section we will prove our lower bound on . We restrict ourselves to instances over where, for each , there is exactly one predictor at index . Let be a query to the predictor . will answer either 0 or 1. If the predictor answers 0, then it fails on the string (which is used to denote the string extended to an -bit string by placing a 1 in its coordinate). Else, if the predictor answers 1, then it fails on the string . Thus, we can view the response to this query as the adversary irrevocably deciding which of the two strings the predictor will fail on. By Lemma 2.5, any valid output for contains a string such that at least predictors fail on . We will design the adversary to answer queries in a way which delays this from happening as long as possible, in order to force the algorithm to make many queries.
On each query to , the adversary must reveal that fails on either or . This can be viewed as giving an orientation to the hypercube edge between and . If the predictor answers 0, then it fails on , and we direct the edge from to . Else, we direct the edge from to . Rephrasing what we said in the previous paragraph, any valid output to must contain a string which has in-degree at least in this graph (i.e., at least predictors must fail on it). Thus, the online problem for the adversary is as follows: given a stream of hypercube edges, assign an orientation to each edge. The goal is to minimize the maximum in-degree of any vertex in the subgraph formed by the queried edges. Specifically, we would like to obtain an online algorithm with the following guarantee: if any vertex in the subgraph formed by queried edges has in-degree , then it must be the case that at least many edges have been queried. We want to be as large as possible. This will imply that any algorithm for needs to make at least many queries in order to produce a valid output . We will show that there exists an online algorithm for this problem with . This will suffice for our lower bound.
Note that this problem only guarantees that the subgraph of queried edges does not contain a valid output. What if the algorithm outputs a multiset of strings that it never queried? In order to handle this, we add an additional post-processing step to the algorithm which simply sends the query string to for every and . This adds an additional queries to the algorithm. This is exactly how the output size appears in the lower bound.
5.1.1 Online Hypercube Graph Balancing Problem
For , let denote the undirected Boolean hypercube on vertex set , where two vertices are adjacent if and only if they differ in exactly one coordinate.
Definition 5.1 (Online Hypercube Graph Balancing Problem). The online hypercube graph balancing problem is the online problem defined as follows:
-
Input: , followed by a sequence of distinct edges of revealed one at a time. Each is a query.
-
Output: For every queried edge , the algorithm must orient before seeing . That is, it must make the edge directed by choosing a direction for it. This choice is irrevocable, and in particular cannot be changed after seeing .
The goal of the algorithm is to minimize the maximum in-degree of any vertex. Formally, fix a non-empty input edge sequence . Let be the directed graph over vertex set and edge set , with directions as chosen by the algorithm. Let be a non-decreasing function. The algorithm has in-degree bound if
holds for every such sequence .
Lemma 5.2. There exists a deterministic algorithm for the online hypercube graph balancing problem with in-degree bound , where .
We defer the proof of Lemma 5.2 to Section A of the appendix. The work of Hart and Nisan [HN18] can be adapted to obtain a deterministic algorithm with in-degree bound , which is stronger than the bound we present here. On the other hand, our algorithm is very simple and suffices for our purpose.
5.1.2 A Lower Bound for UNPRED via Hypercube Balancing
Theorem 5.3. Let be a deterministic algorithm for UNPRED. Let be a non-decreasing function such that there exists a deterministic algorithm for the online hypercube graph balancing problem with in-degree bound . Then for every and , there exists an instance of UNPRED, , and a predictor oracle such that
where denotes the number of queries makes to the oracle on input instance , and denotes its output multiset. Moreover, this instance satisfies for all .
Proof. We modify so that, after it outputs , it performs a post-processing round where it queries for every and . This leaves the output unchanged and adds only new oracle queries.
Since is deterministic and fixed, the oracle can internally simulate before answering each query. Thus, we assume while answering each query that has complete access to all past queries made by .
For and a string , we define to be the string with a 0 added in its position, and similarly to be the string with a 1 added in its position. We view a query to as an edge of . In response to a query , needs to answer either 0 or 1. This can be viewed as an orientation of the edge : if answers 0, then the edge is oriented towards , and if answers 1, then the edge is oriented towards .
Under this viewpoint, we define the oracle to answer queries exactly as the online hypercube graph balancing algorithm which achieves in-degree bound . Since we assumed that has complete access to all past queries of , clearly can simulate the answers of the online algorithm. If repeats a query, then returns its previous answer instead of simulating the online algorithm.
For and such that is never queried by , arbitrarily define . Let be the predictors defined by this oracle . By the correctness of , we have
By Lemma 2.5, this implies that there exists with
Let be the sequence of distinct edges of queried by . Consider the directed graph over vertex set and edge set (i.e., the subgraph of formed by the oriented edges) with directions induced by the answers of . Observe that for any query made by , the edge in is directed towards if and only if fails on .
The post-processing round of ensures that it made every query of the form . Therefore, the vertex in has total degree (in-degree + out-degree) exactly . By Equation 4, this implies that has in-degree in . Since is an online hypercube graph balancing algorithm with in-degree bound , this implies that the number of edges in must satisfy
In our case, every edge in corresponds to a query made by to . Due to our post-processing round, we have . Substituting with in the above equation and then dividing both sides by proves the theorem.
Corollary 5.4. Let be a deterministic algorithm for . Then, on instances with predictors over and parameter , the worst-case running time of satisfies
Proof. By plugging the deterministic algorithm for the online hypercube graph balancing problem from Lemma 5.2 into Theorem 5.3, we obtain a lower bound on the query complexity plus the output size of . Of course, must use one unit of time for each query it makes and for each string it produces as output. Thus, the stated lower bound on time() follows.
5.2 Lower Bound for NextBitUNPRED
In this section we will prove our lower bound on parallel algorithms for NextBitUNPRED . We assume that the reader has read Section 5.1. We further build on the intuition from that section.
In particular, we will again focus on instances over where there is exactly one predictor per index .
In the case of , a query to a predictor could only force the predictor to reveal one of two strings on which it fails. In the case of on the other hand, a single query can force the predictor to reveal many strings on which it fails. For example, consider the empty query made to . If answers 0, then it fails on every string whose first bit is 1. If answers 1, then it fails on every string whose first bit is 0. Thus, it immediately reveals many strings on which it fails. The polynomial-time algorithms of [GW00, LPT24] exploit this property: they force the predictor to reveal which bit it fails on, set the first bit of the string to be equal to that, and then continue with and so on. However, these algorithms are inherently sequential: the queries that they make to the predictor depend on the output of the predictor . We exploit this sequential nature of these algorithms in our lower bound.
Let be a complete binary tree of depth . Naturally, each vertex of at depth corresponds to a string . Specifically, the root corresponds to the string , and for a non-leaf vertex corresponding to string , the two children of this vertex correspond to the strings and .
Let be the strings queried by a parallel algorithm for in a single round. That is, the algorithm sends all of these strings to the oracle simultaneously. We view each query string as referring to its corresponding internal vertex of . The adversary needs to place a token on exactly one child of every queried vertex. Placing a token on a vertex corresponding to a string means that fails on every string whose prefix is . In other words, fails on every string corresponding to a leaf in the subtree of this vertex. Similar to the case of , the goal of the adversary is to minimize, after any set of queries, the maximum number of predictors that fail on any given string. This is equivalent to minimizing the maximum number of tokens on any root-to-leaf path.
Specifically, we would like to design an adversary with the following guarantee: if a set of queries results in the adversary placing tokens on some root-to-leaf path, then it must be the case that . We would like to be as large as possible. This will imply that any algorithm for which runs for rounds needs to make at least many queries in order to produce a valid output . We will show that there exists an algorithm for the adversary with (approximately). Thus, any parallel algorithm for with rounds must make at least many queries. This will suffice for our lower bound. In Section 5.2.1, we phrase this differently as an online problem where, in each step, the online algorithm receives an entire batch of vertices (corresponding to a set of queries made by the algorithm). Thus, the requirement on the function is slightly weaker and phrased differently. Nevertheless, the intuition we have described here is exactly the one that underlies our construction.
We also note that it is possible to describe the lower bound in Section 5.1 in terms of a similar token problem on the hypercube. We chose to instead present it as a hypercube orientation problem only to provide additional ways in which one can view the problem.
5.2.1 Online Prefix-Tree Balancing Problem
For , let denote the binary prefix tree over . That is, the vertex set of is . The empty string is the root of . A vertex with has two
These algorithms need to deal with multiple predictors at the same index, and so they are more technical. Nevertheless, they very much follow this simple idea.
children: the vertex and the vertex .
Definition 5.5 (Online Prefix-Tree Balancing Problem). The online prefix-tree balancing problem is the online problem defined as follows:
-
Input: , followed by a sequence of pairwise disjoint batches , where each batch is a subset of the non-leaf vertices of . These batches are revealed one at a time.
-
Output: For every queried batch , the algorithm must irrevocably place a token on exactly one child of each vertex before seeing .
The goal of the algorithm is to minimize the maximum number of tokens on any root-to-leaf path. Formally, fix a batch sequence . For a leaf vertex , let denote the number of tokens placed by the algorithm on the path from the root to the leaf . Let denote . For a non-decreasing function , the algorithm has token bound if
holds for every such sequence .
Lemma 5.6. There exists a deterministic algorithm for the online prefix-tree balancing problem with token bound .
We defer the proof of this statement to Section B of the appendix.
5.2.2 A Parallel Lower Bound for NextBitUNPRED via Prefix-Tree Balancing
In this section, we show a lower bound on the complexity of deterministic parallel algorithms for NextBitUNPRED. We work with the following general structure of a parallel algorithm: the algorithm has rounds. In each round, it makes queries to the oracle . A query made in the round can depend upon the answer of to queries made in previous rounds, but not on the answer to other queries made in the round.
On a NextBitUNPRED instance over with predictors , the algorithms of [GW00, LPT24] run in rounds, and make polynomially many queries per round. In the following theorem, we show that these algorithms are essentially tight. That is, any algorithm which is guaranteed to run in a truly sublinear number of rounds must have superpolynomial work.
Theorem 5.7. Let be a deterministic parallel algorithm for NextBitUNPRED. Let be a non-decreasing function such that there exists a deterministic algorithm for the online prefix-tree balancing problem with token bound . Then, for every and , there exists an instance of NextBitUNPRED, , and a predictor oracle such that
where denotes the number of rounds of on input with oracle , denotes the maximum number of queries makes in any round, and denotes its output multiset. Moreover, the instance satisfies for all .
Proof. Similar to what we did in the proof of Theorem 5.3, we add a post-processing round to where it queries for every and . This adds only one round with many queries. Again, since is a fixed deterministic algorithm, we can assume that has access to all past queries of .
A query to corresponds to the non-leaf vertex of . Thus, the queries that makes in one round correspond to a subset of non-leaf vertices of . In order to answer the queries in each round, the oracle simply treats the non-leaf vertices corresponding to the queries as a batch, and simulates a deterministic online prefix-tree balancing algorithm with token bound . For a specific query , if the prefix-tree balancing algorithm chose to place the token of at , then the oracle answers this query with 1 (and vice versa). Of course, if repeats a query then responds with the same answer it gave earlier instead of using the online algorithm. For each tuple which is never queried by , we arbitrarily define .
Now, let be the predictors corresponding to this oracle . By the correctness of , we have
By Lemma 2.5, this implies that there exists with
Let be a query made by , where is a prefix of . Then, by definition, the online algorithm placed a token on the vertex in if and only if fails on . Due to the post-processing round, for every , must have queried . Therefore, upon termination of , the root-to-leaf path of vertex in must contain at least many tokens. Then, since is an algorithm with token bound , we have
This completes the proof.
Corollary 5.8. Let . Let be a deterministic parallel algorithm for NextBitUNPRED which, on instances of NextBitUNPRED with predictors over and parameter , satisfies . Then the worst-case work of on such instances satisfies
Proof. Simply note that the work of is lower bounded by both the maximum number of queries that it makes in any round, and its output size. Thus, using the notation of Theorem 5.7, . Plugging the algorithm from Lemma 5.6 into Theorem 5.7 gives
By assumption we have
Thus,
6 StableCL versus SearchCL
In this section, we consider the problem of whether SearchCL reduces to CL. For example, does CL L imply that SearchCL FL? To see why this is not immediately true, recall Definitions 2.7 and 2.9. The standard reduction from search to decision is as follows: let's say we have a Turing machine which solves a search problem . Typically, one can define a Turing machine which accepts on input if and only if the bit of is equal to 1. This sort of reduction is generally successful if and are simple time-bounded or space-bounded Turing machines. However, this approach has a clear flaw when and are more complicated machines such as randomized or catalytic. If is a catalytic machine, then it takes as input an additional catalytic string , and the simulating machine must also take this string as input. Now, the natural generalization of the approach would be to define to accept if and only if the bit of is equal to 1. However, note that Definition 2.9 allows to have different outputs for different catalytic tapes. That is, there may exist and such that . At the same time, Definition 2.7 requires that a catalytic machine solving a decision problem must have the same output for all catalytic tapes. Thus, must be equal to for all . It is thus clear that this reduction cannot work naively.
This brings us to the following problem.
Problem 6.1. Is FL = SearchCL?
For readers familiar with complexity theory, this is similar to the problem of SearchBPP vs FP. In that case, it is known that FP is equivalent to PseudodeterministicBPP [GG11]. This is a subclass of SearchBPP where the randomized Turing machine is required to output the same solution for any given input with high probability. Thus, it eliminates the additional instability in search problems caused by the randomness.
This approach naturally extends to our case. We define a subclass of SearchCL known as StableCL, where the catalytic Turing machine is required, for a fixed input , to produce the same output for all initial catalytic tape configurations. Thus, it eliminates the additional instability in search problems caused by the initial catalytic tape.
Definition 6.2 (StableCL). A catalytic Turing machine which uses catalytic space and computes a search problem is stable if for every and , . StableCL is the class of search problems computable by stable catalytic Turing machines with work space and poly(n) catalytic space.
In this section, we will show that the question of whether StableCL = SearchCL is equivalent to the question of whether SearchCL is equal to FL. Moreover, since UNPRED (due to Corollary 3.4), the question of whether UNPRED is a special case of this problem. We show that any algorithm which follows the same idea as the one in Corollary 3.4 cannot work. In particular, Corollary 3.4 additionally shows that UNPRED is in RestorableSearchCL. If we additionally define a stable version of RestorableSearchCL, then we can show that it is unconditionally impossible for any search problem with output size to be computed in stable RestorableSearchCL.
We begin by showing that StableCL = FL. Since an FL machine simply does not possess linear read-write space, we use the classical oracle tape model here.
Lemma 6.3. StableCL FL.
Proof. Let be a search problem in StableCL and be the stable catalytic logspace Turing machine which computes it. For any , we define . Since is stable, note that for any initial catalytic tape configuration . We define the languages and as follows:
-
if and only if .
-
if and only if and the bit of is equal to 1.
It remains to be proven that and can be decided by catalytic logspace machines. First, as discussed in Section 4, a catalytic logspace machine runs in polynomial time on average. Thus, the length of must be at most polynomial. Therefore, in order to decide , a catalytic logspace machine can simply simulate , keep track of its output length on the work tape, and accept if and only if the output length is at least . Similarly, to decide , a catalytic logspace machine can simulate , remember the bit of its output, and then simply accept if and only if this bit is 1. If terminates before reaching the bit then the machine should, of course, reject. Thus, and are in CL.
Now, simply note that an FL machine with oracle access to and can easily compute as follows: on input , it iterates a counter from 1 in ascending order. It first uses to check whether is at most the length of . If this is false, then it terminates. Else, it uses to compute the bit of , and writes this on the output tape. It then increments . Clearly this machine solves the search problem .
This completes the proof.
Lemma 6.4. .
Proof. Simply note that any machine can be simulated by a single catalytic logspace machine, which uses its own catalytic tape as the catalytic tape for all CL machines used by the machine as oracles. All CL machines used as oracles are stable, and the FL machine itself does not use a catalytic tape at all; thus, this simulating machine is also stable. This completes the proof.
Corollary 6.5. .
Thus, the following problem is equivalent to Problem 6.1.
Problem 6.6. Is StableCL = SearchCL?
We note that Agarwala, Alekseev, and Vinciguerra [AAV26] briefly discuss the need for StableCL independently of Problem 6.1. Their SearchCL algorithm for linear matroid intersection uses the SearchCL algorithm for bipartite matching by Agarwala and Mertz [AM25] as a subroutine. In fact, they use this subroutine multiple times across their algorithm, even as their algorithm mutates the string on the catalytic tape. Thus, they have to deal with the fact that the bipartite matching algorithm may return different matchings across the course of their algorithm, even when queried on the same graph. This is evidence of the fact that the notion of stability (and pseudodeterminism) is particularly important for subroutines in the low-space setting, where an algorithm cannot afford to store the entire output of a search subroutine on its work tape, and thus relies on stability of the subroutine across multiple calls.
Replacing an oracle with another space-bounded machine is a standard technique in space-bounded algorithms.
Now, essentially all of the breakthrough SearchCL algorithms of recent years (bipartite matching, linear matroid intersection, general matching, graph sparsification) are not stable. Furthermore, it is extremely unclear how they could be turned into stable algorithms. There are tricks, such as those in [AV26], that can be exploited to make certain SearchCL algorithms stable, such as those for s-t minimum cut and global minimum cut (which arise as corollaries of the bipartite matching algorithm). However, these are highly problem-specific and it is unclear whether any general strategy exists. We note that in the related SearchBPP vs FP case, it is known under standard circuit-hardness assumptions [IW97] that efficiently verifiable randomized search problems admit pseudodeterministic polynomial-time algorithms. We can draw no such conclusion here. Thus, it is not only unclear how a proof of StableCL = SearchCL would go, but it is also very unclear whether this fact is true at all.
In this section, we show a major barrier towards proving StableCL = SearchCL. Note that the algorithm for UNPRED is not only a SearchCL algorithm, but also a RestorableSearchCL algorithm. This means that the algorithm can explicitly write down the correct output on a prefix of the catalytic tape itself. Now, imagine a variant of RestorableSearchCL which additionally requires the algorithm to be stable. That is, we require the correct output to be written on a prefix of the catalytic tape and to be the same across all instantiations of the catalytic tape. We show that such an algorithm is unconditionally impossible for any search problem whose output has length . Thus, any restorable catalytic logspace algorithm for UNPRED cannot be stable. This implies that any StableCL algorithm for UNPRED must be substantially different from the one in Corollary 3.4. This also shows why the SearchCL algorithms of recent years seem difficult to make stable - because, as we show in this work, they all can be reinterpreted as reductions to UNPRED.
We begin by defining StableRestorableSearchCL.
Definition 6.7 (StableRestorableSearchCL). A restorable catalytic Turing machine is defined to be stable if for all and all initial catalytic tape configurations , we have . A search problem is in StableRestorableSearchCL if it is computed by a stable restorable catalytic logspace machine.
The following lemma shows that, up to additive logarithmic terms, any stable restorable catalytic machine which computes a search problem must use at least as much work space as the size of the output.
Lemma 6.8. Let be a search problem. Fix . Let be a stable restorable catalytic Turing machine which has a finite-control automaton consisting of states and, on an input , uses work space, catalytic space, and produces as output such that . Then
Proof. Note that the entire configuration of on an input with any initial catalytic tape string at any point can be described using many bits. The bits are required to store the locations of the tape heads, the strings on the work tape and catalytic tape, and the current state in the finite control of .
Consider the map which maps an initial catalytic tape to the complete configuration of when the Compute procedure terminates. Observe that, from , the procedure Restore recovers . Thus, must be injective. Now, if is stable, then the first bits of the catalytic tape when terminates are the same for all initial catalytic tapes - they are the string . Thus, the image of has size at most . On the other hand, the domain has size . Injectivity implies the size of the image is at least the size of the domain. Thus,
This completes the proof.
Corollary 6.9. A restorable catalytic logspace algorithm for UNPRED cannot be stable.
Proof. This follows directly from Lemma 6.8. It is very easy to see that there are families of UNPRED instances where any valid output has size . Thus, Lemma 6.8 would imply that any stable restorable catalytic algorithm for UNPRED using poly(n) catalytic space would require work space. Such an algorithm would not be a catalytic logspace algorithm.
7 Next-Bit Predictors, Pessimistic Estimators, and Graph Sparsification
In this section we will show that, up to small changes in parameters, the problem of fooling next-bit predictors (NextBitUNPRED) is equivalent to the problem of computing an approximate solution to a pessimistic estimator instance (Definition 7.1). In particular, this will imply that the graph sparsification algorithm by Marcussen, Pyne, and Rubinfeld [MPR26] can be restated as a TC reduction to NextBitUNPRED .
The underlying method of pessimistic estimators was introduced by Raghavan [Rag88]. We begin by defining pessimistic estimator instances, and what an approximate solution to such an instance means.
Definition 7.1 (Pessimistic Estimator). Let , and define . A pessimistic estimator instance over consists of a function with the property that for any string ,
For , a string is an -approximate solution to the pessimistic estimator instance if
An approach that has been fairly successful in the field of derandomization is this: in order to obtain a string , define a pessimistic estimator such that any (possibly even approximate) solution to belongs to .
Observe that, given oracle access to the function , computing an exact solution (i.e., a 1-approximation) to a pessimistic estimator instance is easy in polynomial time: begin with the string . By Equation 5, you are guaranteed that there exists such that . Set , and iterate this process until has length . This process is highly sequential. In fact, it is possible to show (though we will not do it here) that the problem of computing an exact solution to a pessimistic estimator instance is P-complete under logspace reductions, even when is represented explicitly by an circuit given as input.
Thus, while computing an exact solution to a pessimistic estimator instance is easy in polynomial time, the fact that it is P-complete means we have to settle for approximations in weaker computational models. Observe that the expected value of over a uniformly random string is at most . Thus, for any , a uniformly random string is an -approximate solution to a pessimistic estimator instance with probability . This follows from the Markov bound. This implies that, for , a set of uniformly random strings from contains an -approximate solution to with high probability. Such a solution can be verified using just two queries to . Thus, the problem of producing an -approximate solution to a pessimistic estimator instance is a total derandomization problem.
Marcussen, Pyne, and Rubinfeld [MPR26] use pessimistic estimators to solve the graph spectral sparsification problem (GraphSparsification, formally defined in Definitions 7.2 and 7.3). Specifically, they showed that GraphSparsification has a L-uniform reduction to the problem of computing an -approximation to a pessimistic estimator instance , where is explicitly given as a circuit. They concluded that GraphSparsification belongs to SearchCL by giving a compress-or-random algorithm which computes an approximate solution to the pessimistic estimator instance.
In Section 7.1 we will show that the problem of computing an approximate solution to a pessimistic estimator instance reduces to NextBitUNPRED. In Section 7.2 we will state the reduction in [MPR26] from GraphSparsification to the problem of computing an approximate solution to a pessimistic estimator instance. We will stitch this with our reduction from Section 7.1 to show that GraphSparsification NextBitUNPRED. Finally, in Section 7.3, we will show that NextBitUNPRED itself reduces to the problem of computing an approximate solution to a pessimistic estimator instance. Thus, Sections 7.1 and 7.3 together show an equivalence between NextBitUNPRED and the problem of computing an approximate solution to a pessimistic estimator instance, up to parameters.
Before we proceed further, we address a technicality. We will deal with problems where the function is explicitly computed by a circuit. Note that the input to is not of fixed length. Thus, when we refer to a circuit computing , we mean that has input gates, where the first bits of any input are interpreted as an integer . For an input to , we have . That is, evaluates the function on the first bits of the string . Moreover, in all of our computational theorems, each output of , and thus of , will be a positive rational encoded as a pair of numerator-denominator integers, instead of arbitrary positive reals. We will follow this convention for the entire section.
Now, the following two definitions together define the problem of GraphSparsification. Note that, in the end, we will largely just cite the reduction of [MPR26]. Thus, it is not strictly necessary to understand these definitions. Nevertheless, we include them for the interested reader.
Definition 7.2 (Spectral Approximation). Let be an undirected graph with Laplacian , and let . Let be a weighted undirected graph such that has the same vertex set as and the edge weights of are nonnegative. is defined to be an -spectral approximation of if
where denotes the Loewner order on real symmetric matrices: if and only if is positive semidefinite.
Definition 7.3 (GraphSparsification). The graph spectral sparsification problem is a search problem defined as follows:
-
Input : An unweighted undirected simple graph on vertices and edges, and a parameter .
-
Output : A weighted graph with edges such that is a -spectral approximation of .
7.1 Computing Approximate Solutions to Pessimistic Estimator Instances Reduces to NextBitUNPRED
We begin by defining, for any pessimistic estimator instance , the family of next-bit predictors that will be the result of our reduction. This is done in Definition 7.4.
The intuition behind this definition is as follows. We are given a pessimistic estimator instance , and we want to define a set of next-bit predictors such that, for any multiset which does not contain an approximate solution to , the predictors perform well on . In order to do this, we define one predictor for each index . Given as input for a string , must predict . works as follows: for each , it produces as output the bit with probability .
To see why this works, let's consider a string such that is far from a good solution to the pessimistic estimator instance . Consider all prefixes of : , . Since is much larger than , there must exist such that is much larger than . Now consider the predictor as defined above, acting on the string . The definition of naturally makes its prediction lean towards the bit which maximizes . Since , this bit is exactly . Thus, succeeds on with good probability.
This is exactly the intuition that we will formalize in Lemma 7.5. We note that this is quite similar to Yao's hybrid argument.
Note that the predictors described above are randomized, while we require deterministic predictors. Thus, we will actually define a family where T is an integer parameter. T should be thought of as a discretization parameter, which is used to define deterministic variants of the randomized predictors described above. Larger values of T will result in better predictors at the cost of a larger family.
Definition 7.4 (Next-Bit Predictors Corresponding to a Pessimistic Estimator). Let , let be a pessimistic estimator instance over as in Definition 7.1, and let be a parameter.
We define the family of next-bit predictors, where is a next-bit predictor at index defined as follows: For ,
Now, we show that the predictors indeed constitute a valid reduction.
Lemma 7.5. Let and let be a pessimistic estimator instance over as in Definition 7.1. Let , and be parameters such that
Let be a multiset such that . There exists such that is an -approximate solution to the pessimistic estimator instance .
Proof. Fix and a prefix , and write
By definition, if and only if . Since is an integer, we get
Note that exactly r of the predictors predict . Moreover, rounding gives
Next, let , with and defined as above for the prefix . If , the success probability of a uniformly random predictor from on is . If , it is . Therefore,
(by Equation 5)
(7)
Now, let be a string which is an -approximate solution to . That is,
We have
(By Equation 7)
(By AM-GM Inequality)
(By Equation 6)
This implies that for any multiset such that , is an -approximate solution to , we have
This implies that there exists such that
Thus, for any multiset with , there must exist such that is an -approximate solution to . This completes the proof.
Finally, we show that this reduction can be performed on explicit circuits without blowing up their size or depth.
Theorem 7.6. There exists a logspace algorithm which takes as input , a circuit which computes a pessimistic estimator instance over , and a parameter encoded in unary. It produces as output the set of predictors from Definition 7.4 in the form of circuits, such that:
- Each predictor has
- For any parameters and such that
and any multiset such that , there exists such that is an -approximate solution to the pessimistic estimator instance .
Proof. is of course exactly the set of predictors defined in Definition 7.4. The size and depth bounds of the first part are easy to see: the predictor on an input simply computes the values and in parallel, and then produces as output the result of a simple comparison involving the aforementioned values, , and . The second part follows directly from Lemma 7.5.
7.2 Graph Sparsification Reduces to NextBitUNPRED
In this section we use the reduction by Marcussen, Pyne, and Rubinfeld [MPR26], which shows that GraphSparsification reduces to the problem of computing an approximate solution to a TC pessimistic estimator instance, and our reduction from Section 7.1, to show that GraphSparsification reduces to NextBitUNPRED .
The following theorem was proven by Marcussen, Pyne, and Rubinfeld [MPR26]. It is mainly Theorem 4.1 of their paper, but we combine it with additional details from other parts to obtain a clean statement that will suffice for our reduction.
Theorem 7.7 ([MPR26]). There exists a logspace algorithm which takes as input a simple unweighted undirected graph on vertices and edges and a parameter , and produces as output circuits , and such that:
-
produces as output a nonnegative integer .
-
takes as input a binary string of length at most . It produces as output a value denoted by such that the function
is a pessimistic estimator instance over .
- takes as input a string . It produces as output a simple edge-weighted undirected graph such that:
(a) (1) , (2) , and (3) all edge weights of lie in .
(b) For every integer , if is an -approximate solution to the pessimistic estimator instance , the subgraph has edges and is a -spectral approximation of .
Therefore, GraphSparsification on an input with reduces in L-uniform to the problem of computing an -approximate solution to a pessimistic estimator instance. The pessimistic estimator instance is over and the pessimistic estimator function is computable by a circuit. This follows by invoking Theorem 7.7 with parameters and .
Theorem 7.8.
Proof. Let be a GraphSparsification instance, where , , , and . Theorem 7.7 reduces GraphSparsification to the problem of computing an -approximate solution to a pessimistic estimator instance over , where and is a circuit with and .
We first handle some edge cases: if , we can return the empty graph on vertex set . Else, if , we can return . Finally, if , we can simply return . From here on, we assume that , , and .
Set and . By Theorem 7.6, there exists a logspace algorithm which takes as input and , and produces as output circuits computing a set of next-bit predictors , such that the circuits have and . Theorem 7.6 guarantees that for any which is a solution to the instance given by and , there exists which is an -approximate solution to the pessimistic estimator instance .
Thus, given a polynomial-size solution to this instance, an L-uniform algorithm could simply check in parallel for each whether . By Theorem 7.7, such an suffices to solve GraphSparsification in L-uniform .
This completes the proof.
7.3 NextBitUNPRED Reduces to Computing Approximate Solutions to Pessimistic Estimator Instances
In this section, we show that NextBitUNPRED itself also reduces to the problem of computing approximate solutions to pessimistic estimator instances. The construction here is very similar to those in Wigderson and Xiao [WX08], and was directly inspired by Li [Li21].
We begin by formally defining the pessimistic estimator instance that will be the result of our reduction. We are given a NextBitUNPRED instance over . Let's say the predictors are , where predicts index . For such an instance, the pessimistic estimator will need to be over much larger strings of length , for a parameter . We will then interpret a string as the concatenation of strings . Similar to Section 3, we will interpret to contain in column-major order. That is, the first bits of are the first bit of each string, and so on.
Now, to define the pessimistic estimator itself. The estimator is the sum of estimators, one for each predictor. Let us describe the estimator corresponding to just one predictor . Let be a prefix of . We will define . In order to do this, the estimator needs two values in particular: and . is the number of strings such that the bits of have already been completed in , and they result in succeeding. The second value, , is simply the number of strings whose first bits have already been filled into . This is similar to , but also includes strings on which is now guaranteed to fail. For a fixed parameter , we define
We emphasize that and depend on . It is a simple exercise to verify that this is indeed a pessimistic estimator. Claim 7.10 shows that the initial value of this estimator is . Theorem 7.11 will show that if the multiset corresponding to a string is not a solution to NextBitUNPRED with parameter , then for some . Thus, non-solutions result in pessimistic estimator values that are larger than . We will use this fact to then complete the reduction in Corollary 7.12.
Note that this reduction depends on parameters and . Thus, the result of our reduction will be called , and for a fixed predictor .
Definition 7.9 (Pessimistic Estimators Corresponding to Next-Bit Predictors). Let be a non-empty set of next-bit predictors over where is the set of predictors at index .
For a parameter , a string , and , let
Furthermore, for , we define
For a predictor and a parameter , we define a pessimistic estimator over as follows: For , let
and
Finally, we define a single pessimistic estimator instance corresponding to the entire set of predictors , as follows:
It is a simple exercise to verify that each satisfies Equation 5, and is therefore indeed a pessimistic estimator. It is equally simple to verify that the sum of pessimistic estimators (i.e., ) is itself a pessimistic estimator. In the following claim we show an upper bound on .
Claim 7.10. Let be as in Definition 7.9. Let be a set of next-bit predictors over . Let and . Then, for all ,
Proof. Note that for all and . Therefore, . This implies that
(Because )
This completes the proof.
In the following theorem we show that any string such that is sufficiently small must represent a solution to the NextBitUNPRED instance with parameter .
Theorem 7.11. Let and be as in Definition 7.9. Let be a set of next-bit predictors over . Let , , and be such that . Then, the multiset satisfies
Proof. Assume to the contrary that
This implies that there exists such that
Let's say that . Simply observe that . Therefore,
Now,
(Because )
(Because )
Therefore, this implies that , which is a contradiction. This completes the proof.
In the following corollary, for an appropriate choice of the parameter , we show that the lower bound for non-solutions from Theorem 7.11 is more than twice the upper bound on obtained from Claim 7.10. Thus, any 2-approximate solution to the pessimistic estimator instance corresponds to a solution to the NextBitUNPRED instance with parameter .
Corollary 7.12. Let and be as in Definition 7.9. Let be a set of next-bit predictors over . Let , and such that . Let be a 2-approximate solution to the pessimistic estimator instance . Then, the multiset satisfies
Proof. For all , due to Claim 7.10, we have
Thus,
Note that
(By plugging in the lower bound on k.)
Thus, we have
Then, by Theorem 7.11, the corollary follows.
In the following observation we show that the circuit corresponding to the pessimistic estimator can be constructed efficiently, the circuit itself incurs only a polynomial blow-up in size compared to the predictors, and only a constant factor blow-up in depth.
Observation 7.13. There exists a logspace algorithm which takes as input , a set of next-bit predictors over in the form of their circuits, a unary-encoded integer , and a unary-encoded parameter . The algorithm produces as output a circuit computing the function from Definition 7.9 such that
and
Proof. Let and . Note that the circuit which computes on a string is straightforward: it first computes by querying on for each
in parallel. Once it has computed , then computing only requires simple arithmetic which can be performed by a polynomial-size constant-depth circuit [HAM02]. The final step to computing is just summing these values over all , which can again be done by a polynomial-size constant-depth circuit.
This completes the proof.
Therefore, by Observation 7.13 and Corollary 7.12, we have a reduction from NextBitUNPRED to the problem of computing an approximate solution to a pessimistic estimator instance, where the pessimistic estimator is computed by a circuit of size at most polynomial in , the sum of sizes of the predictor circuits and , and depth at most a constant factor larger than the maximum depth of the predictor circuits. Combined with the reduction from Section 7.1, this shows that the problem of computing an approximate solution to a pessimistic estimator instance is, up to a small change in parameters, equivalent to NextBitUNPRED.
8 BlockLossyCoding Reduces to UNPRED
In this section we will show that the catalytic logspace algorithms for bipartite matching [AM25], linear matroid intersection [AAV26], and general matching [CDK 26] reduce in TC to UNPRED . We will prove this fact by identifying a common structural property in all three of these algorithms: these algorithms can be interpreted as reductions to a special form of the LossyCoding problem (as defined in Definition 4.9), that we call BlockLossyCoding.
An arbitrary LossyCoding instance has no promised structure in its compression and decompression. This lack of structure is exactly what makes it a difficult problem. The compress-or-random algorithms that we mentioned above, on the other hand, use compression in a very specific way. In all of these cases, the input to the compressor is interpreted as the concatenation of strings, each of length . On any input string, the compressor selects a specific block, and then only compresses the selected block. The other blocks are left unchanged. Note that the selected block must be compressed enough to also store its index, which means that we must have . We call such an instance of LossyCoding an BlockLossyCoding instance.
We will show that, when is logarithmic in the input size, BlockLossyCoding admits a simple reduction to UNPRED. When the compressor and decompressor are both circuits, this reduction will result in predictors. The catalytic search-to-decision reduction for the isolation lemma by Arvind, Chakraborty, and Datta [ACD26] follows the same form but, for the sake of succinctness, we will only prove the UNPRED reduction for the three algorithms stated above.
We begin by formally defining BlockLossyCoding.
Definition 8.1 (BlockLossyCoding). An BlockLossyCoding instance is a LossyCoding instance
-
and
-
,
where . The instance must satisfy the following two conditions:
- For all ,
We define and .
- For all , let . Then
We briefly explain the connection between this definition and our informal description. The idea is that the block of the input string is compressed down to the strings and , whose combined length is strictly less than . A possible misconception is that one could try to solve BlockLossyCoding by interpreting it as LossyCoding on a fixed block. A block consists of only bits. A brute-force search over all length strings could then solve the problem efficiently. The reason this does not work is that itself depends on . Thus, it is not possible to restrict the problem to only one block, because the choice of the block itself depends on the input string.
Now, we prove our reduction from BlockLossyCoding to UNPRED. We begin by defining the predictors that will appear as a result of this reduction. Intuitively, one should imagine the predictors to be the result of a two-step reduction.
First, imagine that the predictors, instead of acting over a string of length with the alphabet , are acting over a string of length with the alphabet . That is, instead of guessing the value of a single bit, each predictor guesses the value of a whole block. Then, we could define a set of predictors where guesses the -bit string in the block. That is, given a string where each , tries to predict . To do this, it uses the decompressor , plugging in the string as the advice, and as the index. Thus,
By definition of BlockLossyCoding, for any string , there must be and such that succeeds on (where success means guessing the whole block correctly). In particular, this occurs when and . Therefore, the strong pigeonhole principle implies that for a multiset , there must exist and such that succeeds on with probability at least . Plugging in the definition of , this success probability is . For bit predictors, this is not a very high success probability. However, note that we are not predicting just a single bit correctly, but rather an entire block. The probability of random guessing being correct on an entire block of bits is . Thus, these predictors do indeed beat random guessing by a margin of .
The second step is simply to transfer this margin of success over random guessing into bit predictors. To do this, the idea is as follows: instead of predicting the entire block at once, we define predictors , where and are as above, and . The predictor will try to predict only the bit of the block. Of course, if just simulated and output its bit, then it would not necessarily achieve a better success probability. Instead, it works as follows: simulates , but then also checks whether the output of has succeeded on the first bits of the block. If any of those bits were predicted wrongly by , then just produces as output a uniformly random bit. Else, it produces as output the bit of . In order to simulate this random guessing, we will actually define two predictors for each , and : and .
The following definition formally defines these predictors, and then Lemma 8.3 will prove that they indeed correspond to a valid reduction.
Definition 8.2 (Predictors Corresponding to a BlockLossyCoding Instance). Let be an
BlockLossyCoding instance, and let . We define
is a middle-bit predictor over at index . For with each , let
Then
Lemma 8.3. Let be an BlockLossyCoding instance, and let be the predictors from Definition 8.2. For any non-empty multiset such that
S contains a solution to the BlockLossyCoding instance .
Proof. Let and . Let such that
Assume for the sake of contradiction that . Then, for every , the pair and satisfies
By the strong pigeonhole principle, there must exist a fixed pair and such that
For this pair, we define
for , and . The strong pigeonhole principle argument showed that
Now, fix any . Observe that the predictors and on a string have two cases: if , then both predictors enter the first case of their definition and guess . They both succeed exactly when . This happens with probability . On the other hand, if , then the predictors enter the second case of their definition and guess 0 and 1 respectively, and exactly one of them succeeds. This happens with probability . Therefore, for any ,
The last inequality follows due to the assumption that . Therefore,
Since , this implies that
This contradicts the lower bound on . Thus, S contains a solution to .
Lemma 8.4. There exists an algorithm which takes as input , along with an BlockLossyCoding instance in circuit form. The algorithm uses work space. The algorithm produces as output, in circuit form, a set of middle-bit predictors, , over , and , such that:
-
For each predictor , , and .
-
For any non-empty multiset such that
S contains a solution to the BlockLossyCoding instance .
Proof. Let . The set from Definition 8.2 contains at most predictors.
Each predictor contains the circuit with its first input bits fixed (to ), and the output restricted to only of its output bits, together with gates of depth to check the prefix and select the output. These circuits can be produced in the stated work space by enumerating and copying . The unary encoding of can also be produced using work space. Thus, the first part of the lemma follows. The second part follows from Lemma 8.3.
This completes the proof.
Finally, Agarwala and Mertz [AM25] implicitly prove the following reduction from BipMATCH to BlockLossyCoding.
Lemma 8.5 (Adapted from Theorem 6.3 of [AM25]). There exists a logspace algorithm which takes as input an undirected bipartite graph with vertices and edges, and produces three circuits, each of which has and :
-
and . This is an block lossy coding instance.
-
Sol. This circuit takes as input any which is a solution to the LossyCoding instance , and produces as output a maximum matching of .
Corollary 8.6.
Proof. The reduction works as follows: it takes as input a bipartite graph with vertices and edges. First, it simulates the logspace algorithm from Lemma 8.5 to produce the block lossy instance , , where both and have and . Then, it uses the reduction from Lemma 8.4 to obtain, using work space, a set of predictors and . Each predictor has and . Together, these predictors define an instance.
Let be a polynomial-size solution to the instance. Then the reduction could iterate over all in parallel and test whether , i.e., whether .
For the first it finds such that (by Lemma 8.4, such an must exist), it could feed this to the circuit , obtained from Lemma 8.5, to obtain a maximum matching of .
This completes the reduction.
The algorithm of Agarwala, Alekseev, and Vinciguerra [AAV26] can be reinterpreted as the exact same statement as Lemma 8.5, but for linear matroid intersection. Similarly, the algorithm of Chakraborty, Datta, Kusre, Mukhopadhyay, and Sinhababu [CDK ] can be reinterpreted as the same statement as Lemma 8.5 but for general matching. Unfortunately, they do not state this as explicitly as Agarwala and Mertz [AM25]. It would obfuscate our contribution to recreate their algorithms here. Thus, we simply state the results we get by reinterpreting their algorithms as reductions to block lossy coding. The exact same proof as Corollary 8.6 then implies the following statements.
Corollary 8.7 ([AAV26]).
Corollary 8.8 ([CDK ]).
9 Artificial Intelligence Disclosure
This work was the result of approximately 16 months of research, much of which was spent before LLM models possessed the strength that they now do.
Except for Section 4, LLMs played no role in this paper beyond proofreading, cleaning text, generating tables, and generating TikZ code after being given hand-drawn figures. Section 4 of this paper, in particular the reduction from the restricted version of LossyCoding to UNPRED, was obtained in collaboration with ChatGPT 5.6 Sol Extra High. However, this was extremely far from a one-shot prompt.
To elaborate: at this point, the authors had already obtained every other result in this paper. In particular, we were able to prove that every problem currently known to be in CL reduces to . However, there was exactly one exception: a restricted version of LossyCoding, which was shown to be in SearchCL by Cook et al. [CGM ]. This was a far more restricted version of LossyCoding than the one we study in this work: one where both the compressor and decompressor must be computable by depth, width, and fan-in 2 circuits.
We first gave ChatGPT access to all of our proofs (in a Notion workspace), and asked it to prove that FastCatTape reduces to UNPRED. ChatGPT claimed to have proved this. Upon analyzing ChatGPT's proof, we realized that its proof was too strong: we believed that it could be extended to show that all of ZPP reduces to UNPRED. The authors, along with Edward Pyne, spent significant time understanding whether this was possible. This led us to uncover a minor mathematical error in a previous paper, which ChatGPT had used as a hammer in its incorrect proof. We have already contacted the authors responsible for that paper, and thus we will not name it publicly.
We concluded that this problem was too hard for ChatGPT. Thus, we tempered our expectations and asked it to prove that the extremely restricted version of LossyCoding described above reduces to . Once again, we gave it access to all of the other proofs in this work. On this prompt, ChatGPT succeeded.
ChatGPT produced a proof that was extremely clever, yet opaque. We initially expected it to be erroneous, as its last attempt was. Thus, we spent a significant amount of time understanding and verifying this proof. In this process, we realized that if one abandoned the TC requirement, then the proof that ChatGPT came up with relies primarily on the in-place computation of the decompressor. We realized that the decompressor of Cook et al. [CLMP25] also has this structure. From here, the authors were able to generalize ChatGPT's idea to obtain the full result of Section 4.
We would like to remark that we put significant effort into the exposition of these results. In particular, ChatGPT did not structure its proof as a reduction to WeakExcess, or even formally define a graph . The reduction to WeakExcess that we present in this work came as a result of several iterations of this paper that aimed to make the exposition as readable as possible.
The chat session described above consisted of a total of 36 prompts from us, and ChatGPT worked for a total of 35 hours, 33 minutes, and 15 seconds. We gave a link to the entire chat session, along with this AI disclosure section, to another ChatGPT 6.1 Sol Ultra session. It confirmed that this disclosure is a fair and accurate representation of events.
Acknowledgements
Both authors thank Ian Mertz, James Cook, and in particular Edward (Ted) Pyne for extensive discussions. The first author thanks Danupon Nanongkai for extensive discussions and supervision. Both authors thank Julian Casablancas for his underrated album First Impressions of Earth, without which this work would not have been possible.
It did occasionally use graph terminology, such as walks and flow, which was comprehensible around 10% of the time.
References
[AAV26] Aryan Agarwala, Yaroslav Alekseev, and Antoine Vinciguerra. Linear Matroid Intersection Is in Catalytic Logspace. In Innovations in Theoretical Computer Science Conference (ITCS), volume 362 of Leibniz International Proceedings in Informatics (LIPIcs), pages 3:1–3:23. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPIcs.ITCS.2026.3.
[ACD26] V. Arvind, Srijan Chakraborty, and Samir Datta. Derandomizing isolation in catalytic logspace. Computing Research Repository (CoRR), abs/2512.09374, 2026. URL: https://arxiv.org/abs/2512.09374.
[AM25] Aryan Agarwala and Ian Mertz. Bipartite Matching is in Catalytic Logspace. In IEEE Symposium on Foundations of Computer Science (FOCS), pages 360–372. IEEE Computer Society, 2025. doi:10.1109/FOCS63196.2025.00022.
[AS16] N. Alon and J.H. Spencer. The Probabilistic Method. Wiley Series in Discrete Mathematics and Optimization. Wiley, 2016. URL: https://books.google.de/books?id=lu5RCgAQBAJ.
[AV26] Aryan Agarwala and Nithin Varma. Pseudodeterministic Algorithms for Minimum Cut Problems. In Innovations in Theoretical Computer Science Conference (ITCS), volume 362 of Leibniz International Proceedings in Informatics (LIPIcs), pages 4:1–4:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPIcs.ITCS.2026.4.
[BCE 98] Paul Beame, Stephen Cook, Jeff Edmonds, Russell Impagliazzo, and Toniann Pitassi. The relative complexity of NP search problems. Journal of Computer and System Sciences (J.CSS), 57(1):3–19, 1998. doi:10.1006/jcss.1998.1575.
[BCK 14] Harry Buhrman, Richard Cleve, Michal Koucký, Bruno Loff, and Florian Speelman. Computing with a full memory: catalytic space. In ACM Symposium on Theory of Computing (STOC), pages 857–866, 2014. doi:10.1145/2591796.2591874.
[BM84] Manuel Blum and Silvio Micali. How to generate cryptographically strong sequences of pseudo-random bits. SIAM Journal on Computing (SICOMP), 13(4):850–864, 1984.
[CDK 26] Srijan Chakraborty, Samir Datta, Aryan Kusre, Partha Mukhopadhyay, and Amit Sinhababu. Maximum matching and related problems in catalytic logspace. Computing Research Repository (CoRR), abs/2604.24275, 2026. URL: https://arxiv.org/abs/2604.24275.
[CGG 26] Abhranil Chatterjee, Sumanta Ghosh, Rohit Gurjar, Roshan Raj, and Thomas Thierauf. Bipartite matching is in NC. Electronic Colloquium on Computational Complexity (ECCC), page 100, 2026.
[CGM 25] James Cook, Surendra Ghentiyala, Ian Mertz, Edward Pyne, and Nathan S. Sheffield. The structure of in-place space-bounded computation. Computing Research Repository (CoRR), abs/2510.12005, 2025. URL: https://arxiv.org/abs/2510.12005.
[CLMP25] James Cook, Jiatu Li, Ian Mertz, and Edward Pyne. The structure of catalytic space: Capturing randomness and time via compression. In ACM Symposium on Theory of Computing (STOC), 2025.
[CM24] James Cook and Ian Mertz. Tree evaluation is in space O(log n · log log n). In ACM Symposium on Theory of Computing (STOC), pages 1268–1278. ACM, 2024. doi:10.1145/3618260.3649664.
[CT21] Lijie Chen and Roei Tell. Simple and fast derandomization from very hard functions: eliminating randomness at almost no cost. In ACM Symposium on Theory of Computing (STOC), pages 283–291. ACM, 2021. doi:10.1145/3406325.3451059.
[DMOZ22] Dean Doron, Dana Moshkovitz, Justin Oh, and David Zuckerman. Nearly optimal pseudorandomness from hardness. Journal of the ACM (J.ACM), 69(6):43:1–43:55, 2022. doi:10.1145/3555307.
[DMOZ26] Dean Doron, Dana Moshkovitz, Justin Oh, and David Zuckerman. Pseudorandomness beating the hybrid argument for insensitive algorithms. Electronic Colloquium on Computational Complexity (ECCC), TR26(TR26-082), 2026. URL: https://ecc.weizmann.ac.il/report/2026/082/.
[DPT24] Dean Doron, Edward Pyne, and Roei Tell. Opening up the distinguisher: A hardness to randomness approach for BPL = L that uses properties of BPL. In ACM Symposium on Theory of Computing (STOC), pages 2039–2049, 2024.
[DPTW25] Dean Doron, Edward Pyne, Roei Tell, and Ryan Williams. When connectivity is hard, random walks are easy with non-determinism. In ACM Symposium on Theory of Computing (STOC), 2025.
[ES73] Paul Erdős and John L. Selfridge. On a combinatorial game. Journal of Combinatorial Theory, Series A, 14(3):298–301, 1973.
[FSUV12] Bill Fefferman, Ronen Shaltiel, Christopher Umans, and Emanuele Viola. On beating the hybrid argument. In Innovations in Theoretical Computer Science Conference (ITCS), pages 468–483. ACM, 2012. doi:10.1145/2090236.2090273.
[GG11] Eran Gat and Shafi Goldwasser. Probabilistic search algorithms with unique answers and their cryptographic applications. Technical Report TR11-136, Electronic Colloquium on Computational Complexity, 2011. URL: https://ecc.weizmann.ac.il/report/2011/136/.
[GW00] Oded Goldreich and Avi Wigderson. On pseudorandomness with respect to deterministic observers. In ICALP Satellite Workshops, pages 77–84, 2000.
[HAM02] William Hesse, Eric Allender, and David A. Mix Barrington. Uniform constant-depth threshold circuits for division and iterated multiplication. Journal of Computer and System Sciences (J.CSS), 65(4):695–716, 2002. doi:10.1016/S0022-0000(02)00025-9.
[HN18] Sergiu Hart and Noam Nisan. The query complexity of correlated equilibria. Games and Economic Behavior, 108:401–410, 2018.
[IW97] Russell Impagliazzo and Avi Wigderson. P = BPP if E requires exponential circuits: derandomizing the XOR lemma. In ACM Symposium on Theory of Computing (STOC), pages 220–229, 1997.
[KMPS25] Michal Koucký, Ian Mertz, Edward Pyne, and Sasha Sami. Collapsing catalytic classes. In IEEE Symposium on Foundations of Computer Science (FOCS), pages 455–463, 2025. doi:10.1109/FOCS63196.2025.00025.
[Kor22] Oliver Korten. Derandomization from time-space tradeoffs. In Computational Complexity Conference (CCC), pages 37:1–37:26. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2022.
[Kou16] Michal Koucký. Catalytic computation. Bulletin of the EATCS (B.EATCS), 118, 2016.
[Li21] Jason Li. Deterministic mincut in almost-linear time. In ACM Symposium on Theory of Computing (STOC), pages 384–395. ACM, 2021. doi:10.1145/3406325.3451114.
[LPT24] Jiatu Li, Edward Pyne, and Roei Tell. Distinguishing, predicting, and certifying: On the long reach of partial notions of pseudorandomness. In IEEE Symposium on Foundations of Computer Science (FOCS), pages 1500–1512, 2024. doi:10.1109/FOCS61266.2024.00095.
[Mer23] Ian Mertz. Reusing space: Techniques and open problems. Bulletin of the EATCS (B.EATCS), 141:57–106, 2023.
[MPR26] Cassandra Marcussen, Edward Pyne, and Ronitt Rubinfeld. Graph spectral sparsification is in catalytic logspace. Computing Research Repository (CoRR), abs/2608.21594, 2026. URL: https://arxiv.org/abs/2608.21594.
[MR95] Rajeev Motwani and Prabhakar Raghavan. Randomized Algorithms. Cambridge University Press, 1995. doi:10.1017/CBO9780511814075.
[NW94] Noam Nisan and Avi Wigderson. Hardness vs. randomness. Journal of Computer and System Sciences (J.CSS), 49(2):149–167, 1994.
[Ope26] OpenAI. Exact Derandomization of Logarithmic Space: L=RL=BPL, September 2026. URL: https://github.com/openai/math/blob/main/preprints/Exact-Derandomization-of-Logarithmic-Space-L-equals-RL-equals-BPL-September-23-2026/paper.pdf.
[PT26a] Edward Pyne and Roei Tell. Composing low-space algorithms. In IEEE Symposium on Foundations of Computer Science (FOCS), 2026.
[PT26b] Edward Pyne and Roei Tell. Using hardness vs randomness to design low-space algorithms. Bulletin of the EATCS (B.EATCS), 148, 2026.
[Pyn24] Edward Pyne. Derandomizing logspace with a small shared hard drive. In IEEE Conference on Computational Complexity (CCC), volume 300 of Leibniz International Proceedings in Informatics (LIPIcs), pages 4:1–4:20, 2024.
[Rag88] Prabhakar Raghavan. Probabilistic construction of deterministic algorithms: Approximating packing integer programs. Journal of Computer and System Sciences (J.CSS), 37(2):130–143, 1988. doi:10.1016/0022-0000(88)90003-7.
[Spe87] Joel Spencer. Ten Lectures on the Probabilistic Method. SIAM, 1987.
[SV22] Ronen Shaltiel and Emanuele Viola. On Hardness Assumptions Needed for “Extreme High-End” PRGs and Fast Derandomization. In Innovations in Theoretical Computer Science Conference (ITCS), volume 215 of Leibniz International Proceedings in Informatics (LIPIcs), pages 116:1–116:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.ITCS.2022.116.
[Wil25] Ryan Williams. Simulating time in square-root space. In ACM Symposium on Theory of Computing (STOC), 2025.
[WX08] Avi Wigderson and David Xiao. Derandomizing the Ahlswede-Winter matrix-valued Chernoff bound using pessimistic estimators, and applications. Theory of Computing, 4(3):53–76, 2008. doi:10.4086/toc.2008.v004a003.
[Yao82] Andrew C. Yao. Theory and application of trapdoor functions. In IEEE Symposium on Foundations of Computer Science (FOCS), 1982.
A Online Hypercube Graph Balancing Problem
In this section, we prove the following lemma:
Lemma 5.2. There exists a deterministic algorithm for the online hypercube graph balancing problem with in-degree bound , where .
Consider the following simple greedy algorithm: At each step, upon receiving a query edge , the algorithm orients toward the endpoint which has lower in-degree in the directed graph induced by the edges queried so far, with ties broken arbitrarily.
For the rest of this section, fix an edge query sequence . Let be the directed graph over vertex set and edge set , with directions as chosen by the greedy algorithm.
The following observation shows that any vertex in with high in-degree has several in-neighbours, each of which has reasonably high in-degree.
Observation A.1. Let be as fixed above. For every vertex and integer such that , has at least distinct in-neighbours in , each of which has in .
Proof. Consider the last in-degree edges that were oriented towards by the greedy algorithm. In the step when each of these edges was queried, the in-degree of must have already been at least . The greedy algorithm always orients an edge towards the vertex with lower in-degree. Thus, the fact that the algorithm chose to orient these edges towards implies that the in-degree of the other endpoint of each of these edges must have been at least . These are the in-neighbours of with in-degree at least . This completes the proof.
Lemma A.2. Let and be as fixed above. For every vertex ,
Proof. Let . When , the lemma statement follows trivially from the fact that . For the rest of this proof assume that . We define
Since , we have and
For a vertex , we define its level to be its Hamming distance from . Furthermore, we call a vertex at level good if . Observe that the vertex is good at level zero.
Let , and be a good vertex at level . Due to Observation A.1 with , must have at least in-neighbours with . Since the Hamming distance of from is exactly , at most of these vertices can be at level . The remaining of these in-neighbours must be at level .
Consequently, there are at least paths in , all of which end at the vertex , have length exactly , decrease their Hamming distance from at each step, and visit only good vertices. Any vertex of can be the source of at most such paths. We conclude that there are at least distinct good vertices at level . Therefore,
The following upper bound on
implies that
Together with , this implies that
This completes the proof.
Lemma A.2 shows that the greedy algorithm has in-degree bound
Clearly, . This proves Lemma 5.2.
B Online Prefix-Tree Balancing Problem
In this section, we prove the following lemma:
Lemma 5.6. There exists a deterministic algorithm for the online prefix-tree balancing problem with token bound .
Consider the following simple greedy algorithm: At step , let be the queried batch with . The algorithm iterates from 1 to . The algorithm places the token of on the child whose subtree contains fewer tokens placed during the current batch, with ties broken arbitrarily.
For the rest of this section, fix a query sequence .
Observation B.1. Let , , and the greedy algorithm be as above. Let be a leaf vertex of , and be a batch in which the greedy algorithm places tokens on the path from the root to the leaf . Then .
Proof. We prove this via induction on . First, for , the statement follows from the fact that . We will now prove this for . Assume the inductive hypothesis that this statement is true for all .
Let with . Let be the vertex whose token the greedy algorithm places on the path from the root to . Let's say that this token is placed on vertex . Let denote the vertices in which are contained in the subtree of
. Observe that vertices outside do not affect the placement of the tokens of vertices in . Exactly tokens from are placed by the algorithm on the path from the root to . Thus, by induction, we have .
Now, the greedy algorithm always places the token on the subtree with fewer tokens already placed on it. The fact that the algorithm chose to place the token on instead of implies that the subtree of already had at least tokens placed on it. All of these tokens must come from queries in . Thus, we have
Therefore,
This completes the proof.
Proof of Lemma 5.6. Simply observe that for any , there must exist a batch in which the algorithm places many tokens on the path from the root to the leaf . Observation B.1 implies that
This implies that
Since for every vertex , there exists a batch for which this equation holds, taking the max over all and over all vertices proves the lemma.
C A Uniform Version of UNPRED
Let be a fixed language. We define a version of UNPRED known as UNPRED as follows.
Definition C.1 (UNPRED ). UNPRED is the search problem defined as follows:
- Input: , , strings , and .
For all , is a middle-bit predictor over at index . The value of a predictor on a string is defined as .
- Output: A non-empty multiset such that
In this definition, we think of the strings as advice. If is a Turing machine which decides the language , then in order to obtain the value of a predictor for on a string , one would evaluate on with advice . If we fix to be the Boolean circuit evaluation problem, and interpret the advice strings as circuit descriptions, then we recover the original definition of UNPRED.
Now, we define a model of computation which is similar to inplaceFL, but allows for read-only access to an advice string.
Definition C.2 (Restorable Partial In-Place Computation). A restorable partial in-place Turing machine consists of two procedures: and , which share a read-only input tape, a read-write input tape, and a read-write work tape. computes if it satisfies the following two properties when executed on a read-only input and read-write input : 1) halts with such that written on the first bits of the read-write input tape; and 2) starts from the read-write input tape and work tape configuration that halted with, and halts with written on the read-write input tape.
We do not prove the following facts here, but we have done so in a previous draft, and we would be happy to share that draft with anyone interested.
Theorem C.3. For any language such that can be computed by a restorable partial in-place Turing machine with logarithmic work space, we have
Let be such a machine. This follows directly from Theorem 3.3, by replacing each oracle query with an explicit evaluation of . We use the part of the input tape of the catalytic machine which has written on it as the read-only input tape of , and use the catalytic tape which has the query string written on it as the read-write input tape of . We use fresh bits on the work tape of the catalytic machine as the work tape for . For each query, we run , copy the output bit of to the work tape, and then run to restore the catalytic tape.
Finally, the same argument as in Section 4, with more tedious proofs, shows the following theorem.
Theorem C.4. There exists a language that can be computed by a polynomial-time restorable partial in-place Turing machine with logarithmic work space such that
These theorems together close the gap between and UNPRED which exists in our simplified presentation.