T-128Likelihood Divergence

Statistical Analysistext2023

Calculates the statistical distance (divergence) between the actual words used in a text and the words a reference Language Model would mathematically expect to see. AI-generated text stays unnaturally close to the expected probability curve, showing drastically lower divergence than human writing.

Token Probability Distribution & Kullback-Leibler (KL) Divergence Mapping
When humans construct sentences, we frequently make unpredictable lexical choices based on memory, emotion, or complex logical structures. This means the actual words we use often 'diverge' significantly from what a strictly statistical prediction algorithm expects. Conversely, Large Language Models (LLMs) operate fundamentally by selecting the next word from a tightly constrained distribution of highly probable tokens. This algorithm evaluates a text by running it through a reference LLM to generate an 'expected' probability map for every single word. It then measures the Kullback-Leibler (KL) Divergence—a statistical metric of how much the actual text's distribution differs from the reference model's predicted distribution. If a lengthy text consistently rides the crest of the probability wave—meaning its actual words match the LLM's expected words with an unnaturally low rate of divergence—it provides irrefutable mathematical evidence that the text was generated by a probability-maximizing neural network rather than human cognition.
Analysis: Reference Model Token Prediction vs. Actual Token Observation
Metric: Kullback-Leibler (KL) Divergence Score

Output: 0-100 Probabilistic Predictability (Divergence Collapse) Score
High — 82-89% on sufficient text lengths. It directly targets the mathematical core of how generative AI constructs sentences.
• Exposes the foundational mechanism of all LLMs (autoregressive probability mapping); AI literally cannot write without relying on these probability curves.
• Extremely robust against minor edits or synonym replacements, as changing a few words does not significantly alter the divergence score of the entire document's distribution.

• Provides a clear, quantifiable mathematical metric rather than a subjective 'feeling' of AI generation.
• Computationally expensive, requiring the text to be passed through a secondary, large-scale reference language model to calculate the expected token probabilities.
• Effectiveness can vary slightly depending on the specific reference model used; using a weak or highly misaligned reference model can skew the expected probability distribution.

• Less effective on extremely short texts (under 100 words), as divergence metrics require a statistically significant sample size to map a curve.
Highly effective for auditing formal essays, legal contracts, and news articles where AI models tend to produce the ultimate 'average' text, exposing generation through a lack of statistical surprise.