T-112Log-Likelihood Rank (Sampling Probability)

Statistical Analysistext2023

Evaluates whether the words chosen in a text are consistently the 'most likely' mathematical predictions of a language model. AI text overwhelmingly relies on Top-10 or Top-100 ranked vocabulary choices, while humans frequently dip into the 'long tail' (Top-1000 or beyond) of unexpected word selections.

Autoregressive Rank Distribution Profiling
This method relies on the foundational probability mechanisms of Large Language Models (e.g., the GLTR framework). When an LLM generates text, for every single position in a sentence, it ranks the entire vocabulary of the language from most likely (Rank 1) to least likely (Rank 50,000+). The algorithm passes the target text through a reference model and checks the rank of the *actual* word used by the author. It categorizes these ranks into bands: Green (Top 10), Yellow (Top 100), Red (Top 1000), and Purple (Unlikely). Human writers naturally craft sentences with a highly variable mix of these bands—we frequently choose slightly 'suboptimal' or surprising words for rhetorical effect, emotion, or specific meaning, pulling heavily from the Red and Purple zones. Conversely, unless heavily prompted with high 'temperature' settings, an AI almost exclusively samples from the Green and Yellow zones to ensure the text remains sensical and safe. If a text's log-likelihood rank profile shows an unnatural dominance of Top-10 (Green) words with zero unpredictable linguistic leaps, it is flagged as machine-generated.
Analysis: Per-Token Autoregressive Rank Extraction
Metric: Ratio of Top-10/100/1000 Token Selections

Output: 0-100 Rank Predictability (Probability Smoothing) Score
High — 83-90% accuracy on standard generative text. It remains one of the most reliable white-box statistical signals for AI detection.
• Bypasses superficial paraphrasing; changing a few words does not fix the underlying, mathematically narrow rank distribution of the entire text.
• Directly visualizable mapping (the 'Green/Yellow/Red' highlight system) makes the AI's statistical bias easy to comprehend and verify.

• Highly effective against standard AI generation settings (Temperature 0.7 or lower).
• Susceptible to high 'temperature' (randomness) parameters in API calls; if a user forces an LLM to sample from the long tail, the rank distribution can temporarily mimic human writing (though the text often becomes nonsensical).
• Requires a powerful reference LLM running in the background to calculate the vocabulary rankings for every single token.

• Extremely formulaic human text (e.g., standard legal disclaimers, basic weather reports) naturally scores highly in the Top-10 rank, causing false positives.
Crucial for analyzing formal articles, student essays, and professional emails to determine if the text was algorithmically smoothed or organically drafted.