We’ve launched our most advanced model yet: Pangram 4! Read about it here.

text model

text model

Pangram 4

July 29, 2026

Ben Glickenhaus · Katherine Thai · Jenna Russell · Elyas Masrour · Yue Han · Max Spero · Bradley Emi

We launched this model from the Brooklyn Navy Yard with our newly expanded team of talented researchers.

We launched this model from the Brooklyn Navy Yard with our newly expanded team of talented researchers.

Model Description

Pangram 4 is an AI detection model released by Pangram Labs on July 29, 2026. It is the successor to Pangram 3.3.2, with significant improvements to overall accuracy, robustness to adversarial attacks, and the more fine-grained detection of AI-assisted and mixed-authorship text.

As with the Pangram 3 series, Pangram 4 uses technology from the EditLens technical report. However, Pangram 4 expands on the EditLens work substantially, introducing an MoE backbone; humanizer, tokenwise, and mixed-authorship prediction heads; and a two stage training process.

Check out the full announcement on the blog here, the technical write-up here, and the complete technical report here.

Inputs

Pangram 4 accepts text inputs of at least 50 words. It is designed for natural-language prose written in complete sentences.

Outputs

Pangram 4 returns a complete, non-overlapping sequence of variable-length segments covering the analyzed text. The model predicts at the token level and decodes one of three provenance labels for each segment: Human, AI-Assisted, or AI-Generated.

Segment-Level Outputs

text (String)

The exact substring of the analyzed text covered by the segment.

label (Discrete classification)

One of: AI-Generated, AI-Assisted, or Human Written.

ai_assistance_score (Float)

A float in the range $[0, 1]$ computed as $P(\text{AI-Generated}) + 0.5 \times P(\text{AI-Assisted})$. It is a continuous AI-involvement score, not the probability of the displayed discrete label.

confidence (Discrete classification)

The model's local confidence level (High, Medium, or Low). Computed as the mean CRF marginal assigned to the segment's final displayed class. It measures the peakedness of the unconstrained CRF posterior, it is not a calibrated probability estimate.

start_index / end_index (Integer offsets)

Zero-based, half-open character offsets locating the segment in the analyzed text.

word_count / token_length (Integer counts)

The number of whitespace-delimited words and model tokens in the segment.

humanizer_score (Float)

A float in the range $[0, 1]$ indicating the probability a humanizer was used to modify the text in the segment.

is_humanized (Boolean)

A boolean that is true when humanizer_score meets Pangram 4's internally calibrated humanizer threshold, which is 0.91 by default at release.

Document-Level Outputs

fraction_human / fraction_ai_assisted / fraction_ai (Float fractions)

The character-weighted fraction of the analyzed document assigned to each provenance class. These values are between 0.0 and 1.0 and sum to 1.0.

prediction_short (Discrete classification)

One of Human, Mixed, or AI:

  • +Human when at least 90% of the document's characters are classified as human.
  • +AI when at least 80% of the document's characters are classified as AI-generated.
  • +Mixed otherwise.
headline / prediction (Text)

A short headline and a longer natural-language explanation describing the composition of the document.

num_human_segments / num_ai_assisted_segments / num_ai_segments (Integer counts)

The number of contiguous segments assigned to each provenance class.

Model Resolution

Pangram 4 produces substantially finer-grained boundaries than Pangram 3, with a minimum predicted segment length of around two sentences.

Supported Languages

English Spanish French Portuguese Arabic Chinese Japanese Korean Russian Turkish Hungarian German Dutch Swedish Romanian Ukrainian Polish Italian Czech Greek Hindi Persian Urdu Vietnamese

Pangram can work effectively on languages outside the official support set due to generalization. Please contact us to request an evaluation on another language.

Model Training

Training Datasets

Pangram's human-written corpus contains long-form prose from a wide variety of domains, including essays, creative writing, reviews, books, news articles, scientific papers, professional writing, and general web text. All training data is licensed for commercial use. Pangram 4 is not trained on user-submitted text or customer API data.

Pangram's AI-generated corpus is produced in-house using the synthetic mirroring technique introduced in the original Pangram Technical Report by Emi and Spero (2024). AI-assisted training examples are created by applying AI edits to human-written documents. Pangram uses lexical and semantic alignment between the original and edited text to assign tokenwise Human, AI-Assisted, and AI-Generated labels to the training data.

Architecture

Pangram 4 uses a causal, open-weight sparse mixture-of-experts language model as its shared backbone. Four linear classification heads are attached to the shared representation:

  • +A 15-class segment-level head estimates the overall level of AI involvement in a text window.
  • +A three-class tokenwise provenance head predicts Human, AI-Assisted, or AI-Generated for every token.
  • +A binary mixed-authorship head estimates whether the the segment contains text of mixed provenance.
  • +A four-class humanizer head distinguishes Human, AI-Generated, AI-Edited, and Humanized-AI text.

The humanizer head is trained as a stop-gradient probe so that its objective does not update the shared backbone.

Pangram 4 is trained in two stages using LoRA. The first stage trains the segment-level and humanizer objectives. The first adapter is then merged into the backbone, a new adapter is initialized, and training continues with the tokenwise provenance and mixed-authorship objectives alongside the segment-level and humanizer objectives from stage 1.

Tokenwise training uses a method called Repeat2. Each 512-token training window is repeated twice. The tokenwise loss is applied only to the second copy, allowing every supervised token to use context from the complete source window despite the causal backbone.

Hardware Trained for 4 days on 8 NVIDIA H100 GPUs.
Software Trained using PyTorch and Hugging Face libraries.

For more details on model training, please see Sections 4.1 and 4.2 in the Pangram 4 Technical Report.

Model Inference

Preprocessing

Pangram removes adversarial Unicode characters and normalizes mixed-script homoglyph attacks before tokenization. File inputs are converted to text before inference.

Inference

Pangram 4 has a 512-token inference window, so longer documents are divided into overlapping windows. Repeat2 is applied to each window, and predictions for tokens that appear in multiple windows are aligned and averaged.

The model produces tokenwise, segment, and mixed-authorship, and humanizer predictions for every window. A calibrated three-state linear-chain conditional random field combines the first three observations across the full document (the humanizer evidence does not contribute). Viterbi decoding computes the most likely label sequence, while a forward-backward pass computes token-level class probabilities.

Postprocessing

Product output is constrained to sentence-level resolution, so tokens are assigned to their respective sentences by character midpoint, then sentences inherit the majority label of their tokens. An additional merging step is conducted to ensure that contiguous label sequences are of a minimum length (which we have currently tuned to around 2 sentences). The resulting non-overlapping segments cover the full input document. Finally, document fractions and headline document results are calculated from the final labeled segments.

For additional details on model inference and postprocessing, please refer to Section 4.3 in the Pangram 4 Technical Report.

Evaluations

Methodology

For the purposes of evaluation, we use the prediction_short field returned by the Pangram API. For binary evaluation datasets, i.e. datasets containing only fully human-written and/or fully AI-generated texts, a Mixed prediction counts as an error.

Human Datasets — False Positive Rate by Language

At the production operating point, Pangram 4 achieves a 0.0041% false positive rate (roughly 1 in 24,000) on 1,000,000 human-written English FineWeb evaluation examples. Multilingual false positive rates are measured on pre-2022, per-language subsets of FineWeb2.

Overall False Positive Rate

Evaluation corpusNFalse positivesFalse positive rate95% confidence interval
FineWeb English corpus1,000,000410.0041%0.0032% to 0.0050%
FineWeb2, all 104 evaluated languages996,273140.0014%0.0008% to 0.0024%

FineWeb2 False Positive Rate by Supported Language

LanguageFalse positive rate
Arabic0.0000%
Chinese0.0000%
Czech0.0000%
Dutch0.0026%
French0.0026%
German0.0026%
Greek0.0000%
Hindi0.0000%
Hungarian0.0000%
Italian0.0000%
Japanese0.0000%
Korean0.0000%
Persian0.0000%
Polish0.0000%
Portuguese0.0078%
Romanian0.0000%
Russian0.0052%
Spanish0.0026%
Swedish0.0000%
Turkish0.0000%
Ukrainian0.0361%
Urdu0.0000%
Vietnamese0.0026%

AI Datasets — False Negative Rate by Language + Generator Model

The English evaluation contains successfully scored generations from 26 frontier open-source and closed-weight models. The multilingual evaluation contains synthetic mirrors of English how-to articles, news articles, and reviews across 18 supported languages.

Overall False Negative Rate

Evaluation corpusCoverageNFalse negativesFalse negative rate95% Wilson confidence interval
English AI generations26 generator models519,9931,7660.3396%0.3242% to 0.3558%
Multilingual AI generations18 languages190,14923,5781.24%1.19% to 1.29%

False Negative Rate by Generator Model

CompanyGeneratorPangram 3.3.2Pangram 4
AnthropicClaude Fable 51.030%0.255%
AnthropicClaude Opus 50.585%0.195%
AnthropicClaude Sonnet 50.750%0.140%
AnthropicClaude Opus 4.80.885%0.235%
AnthropicClaude Sonnet 4.61.955%0.215%
AnthropicClaude Haiku 4.50.805%0.130%
AnthropicClaude family aggregate1.002%0.195%
DeepSeekDeepSeek V4 Flash1.625%0.455%
DeepSeekDeepSeek V4 Pro2.050%0.320%
DeepSeekV4 family aggregate1.838%0.388%
GoogleGemini 3.1 Pro Preview6.380%0.555%
GoogleGemini 3.5 Flash3.895%0.440%
GoogleGemini family aggregate5.138%0.498%
GoogleGemma 4 31B IT2.910%0.430%
MetaLlama 3.3 70B Instruct4.405%0.550%
Mistral AIMistral Medium 3.50.835%0.400%
Moonshot AIKimi K2.62.560%0.395%
NVIDIANemotron 3 Ultra 550B-A55B1.320%0.310%
OpenAIGPT-5.6 Sol3.240%0.450%
OpenAIGPT-5.6 Terra2.040%0.345%
OpenAIGPT-5.51.645%0.345%
OpenAIGPT-5.41.145%0.270%
OpenAIGPT-5.4 Mini0.900%0.330%
OpenAIGPT-OSS 120B0.395%0.155%
OpenAIGPT family aggregate1.561%0.316%
Alibaba CloudQwen 3.7 Max2.545%0.315%
TencentHY3 Preview1.830%0.330%
Thinking MachinesInkling0.300%0.190%
xAIGrok 4.32.645%0.605%
Z.aiGLM 5.23.175%0.470%
OverallAll generators1.9942%0.3396%

False Negative Rate by Language

LanguageFalse negative rate
Arabic0.9764%
Chinese0.7133%
Czech0.2760%
Dutch0.8397%
French1.7839%
German1.3258%
Hindi1.3682%
Italian0.3436%
Japanese0.9305%
Korean0.5805%
Persian3.1715%
Portuguese0.9946%
Russian0.4850%
Spanish0.8867%
Turkish1.1066%
Ukrainian1.5214%
Urdu5.3169%
Vietnamese1.9653%

3rd Party Benchmarks

BenchmarkEvaluation splitNPangram 4 FPRPangram 4 FNR
Liang et al. (2023): Nonnative EnglishHuman-authored non-native English910.000%
Jabarian and Imas (2025)Standard, full length15,9360.000%0.000%
Van Vassalaer et al. (2026)Public fully AI-generated subset390.000%

For additional evaluation results on both internal and 3rd party benchmarks, please see Section 5 of the Pangram 4 Technical Report.

Changes from Pangram 3.3

  • +Replaces previous algorithm for boundary detection with a tokenwise model and document-level structured decoder
  • +Substantially improves heterogeneous-mixed text recall
  • +Adds humanizer detection feature that flags AI-generated text that has been perturbed to evade detection

Intended Usage and Limitations

Pangram 4 is intended for long-form natural-language writing samples of at least 50 words, written primarily in complete sentences.

Short conversational replies, answers to questions with a single factual answer, source code, tables of contents, reference sections, templated or automated writing, instructions and technical manuals, and text dominated by mathematical notation are outside the model's primary scope or may be more susceptible to errors.

For best results, human-written headers, footers, instructions, and other extraneous formatting should be removed before checking a document.

Raw text and .docx files are recommended over PDFs when available because PDF parsing can introduce unintended artifacts.

Ethics & Safety

False accusations of AI usage can lead to serious consequences, including reputational damage, emotional trauma, and other undue harm.

We acknowledge that our model has a non-zero error rate and its errors may result in such harms. We commit to continuing to engage with our users and the academic community to educate others on appropriately contextualizing and communicating the results of AI detection software.

We take reports of false positives extremely seriously and work to mitigate their occurrences to the best of our team's ability.

We commit to training and releasing models with the lowest possible false positive rate, and improve our evaluations to continue to thoroughly test and monitor future model releases for regressions.

Pangram Labs — Model Card for Pangram 4