NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Structure of In-Place Space-Bounded Computation

James Cook, Surendra Ghentiyala, Ian Mertz, Edward Pyne, Nathan S. SheffieldarXiv 2025 · DOI

Abstract

In traditional complexity theory, space-bounded computation is modeled using a read-only input tape and a separate work tape. However, practical algorithms often operate "in-place," overwriting the input to conserve memory. This paper formalizes this practice by defining the complexity class $\mathsf{inplaceFL}$ and investigates its structural properties. We demonstrate that in-place logspace is fundamentally different from standard logspace ($\mathsf{FL}$), proving that while it can compute functions requiring linear space in the standard model, it is simultaneously constrained by the reversibility of its operations. Furthermore, we establish a non-relativizing barrier for the containment of Catalytic Logspace ($\mathsf{CL}$) in Polynomial Time ($\mathsf{P}$).

Introduction

In the standard model of space-bounded computation, such as the class $\mathsf{FL}$ (functions computable in logarithmic space), the hardware setup is strictly partitioned: a read-only input tape, a write-only output tape, and a small read-write worktape. While this model is mathematically elegant, it diverges from real-world software engineering. In practice, memory-constrained environments frequently utilize "in-place" algorithms—such as heapsort or in-place Fast Fourier Transforms—that mutate the input data directly to produce the output, using minimal auxiliary memory.

This research asks whether this practical constraint alters the fundamental power of the complexity class. By defining $\mathsf{inplaceFL}$ (in-place logspace) and $\mathsf{inplaceFCL}$ (in-place catalytic logspace), we map the theoretical boundaries of algorithms that treat their input as their primary workspace.

Formalizing In-Place Computation

The authors define an in-place machine as a Turing machine where the input tape is read-write, and the final contents of this tape constitute the output. This shift allows the machine to use the $n$ bits of input as additional work space.

The Power of "Useless" Input

A primary finding is the unconditional separation: $\mathsf{inplaceFL} \not\subseteq \mathsf{FL}$. This occurs because an in-place algorithm can hijack parts of the input it no longer needs, effectively treating the input tape as a linear-sized worktape. Consequently, $\mathsf{inplaceFL}$ can compute certain functions that would require linear space in the standard read-only model. However, proving the reverse—that $\mathsf{FL} \subseteq \mathsf{inplaceFL}$—is surprisingly difficult. The authors show that $\mathsf{FL} \subseteq \mathsf{inplaceFL}^{\mathsf{S_2P}}$, implying that an unconditional proof of separation would require a major breakthrough in complexity theory, such as proving $\mathsf{SAT} \notin \mathsf{L}$.

Algorithmic Boundaries and Reversibility

Despite the extra space, in-place computation faces unique hurdles, particularly regarding reversibility and data dependency.

The Curse of Reversibility

Because in-place machines have highly constrained memory states, any algorithm that computes a permutation (a bijective mapping) is relatively easy to invert. The authors use configuration graph analysis to show that if secure cryptography—specifically one-way permutations—exists, then those permutations cannot be computed in $\mathsf{inplaceFL}$. This suggests that basic tasks like integer multiplication may actually be impossible to perform in-place under standard cryptographic assumptions.

Circuit Evaluation

The paper explores the limits of in-place logic by evaluating shallow circuits ($\mathsf{NC}^0$). The results reveal a sharp threshold based on input dependency:

  • $\mathsf{NC}^0_2$: Circuits where each output bit depends on at most 2 input bits can be evaluated in-place. This is achieved by carefully sequencing the computation to ensure input bits are only overwritten after their downstream logic gates are satisfied.
  • $\mathsf{NC}^0_4$: Conversely, evaluating circuits with 4-bit dependencies is likely impossible in $\mathsf{inplaceFL}$ under conditional lower bounds.

Catalytic Computing and the Oracle Barrier

One of the most significant contributions of this work relates to "Catalytic Space." In this model, a machine has access to a large auxiliary tape (the "catalyst") filled with arbitrary data. The machine can use this space freely, provided it restores the catalyst to its exact original state upon completion.

The authors use their insights into in-place computation to address the long-standing question: Is $\mathsf{CL} \subseteq \mathsf{P}$? By constructing an oracle $O$ such that $\mathsf{CL}^O = \mathsf{EXP}^O$, they prove that any proof of $\mathsf{CL} \subseteq \mathsf{P}$ must be non-relativizing. This establishes a major theoretical barrier, showing that standard simulation techniques are insufficient to resolve the relationship between catalytic space and polynomial time.

Conclusion

This work bridges the gap between the practical reality of in-place algorithms and the abstract world of structural complexity. By formalizing $\mathsf{inplaceFL}$, the authors reveal a class that is simultaneously more powerful than standard logspace (due to input hijacking) and more restricted (due to reversibility constraints). The discovery of the oracle barrier for Catalytic Logspace provides a new roadmap for future research, highlighting the necessity of non-relativizing techniques in solving the field's most persistent questions.

Summary updated

BibTeX
@misc{cook2025structure,
  author = {James Cook and Surendra Ghentiyala and Ian Mertz and Edward Pyne and Nathan S. Sheffield},
  title = {{The Structure of In-Place Space-Bounded Computation}},
  year = {2025},
  eprint = {2510.12005},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.12005},
}
Figure