Fock Attention with MLP V_theta (Direct Token-to-Token Exchange Force Language Model)
The Fock Attention with MLP \(V_\theta\) model (previously presented on this page simply as "Fock Attention") implements the Section 5.1 Feynman diagram as a literal non-conservative force: each token emits a virtual photon carrying a key and payload, and each token absorbs with a query. The exchange coupling \(\alpha_{ij} = \text{softmax}j(q_i \cdot k_j / \sqrt{d_k})\) and the force \(F_i = \sum_j \alpha{ij} \cdot v_j\). This is the \(\lambda = 0\) (instantaneous exchange) limit of the Fock mechanism -- no registers, no persistence, no creation/destruction gates.
This "Route 2" across the Conservative Obstruction is the \(O(T^2)\) counterpart to the Fock register pool's \(O(1)\) "Route 1". It achieves 9.42 PPL on TinyStories, honest and leak-free. After correcting an earlier comparison that used the leaky-checkpoint Fock-PARFLM v2.1 number (9.30), this model is actually 0.28 PPL better than the honest, leak-fixed register-based Fock-PARFLM v2.1 (9.70) -- see Evaluation Results for the full, corrected table.
The card name now spells out "with MLP \(V_\theta\)" on purpose: as the V_theta vs. Exchange Mechanism section below shows, on TinyStories the single-body potential's shape -- not the choice between register-mediated and direct-exchange Fock mechanisms -- is the dominant factor separating this model's 9.42 PPL from the family-best 9.04 (depth-conditioned anisotropic-Gaussian \(V_\theta\)).
The Fock Attention PARFLM extends the Multi-Xi PARFLM with a direct token-to-token exchange force inspired by Feynman's virtual particle exchange diagram. Unlike the register-based Fock-PARFLM which uses persistent auxiliary state, this variant implements instantaneous exchange:
The learned exchange scale \(\tanh(s_{\text{ex}})\) converges to approximately -0.32 (repulsive), meaning the exchange force pushes tokens apart in hidden-state space rather than attracting them.
Developed by: Dimitar P. Gueorguiev (Independent Researcher)
Model type: Conservative autoregressive LM with direct exchange force
0.30 nominal, ~0.033 effective (LayerNorm prevents compounding; see note below)
Total parameters
16,714,708
Effective damping. The nominal \(\gamma = 0.30\) overstates the true dissipation. The LayerNorm applied after each integration step rescales the hidden state, absorbing most of the velocity decay. The dynamics are therefore heavily underdamped even at this nominal value. Gamma-sweep experiments on the OpenWebText-scale Fock-PARFLM variant confirm that the effective damping γeff is much smaller than the nominal coefficient.
Key Design Properties
Two routes across the obstruction: This model takes "Route 2" (direct exchange, \(O(T^2)\)) while the Fock-PARFLM takes "Route 1" (register-mediated, \(O(1)\)). Both achieve comparable, honest PPL (9.42 vs. 9.70).
Repulsive exchange: The learned scale is negative, meaning the exchange force diversifies token representations rather than collapsing them.
Minimal overhead: Only ~131K parameters for the exchange mechanism (Q/K/V projections + scale scalar).
Otherwise conservative: The core dynamics \(V_\theta + V_\phi\) remain fully conservative; the exchange force is the only non-conservative component.
V_theta vs. Exchange Mechanism: What Actually Drives PPL on TinyStories
This model's single-body potential \(V_\theta\) is a plain 3-layer MLP -- the same unbounded, black-box shape used in the original Fock-PARFLM. Its most visible design feature is the direct exchange force above, so it is tempting to credit that Feynman-diagram mechanism for most of the PPL gain over the no-Fock Multi-Xi PARFLM baseline (12.06 -> 9.42). The family's own ablations, holding one factor fixed at a time, point the other way:
Holding the exchange mechanism fixed at "register-based Fock v2.1" and varying only \(V_\theta\)'s shape swings PPL by more than 7 points (16.33 down to 8.95). Holding \(V_\theta\) fixed at MLP and varying only the exchange mechanism (none -> registers -> direct exchange) swings PPL by about 2.6 points -- but the choice between the two Fock-mechanism flavours (registers vs. direct exchange) is worth only \(\approx\)0.3 points, and direct exchange (this model) actually wins that comparison.
On TinyStories, \(V_\theta\)'s profile is doing most of the work; the specific exchange mechanism is a second-order effect. Whether the anisotropic-Gaussian-beats-MLP ordering seen here survives at OpenWebText scale is still an open question: only the anisotropic-Gaussian \(V_\theta\) has been scaled up to OpenWebText so far (see the gamma-sweep family), so there is currently no MLP-\(V_\theta\) OpenWebText-scale checkpoint to compare against directly.
Why Not a Transformer?
The Fock Attention PARFLM is not based on the Transformer architecture. There are no Transformer-style FFN towers. The conservative core is driven by two small scalar-potential MLPs — \(V_\theta\) (≈3.4M params) and \(V_\phi\) (≈19K params). The direct exchange force adds only ≈131K parameters (Q/K/V projections).
\(O(T^2)\) direct exchange + \(O(Tk)\) sparse PARF
Note: Because this model uses a direct token-to-token exchange force (the "Route 2" across the Conservative Obstruction), its runtime cost is \(O(T^2)\) like attention. For fully \(O(1)\) inference, see the register-based Fock-PARFLM v2.1 ("Route 1"), which achieves an honest 9.70 PPL vs. this model's 9.42 PPL -- i.e. \(O(1)\) inference here comes at a small PPL cost relative to this model's \(O(T^2)\) direct exchange, not the other way around (see the causal-leak notice on that card for why an earlier version of this comparison had the direction reversed).
Runtime information capacity vs sequence length
Geometric Capabilities
Note: This model uses a direct \(O(T^2)\) exchange force that is non-conservative, breaking the full Riemannian guarantee. The full Riemannian geometry — Jacobi metric, computable geodesics, curvature-based hallucination detection, native chain-of-thought — is available only in the purely conservative variants: Multi-Xi SPLM, Multi-Xi PARFLM, and Fock-PARFLM v2.1. See Section 18d and Section 23 of the paper for details.
Damped Riemannian Geometry (June 2026 update)
A Riemannian Geometry Diagnostic Battery run on all three SPLM-family checkpoints confirmed that while the force field \(f = -\nabla V_\theta\) is conservative, the full dynamics are dominated by the damping term \(\gamma\) in the integrator. Key findings:
Metric validity (Arm 1): The layer-dependent conformal factor \(\Omega^2 = 2T_\ell \cdot m > 0\) at 100% of positions — the Riemannian metric is well-defined everywhere.
Geodesic compliance (Arm 2): Undamped geodesics predict the wrong direction (compliance \(\approx -0.4\)); the damped geodesic equation (with friction \(-\gamma \dot{\gamma}^k\)) is required.
Energy dissipation (Arm 4): Energy decays monotonically across layers (SPLM: 172% drift), consistent with the designed damping — not a numerical artefact.
Asymmetry (Arm 5): The layer map is strongly asymmetric (\(R^2_{\text{sym}} \ll 0\)), expected for damped dynamics + LayerNorm.
The theoretical framework has been updated from undamped Maupertuis-Jacobi to damped Riemannian geometry with a contact Hamiltonian interpretation. See the companion note for full details.
How to Get Started
python
1# Clone the companion repository for full source code2# git clone https://github.com/dimitarpg13/semsimula-paper.git3# cd semsimula-paper/notebooks/conservative_arch45import torch
6import sys
7sys.path.insert(0,"parf")8sys.path.insert(0,"multixi")9sys.path.insert(0,"energetic_minima")10sys.path.insert(0,"sarf_mass_variant")1112from parf.model_fock_attention import FockAttentionPARFLM, FockAttentionConfig
1314config = FockAttentionConfig(15 vocab_size=50257,16 d=256,17 n_layers=8,18 v_hidden=1024,19 v_depth=3,20 max_len=1024,21 block_size=512,22 gamma=0.30,23 xi_channels=4,24 v_phi_kind="structural_competitive",25 v_phi_hidden=128,26 top_k=8,27 exchange_n_heads=4,28 exchange_d_k=32,29)3031model = FockAttentionPARFLM(config)32print(f"Parameters: {sum(p.numel()for p in model.parameters()):,}")3334# Forward pass35x = torch.randint(0,50257,(1,64))36logits, loss = model(x, targets=x)
Available Checkpoint
A trained checkpoint (PPL 9.42, 16k steps) is included in this repository:
File
Description
checkpoint/model.pt
Full model state dict (64 MB)
training_log.jsonl
Per-step training metrics
loss_curve.png
Training/validation loss plot
training_summary.md
Hyperparameters and final metrics
To load the checkpoint:
python
1from huggingface_hub import hf_hub_download
2import torch
34# Download checkpoint5ckpt_path = hf_hub_download(6 repo_id="dimitarpg13/semsimula-fock-attention",7 filename="checkpoint/model.pt",8)910# Load into model (after creating model as above)11state = torch.load(ckpt_path, map_location="cpu")12model.load_state_dict(state["model_state_dict"])13model.eval()
Training Details
Training Data
TinyStories -- GPT-2 BPE tokenization. Training cap: 5M tokens.
Corrected comparison: earlier versions of this card compared against Fock-PARFLM v2.1's leaky-checkpoint PPL of 9.30, concluding that "register persistence provides a small advantage." That checkpoint has since been re-trained with the causal-leak fix; its honest PPL is 9.70, which means Fock Attention (this model) is actually 0.28 PPL better, not worse (see the causal-leak notice on the Fock-PARFLM v2.1 card for the full account). Fock Attention also has the smallest parameter count in the family (16.7M) and the simplest Fock mechanism (no creation/destruction gates, no stack discipline). As the V_theta vs. Exchange Mechanism section above argues, the 0.62 PPL gap between this model and the family-best anisotropic-Gaussian variant (9.04) is better explained by \(V_\theta\)'s shape than by the exchange mechanism.
SPLM Family Overview
This model is part of the Semantic Simulation SPLM family: