New Rust AI Prototype Beats Transformer in Efficiency

A non-transformer model achieves faster training and 12x quicker CPU inference through recurrent state-space learning.

GeoDetect PipelineSeptember 30, 2026
Share
Article cover image

Overview

A new open-source prototype built in Rust is challenging the dominance of transformer architectures in artificial intelligence. Titled PSSA (Plastic State-Space Architecture), the project by developer Sparticle62ops demonstrates that recurrent models can significantly outperform transformers in training efficiency and inference speed when scaled to smaller parameter counts.

The repository, currently marked as public, houses a language model that diverges sharply from industry-standard designs. Instead of relying on attention mechanisms, PSSA processes text sequentially through a recurrent state-space layer. It combines this with an episodic memory bank and dynamic weight updates to achieve results that the developer argues were previously thought exclusive to larger, more compute-hungry systems.

Architectural Innovations

The core distinction between PSSA and traditional transformers lies in how they process information. Standard transformers calculate scores for every pair of tokens in a sequence, resulting in computational costs that grow quadratically with context length. This means the model effectively re-reads its entire history at every generation step.

PSSA avoids this bottleneck by carrying a fixed-size state through a single left-to-right pass. Its design rests on four technical pillars:

  • Recurrent State-Space Core: Learned continuous state matrices store information compactly, eliminating the need for full-context attention.
  • Episodic Memory Bank: The model utilizes 512 slots for retrieval, employing hyperbolic geometry to look up relevant data during inference without re-processing input.
  • Plastic Weights: Fast weight updates allow the model to reinforce successful patterns immediately, while a refractory gate prevents contradictory inputs from destabilizing recent learning.
  • Closed-Form Consolidation: A ridge-regression step periodically folds these fast updates back into the base transition matrix, a process analogous to sleep-based memory consolidation in biological systems.

Notably, the entire stack is written from scratch in Rust. It contains no dependencies on major machine learning frameworks like PyTorch or TensorFlow, relying instead on hand-written linear algebra with a CUDA path for training and a scalar CPU reference for verification.

Performance Benchmarks

To validate the architecture, the developer conducted controlled experiments comparing PSSA against a standard transformer. Both models shared identical parameters, tokenizers, optimizer schedules, and random seeds. They were trained on approximately 12.7 million tokens of cleaned WikiText-103 data.

The results showed a decisive lead for the state-space approach. PSSA achieved a final training cross-entropy of 3.98, compared to 4.43 for the transformer. This gap of 0.45 nats translates to a perplexity of 53.7 versus 83.7. The learning curves never crossed, indicating that PSSA reached superior performance thresholds after roughly 2 million tokens, while the transformer continued to lag behind even after exhausting the entire dataset.

Generalization capabilities were tested on a held-out slice of 198,939 tokens from a part of the corpus neither model encountered during training. PSSA maintained its advantage, finishing with a cross-entropy of 3.997 against the transformer's 4.429. The next-token accuracy also favored PSSA at 24.1% compared to the transformer's 18.0%.

Inference speed tests revealed an even more dramatic disparity. When generating 200 tokens on identical CPU hardware, PSSA completed the task in 226 milliseconds. The transformer required 2,735 milliseconds, making it approximately twelve times slower. This efficiency stems directly from the recurrent nature of the architecture, where the cost per token remains constant regardless of sequence length.

Research Scope and Limitations

Despite the promising metrics, the project is explicitly framed as a research prototype rather than a commercial contender. The models evaluated contain only 1.5 million parameters, a fraction of the scale used by modern large language models. At this size, text quality is rudimentary; generated sentences often suffer from grammatical incoherence, such as "a barget of the Prian Academy" in PSSA outputs.

The developer cautions that while the CPU-to-CPU speed comparison is fair, training throughput numbers found in the repository are not hardware-matched and should not be interpreted as architectural victories alone. Furthermore, two critical experiments remain incomplete: assessing how well earlier skills are retained after switching corpora, and determining the specific contribution of the memory bank through ablation studies.

Future Directions

The immediate hurdle for PSSA is computational resources. The current results were derived using a free hosted notebook with an entry-level GPU, where sessions were frequently interrupted by time limits. Consequently, the project relies on community support to explore whether the efficiency gap persists at larger scales.

The developer is seeking compute grants and sponsorship specifically to enable longer training runs on hardware with substantial VRAM. The primary goal is to answer whether the learned efficiency holds when parameters and data are increased by orders of magnitude. Until then, PSSA stands as a compelling proof-of-concept that alternative architectures to the transformer may offer superior resource efficiency, particularly for edge deployment and specialized applications.

Developers interested in exploring the codebase can clone the repository and build the project locally using Cargo. The interface provides a home screen listing available commands and checkpoints, allowing users to experiment with the model on their own hardware configurations.

Share

Sources

Tools mentioned