Papers
Topics
Authors
Recent
Search
2000 character limit reached

Parcae: Looped ML & Categorical Semantics

Updated 2 July 2026
  • Parcae is a family of systems that spans looped language models, categorical automata semantics, and liveput-optimized distributed training.
  • It implements a recurrent block within Transformer layers to scale computational use without increasing memory or parameter overhead.
  • It leverages formal stability constraints and proactive scheduling to achieve significant performance gains in neural network training.

Parcae denotes a family of modern concepts and systems distinguished in machine learning, categorical semantics, and distributed deep learning: (1) stable looped language architectures enabling efficient scaling of neural networks; (2) categorical models encoding parity acceptance conditions via alternating fixed points; and (3) a system for proactively optimizing DNN training throughput on preemptible cloud instances. Each instantiation advances its respective domain through novel algorithmic strategies, mathematical formalisms, and empirical performance gains.

1. Parcae: Stable Looped LLM Architecture

Parcae redefines the scaling laws of LLMs by employing looped architectures, in contrast to conventional fixed-depth Transformers. Instead of linearly scaling depth (and parameter count) to increase training FLOPs, Parcae ā€œloopsā€ a sub-stack of Transformer layers (the recurrent block RR) for TT iterations. This approach scales computational usage without a commensurate increase in memory or parameter footprint (Prairie et al., 14 Apr 2026).

Architectural Organization

  • Prelude PP: Embeds input sequence s∈Vns \in V^n via P(s)∈RnƗdh\mathcal{P}(s)\in\mathbb{R}^{n\times d_h}.
  • Recurrent Block RR: LRL_\mathcal{R} Transformer layers executed TT times, updating hidden state hth_t.
  • Coda CC: Projects the terminal state TT0 to vocabulary logits.
  • Forward Pass:
  1. TT1
  2. TT2
  3. Loop: TT3
  4. TT4

Residual Stream and Dynamical System

The update reduces to a nonlinear, time-variant dynamical system:

TT5

bridging a formal link between looped neural operations and iterative dynamical systems.

2. Stability Analysis of Looped Architectures

A key challenge in looped architectures is stability: unconstrained input injection matrices TT6 can yield spectral norms TT7, causing residual explosion and divergence.

Negative-Diagonal Parameterization

Parcae enforces stability by parameterizing TT8 as a negative diagonal:

TT9

Discretization yields:

PP0

ensuring PP1 and contractive updates at each loop iteration.

Empirical Stability

Empirical results demonstrate up to PP2 lower validation perplexity relative to previous looped models. Normalizing the injected embedding PP3 via LayerNorm is critical to prevent loss spikes during late training stages. Sampling per-sequence loop depths from a Poisson distribution further stabilizes training by reducing variance and eliminating spikes.

3. Scaling Laws for Training and Inference

Parcae introduces looping as an independent scaling axis PP4 alongside parameter count PP5 and data size PP6, enabling predictable, power-law scaling at fixed FLOP budget:

PP7

Optimal training, given fixed compute PP8, is achieved by increasing loop count and data size in tandem. Validation loss at inference decays exponentially with loop count PP9:

s∈Vns \in V^n0

Establishing a strict compute–quality tradeoff curve for test-time scaling.

Empirical Quality

At 1.3B parameters, Parcae exceeds a parameter- and data-matched Transformer baseline by s∈Vns \in V^n1 (CORE) and s∈Vns \in V^n2 (CORE-Extended), reaching up to s∈Vns \in V^n3 of the performance of a Transformer double its size.

4. Parcae in Category Theory: Alternating Fixed Points and Parity Conditions

In categorical semantics, ā€œParcaeā€ formalizes parity acceptance via alternating fixed points of functors (Urabe et al., 2018). This construction enables parity-decorated data types and a coalgebraic trace semantics encoding acceptance conditions for infinite-state systems.

Alternating Fixed Points

Given a functor s∈Vns \in V^n4 with both initial algebras and final coalgebras:

  • s∈Vns \in V^n5 (inductive step): Carrier of the initial algebra s∈Vns \in V^n6.
  • s∈Vns \in V^n7 (coinductive step): Carrier of the final coalgebra s∈Vns \in V^n8. Layers are built by alternately composing s∈Vns \in V^n9 and P(s)∈RnƗdh\mathcal{P}(s)\in\mathbb{R}^{n\times d_h}0, yielding functors P(s)∈RnƗdh\mathcal{P}(s)\in\mathbb{R}^{n\times d_h}1 for P(s)∈RnƗdh\mathcal{P}(s)\in\mathbb{R}^{n\times d_h}2 that switch between induction and coinduction by parity.

Parity Trace Semantics

The main theorem asserts that flattening the decorated trace semantics P(s)∈RnƗdh\mathcal{P}(s)\in\mathbb{R}^{n\times d_h}3 recovers the standard coalgebraic trace semantics via canonical projection:

P(s)∈RnƗdh\mathcal{P}(s)\in\mathbb{R}^{n\times d_h}4

This construction substantiates the separation of system ā€œbehaviorā€ from state-level automaton definitions in parity acceptance.

5. Parcae for Liveput-Optimized Distributed DNN Training

Parcae also denotes a system for robust DNN training on preemptible cloud instances, maximizing expected throughput—termed liveput—under arbitrary preemption patterns (Duan et al., 2024). In contrast to traditional reactive methods, Parcae proactively adapts training parallelism ahead of predicted preemptions.

System Overview

  • ParcaeScheduler: Runs on a stable node; collects availability signals, forecasts future GPU counts via ARIMA, and solves the liveput optimization problem.
  • ParcaeAgent: Executes model training, migration, and reorganizations as instructed.
  • ParcaePS: A checkpointing fallback, only used for full pipeline stage loss.

Liveput Metric

Liveput quantifies the expected throughput of a (D,P)-parallel configuration given the preemption pattern distribution P(s)∈RnƗdh\mathcal{P}(s)\in\mathbb{R}^{n\times d_h}5. The liveput optimizer selects sequences of training configurations over planning windows to maximize cumulative liveput, accounting for migration overheads.

Lightweight Live Migration

Migration is structured in three levels:

  • Intra-stage: Rewires communication with zero parameter movement if replicated.
  • Inter-stage: Transfers stage parameters via GPU peer-to-peer.
  • Pipeline migration: Full rebalance with model partition broadcasts, amortized by infrequency.

Empirical Performance

In dense preemption scenarios (e.g., on GPT-3), Parcae surpasses Varuna by up to P(s)∈RnƗdh\mathcal{P}(s)\in\mathbb{R}^{n\times d_h}6 and Bamboo by P(s)∈RnƗdh\mathcal{P}(s)\in\mathbb{R}^{n\times d_h}7, delivers P(s)∈RnƗdh\mathcal{P}(s)\in\mathbb{R}^{n\times d_h}8 average improvement in throughput over Varuna, and achieves P(s)∈RnƗdh\mathcal{P}(s)\in\mathbb{R}^{n\times d_h}9 of clairvoyant-oracle liveput. Spot-instance costs under Parcae average RR0 lower than on-demand training.

6. Implementation Guidelines and Best Practices

For the looped architecture:

  • Choose loop count RR1 according to RR2 for training FLOP budget RR3.
  • Normalize input injection RR4 using LayerNorm.
  • Constrain injection matrices to ensure RR5 through negative-diagonal parameterization.
  • Sample per-sequence loop depths to reduce gradient variance and loss spikes.
  • For inference, apply the exponential law to select RR6 for compute–quality balancing.

For the liveput-optimized training system:

  • Employ ARIMA models for availability prediction.
  • Solve the DP-based liveput maximization problem, considering both performance and migration cost.
  • Apply migration strategies proactively based on predictive scheduling.

7. Summary and Cross-Disciplinary Connections

Parcae, across its architectural, categorical, and systems-level instantiations, embodies advances in stability theory for neural network architectures, categorical formalization of automata-theoretic concepts, and robust large-scale model training under resource uncertainty. The common thread is a principled approach to optimization—whether spectral norm constraints, functorial alternation, or liveput maximization—anchored in formal analysis and empirical validation (Prairie et al., 14 Apr 2026, Urabe et al., 2018, Duan et al., 2024).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Parcae.