Deterministic Structural Telemetry

Text Has
Shape.

Measure it.

The Linguistic Kernel is a behavior-only instrumentation layer for large language model outputs. It reduces any text string to a reproducible coordinate in structural space, without calling another model, without semantic judgment, without guesswork.

Δx · weight shift rᵥ · void ratio ρᵣ · packing density μ · cohesion Δy · segmentation strain xₚ · peripheral pull θ · flow instability dₛ · structural thickness
Δx +0.0040
rᵥ 0.0676
ρᵣ 0.6757
μ 0.4895
Δy 0.8500
xₚ 0.5672
θ 0.8798
dₛ 0.5255
BASIN B0_centered_compact
STATE assertive
SEG reliable
v lang-kernel-rebuild-v19
Δx +0.0040
rᵥ 0.0676
ρᵣ 0.6757
μ 0.4895
Δy 0.8500
xₚ 0.5672
θ 0.8798
dₛ 0.5255
BASIN B0_centered_compact
STATE assertive
SEG reliable
v lang-kernel-rebuild-v19

Two Broken Answers.
One Missing Instrument.

Most evaluation frameworks for language models fall into two categories, and both have fundamental problems.

Benchmark Performance

Tells you how a model behaves on curated test sets under controlled conditions. Tells you nothing about structural behavior under production pressure, across conversation turns, or when output constraints are stressed.

LLM-as-Judge

Introduces the circularity it is meant to avoid. You are using a stochastic, non-deterministic system to evaluate another stochastic system. The judge has its own structural biases, its own failure modes, its own drift.

Some of what changes in a model's output is not about content at all. It is structure: length, density, sentence form, how an answer ends. That part can be counted directly.
◎

Deterministic

The same input always produces the same output. No model in the loop. No stochastic components. Every number is backed by countable evidence features.

◈

Auditable

Every coordinate has a countable source. The evidence bundle exposes all raw features that drove the computation. Nothing is hidden in a neural network's judgment.

◇

Engine-Agnostic

Measures only what is visible in the produced text. Works identically on GPT, Claude, Gemini, or any open-weight model. No model-specific calibration required.

Eight Dimensions.
One Structural Fingerprint.

The kernel reduces any text to a point in an eight-dimensional structural space. The first four are the canonical core. The second four are auxiliary. Each dimension is computed from a different countable feature of the text.

Core Kernel — K = [Δx, rᵥ, ρᵣ, μ]
Δx Weight Shift

Where informational mass lands across the response. Front-loaded vs. back-loaded vs. centered. Computed as a weighted centroid over sentence position.

rᵥ Void Ratio

Structural air and breathing room. Captures paragraph density, bullet structure, short-sentence proportion, and average sentence length in a single composite.

ρᵣ Packing Density

Concentration of content-bearing tokens relative to connective language. High values mean lexically dense, information-packed delivery. Low values mean connective tissue dominates.

μ Cohesion

Continuity of discourse scaffolding. Counts transition markers and reference pronouns that stitch sentences together. High cohesion means explicitly linked structure.

Auxiliary Set — Aux = [Δy, xₚ, θ, dₛ]
Δy Segmentation Strain

Average sentence length relative to a 15-token neutral baseline. Tracks punctuation suppression, verbosity constraints, sentence boundary collapse.

xₚ Peripheral Pull

Edge-seeking behavior. Measures word rarity against a 6,355-word common-English baseline (Zipf-grounded). Domain-agnostic: jargon in any field scores high.

θ Flow Instability

Non-linear jumps between adjacent sentences. One minus mean cosine similarity between neighboring sentence token distributions. High values mean abrupt topic movement.

dₛ Structural Thickness

Clause stacking and subordination density. Counts true subordinating conjunctions and weighted punctuation markers per token. Measures sentence layering pressure.

Five Stages.
No Model in the Loop.

Every kernel computation passes through a deterministic five-stage pipeline. No external service. No randomness. No hidden scoring model.

01 ——
Tokenize & Segment

Text is split into words, sentences, and paragraph blocks. Bullet lines handled as structural units.

›
02 ——
Extract Evidence

Count every feature: tokens, sentences, transitions, pronouns, subordinators, contrast markers, rare words, metaphors.

›
03 ——
Compute Coordinates

Evidence features transform into the eight kernel dimensions via defined, versioned mathematical functions.

›
04 ——
Classify

Basin assignment and rhetorical state derived from coordinates. Z-space normalization applied when a prompt-family baseline is fitted.

›
05 ——
Assemble Output

Coordinate, basin, evidence bundle, rhetorical state, segmentation flag, and full versioning metadata returned as a structured dictionary.

from kernel_v19 import LinguisticKernel

kernel = LinguisticKernel()

result = kernel.compute("Your LLM output goes here.")

# → kernel coordinate
result["kernel"]    # {"Δx": 0.004, "rᵥ": 0.068, "ρᵣ": 0.676, "μ": 0.490}

# → auxiliary dimensions
result["aux"]       # {"Δy": 0.85, "xₚ": 0.567, "θ": 0.880, "dₛ": 0.526}

# → rhetorical state and basin
result["basin"]     # "B0_centered_compact"
result["evidence"]["rhetorical_state"]  # "assertive"

# → every count that produced those numbers
result["evidence"]  # full audit bundle

What It Explicitly
Does Not Claim.

Understanding the limits of a measurement instrument is as important as understanding its capabilities.

✕
Ground-truth correctness A factually wrong response and a correct one can occupy identical kernel coordinates if they are structurally similar. The kernel is not a fact-checker.
✕
Semantic meaning or content quality Two responses that say the same thing in different structures will have different coordinates. Two responses that say different things in similar structures will have similar coordinates. Orthogonal to semantics by design.
✕
Internal model mechanisms The kernel is a black-box external instrument. It sees only what is in the output string. No access to attention patterns, activations, or internal representations.
✕
Intelligence as a single scalar There is no total score. No ranking from good to bad. No summary number. The kernel produces a coordinate. What that coordinate means requires context.

What You Can
Build With It.

Because the kernel is deterministic and engine-agnostic, it composes into a range of operational and research applications.

01 ——

Production Monitoring

Record each prompt family's usual readings, then compute the kernel on sampled outputs. When a family's readings move, the kernel says which way: longer, denser, more first-person, shorter sentences. Movement is a reason to look at the answers, not a verdict on them.

02 ——

Engine Comparison

Run the same prompt family through multiple models. Compare where each engine's answers sit and how widely they spread under identical conditions. Different engines have different structural fingerprints, make those differences measurable.

03 ——

Steerability Studies

Apply controlled edits (added constraints, polarity flips, length caps) and measure what changes. Sentence counts, lengths and punctuation are counted directly, so whether a formatting instruction was followed, and which one wins when two collide, is a measurement rather than a judgement.

04 ——

Multi-Turn Drift Analysis

Track the readings turn by turn across a conversation and see whether structure wanders and whether it comes back. Which patterns of drift matter is an open question; the kernel makes the trajectory measurable so it can be studied.

05 ——

Truncation Detection

A tail check on every response flags answers that stop mid-formula or mid-code: unbalanced braces, dangling operators, unfinished LaTeX, unclosed code fences. Under batch load these cluster on derivation-heavy prompts and differ sharply between engines. A flag marks an answer to read, not a verdict: complete answers can trip it too.

06 ——

Red Team Infrastructure

Record the structural side of adversarial tests alongside the semantic review. Constraint stacks, contradictions and format attacks move the readings in characteristic directions, which gives each test a reproducible structural record.

Instrument Pipeline

Linguistic Kernel measurement pipeline

What the Measurements
Show.

Same prompts, three engines, repeated runs, and the model's own uncertainty.

The kernel has been run on 1,200 responses from Gemini, GPT and Claude answering the same 400 prompts under batch load, on 300 Gemini responses to 60 prompts repeated five times, and on 60 GPT-4o responses with token-level probabilities.

It separates what the prompt sets from what varies run to run, distinguishes engines by how they allocate output, catches answers that stop mid-formula, and shows a measurable link between clause density and the model's own generation uncertainty.

80% Clause density set by the prompt
2.1× Claude's answer length vs GPT, Gemini
r 0.36 Clause density vs uncertainty, controlled
  • Some readings are set by the prompt (clause density 80%, rare vocabulary 74%, content density 73%); others mostly vary run to run (sentence length 20%, topic flow 18%). That tells you which differences need repeated runs before they mean anything.
  • Under twenty-prompt batches, Claude wrote about twice as much per answer as Gemini and GPT, and answered in one or two sentences far less often (16% against 64–65%).
  • Ten derivation-heavy prompts stopped mid-formula in both Gemini and GPT; Claude finished all ten. Overall, 20, 15 and 1 truncations in 400 answers each.
  • When instructions collide, visible form (sentence count, punctuation) is kept and exact counts are dropped first; a newer instruction usually wins over an older one.
  • Clause density tracks how unevenly GPT-4o's token-level uncertainty moves (r = 0.46; 0.36 after controlling for length and prompt family), without any access to the model.