Engineering · AI · Evaluation

Building Cereby's AI Humanizer: 2 Good Rewrites in 300 to Over 160

8 min read

How reverse training pairs, preference rounds and a grader we stopped imitating turned a humanizer that changed almost nothing into one that rewrites most of what it is given


In October, we gave Cereby's humanizer 300 paragraphs our detector flags as AI. It produced 2 rewrites that read as human and still said what the original said. For most paragraphs it changed nothing, and when it did change one, it was as likely to break the English as to fix the score.

On the same 300 paragraphs, it now produces over 160 rewrites that pass every check we have, including a strict copy editor, and none that fail the grader. This post is about how we got there. The detector it is measured against has its own post, and where both models run is in the serverless-GPU post.

Every experiment here ran in the same lab as the detector's: a change pushed to a lab branch starts a GPU job, the job writes its results back beside the code, and every model is graded on a frozen test set it never trains on.

What a rewrite has to survive

The humanizer is not one model call. For each paragraph the detector flags, a writer model drafts several rewrites. Hard guards throw out any draft that changes a number, alters a quote or drifts too far in length. The detector scores what is left, and a quality gate decides whether the best Human-band draft is still correct English that means the same thing. If no draft passes, the student gets the original paragraph back, unchanged.

We grade it on 300 frozen AI paragraphs the detector flags. A rewrite is usable when it lands in the Human band and passes every check of the lab's grader: no new LanguageTool error, a readability model trained on CoLA, and a meaning check run in both directions. It is damaged when it changed and fails one. Our earlier posts tell how we learned that the easiest way to a low score is broken English, and why we chose a humanizer that changes nothing over one that damages text.

Training on pairs, backwards

The first idea was to have strong chat models rewrite AI text into human-sounding text and train on that. In a pilot, 0 of 50 paragraphs got a usable rewrite that way. Big models asked to sound human still sound like big models.

So we ran it backwards. We took 6,000 real human paragraphs and had three chat models from different vendors write each one up the way AI writes. Each pair, AI version to human original, teaches the writer to go the other direction, and the target is real human writing by construction. That gave 699 pairs to start from.

Then came preference rounds. The writer drafts 16 rewrites for each of thousands of training paragraphs, the grader judges every one, and the writer is trained to prefer the drafts that passed over the ones that scored as AI or broke.

The share of drafts fully usable grew from 5% to 14% to 16.5% over three rounds, and then flattened. A small writer was reaching its limit, so once the move to GPUs made a writer several times larger affordable, we trained one the same way. Stacking rounds on top of each other made the larger writer worse, so it gets one preference pass from its supervised start, on pairs pooled from two rounds of its own drafts.

The gate was the bottleneck

With a better writer, the drafts were often good. The engine still shipped few of them, or the wrong ones. When the larger writer was asked for drafts, it wrote a strictly clean one for over half of the test paragraphs, but only about one in ten came out of the engine clean.

The production gate was the weak link. The grader's checks use large models and a grammar server, and our first serving box could not hold them, so production ran two smaller guard models. Those kept only 26% of usable drafts and let about half the broken ones through. We trained a small verifier on 35,376 of the grader's own verdicts to imitate it, which roughly doubled usable drafts kept at the same rejection rate. Then it stalled. Six verifiers across two sizes all landed at the same accuracy, and a hand check showed why the grader itself needed checking.

We read all 44 rewrites the grader called usable in the two best runs. About a third had problems it missed: a grammar slip, a meaning flipped, a garbled phrase. So we added a chat model as a copy editor on top of the grader. It rejected all 16 rewrites we had flagged by hand, agreed with itself on 148 of 150 drafts judged twice, and became the strict count every result is now reported in.

Then we audited the labels the verifier learned from. More than half of the drafts it was taught to reject would pass the copy editor, and the largest single reason was one kind of rule:

A casual draft like "it can't hold itself up against gravity so the core collapses" fails a grammar rule over one comma. A small model can't learn a clean line from labels like that. So we stopped trying to imitate the grader and ran the grader itself. Its grammar server, readability model and meaning model now run as the gate, on the same GPU as the writer, and production uses the same code the lab grades with. Then we retrained the writer once more, against the newest detector, and let the engine take eight drafts a paragraph instead of four.

On the 300 test paragraphsChanged to humanUsable (grader)Strictly cleanDamaged (grader)
October's humanizer6204
Small writer, trained verifier231667
Larger writer, trained verifier61433618
Larger writer, the grader as the gate1671671300
Retrained against the newest detector, eight drafts2102101620

Every row is scored with detector v3, the detector all the earlier rounds were measured against. With the newer, stricter v4 as both the engine's checker and the yardstick, the retrained writer flips 163 of the 300, about what the previous writer did under the easier detector. The writer that came out of that pass is stronger under both. With the grader as the gate, nothing it changes is damaged by the grader's count, because a draft that fails a check never ships. A warm essay took about three seconds at four drafts.

What this taught us

Train toward real human writing. Asking a model to sound human gave us more model writing. Starting from paragraphs people actually wrote, and teaching the writer to get back to them, gave us a target that was human by construction.

Don't train a model to imitate a judge you could run. The verifier was a sensible idea that hit a ceiling set by noisy labels, and a third of what the grader passed was flawed anyway. The gains came from looking at the grader's work by hand, adding a stricter reader, and then putting the real checks in the serving path, where what we measure is what ships.

Read the work yourself. No metric told us that most grammar failures were one missing comma. Reading drafts did.

What's next

The writer trained against detector v4 is rolling out this week. After that, the goal is fewer paragraphs handed back unchanged: under v4, 137 of the 300 test paragraphs still come back as they were, because no draft passed every check. A cleaner gate made what does ship trustworthy. Now the work is getting the writer to pass it more often.

All engineering posts