Back

Training a (Stealthy) Model

Agape Keleta

When I saw the release of the Pangram 4 Technical Report, I felt an irresistible urge to see how hard it would be to bypasss it. I should stress that Pangram v4 is not like the flimsy perplexity detectors of 2023. According to 3rd party leaderboards and their own technical report, it is basically insane, achieving a 0.34% FNR on 520,000 open-ended generations from 26 frontier models (0.20% for Anthropic and 0.32% for OpenAI), a 0.004% FPR on 1M+ human documents, and 98.83% on 13 commercial humanizers. If you look at their ablations you can tell they have gone to absurd lengths to make this happen. They use an open-weight MoE as a backbone, sample overlapping 512-token windows, use a linear-chain CRF to score clause-level lexical realizations, and run a stop-gradient humanizer probe. And, finally, they only classify documents as Human if fhuman≥0.90f_{\text{human}} \ge 0.90, i.e. 90% of the document ‘truly’ looks human-written.I think this is different for Pangram v4.1, since it does token level classification. The question then becomes, how hard could it be to build a humanizer that can carry AI prose past this wall, without ‘corrupting’ its underlying content?

Humble Beginnings

My first instinct was to see if we could just trick a frontier model into ‘sounding human’. Unfortunately, this is hopeless. Naively prompting instruct tuned models with ‘sound human’ results in 0/209 (the AI score remains 1.000 -⁠> 1.000). Even conditioning on the output of an existing working humanizer (i.e. ‘imitate this writing style’) results in 0/60. It’s also not possible to just construct a heuristic based on ‘burstiness’, stylometrics, perplexity, and the like. Across n=4,704 draws, none of those surface features ever exceeded an AUROC of 0.55.

The obvious thing to do next is to finetune a model.

The most natural way to do this is to do supervised finetuning (SFT) on ‘lossless’ examples, where we start with a human document hh, have an LLM rewrite it into an ‘AI’ document xAIx_{\text{AI}} that preserves 100% of the content/claims, and then do reverse SFT via

LSFT(θ)=−E(x,h)[∑tlog⁡pθ(ht∣h<t,x)]\mathcal{L}_{\text{SFT}}(\theta) = -\mathbb{E}_{(x,h)}\left[\sum_t \log p_\theta(h_t \mid h_{<t}, x)\right]

This seems like a perfectly reasonable way to proceed! After all, given a ‘lossless’ example, there is nothing the model needs to ‘invent’ in order to generate hh. I’ve tried this on Qwen3.6-27B (LoRA r=64) using five distinct lossless constructions (per-paragraph paraphrasing, conditioning on Pangram-flagged inputs, and regenerating from shuffled fact lists), and every single model has hit the exact same ~3-7% Human ceiling on native AI drafts.

This is completely explained by two direct measurements. First, a ‘lossless’ AI paraphrase of a human document still inherits the human’s claim selection. It scores only a median 0.675 Pangram likelihood (vs 1.000 for native AI drafts) and retains a large conditional token dependence

Δ(y;x)=1∣y∣[log⁡p(y∣x)−log⁡p(y∣xunrel)]=+1.46 nats/tok\Delta(y; x) = \frac{1}{|y|}\big[\log p(y \mid x) - \log p(y \mid x_{\text{unrel}})\big] = +1.46\text{ nats/tok}

So SFT learns a tight local copy-and-polish map, not a distributional shift. Second, exact per-token logprob accounting shows passing draws sit −0.26-0.26 nats/tok down in the policy’s own tail (−1.502-1.502 vs −1.239-1.239 nats/tok in 16/20 docs), which over T=300T=300 tokens compounds to

pθ(ypass∣x)pθ(yfail∣x)≈e−0.26×300≈e−78\frac{p_\theta(y_{\text{pass}} \mid x)}{p_\theta(y_{\text{fail}} \mid x)} \approx e^{-0.26 \times 300} \approx e^{-78}

Breaking the copy channel

The trick that eventually cracked the distribution was to SFT on backtranslated pairs. The intuition is quite simple. I noticed that if you replace the human source with an exact paraphrase (in other words, a function h↦xh \mapsto x that is lossless and can be executed in-place), then the pθ(y∣x)p_\theta(y \mid x) distribution refuses to move from the center of the AI manifold. The conditional token dependence of the target document yy on the prompt xx is +1.46 nats/tok, which suggests that the model has “learned” how to copy certain human-style syntax patterns that we would like to have it imitate. However, this is obviously not what is happening. Instead, the “lossless” relationship between hh and xx effectively creates a channel where information can flow from the prompt to the response, with SFT subsequently optimizing for this transmission. But we can break that copy channel with an information bottleneck! The trick is to take each human document hh and, again with the help of an LLM, compress it into a set of telegraphic notes z=fnotes(h)z = f_{\text{notes}}(h) that only contain facts and no stylistic flourishes (in practice, I take one information-dense ‘note block’ per paragraph, not even making complete sentences). Subsequently, I take the notes zz and ask a frontier model to freely generate a polished AI document from scratch (‘freegen’), such that x=gAI(z)x = g_{\text{AI}}(z). Using these pairs, I then train the model to write x↦hx \mapsto h.

h→fnotesz→gAIx⟹SFT pθ(h∣x)h \xrightarrow{f_{\text{notes}}} z \xrightarrow{g_{\text{AI}}} x \qquad \Longrightarrow \qquad \text{SFT } p_\theta(h \mid x)

This creates exactly the information bottleneck we want between prompt and response, and we can measure it. For the ‘serve’ model, the conditional token dependence drops from +0.69 to +0.24 nats/tok, and the pθ(y∣x)p_\theta(y \mid x) distribution finally “moves” into the human manifold. The effect of this on performance is best seen by an ablation where I take n=221n = 221 training pairs of either aligned, lossless documents, or ‘backtranslated’ documents (notes ↦\mapsto freegen). The lossless documents create a model that scores 0.648 AI (or 0.864 on out of distribution blocks), while the backtranslated documents score 0.054 (or 0.036 out of distribution). It’s clear that the ‘shape’ of the training set matters much more than its size, which is what this exact n=221n = 221 comparison shows.

Real Backtranslated Training Triple · 3-gram overlap = 0.042
h -> f_notes -> z -> g_AI -> x
1. Real Human Target h
Pangram Human · ai = 0.00006

American immigration policy is unwelcoming to immigrants. Often, the only ways to enter the US legally are to marry someone in the US or to get the sponsorship of a powerful tech company. It takes several months even under the best of circumstances. I just wanted clarify that Russians living in the US face no prejudice.

2. Bottleneck Notes z = f_notes(h)

US immigration policy unwelcoming · legal entry often through marriage or major tech-company sponsorship · process takes months even in best circumstances · Russians in US face no prejudice, per writer

3. AI Freegen Input x = g_AI(z)
Pangram AI · ai = 0.927

American immigration policy is not especially welcoming. In practice, legal entry often depends on marrying an American or persuading a major technology company to sponsor you, and even under favorable circumstances the process takes months. That said, in my experience Russians already living in the United States do not face prejudice for being Russian.

SFT maps AI Freegen x -> Real Human Target h
Matched-size causal ablation, n = 221 pairs on Qwen3.6-27B (AI likelihood, lower is better)
In-domainOut-of-distribution
Lossless Aligned Pairs (n=221) · serve-time Δ +0.69 nats/tok
0.648 AI
0.864 AI
Backtranslated Notes->Freegen (n=221) · serve-time Δ +0.24 nats/tok
0.054 AI
0.036 AI
Where the probability mass sits
AI manifold (caught)Human ∧ faithfulHallucinatedPangram v4 boundaryHuman-likeness
Lossless Aligned Paraphrase SFT. Conditional token dependence stays high (+0.69 nats/tok at serve time). Almost all probability mass stays trapped inside the AI manifold -> only 7.2% Human, 3.0% clean joint.

Once you have this trick in hand, it’s straightforward to scale up. The backtranslated approach goes to 67.4% Human on Pangram v4 when writing 3-paragraph windows. Scaling up to 350-900 word documents across 10 different genresQwen3.6-27B LoRA r=64, 3 epochs, lr 10−410^{-4}, a ‘grounding prompt’ header plus random tag dropout for controlling ‘information surplus’, ~4,500 pairs total. leads to a score of 33.7% Human/draw on our internal 33 document AI-native benchmark. This is almost 5x better than the score of 7.2% we get from aligned SFT.

SFT conserves Human × faithful

It’s difficult to make a backtranslation dataset that does not suffer from this problem. The bottleneck z=fnotes(h)z = f_{\text{notes}}(h) is almost never informationally complete with respect to hh, and so in 91% of our pairs, the human response hh contained additions relative to xx. For example, some important nuance or a funny story was forgotten, or the speaker’s personality came through more in hh than in xx. In contrast to e.g. summarization, we are asked to reconstruct the exact hh from xx, not find some sufficiently coherent hh from xx. Standard SFT does not have a notion of “faithfulness to xx”. It only tries to reduce the next-token NLL of hh (which is to say, cross-entropy). The model can trivially reduce this NLL by learning to unconditionally hallucinate. Indeed, our 3 paragraph model scored 67.4% in Human, but had 2.5 hallucinations on average in passing responses, with a joint Human & faithful score of only 0.8% (where faithful means no hallucinations).

It seems that the joint Human & faithful score is a conservation law when using SFT alone. Across all of our SFT datasets, we have found that

P(Human∧faithful)=P(Human)⋅P(faithful∣Human)≈0.03–0.06P(\text{Human} \land \text{faithful}) = P(\text{Human}) \cdot P(\text{faithful} \mid \text{Human}) \approx 0.03\text{--}0.06

Specifically, we got 3.0% for aligned SFT, 3.8% for mixed SFT, and 3.0% for the backtranslated SFT. You can increase P(Human)P(\text{Human}) by filtering in pairs but P(faithful∣Human)P(\text{faithful} \mid \text{Human}) will automatically decrease correspondingly, and vice versa.

The pure-SFT conservation law
Pure-SFT Conservation Band (Joint ≈ 3–6%)Pure SFTOnline RL, DEPO v3
0%20%40%60%80%0%25%50%75%100%P(Human)P(faithful | Human)Aligned SFTWhole-doc backtrans3-para backtransDEPO v3
Offline Fixes That Still Obeyed the Law
33% Loss Masking
Human crashed 4/6 -> 1/6, hallucinations shifted to body
More SFT Epochs
Crushed the passing tail
Self-Training (610 passing draws)
Length 0.87x -> 1.02x, Human dropped 49.2% -> 42.8%
Offline DPO
Human dropped 68.2% -> 49.2%, length 0.87x, humanizer flag 23% -> 38%

It’s tempting to think you can solve this problem with a few offline tricks, for example by not backproping on the unfaithful parts of hh (i.e. zeroing their loss). In our experience, this too preserves the conservation law. We applied loss masking to 33% of the target characters and found that the model “lived up to its personality” less, but at the cost of crashing the Human score from 4/6 to 1/6 and just transferring the hallucinations to the main text instead. Adding more SFT epochs caused the tail of passing responses to shrink. If you self-train the model on 610 of its own passing Human responses, you can increase the response length from 0.87x0.87x to 1.02x1.02x of the input, but decrease the Human score from 49.2% to 42.8%. Finally, offline DPO gave a tradeoff of 19 points Human (68.2% -⁠> 49.2%), 0.87x0.87x length ratio and an increase of Pangram’s humanizer flag from 23% to 38%.

Constrained RL on the joint

The breakthrough came when I started treating the data as disposable. The key insight is that once backtranslation has expanded the policy’s support, you don’t need the human texts anymore! Sure, a naive attempt to leverage them through rejection sampling failed, but we can do a lot better with online RL. In particular, we can use the human realizations to move the policy support in the right direction, and then leverage online policy gradient RL to directly optimize the native AI-drafted setting.K=16K=16 samples per document, learning rate 5×10−55 \times 10^{-5}. This eliminates the need for ‘anchor’ distributions altogether, since the AI inputs are now ‘directly’ being treated as the fidelity target!

To make this work, I deployed an online Lagrangian RL setup, using two rewards. Namely, for each sample i∈{1,…,K}i \in \{1,\dots,K\} we have a detector reward and a fidelity reward

rdet,i=0.5 1[Human]+0.5(1−pAI)−0.25 1[flagged]r_{\text{det},i} = 0.5\,\mathbb{1}[\text{Human}] + 0.5(1 - p_{\text{AI}}) - 0.25\,\mathbb{1}[\text{flagged}]
rfid,i=max⁡(0,  sjudge⋅ccov−0.2 ninv−0.1 nsoft−plen)r_{\text{fid},i} = \max\big(0,\; s_{\text{judge}} \cdot c_{\text{cov}} - 0.2\,n_{\text{inv}} - 0.1\,n_{\text{soft}} - p_{\text{len}}\big)

In particular, the former relies on the (extremely good) Pangram detector, while the latter relies on a calibrated 397B LLM judge with hard zeros for detected copies, out of range lengths (∉[0.70,1.30]\notin[0.70, 1.30]), and tampered with placeholders. Both are z-scored within each document’s group and then combined with an adaptive Lagrange multiplier

Ai=clip⁡ ⁣(z(rdet,i)+λt z(rfid,i),  −3,  3),λt+1=max⁡ ⁣(λmin⁡,  λt+η(τ−faithful^t))A_i = \operatorname{clip}\!\Big(z(r_{\text{det},i}) + \lambda_t\,z(r_{\text{fid},i}),\; -3,\; 3\Big), \qquad \lambda_{t+1} = \max\!\Big(\lambda_{\min},\; \lambda_t + \eta(\tau - \widehat{\text{faithful}}_t)\Big)

…where λt\lambda_t is increased every time the held-out faithfulness falls below a given target τ\tau. The first version of this setup, dubbed ‘DEPO v2’, was an unqualified triumph. The held-out joint rate jumped from 6.1% to 24.4%! However, when I got more curious and started to read actual generations, it became obvious that the length ratio had silently regressed from 1.01x to 0.81x. In particular, many cover letters ‘forgot’ to include their entire work experience section, since the LLM judge (evaluated at document-level) did not notice missing ‘chunks’ of text. This created the opportunity to do a quick ‘DEPO v3’, which (1) uses per-paragraph coverage multiplier ccovc_{\text{cov}} for the judge score, (2) applies a soft length penalty below 0.80 (a hard one +/-15% greatly hurt Human rates down to 8-12%), (3) pins the letter header and sign-off outside the rewrite window (the model edits ‘just’ the body), and (4) uses stricter regexes for placeholders like [City][\text{City}] and [Date][\text{Date}].

For a clean final result, I evaluated this pipeline on a held-out set of 33 documents (K=8,T=1.0K=8, T=1.0, no cherry picking). The clean joint rate jumps roughly 24× from 3.0% to 72.9%, the Human/draw rate reaches 99.3%, all 33 documents get at least one clean joint draw, and length violations drop from 19.3% to 1.5%.

StageTraining MethodHuman / DrawClean JointDocs w/ Clean Draw (K=8)Length Violations
1Lossless aligned paraphrase SFT (~1,700 pairs)7.2%3.0%15.2%8.0%
2Whole-doc backtranslated SFT (~4,500 pairs)33.7%3.0%12.1%11.0%
3Online Lagrangian RL, DEPO v2 (doc-level judge)53.8%5.7%18.2%19.3%
4Online Lagrangian RL, DEPO v3 (per-para coverage + soft len)99.3%72.9%100%1.5%
Human / drawClean Joint (Human ∧ Faithful)Length Violations
0%25%50%75%100%7.23.08.01. Aligned SFT33.73.011.02. Backtrans SFT53.85.719.33. DEPO v299.372.91.54. DEPO v3
Held-out 33-document native AI benchmark (K=8, T=1.0, zero cherry-picking). Backtranslated SFT lifts Human/draw ~5× (7.2% -> 33.7%). Online DEPO v3 lifts clean joint pass rate ~24× (3.0% -> 72.9%) while cutting length violations from 19.3% down to 1.5%.
A held-out native AI discussion post (253 words), before and after
Input
Native AI Input (253w)
Pangram AI 1.000

The cultural complaint about meeting productivity has reached a fever pitch because the modern workplace has scaled up communication while losing sight of its purpose. In the digital age, meetings have become the path of least resistance for indecision—a corporate security blanket where collaboration is routinely confused with actual progress.

At the heart of this frustration is the "calendar creep" enabled by platforms like Outlook and Teams. With one click, anyone can hijack an hour of a colleague's day. Consequently, calendars are treated as public property, leaving knowledge workers with fragmented schedules. This disruption destroys "deep work"—the focused, uninterrupted time required for high-level problem-solving. When a professional is forced to constantly shift context between meetings, their actual output plummets, creating a stressful cycle of working late just to complete their day job.

Shipped Online RL, DEPO v3 (271w)
Pangram Human 0.0078 · Recall 0.88 · 0 flags

Why do so many people feel like meetings are a waste of time? It seems to be ingrained in our culture that meetings aren't productive. I think there are a few reasons for this, primarily due to the way we communicate at work these days. Meetings have become the easy way out when it comes to making decisions in the digital age. It's our security blanket for being collaborative at work.

With scheduling tools like Outlook and Teams, it is super easy to add a meeting to someone's calendar with the click of a button. As a result, meetings tend to creep onto our calendars, stealing an hour here and there. Our calendars become public property and our days become super fragmented. We lose our ability to do deep work (high-level problem solving) because we are constantly switching contexts throughout the day to accommodate meetings. As a result, our work output suffers and it becomes stressful as we stay late to get our day job done.