text model
Pangram 4
July 29, 2026Ben 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.
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
The exact substring of the analyzed text covered by the segment.
One of: AI-Generated, AI-Assisted, or Human Written.
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.
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.
Zero-based, half-open character offsets locating the segment in the analyzed text.
The number of whitespace-delimited words and model tokens in the segment.
A float in the range $[0, 1]$ indicating the probability a humanizer was used to modify the text in the segment.
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
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.
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.
A short headline and a longer natural-language explanation describing the composition of the document.
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
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.
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 corpus | N | False positives | False positive rate | 95% confidence interval |
|---|---|---|---|---|
| FineWeb English corpus | 1,000,000 | 41 | 0.0041% | 0.0032% to 0.0050% |
| FineWeb2, all 104 evaluated languages | 996,273 | 14 | 0.0014% | 0.0008% to 0.0024% |
FineWeb2 False Positive Rate by Supported Language
| Language | False positive rate |
|---|---|
| Arabic | 0.0000% |
| Chinese | 0.0000% |
| Czech | 0.0000% |
| Dutch | 0.0026% |
| French | 0.0026% |
| German | 0.0026% |
| Greek | 0.0000% |
| Hindi | 0.0000% |
| Hungarian | 0.0000% |
| Italian | 0.0000% |
| Japanese | 0.0000% |
| Korean | 0.0000% |
| Persian | 0.0000% |
| Polish | 0.0000% |
| Portuguese | 0.0078% |
| Romanian | 0.0000% |
| Russian | 0.0052% |
| Spanish | 0.0026% |
| Swedish | 0.0000% |
| Turkish | 0.0000% |
| Ukrainian | 0.0361% |
| Urdu | 0.0000% |
| Vietnamese | 0.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 corpus | Coverage | N | False negatives | False negative rate | 95% Wilson confidence interval |
|---|---|---|---|---|---|
| English AI generations | 26 generator models | 519,993 | 1,766 | 0.3396% | 0.3242% to 0.3558% |
| Multilingual AI generations | 18 languages | 190,149 | 23,578 | 1.24% | 1.19% to 1.29% |
False Negative Rate by Generator Model
| Company | Generator | Pangram 3.3.2 | Pangram 4 |
|---|---|---|---|
| Anthropic | Claude Fable 5 | 1.030% | 0.255% |
| Anthropic | Claude Opus 5 | 0.585% | 0.195% |
| Anthropic | Claude Sonnet 5 | 0.750% | 0.140% |
| Anthropic | Claude Opus 4.8 | 0.885% | 0.235% |
| Anthropic | Claude Sonnet 4.6 | 1.955% | 0.215% |
| Anthropic | Claude Haiku 4.5 | 0.805% | 0.130% |
| Anthropic | Claude family aggregate | 1.002% | 0.195% |
| DeepSeek | DeepSeek V4 Flash | 1.625% | 0.455% |
| DeepSeek | DeepSeek V4 Pro | 2.050% | 0.320% |
| DeepSeek | V4 family aggregate | 1.838% | 0.388% |
| Gemini 3.1 Pro Preview | 6.380% | 0.555% | |
| Gemini 3.5 Flash | 3.895% | 0.440% | |
| Gemini family aggregate | 5.138% | 0.498% | |
| Gemma 4 31B IT | 2.910% | 0.430% | |
| Meta | Llama 3.3 70B Instruct | 4.405% | 0.550% |
| Mistral AI | Mistral Medium 3.5 | 0.835% | 0.400% |
| Moonshot AI | Kimi K2.6 | 2.560% | 0.395% |
| NVIDIA | Nemotron 3 Ultra 550B-A55B | 1.320% | 0.310% |
| OpenAI | GPT-5.6 Sol | 3.240% | 0.450% |
| OpenAI | GPT-5.6 Terra | 2.040% | 0.345% |
| OpenAI | GPT-5.5 | 1.645% | 0.345% |
| OpenAI | GPT-5.4 | 1.145% | 0.270% |
| OpenAI | GPT-5.4 Mini | 0.900% | 0.330% |
| OpenAI | GPT-OSS 120B | 0.395% | 0.155% |
| OpenAI | GPT family aggregate | 1.561% | 0.316% |
| Alibaba Cloud | Qwen 3.7 Max | 2.545% | 0.315% |
| Tencent | HY3 Preview | 1.830% | 0.330% |
| Thinking Machines | Inkling | 0.300% | 0.190% |
| xAI | Grok 4.3 | 2.645% | 0.605% |
| Z.ai | GLM 5.2 | 3.175% | 0.470% |
| Overall | All generators | 1.9942% | 0.3396% |
False Negative Rate by Language
| Language | False negative rate |
|---|---|
| Arabic | 0.9764% |
| Chinese | 0.7133% |
| Czech | 0.2760% |
| Dutch | 0.8397% |
| French | 1.7839% |
| German | 1.3258% |
| Hindi | 1.3682% |
| Italian | 0.3436% |
| Japanese | 0.9305% |
| Korean | 0.5805% |
| Persian | 3.1715% |
| Portuguese | 0.9946% |
| Russian | 0.4850% |
| Spanish | 0.8867% |
| Turkish | 1.1066% |
| Ukrainian | 1.5214% |
| Urdu | 5.3169% |
| Vietnamese | 1.9653% |
3rd Party Benchmarks
| Benchmark | Evaluation split | N | Pangram 4 FPR | Pangram 4 FNR |
|---|---|---|---|---|
| Liang et al. (2023): Nonnative English | Human-authored non-native English | 91 | 0.000% | — |
| Jabarian and Imas (2025) | Standard, full length | 15,936 | 0.000% | 0.000% |
| Van Vassalaer et al. (2026) | Public fully AI-generated subset | 39 | — | 0.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
