PCR + Complex Screening Hybrid β Path-X (Long Range Arena)
A phase-coherent linear recurrence (PCR) model β a complex-diagonal LRU/S4D-style recurrence β combined with a non-competing complex screening attention module, trained on Path-X (Long Range Arena), the 16,384-token binary sequence-connectivity task.
- Task: raw 1D token sequence in, single binary label out. No 2D structure, no auxiliary supervision, no handcrafted features β the same rule-compliant setting as S4/S5/LRU/MEGA on the LRA leaderboard.
- Test accuracy: 0.9350 (n=20,000, full deterministic sweep)
- PCR-only ablation (no screening attention): 0.9254 Β± 0.0028 (N=2 seeds)
| Model | Path-X (test) |
|---|---|
| S4D-Real (ΞΈ=0, no phase) | chance |
| S4D-LegS | 91.9 |
| PCR (this repo, screening ablated) | 92.54 Β± 0.28 |
| LRU | 94.2 |
| MEGA-chunk | 93.81 |
| PCR + screening hybrid (this repo) | 93.50 |
| S4 | 96.35 |
| MEGA | 97.98 |
| S5 | 98.58 |
Architecture
tokens (B, 16384)
-> linear encoder (scalar pixel -> d_model)
-> 6 x PCRBlock:
[BatchNorm -> PCRLayer (complex diagonal LTI, bidirectional, FFT-conv)
-> half-GLU -> residual]
with ComplexScreenBlock inserted after layers 2 and 4:
[chunked (1024) non-competing complex screening attention:
L2-normalized complex q,k -> trim-and-square gate
(no softmax, no row-normalization) -> TanhNorm -> modReLU gate
-> complex Hadamard -> residual]
-> LayerNorm -> mean-pool -> linear head -> 2-class logits
Design principle (Phase-Coherent Transformer / PCT) β see Complex-Valued Phase-Coherent Transformer, Hioki, arXiv:2605.10123: complex eigenvalues implement input-independent phase rotation as coherent long-range transport (a continuous analogue of RoPE); all input-dependent gating, normalization, and readout stay real-valued. The screening attention used here is the PCT paper's non-competing gate β a real-valued, element-independent, smooth gate on L2-normalized complex query-key similarities in place of softmax β applied on top of the PCR transport backbone. ~94% of parameters are complex-valued (100% within the recurrence and attention score/value paths; the ~6% real-valued mass is the input-dependent gates, norms, and readout β kept real by design, not by omission).
Full experimental record, ablations (phase-necessity via a real-eigenvalue control, phase-bandwidth-vs-generalization sweep), and the training/eval harness are described in the source repository (see below).
Files
pytorch_model.ptβstate_dictonly (2,013,716 tensor elements across 116 parameter tensors)config.jsonβ architecture + optimizer config used for this run
Usage
Load with the PCRClassifier / PCRBlock / ComplexScreenBlock definitions
from the source training script (train_with_checkpoint.py, cell="pcr"
with pcr_config matching config.json's pcr_config field). This repo
ships raw weights, not a packaged Python module β see the config for exact
hyperparameters to reconstruct the module before calling
model.load_state_dict(torch.load("pytorch_model.pt")).
Training details
- Optimizer: AdamW, base lr 4.5e-4, recurrence/B/C params at 1/3 lr with no weight decay, cosine-hold-then-linear-decay schedule (decay starts at step 200,000), 250,000 steps total, batch size 32.
- Eigenvalue init: ring
|Ξ»| β [0.999, 0.9999], phase restricted toΞΈ β [0, Ο/10]β the phase bandwidth was found necessary for generalization (a narrower[0, Ο/50]band memorizes train perfectly but fails to generalize; a real-only ablation, ΞΈ=0, fails to learn at all). - No dropout, weight decay 0.05, gradient clip 1.0.
Caveats
- Single seed for the hybrid checkpoint in this repo (N=1); the PCR-only ablation number (92.54 Β± 0.28) is averaged over 2 seeds.
- Not benchmarked beyond Path-X, LRA Text, and LRA Image; no task-specific hyperparameter tuning was performed for those two auxiliary benchmarks.
- Downloads last month
- 20