AI Co-Written

PhaseSAE: Time-Division Multiplexed Dictionary Learning for Memory-Efficient Mechanistic Interpretability

PhaseSAE TinyStories-1M Head-to-Head Benchmark Gauntlet
ShareX / TwitterLinkedInHN
Authorship & AI Collaboration Qualifier

Co-written with agentic AI assistance (Antigravity & Gemini) for mathematical formalization, Triton roofline modeling, and technical drafting. The underlying TDM architecture, empirical benchmark gauntlet on TinyStories-1M, and final conclusions were conceived, verified, and authored by Conner Kupferberg.

Conner Kupferberg · September 2026 Classification: Deep Learning Architecture · Mechanistic Interpretability · Hardware Systems Optimization Canonical Reference Codebase: connerkup/phase-sae Upstream Distribution Fork: connerkup/SAELens (feat/phase-multiplexed-sae) Canonical Paper & Interactive Press Suite: thalamocorticalsystems.com/papers/phase-sae

> 🏛️ Official Publication Notice: The canonical research paper, Triton GPU rooflines, interactive figures, and downloadable benchmark datasets have been migrated to Conner Kupferberg’s Frontier AI lab: [Thalamocortical Systems](https://www.thalamocorticalsystems.com/papers/phase-sae).

Executive Summary

Sparse Autoencoders (SAEs) resolve polysemanticity in Large Language Models (LLMs) by projecting dense residual activations into high-dimensional sparse latent spaces (). However, all prevailing SAE architectures (Top-, Gated, JumpReLU) treat dictionary learning as an instantaneous spatial compression problem: evaluating the entire dictionary in a single forward pass. During autoregressive generation (), this architecture hits an intractable memory-bandwidth wall: dragging gigabytes of dictionary weights across the memory bus at an arithmetic intensity of only 0.5 FLOP/byte, leaving GPU Tensor Cores >99% idle. PhaseSAE introduces Time-Division Multiplexing (TDM) to dictionary learning. By partitioning the dictionary tensor into phase tiles and evaluating cascaded micro-ticks against progressive residual errors, PhaseSAE achieves three foundational results:

Evaluation DimensionMonolithic Top-K BaselinePhaseSAE (P=4)Impact / Advantage
Peak Parameter Memory Slice1.0× (Monolithic)0.25× (Strict 1/P)4.0× memory bandwidth reduction; fits on-chip SRAM
Downstream CE Loss Recovery24.42%40.51%+16.09 pp (+65.9% relative recovery gain)
Explained Variance (R²)0.17580.2913+0.1155 (+65.7% relative variance explained)
MSE Reconstruction Error0.20230.1740-14.0% reconstruction error reduction
In-Register Triton Kernel Throughput40.28 ms (B=16)41.73 ms (Fused TDM)Matches monolithic speed while saving 75% peak memory
Inference FlexibilityFixed Static CostAnytime Early-ExitDynamic 7–23% latency reduction on low-entropy tokens
PhaseSAE Time-Division Multiplexed Residual Cascade Architecture
Figure 1: Time-Division Multiplexed dictionary partitioning into P phase tiles with cascaded residual micro-ticks and strict 1/P peak memory footprint.

1. The Memory-Bandwidth Wall

In autoregressive generation (), the arithmetic intensity (FLOPs per byte transferred) of an SAE forward pass is fundamentally bounded:

On an NVIDIA H100 GPU (3,350 GB/s HBM3 bandwidth, 1,979 TFLOP/s FP16 Tensor Core throughput), saturating compute requires an arithmetic intensity of . At 0.5 FLOP/byte, execution is >99% memory-bound.

Hardware LayerMonolithic Top-K (70B Model, d_sae=262k)PhaseSAE (P=4 Tiles)Hardware Consequence
Per-Layer Weight Footprint8.59 GB / layer2.15 GB / phase slice4× reduction in peak active parameter transfer
Total Model Footprint (80 Layers)687 GB VRAM171.8 GB active streaming footprintBrings multi-layer steering within single-node memory
SRAM Cache UtilizationEvicted / Continuous DRAM ThrashingPinned in L2 / On-Chip SRAMResiduals retained in registers between micro-ticks
Compute Core Saturation<1% Compute EfficiencyStreams parameter slices into active executionEliminates memory-bus stalls

2. PhaseSAE: Time-Division Multiplexed Formulation

PhaseSAE partitions the latent dimension into distinct phase tiles (). At micro-tick , the network processes only the parameter slice and against the progressive residual error vector :

In standard Top- SAEs, selecting all latents simultaneously causes greedy feature competition: latents with overlapping decoder directions compete destructively. In PhaseSAE, Phase 0 isolates broad high-variance features; subsequent phases only observe residual error , forcing latents to span the orthogonal complement of previously explained variance. Empirical cross-phase decoder cosine similarity confirms near-orthogonal alignment ().

3. Hardware Roofline & Fused Triton Kernel

To avoid the latency penalty of sequential PyTorch kernel launches, PhaseSAE implements a custom Fused TDM Triton GPU Kernel. Residual vectors are pinned directly in GPU registers, eliminating intermediate DRAM roundtrips across all micro-ticks:

Batch Size BMonolithic Top-K BaselineUnfused PyTorch PhaseSAEFused TDM Triton KernelFused vs Unfused SpeedupPeak Active Param Slice
17.67 ms9.37 ms10.39 ms0.90×18.0 MB (4.0× Reduction)
417.95 ms22.85 ms20.07 ms1.14×18.0 MB (4.0× Reduction)
1640.28 ms78.61 ms41.73 ms1.88×18.0 MB (4.0× Reduction)
64103.09 ms155.00 ms109.89 ms1.41×18.0 MB (4.0× Reduction)
Memory Bandwidth Wall vs Fused Triton Kernel
Figure 2: Memory-bandwidth bottleneck (0.5 FLOP/byte) vs in-register residual pinning via fused Triton GPU kernel.

At , the Fused TDM Triton kernel matches monolithic wall-clock latency (41.7 ms vs 40.3 ms) while maintaining a strict 4× reduction in peak parameter bandwidth and achieving +65.9% higher downstream cross-entropy recovery.

4. Downstream LM Benchmark: TinyStories-1M

We evaluated PhaseSAE head-to-head against standard Top- SAEs directly on activations from TinyStories-1M (blocks.0.hook_resid_post, , , target , 16,000 tokens of c4-10k) using the official sae_lens.evals evaluation gauntlet:

MetricTop-K BaselinePhaseSAE (P=4)Delta / Relative Improvement
Downstream CE Loss Recovered24.42%40.51%+16.09 pp (+65.9% relative gain)
Explained Variance (R²)0.17580.2913+0.1155 (+65.7% relative gain)
MSE Reconstruction Error0.20230.1740-14.0% error reduction
Active Latents (L₀)16.0016.00Identical sparsity budget
Peak Parameter Slice0.0625 MB0.0156 MBStrict 1/4 (25%) bandwidth footprint
Training Time (16k tokens)4.23s5.37sNegligible training overhead
PhaseSAE vs Top-K TinyStories-1M Head-to-Head Benchmark
Figure 3: TinyStories-1M empirical evaluation: +65.9% relative Cross-Entropy recovery and +65.7% Explained Variance at identical L0=16.

4.1 Pareto Frontier Sweep

To confirm that PhaseSAE's dominance is structural across sparsity regimes, we evaluated both architectures across varying sparsity budgets :

Target KArchitectureCE Loss Recovery (%)Explained Variance (R²)MSE ErrorPeak Param Slice
8Top-K Baseline-1.16%0.07090.22810.0625 MB (1.0×)
8PhaseSAE (P=4)+5.46%0.10540.21960.0156 MB (0.25×)
16Top-K Baseline2.37%0.13220.21300.0625 MB (1.0×)
16PhaseSAE (P=4)44.52%0.27170.17880.0156 MB (0.25×)
24Top-K Baseline38.61%0.26620.18010.0625 MB (1.0×)
24PhaseSAE (P=4)58.10%0.39740.14790.0156 MB (0.25×)

Pareto Invariant: PhaseSAE strictly dominates monolithic Top- across every operating regime, achieving higher downstream fidelity at (44.52% CE recovery) than baseline Top- achieves even at (38.61%), with 4× lower peak parameter bandwidth.

4.2 Optimization Dynamics & Residual Contraction

Gradient backpropagation and loss contraction across 200 optimization steps:

Optimization StepMSE LossL₂ Residual NormActive Latents L₀Loss Contraction
039.8586.12116.0Baseline
502.4621.50216.0-93.8%
1000.8050.86916.0-98.0%
1500.5100.69016.0-98.7%
1990.3820.59616.0-99.0% total reduction

Hierarchical residual contraction across progressive micro-ticks on 256 unseen validation vectors:

Micro-Tick StageResidual Norm ‖r⁽ᵖ⁾‖₂Marginal ReductionCumulative Error Reduction
Input (x - b_dec)6.1360—Baseline (0.0%)
Phase 0 (Tick 1)3.590141.5%41.5%
Phase 1 (Tick 2)1.779750.4%71.0%
Phase 2 (Tick 3)0.979844.9%84.0%
Phase 3 (Tick 4)0.583540.4%90.5% cumulative reduction

5. The Anytime SAE: Dynamic Token Early-Exit

Because residual errors contract monotonically at each micro-tick, PhaseSAE natively enables Adaptive Early-Exit Inference: terminating the forward pass once :

Token Complexity ClassExemplar TokensInference Routing PathPhases EvaluatedCompute / Memory Saved
Low EntropyPunctuation, whitespace, "The"Phase 0 → Early Exit (Residual < 5%)1 of 4 phases75% reduction
Medium EntropyCommon nouns, "president"Phase 0 → Phase 1 → Early Exit2 of 4 phases50% reduction
High EntropyDomain jargon, "quantum"Full Cascade (Phases 0 through 3)4 of 4 phasesFull resolution (100%)

Empirical adaptive exit performance across varying thresholds :

Exit Threshold τExplained Variance (R²)MSE ErrorAvg Phases / TokenEffective Speedup
None (Full P=4)0.30140.002914.001.00× (Baseline)
0.700.18310.003403.251.23× speedup
0.650.23930.003163.561.12× speedup
0.600.27150.003033.751.07× speedup

6. Implementation & Framework Integration

PhaseSAE is implemented as both a standalone PyTorch reference library (connerkup/phase-sae) and a fully registered upstream architecture within sae_lens (feat/phase-multiplexed-sae):

python
from phase_sae import PhaseMultiplexedSAE, PhaseSAEConfig, AnytimeSAE

# 1. Initialize PhaseSAE (P=4 phases, k=4 per phase -> total k=16)
cfg = PhaseSAEConfig(d_in=768, d_sae=12288, num_phases=4, k_per_phase=4)
sae = PhaseMultiplexedSAE(cfg)

# 2. Forward pass with in-register residual streaming
reconstruction, feature_acts = sae(x)

# 3. Stream micro-ticks for 1/P memory consumption
for phase_idx, acts_p, recon_p, residual in sae.stream_phase_ticks(x):
    print(f"Phase {phase_idx}: residual norm = {residual.norm(dim=-1).mean():.4f}")

# 4. Adaptive early-exit under compute budget
anytime = AnytimeSAE(sae)
out = anytime.run_under_budget(x, max_phases=2, exit_threshold=0.2)
print(f"Exited after {out.phases_executed} phases (early_exit={out.early_exited})")

Test Matrix & CI Status: • tests/saes/test_phase_multiplexed_sae.py: 8/8 tests passed in 0.19s. • tests/test_llm_sae_training_runner.py: 2/2 tests passed in 8.89s. • Standalone Triton & Anytime test suite: 6/6 tests passed. • Regression suite across Gated and JumpReLU SAEs: 51/51 passed with zero regressions.

7. Research Brief & Press Package

For journalists, researchers, and engineers reviewing or covering PhaseSAE, a complete media and data package is available for download:

Asset DescriptionFormatFile SizeDirect Download Link
Complete Press Package (.ZIP Bundle)ZIP Archive603 KBDownload phasesae-press-package.zip
Architecture Diagram (Figure 1)SVG Vector / PNG 2x12 KB / 238 KBSVG Vector · 2x Retina PNG
Memory-Bandwidth Wall Card (Figure 2)SVG Vector / PNG 2x5 KB / 200 KBSVG Vector · 2x Retina PNG
TinyStories-1M Benchmark Card (Figure 3)SVG Vector / PNG 2x6 KB / 186 KBSVG Vector · 2x Retina PNG
Raw Benchmark Telemetry & Pareto DataJSON3.4 KBDownload phasesae-benchmarks.json
Executive One-Pager BriefMarkdown (.md)1.3 KBDownload PhaseSAE-Executive-Brief.md
Full Technical WhitepaperMarkdown (.md)13 KBDownload PhaseSAE-Whitepaper.md
BibTeX CitationBibTeX (.bib)363 BDownload phasesae.bib

Citation & Attribution

bibtex
@article{kupferberg2026phasesae,
  title={PhaseSAE: Time-Division Multiplexed Dictionary Learning for Memory-Efficient Mechanistic Interpretability},
  author={Kupferberg, Conner},
  year={2026},
  url={https://github.com/connerkup/phase-sae},
  note={Canonical Implementation: github.com/connerkup/phase-sae; Upstream Fork: github.com/connerkup/SAELens}
}
Quarterly Systems Memorandum
Low Frequency · Institutional Depth

Private Technical Dispatches & Architecture Releases

Zero marketing noise. Four issues per year: deep-dive empirical benchmarks on the Phase Substrate (PhaseAttention & PhaseSAE), reproducible systems teardowns, and decision infrastructure architectures.

Strict privacy. No newsletters or third-party sharing. 4 dispatches/year. Unsubscribe anytime.

Share this research

Pass along this work on time-division multiplexed dictionary learning and hardware roofline dynamics.

Need a Decision Engine for your business? Let's talk.

More essays

All essays →