Skip to content
Language modelsPrototype

Verace Preflight

A pre-training diagnostic suite that probes neural architectures at initialization for dead gating, depth-wise rank collapse and router instability.

Verace Research
  1. Executable model library: Builds a small PyTorch backbone from each spec
  2. Architecture specification: Symbolic spec of attention, activation and experts
  3. Five-pillar probe set: Scores each pillar from random-input measurements
  4. Dominance and critique engine: Per-pillar deltas with no scalar weighting
Figure 1. Probes and comparison around the Preflight model builder. Schematic: in Verace Preflight, each architecture spec is built into a small executable model, then probed at initialization and compared. The suite is a prototype with no diagnostic runs recorded.
Open the simulator on its own pageA loop that checks before it commits: an interactive toy model of the principle. You can also try it below

Overview

Verace Preflight is the lab's pre-training architecture diagnostic suite, called PADS (Pre-Training Architecture Diagnostic Suite) in its papers and code. It asks whether structural defects in a neural architecture can be caught at initialization, before compute is spent on pre-training. The defects it targets are dead gating paths, collapse of representation rank with depth, unstable mixture-of-experts routers and anomalies in the parameter footprint. The design specification sets a firm limit on the claim: no tool operating on untrained weights can establish downstream capability. It also cites the results of Merrill and Sabharwal (2023) and Merrill et al. (2022), which place fixed-precision, bounded-depth softmax transformers in TC0\mathbf{TC}^0, a class that gating does not lift to NC1\mathbf{NC}^1.

The system takes a symbolic ArchitectureSpec and turns it into a small executable PyTorch backbone with d_model 128. It scores five pillars: activation expressivity, context scaling, rank preservation over depth, routing entropy and parameter efficiency. Each pillar is scored by numerical probes on random input, mainly stable rank and spectral entropy of activations. A micro-training probe trains each model briefly on synthetic Zipfian tokens and fits a power law to the loss curve, and three synthetic benchmarks follow. Two architectures are compared through an unweighted per-pillar difference vector, a rule-based critique and a loop that reruns the comparison under new seeds. The bundled presets scale the architecture of a technical report by the Kimi Team across sizes. Baselines from other parties (GPT-2 XL, Llama-3 70B, a dense 70B transformer, Mamba-2) are included for comparison.

The implementation consists of the probe library, the small executable model library, the micro-trainer, a nonlinear least-squares fitter for the loss trajectory, the comparison engine, a command-line interface and a test suite. Older spec-only scores that look up hand-set constants per architecture type remain alongside the executed probes that replace them. The lab's own reading of the code records where it falls short of the specification. The context probe uses an attention-weight ratio rather than the forced gate perturbation the specification describes. The iso-loss speedup ignores the convergence exponent. The objection-energy criterion does not use variance across seeds, and one probe imports SymPy without using it, against the specification's own rule.

Status: the diagnostic suite is implemented as code with a test suite and a command-line entry point. The lab has recorded no diagnostic runs, no measured comparisons between architectures and no fitted trajectory parameters. The probe scores have not been checked against the outcome of any real pre-training run, so whether they predict training failures is untested. The spec-level heuristic scores rest on hand-set constants and assumed decay curves, not measurements. The forced perturbation test required of every new module appears in the design specification. The context probe as written does not implement it.

Status

Prototype. The probes, micro-trainer, comparison engine, command-line interface and tests are implemented, but no diagnostic run or measured result is recorded.

Simulator

An agent runs sixty tasks whose steps sometimes fail. Choose whether each step is checked, how often a step fails and how long the tasks are.

  • pale: worked first time · colour: caught and repeated · white: failed unnoticed · crossed: given up
Tasks finished correctly
59 of 60
Finished with a hidden error
0
Given up after three tries
1
Extra work spent on retries
13%
After each step

Turn the check off: the same failures now finish unnoticed. Lengthen the tasks and see how fast unchecked errors add up.

This simulator is an illustration of the principle, with made-up numbers. It does not run the lab's code or show the lab's data, and nothing in it is a measurement.

Architecture

  1. Architecture specification schema

    A symbolic ArchitectureSpec with enums for attention (MHA, GQA, MLA, KDA, SSM, hybrid), activation, residual and mixture-of-experts types. It also gives approximate total and active parameter counts.

  2. Executable model library

    Small PyTorch modules built from a specification: GELU, SwiGLU and SiTU-GLU feed-forward layers, multi-head attention, a gated delta-style attention, top-k mixture-of-experts layers and a backbone with additive or attention-based residuals.

  3. Five-pillar probe set

    Runtime probes for expressivity, context scaling, rank preservation, routing entropy and parameter efficiency. Each runs an instantiated module on random input and turns a numerical measurement into a score.

  4. Spec-level heuristic scorers

    Older scorers that assign each pillar a score from the specification alone, using fixed constants per architecture type. The probe versions are designed to replace them.

  5. Micro-training probe

    Wraps a backbone with an embedding and a language-model head, trains it with AdamW on synthetic Zipfian tokens and logs the loss trajectory. The design specification describes these trajectories as SGD trajectories, which the code does not use.

  6. Multi-scale proxy comparator

    Trains copies of two models at step budgets of 30, 75 and 150. It fits the loss power law, runs the synthetic benchmarks and derives a loss-floor delta, a convergence-rate ratio, an iso-loss speedup and a verdict.

  7. Dominance and critique engine

    Compares two architectures by per-pillar deltas with no scalar weighting and attaches rule-based critiques, findings, warnings and a disclosure record to the result.

  8. Seed convergence loop

    Reruns probe comparisons under new seeds until a critique-based stopping quantity reaches zero or the iteration limit is hit.

  9. Architecture presets

    Specifications that scale the architecture of the Kimi Team's technical report across sizes, using its Kimi Delta Attention, Multi-Head Latent Attention, SiTU-GLU, Block Attention Residuals and quantile-balanced mixture of experts. External baselines are included alongside them.

Implementation

Mechanisms as they are implemented in the source code, with the constants the code uses.

Stable rank and spectral entropy
The activation tensor is flattened to a matrix of shape (B·N, D). Its stable rank is SR(Y)=∥Y∥F2∥Y∥22\mathrm{SR}(Y) = \frac{\|Y\|_F^2}{\|Y\|_2^2}. Expressivity also uses the Shannon entropy, in bits, of the normalised spectrum of squared singular values σi2\sigma_i^2.
Layerwise rank collapse check
Each layer's stable rank is divided by the maximum feasible rank min⁡(BS,d)\min(B S, d). The score combines the mean over layers with weight 60 and the ratio of last-layer to first-layer rank with weight 40, so that rank lost with depth shows up.
Out-of-distribution router entropy
Router entropy is normalised by log⁡2E\log_2 E and measured on input X∼N(0,I)X \sim \mathcal{N}(0, I), then on the shifted input 2X+2.52X + 2.5. The nominal batch runs first on purpose, so that a stateful EMA balancer has to react to the shift.
EMA histogram logit-shift balancing
A load balancer with no auxiliary loss. Router logits are shifted by −log⁡he-\log h_e, where hh is an EMA histogram of expert usage. The histogram starts uniform and is updated on every forward pass as h←(1−0.2) h+0.2 fh \leftarrow (1-0.2)\,h + 0.2\,f, with ff the observed usage frequency, so overused experts are penalised.
SiTU-GLU dual-temperature gating
The suite's own simplified SiTU-GLU variant, which differs from the soft-capped form in the Verace V0 Baseline. Both branches pass through a temperature-scaled swish x σ(βx)x\,\sigma(\beta x), with β1=4\beta_1 = 4 and β2=25\beta_2 = 25, and are multiplied elementwise before the down projection.
Content-dependent attention residual
Replaces the additive skip connection, in the spirit of the report's Block Attention Residuals. For each token, the current hidden state queries the stack of all previous layer outputs with scaled dot-product softmax. The attended mixture plus the feed-forward output becomes the new hidden state.
Loss trajectory power-law fit
Logged losses are fitted to L(t)=L∞+A/tαL(t) = L_{\infty} + A / t^{\alpha} with SciPy curve_fit. The fitter reports R2R^2 and a fit_converged flag instead of falling back to dummy parameters. The compared quantities are the floor L∞L_{\infty} and the rate α\alpha.
Iso-loss FLOP speedup estimate
The target loss is L∗=max⁡(L∞,1,L∞,2)+0.3L^* = \max(L_{\infty,1}, L_{\infty,2}) + 0.3. The cost per model is ci=Ai/max⁡(L∗−L∞,i,10−4)c_i = A_i / \max(L^* - L_{\infty,i}, 10^{-4}) and the speedup is max⁡(c2/c1,0.1)\max(c_2 / c_1, 0.1). This simplified inversion of the power law ignores α\alpha.
Zipfian synthetic token stream
Tokens are drawn independently from a unigram Zipf distribution with exponent s=1.07s = 1.07, a vocabulary of 1000, sequence length 32 and batch 16, using a seeded NumPy generator. Targets are the inputs shifted by one, and this stream is the only training signal for micro-training.
Micro-proxy synthetic benchmarks
Three probes: Dyck-2 bracket state tracking, periodic induction copying and key-value associative recall. Each is scored as greedy shifted next-token accuracy on batches of 16 with sequence length 32.
Stable rank per parameter
The model is fed X∼N(0,I)X \sim \mathcal{N}(0, I) of shape [32, 32, 256]. The output stable rank is multiplied by d_model and divided by active parameters in thousands. The result is passed through a logistic curve of slope 0.5 centred at 1.
Unweighted dominance profile
Two architectures are compared by the vector of per-pillar differences with no scalar weighting. A Pareto-style status follows from sign thresholds of 10−210^{-2} and −10−3-10^{-3}.
Objection energy stopping rule
The convergence loop reruns comparisons under seeds 42+7i42 + 7i for up to 3 iterations. It stops when E=5⋅ncriticalE = 5 \cdot n_{\mathrm{critical}} reaches zero, where ncriticaln_{\mathrm{critical}} counts critical critiques. The critique engine raises a high-severity flag when the active-parameter ratio exceeds 1.3.
Hand-set heuristic scoring
The spec-level parameter score uses fixed weights: 2.4 for MLA or hybrid KDA-MLA attention, 2.1 for KDA, 1.4 for GQA and 1.0 for MHA or SSM, with activation weights of 1.5 for SiTU-GLU and 1.2 for SwiGLU. The score is 30a+15g+12m30a + 15g + 12m, clamped to 0 to 100, with MoE factor m=log⁡2(max⁡(Ntot/Nact,1)+1)m = \log_2(\max(N_{tot}/N_{act}, 1) + 1). The rank heuristic assumes decay curves such as e−0.025Le^{-0.025 L} for additive residuals rather than measuring them.

Results

From the lab's own experiments and records. They have not been independently replicated.

  1. Initialization probes cannot certify capability

    The design specification states that no tool operating on untrained weights can prove downstream intelligence or benchmark performance. It restricts the suite to structural health checks.

  2. Context probe departs from the specification

    The specification describes the context diagnostic as output variance under forced gate perturbation. The lab's reading of the code found that the probe instead uses a min-to-mean attention-weight ratio on random input, extrapolated logarithmically.

  3. Iso-loss speedup ignores the convergence exponent

    The lab's reading of the code records that the speedup estimate inverts the power law using only AA and L∞L_{\infty}, leaving out α\alpha.

  4. Objection energy does not measure seed variance

    Despite its role in the seed convergence loop, the stopping quantity counts critical critiques only and uses no variance across seeds, according to the lab's reading of the code.

  5. Heuristic pillar scores rest on assumed constants

    The spec-level scores use hand-set weights and assumed decay curves rather than measurements. The lab's code notes record this, and the executed probes were written to replace them.

  6. Specification and micro-trainer differ on the optimizer

    The design specification describes the optimization trajectory probe as measuring early SGD convergence. The micro-trainer in the code trains with AdamW, so the logged trajectories are AdamW trajectories.

Concepts

Pre-flight diagnostics
Checks run on an architecture at initialization, before pre-training, to find structural defects cheaply. They describe health at initialization, not trained capability.
Dead gating
A gate whose output does not change the module's result, leaving part of the architecture inert. The suite treats it as a defect to catch before training.
Stable rank
The ratio ∥Y∥F2/∥Y∥22\|Y\|_F^2 / \|Y\|_2^2, a smooth measure of how many directions an activation matrix effectively spans. Low values signal collapsed representations.
Rank collapse over depth
Representations losing effective dimensionality as layers stack. The suite tracks it by comparing stable rank across layers.
Router entropy
The Shannon entropy of a mixture-of-experts router's average routing probabilities, normalised by log⁡2E\log_2 E for EE experts. Low entropy means traffic concentrates on a few experts.
Auxiliary-loss-free balancing
Keeping expert usage even without an extra loss term, here by shifting router logits against an EMA usage histogram.
Loss floor and convergence rate
The parameters L∞L_{\infty} and α\alpha of the early-training fit L(t)=L∞+A/tαL(t) = L_{\infty} + A / t^{\alpha}. The comparator reports them with an explicit statement that they are not compute-optimal scaling laws.
Forced perturbation check
A rule in the design specification: every new module must show a large output change ΔY≫0\Delta Y \gg 0 when its gate is forced to 0 or 1, so that no gating path is dead.
TC0 complexity boundary
The design specification cites Merrill and Sabharwal (2023) and Merrill et al. (2022) for the result that fixed-precision, bounded-depth softmax transformers lie in TC0\mathbf{TC}^0. Gating does not lift them to NC1\mathbf{NC}^1, nor give an untrained model Dyck-kk state tracking.
Activation smoothness
The specification notes that smooth activations such as GELU, SwiGLU and SiTU-GLU have infinite Taylor series. Assigning them a fixed polynomial degree by truncation is therefore invalid.
No silent fallbacks
A rule in the specification: when trajectory fitting fails, the system reports fit_converged as false rather than substituting placeholder parameters.
Spec heuristic versus probe
Each pillar has two forms: a score computed from the specification with hand-set constants, and a probe that executes the module. The probes are the intended replacement.
Kimi report components
The presets use components from the Kimi Team's technical report (arXiv:2607.24653): Kimi Delta Attention, Multi-Head Latent Attention, SiTU-GLU, Block Attention Residuals and a quantile-balanced mixture of experts. These are that report's designs, not the lab's.

About this page

Written from the lab's own documents and source code. Figures and results are the lab's measurements as it recorded them at the time, and have not been independently replicated.

The Verace V series is the lab's line of language model architectures. It started from the lab's own code for the architecture described in a technical report by the Kimi Team (arXiv:2607.24653), listed here as the V0 baseline. Later versions replace the baseline's main parts with the lab's own designs and keep some of the report's components, which each page credits to the report.

Published under the PolyForm Noncommercial License 1.0.0: free for noncommercial use.