ettin-povtense-17m-v3
A 17M-parameter encoder that reads three things off a roleplay message's narration:
- point of view:
first/second/third/ambiguous - tense:
past/present/ambiguous - addressee:
you/other/none. New in v3, it says who else the narration names.
It catches voice drift, where a reply slides from the register the scene set up and the app asks the main LLM
to rewrite it. The addressee axis catches the drift that POV alone can't see: I guide you inside and I guide him inside are both first-person present, but only one is still talking to the user.
| Base | jhu-clsp/ettin-encoder-17m (ModernBERT) |
| Parameters | 16,867,858 |
| Head | one 18-way softmax (6 voices × 3 tenses), read back as three marginals |
| Max length | 256 tokens |
| Formats | safetensors fp32 · q8_0 GGUF (19.7 MB) · ONNX fp32 (67.6 MB) |
| Speed | 1.6 ms/message on ONNX, 4 CPU threads, batch 1 |
Not a drop-in for v2. The head is 18 logits in a new order, not 12. A v2 reader will silently misread it.
Using it
from transformers import AutoTokenizer, AutoModelForSequenceClassification
repo = "chartreuse-verte/ettin-povtense-17m-v3"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSequenceClassification.from_pretrained(repo)
text = "I take your hand and lead you down the stairs."
p = model(**tok(text, return_tensors="pt", truncation=True, max_length=256)).logits.softmax(-1)[0]
g = p.reshape(6, 3) # rows: first|you, first|other, first|none, second, third, ambiguous
pov = {"first": g[0:3].sum(), "second": g[3].sum(), "third": g[4].sum(), "ambiguous": g[5].sum()}
tense = dict(zip(["past", "present", "ambiguous"], g.sum(0)))
addressee = {"you": g[0].sum() + g[3].sum(), "other": g[1].sum() + g[4].sum(), "none": g[2].sum() + g[5].sum()}
print(*(max(d, key=d.get) for d in (pov, tense, addressee))) # -> first present you
Sum first, then take the argmax. Don't read the labels off the top cell: the model can be sure of the POV and split on the tense, and summing keeps that.
Outside first, the addressee follows from the POV: second → you, third → other, ambiguous → none.
Only first-person narration needs its own answer, which is why the head splits only the first row.
Abstaining. ambiguous (POV, tense) and none (addressee) mean "don't compare". Make no drift call on an
axis where either side reads that way. A spurious rewrite costs much more than a missed one.
For drift, also read an other with less than 0.8 of the mass as none. On a replay of real chats this removed 8
of 22 false addressee rewrites and 1 of 25 real ones. A floor on you does the opposite: a dropped you flips a
message to other and adds rewrites. The remaining false ones are mostly a third-person "he" that means another
character rather than the user, which the model cannot tell apart.
gguf/povtense-17m-q8_0.gguf is for llama.cpp (--embeddings --pooling rank; take the first 18 values of the
embedding). onnx/model.onnx is for onnxruntime, with dynamic batch and sequence axes. Against the torch model:
ONNX agrees on all three axes (200/200 windows), and the q8_0 GGUF agrees on 492-493 of 495 per axis, with every
disagreement on a borderline input.
Results
All numbers are agreement with LLM labels. No human labelled anything, including the eval sets.
Gold: 500 held-out windows from real conversations, never trained on.
| v2 | v3 | |
|---|---|---|
| POV acc / macro-F1 | 0.958 / 0.935 | 0.936 / 0.926 |
| tense acc / macro-F1 | 0.950 / 0.948 | 0.934 / 0.935 |
| addressee acc / macro-F1 | - | 0.930 / 0.928 |
| false drift: POV / tense / addressee | 0.5% / 0.0% / - | 1.3% / 0.3% / 1.2% |
| missed drift: POV / tense / addressee | 4.2% / 0.0% / - | 4.5% / 0.0% / 3.8% |
POV and tense are about a point below v2, across three seeds. False drift means a rewrite nobody needed, which is the error that matters.
gold_first: gold has only 31 first-person windows, so this second set adds 899 windows from the same held-out conversations, 268 of them first-person. The figures below cover all 899.
| addressee acc / macro-F1 | 0.921 / 0.926 |
| F1: you / other / none | 0.955 / 0.894 / 0.929 |
| false / missed drift | 3.0% / 4.1% |
Probes: 195 hand-written cases, one construction each, held out of every corpus.
| v2 | v3 | |
|---|---|---|
| POV, original 146 | 144 | 145 |
| tense, original 145 | 136 | 137 |
| addressee minimal pairs and you-only-in-speech (24) | - | 24 |
| addressee, all 195 | - | 187 |
Most addressee misses are single sentences (86/92). Two- and three-sentence windows score 73/75, and full messages 28/28.
Labels
- POV and tense come from
z-ai/glm-5.3-flash, a reasoning model, with the same rules as v2. The narration is what counts and quoted speech doesn't. In an asterisk-only message the bare text is speech. A bareI <verb> youis narration. - Addressee comes from
typesafe/jev-1.13, asked only about first-person rows, with "Who else does the narration name?":you: ayouoryourin the narration.other: noyou, but a particular someone else (he, she, they, a name,the guard).none: neither. An indefinitesomeoneor a person merely implied doesn't count.- A
youinside quotes is speech and changes nothing.
- First-person rows train on Jev's probabilities rather than its argmax, so a 0.52 call teaches less than a 0.99 one.
Training
- 46,380 rows across eleven corpora: roleplay turns, mined chat messages, Wikipedia and newswire (to anchor
ambiguous), synthetic and construction-specific fill, contrastive dialogue pairs, short rows, and two new in v3:- addressee minimal pairs: a
yourow with its narration rewritten tohim/her, kept only if Jev then answersother - generated first-person
other/nonefill
- addressee minimal pairs: a
- 5 epochs, lr 4.5e-5, batch 64, class-weighted soft cross-entropy (inverse cell frequency, clipped at 5×), split by conversation.
- Three seeds on identical data. This is seed 2, picked on validation before gold or probes were read.
Limits
- English, chat and roleplay register, 1-4 sentence windows with no prior context.
firstis the thinnest class on gold (31 windows, F1 0.889). One call moves F1 by about a point.{{user}}placeholders read as a name, so asother.- It classifies grammatical form, not quality.
License
MIT, same as the base model.