---
title: Phase-Coherent Transformer (PCT)
url: https://www.emergentmind.com/topics/phase-coherent-transformer-pct
type: topic
---

# Phase-Coherent Transformer (PCT)

Phase-Coherent Transformer (PCT) denotes a family of transformer formulations organized around the preservation of phase relations during computation. In the most direct usage, PCT is the complex-valued architecture introduced in "Complex-Valued Phase-Coherent Transformer," which replaces row-normalized softmax attention with token-non-competing attention generated by a smooth real gate applied to L2-normalized complex query-key similarities [2605.10123]. In adjacent usage, the label is also mapped to the phase-native Phasor Transformer and its stacked Large Phasor Model (LPM), which represent sequence states on the unit circle $S^1$ and replace explicit attention maps with deterministic Discrete Fourier Transform (DFT) token coupling [2603.17433]; to a Gated Transformer-XL (GTrXL) reinforcement-learning policy that maintains coherent memory across mission phases in spacecraft trajectory optimization [2511.11402]; and, in a circuit-theoretic sense, to the Resonant Transformer Router (RTR), a transformer-based lossless crossover whose low-frequency and high-frequency branches are phase-aligned and linearly complementary [2509.08272]. Across these usages, phase coherence refers to preserving relative phase, temporal continuity across regime changes, or constructive phase alignment under recombination.

## 1. Terminology and scope

The term does not denote a single universally standardized architecture. Its most specific meaning is the complex-valued attention mechanism of the 2026 PCT paper, but other recent works use the phrase interpretively to describe architectures whose central inductive bias is coherent phase evolution rather than conventional token competition or manually segmented control logic.

| Usage of PCT | Defining mechanism | Representative source |
|---|---|---|
| Complex-valued PCT | Smooth real gate on L2-normalized complex similarities; token-non-competing attention | [2605.10123] |
| Phase-native PCT | $S^1$ states with trainable phase shifts and DFT token coupling | [2603.17433] |
| Control-oriented PCT | GTrXL-PPO with segment-level recurrence across mission phases | [2511.11402] |
| Circuit-level PCT | Complementary LF/HF transformer crossover with matched phase response | [2509.08272] |

This multiplicity of usage is important for interpretation. A common misconception is that PCT necessarily refers to a complex-valued neural attention layer. The literature summarized here shows a broader pattern: the phrase is also applied to phase-native spectral sequence models, to phase-coherent policy memory in multi-regime control, and to transformer hardware whose branches exhibit identical phase kernels. A plausible implication is that "phase-coherent transformer" functions partly as a design principle and partly as a specific model name, depending on context.

## 2. Complex-valued attention and the formal PCT architecture

In its canonical neural-network form, PCT is a complex-valued Transformer whose attention mechanism is explicitly designed to preserve phase information across layers. The motivation is that softmax attention introduces row-wise normalization, forcing weights within each query row to sum to one and thereby creating token competition. In complex-valued models, where values carry phase information, this competition can suppress negatively aligned components and interfere with phase superposition. PCT therefore replaces softmax with a smooth, real, element-independent gate applied to normalized complex similarities [2605.10123].

The token representation is complex: $x_i \in \mathbb{C}^d$, with complex projections
$$
q_i = W_q x_i,\quad k_j = W_k x_j,\quad v_j = W_v x_j,
$$
where $W_q, W_k, W_v \in \mathbb{C}^{d\times d}$. Queries and keys are L2-normalized at the vector level,
$$
\tilde q_i = \frac{q_i}{\|q_i\|_2},\qquad \tilde k_j = \frac{k_j}{\|k_j\|_2},
$$
and scored using the real part of the Hermitian inner product,
$$
s_{ij} = \Re\left(\tilde q_i^{\ast\top} \tilde k_j\right)\sqrt{d}\in[-\sqrt{d},\sqrt{d}].
$$
Attention weights are then produced by
$$
\alpha_{ij} = \sigma(s_{ij}+b),
$$
where $\sigma$ is the logistic sigmoid and $b$ is initialized to $-\log N$. Aggregation is non-competing:
$$
y_i = W_o \sum_{j=1}^N \alpha_{ij} v_j.
$$
Because $\alpha_{ij}$ is real and the value path remains complex-linear, phases in $v_j$ are preserved and can superpose without a softmax denominator coupling tokens within a row.

The paper distinguishes two notions of coherence. L1, or per-layer phase coherence, requires that each attention layer preserve phase relationships without cross-token coupling from row normalization. L2, or all-layer cascade phase stability, requires that stacked layers preserve phase information without depth-dependent accumulation of noise. These properties are tied to four gate conditions: C1 real-valued output, C2 boundedness on the operating range $s\in[-\sqrt{d},\sqrt{d}]$, C3 smoothness with nonzero gradient on the operating range, and C4 element independence. Under C1 and C4, Theorem 1 states per-layer phase coherence; under L1, C2, C3, L2 normalization of $Q,K$, and a non-expansive Transformer substrate, Theorem 2 gives an $L$-independent Lipschitz bound for per-token phase perturbations [2605.10123].

Architecturally, PCT uses native complex linear layers for $Q$, $K$, $V$, and output, complex RMSNorm in pre-norm, ModReLU in the feedforward network, and rotary positional encodings applied to $Q$ and $K$ in every layer. Its computational complexity is identical in asymptotic time and space to softmax attention, namely $\mathcal{O}(N^2 d)$ for full attention. The novelty is therefore not subquadratic scaling but a different attention law: PCT replaces row-normalized token competition with token-non-competing gating while keeping the standard Transformer scaffold in complex arithmetic.

The comparison with other attention mechanisms is structurally precise. Softmax violates C4 because its denominator couples tokens. ReLU-like gates violate C3 because they have zero gradient for $s<0$ and delete anti-phase information. Unbounded gates violate C2 by amplifying per-layer effects excessively. PCT’s design is thus presented not as a heuristic but as an operating-range-constrained mechanism whose phase-preserving behavior is both mathematically characterized and experimentally stress-tested.

## 3. Phase-native sequence modeling on $S^1$: the Phasor Transformer and LPM

A distinct but related line of work realizes phase coherence by making phase itself the primary state variable. The Phasor Transformer represents token states on the unit-circle manifold
$$
S^1=\{z\in\mathbb{C}:|z|=1\},
$$
with a single token written as $z=e^{i\theta}$ and a sequence of length $N$ represented on the $N$-torus
$$
\mathbb{T}^N=\{z\in\mathbb{C}^N:|z_t|=1,\ t=1,\dots,N\}.
$$
Given an input window $x=(x_1,\dots,x_T)$, the model encodes bounded angles by
$$
\phi_t = \left(\frac{x_t}{\max|x|}\right)\cdot\left(\frac{\pi}{2}\right),
$$
and lifts them to phasors
$$
z_{\text{in}}=(e^{i\phi_1},\dots,e^{i\phi_T})^\top\in\mathbb{T}^T.
$$
This ensures unit-modulus coordinates at network input [2603.17433].

The core block combines trainable phase-shift gates with parameter-free DFT mixing. The trainable gates are diagonal unit-modulus rotations
$$
S(\theta)=\operatorname{diag}(e^{i\theta_1},\dots,e^{i\theta_T}),
$$
and the global mixer is the length-$T$ DFT
$$
X_k = \frac{1}{\sqrt{T}}\sum_{n=0}^{T-1} x_n e^{-i2\pi kn/T},\qquad k=0,\dots,T-1,
$$
implemented in $\mathcal{O}(T\log T)$ by FFT. A single block is
$$
B(\theta)=S(\theta_{\text{post}})\cdot F_T \cdot S(\theta_{\text{pre}}),
$$
so that, for a phasor state $z$, one obtains $H=B(\theta)z$. In angle form the trainable phase update is $\phi'_t=\phi_t+\Delta\phi_t$, and in complex form
$$
z'_t = z_t e^{i\psi_t},\qquad \frac{\partial z'_t}{\partial \psi_t}=i z'_t.
$$
Only the pre- and post-shifts are trainable, contributing $2T$ parameters per block.

The defining claim of this architecture is that it discards learned pairwise attention maps and replaces them with deterministic frequency-domain coupling. Because $F_T$ is parameter-free and unitary, it provides exact global coupling at $\mathcal{O}(T\log T)$ complexity and avoids explicit $T\times T$ attention maps. The paper explicitly contrasts this with conventional self-attention, which computes $\operatorname{Softmax}((QK^\top)/\sqrt{d_k})V$ and incurs $\mathcal{O}(T^2)$ pairwise interaction and attention-map storage. The Phasor Transformer therefore occupies a different efficiency-performance point: fewer trainable parameters, deterministic spectral mixing, and geometry-aligned phase computation rather than content-dependent pairwise scoring [2603.17433].

Deep composition is realized in the Large Phasor Model (LPM), which stacks $D$ such blocks and inserts an inter-block pull-back normalization
$$
\Phi_{\text{norm}}(\phi)=\arcsin(\sin\phi)\in[-\pi/2,\pi/2].
$$
This normalization re-folds raw angles into a bounded principal interval after intermediate states leave $\mathbb{T}^T$ under linear mixing. The resulting composition is
$$
z^{(\ell+1)} = S(\theta_{\text{post}}^{(\ell)})F_T S(\theta_{\text{pre}}^{(\ell)})z^{(\ell)},
$$
followed by angle pull-back before the next block. Per block, trainable parameters equal $2T$; for depth $D$, parameters scale as $(2D+1)T$ when including a readout phase projection. Memory footprint avoids $\mathcal{O}(T^2)$ attention maps and favors $\mathcal{O}(T)$-$\mathcal{O}(T\log T)$ structures.

The paper also proposes a phase-locking value
$$
\operatorname{PLV}=\left|\frac{1}{T}\sum_{t=1}^T e^{i(\phi_t-\phi_{\text{ref}})}\right|,
$$
with $\operatorname{PLV}\in[0,1]$, as a coherence metric over tokens. This suggests a direct quantitative bridge between geometric state constraints and synchronization-oriented analysis in oscillatory time-series. The broader conceptual point is that phase coherence here is structural: state geometry on $S^1$, globally coherent interference under a unitary mixer, and bounded inter-block re-embedding all make relative phase a first-class inductive bias rather than a latent by-product of learned real-valued embeddings.

## 4. Phase coherence as persistent memory in multi-phase control

In the spacecraft trajectory-optimization literature, the phrase is used in a different but related sense. "Multi-Phase Spacecraft Trajectory Optimization via Transformer-Based Reinforcement Learning" does not coin the term PCT, but its GTrXL-PPO policy is explicitly described as achieving phase coherence across launch, ascent, stage separation, and orbit insertion by maintaining stable policy behavior and persistent memory as dynamics, objectives, and constraints change across regimes [2511.11402].

The backbone is an encoder-only GTrXL serving both actor and critic. The policy maintains a sliding window $M$ of past hidden states with length $L_{\text{mem}}$, attends over $[M_{t-1},x_t]$, and updates memory by
$$
M_t = \operatorname{Trunc}_L(\operatorname{concat}(M_{t-1},X_t)).
$$
Transformer-XL recurrence thus carries memory across segments instead of compressing all history into a single recurrent state. Attention scores incorporate relative positions,
$$
A_{i,j} = \frac{((x_iW^Q)\cdot(x_jW^K + R_{i-j})^\top)}{\sqrt{d_k}},
$$
so the policy can reason about how long ago events occurred and maintain coherence over variable-length phases. To stabilize reinforcement learning, residuals are replaced by learnable gates,
$$
\operatorname{gate}(x,y)=\lambda\odot x + (1-\lambda)\odot y,\qquad \lambda=\sigma(W_g[x,y]+b_g),
$$
with positively initialized $b_g$ to bias early training toward identity mappings.

The policy is trained with PPO. The paper gives the clipped surrogate objective
$$
L^{\operatorname{CLIP}}(\theta)=\mathbb{E}_t\left[\min\left(r_t(\theta)A_t,\operatorname{clip}(r_t(\theta),1-\epsilon,1+\epsilon)A_t\right)\right],
$$
with total loss
$$
L(\theta,\phi)=L^{\operatorname{CLIP}}(\theta)+c_1\mathbb{E}_t[(V_\phi(s_t)-V_t^{\text{target}})^2]-c_2\mathbb{E}_t[H(\pi_\theta(\cdot|s_t))].
$$
Advantages use GAE with $\gamma=0.99$ and $\lambda=0.95$. The observation design is part of the coherence mechanism: normalized global time or time remaining, and when available a phase index $\phi$, are included so that attention can bind regime information to trajectory history without manual phase switching.

Empirically, this interpretation of PCT is tied to long-horizon control rather than complex arithmetic. Memory length is $L_{\text{mem}}=32$ in single-phase tasks and $L_{\text{mem}}=256$ in rocket ascent, which at $\Delta t=2$ s corresponds to approximately $8.5$ minutes of context. In the four-phase rocket-ascent problem, PPO trained for $5000$ updates, training reward reached approximately $7550$, and final orbital parameters were within approximately $5\%$ of targets, with $a$ error approximately $1.8\%$, $e$ error approximately $1.5\%$, and $i$ error approximately $0.3^\circ$ [2511.11402]. The paper treats the absence of manual phase switching, the continuity of steering across staging events, and the retention of pre-separation guidance patterns as evidence of phase coherence. A plausible implication is that, in control, phase coherence refers less to harmonic phase and more to temporally coherent policy state across discontinuous dynamics.

## 5. Circuit-level phase-coherent transformers: the Resonant Transformer Router

A fourth usage appears outside neural sequence modeling. RTR is a transformer-based, passive, near-lossless crossover whose low-frequency and high-frequency outputs satisfy
$$
H_{LF}(j\omega)+H_{HF}(j\omega)=1,
$$
so that the original signal can be perfectly reconstructed by linear summation of the two channels [2509.08272]. Although the paper does not use the term PCT, it explicitly frames RTR as implementing the same principle because the LF and HF outputs share the same phase response and can be recombined with $0^\circ$ phase alignment at the crossover frequency.

In the idealized derivation, a source excites a series combination of capacitor $C$ and primary magnetizing inductance $L_p$. The LF output is taken across the capacitor and the HF output from the transformer secondary, which under unity turns ratio equals the inductor branch voltage. By Kirchhoff’s voltage law,
$$
V_C + V_L = V_{in},
$$
hence
$$
V_{HF}(j\omega)=V_{in}(j\omega)-V_{LF}(j\omega),
$$
and therefore $H_{HF}(j\omega)=1-H_{LF}(j\omega)$. With series resistance $R$,
$$
Z_C=\frac{1}{sC},\qquad Z_L=sL_p,
$$
the transfer functions are
$$
H_{LF}(s)=\frac{1}{1+sRC+s^2L_pC},\qquad
H_{HF}(s)=\frac{s^2L_pC}{1+sRC+s^2L_pC}.
$$
In the lossless case $R=0$, their sum is exactly $1$; for $R\neq0$, the deviation is
$$
\varepsilon(s)=\frac{sRC}{1+sRC+s^2L_pC}.
$$

Phase coherence follows from the shared denominator. Evaluated at $s=j\omega$,
$$
H_{LF}(j\omega)=\frac{1}{(1-\omega^2L_pC)+j(\omega RC)},
$$
$$
H_{HF}(j\omega)=\frac{-\omega^2L_pC}{(1-\omega^2L_pC)+j(\omega RC)}.
$$
With appropriate polarity choice, both outputs have phase
$$
\phi(\omega)=-\tan^{-1}\left(\frac{\omega RC}{1-\omega^2L_pC}\right),
$$
so $\phi_{LF}(\omega)=\phi_{HF}(\omega)$. Their group delays are therefore equal. The crossover frequency is approximately
$$
f_c \approx \frac{1}{2\pi\sqrt{L_pC}}.
$$
The paper reports complementarity within numerical precision, insertion loss near $0$ dB, near-perfect phase alignment for RTR, and phase deviations below $1^\circ$ under $\pm5\%$ component variations, contrasting this with conventional LC crossover behavior [2509.08272].

This usage broadens the meaning of "transformer" from attention architecture to electromagnetic device. It also shows that phase coherence can be construed operationally rather than representationally: two branches are coherent not because a learned model preserves latent phases, but because circuit transfer functions share a common phase kernel and support exact reconstruction by linear recombination. The conceptual continuity with neural PCTs lies in the rejection of destructive competition in favor of additive, phase-consistent superposition.

## 6. Empirical profile, comparisons, and limitations

Across the neural formulations, PCT-type designs are defined as much by their failure modes as by their positive results. In the complex-valued PCT, under parameter-fair comparison, the model consistently outperforms both the standard softmax Transformer and its direct complex-valued counterpart across tasks including long-range memory, hierarchical long-range reasoning, positional retrieval, phase-based memory and superposition, and image classification [2605.10123]. The headline numbers are explicit: Copy $d=500$ gives PCT $1.00$ versus real softmax $0.45$ and complex softmax $0.10$; Copy $d=2000$ gives $1.00$ versus $0.10$ and $0.08$; NIAH $L=2048$ gives $1.00$ while both real and complex softmax baselines give $0.00$; LRA-ListOps mid $L=1024$ gives $0.854$ versus $0.146$ and $0.104$. PCT is also reported as uniquely robust across learning rates $10^{-3}$, $3\times10^{-3}$, $10^{-2}$ and batches $8$, $32$, $256$ on Copy, and it shows no accuracy collapse across depths $2$-$20$.

The ablations are central to interpretation. Gates that violate C3 by deleting anti-phase information, such as ReLU and clamped ReLU, collapse on phase-sensitive and long-range tasks; the paper reports clamped ReLU at approximately $0.103$ on Copy $d=100$-$1000$ and ReLU at approximately $0.107$ on Copy $d=1000$. Gates that violate C2 by becoming excessively large, such as the cubic gate, partially collapse, achieving $0.200\pm0.030$ on Copy $d=1000$. By contrast, softplus, which violates C2 on $\mathbb{R}$ but remains bounded on the operating range under L2 normalization, reaches $1.000$ on Copy $d=1000$. The paper therefore identifies anti-phase deletion as the dominant failure mode and unbounded magnitudes as a secondary but independent degradation source [2605.10123].

The phase-native Phasor Transformer presents a different empirical frontier. On a short-context synthetic multi-frequency autoregressive benchmark with $T=10$, a single phasor block with $50$ trainable angles achieved test MSE approximately $0.0705$, while training MSE decreased from $1.6912$ to $0.0563$ over $100$ epochs. A PyTorch self-attention baseline achieved approximately $0.003$ test MSE with more than $1{,}000$ parameters and $\mathcal{O}(T^2)$ mixing. On a longer-context benchmark with $N=32$, the phasor model achieved MAE approximately $0.1817$ with $64$ trainable angles, while a $4$-head self-attention baseline achieved approximately $0.1034$ MAE with $3{,}329$ parameters; the parameter ratio was approximately $52\times$ in favor of the phasor design. In a deep-stack study with $D=3$ and $N=16$, inserting $\Phi_{\text{norm}}$ reduced MSE from $1.0519$ to $0.029$, and $20$-step autoregressive rollouts were stable and tracked target dynamics qualitatively [2603.17433]. These results support the paper’s stated efficiency-performance frontier but also delimit applicability: learned attention remains more accurate on the reported synthetic benchmarks.

The control-oriented formulation likewise states its limitations explicitly. It reports near-optimal behavior on single-phase double-integrator and Van der Pol benchmarks, seamless multi-phase waypoint navigation, and stable convergence on four-phase rocket ascent, but it also notes that inference latency is not reported, training cost details are not provided, no ablation results are reported, and sensitivity to attention horizon remains unresolved for very long missions [2511.11402]. The circuit formulation has its own practical constraints: complementarity degrades if branches are loaded rather than high-impedance buffered, reactive peaking near resonance must be managed through $Q$ control, and careful transformer design is required to maintain high coupling and low parasitics [2509.08272].

Taken together, these works support several nontrivial distinctions. First, PCT is not inherently synonymous with subquadratic attention: the complex-valued PCT retains full $\mathcal{O}(N^2d)$ attention, whereas the phasor variant achieves $\mathcal{O}(T\log T)$ through FFT-based mixing. Second, phase coherence is not tied to a single mathematical object: it may mean preservation of negatively aligned complex components across attention layers, bounded phase evolution on $S^1$, memory continuity across regime transitions, or exact phase-aligned recombination in analog hardware. Third, the term names both a specific architecture and a broader design principle. A plausible implication is that future work will continue to treat phase coherence less as a domain-specific trick than as a general criterion for stable superposition, long-range temporal consistency, and non-destructive aggregation across layers or branches.

Source: https://www.emergentmind.com/topics/phase-coherent-transformer-pct