Detecting Signatures With No Training Using Jev

Given a two-line definition of a signature and no training, Jev called almost every signed page signed across 2,718 pages, but missed all three bars we set in advance. It returns one box per question, so on a page with several signatures it finds only one.

Gareth SharpeAI Architect IUpdated

We gave TypeSafe’s Jev a two-line definition of a signature and no training, first on 419 scanned pages and then on 2,299 more. It called almost every signed page signed, and boxed the signature within 5% of the page on 74% of the first set and 86% of the second. It missed all three bars we set before the first runs. One box comes back per question, so on a page with several signatures it finds one of them.

Updated 17 November 2026. We have since run the same questions against a second dataset — 2,299 SignverOD pages at up to 1,568 px a side — and the figures below carry both runs. The second run reused the first’s wording and scoring rule only; it sets no pass bars, and the two runs differ in documents, labelling and image size at once, so no single cause can be read into the difference.

Checking a document for a signature comes down to two small questions: is the page signed, and where is the signature? There are three common ways to answer them today. A detector trained for the job needs labelled data and a training run. A document API with a signature feature is ready to call, but Amazon Textract and Azure Document Intelligence publish no accuracy figures for it to plan around. A vision-capable LLM can be prompted to look, which means paying for open-ended text generation to get back a yes, a no and four coordinates.

Decision models offer a fourth way. They take a structured state and a question you define, and return a probability or a choice instead of generated text. In October, TypeSafe added image input and a Box question, which returns a bounding box, to Jev 1.14, its small, fast “System One” decision model. That turned signature detection into something we could ask Jev directly.

So we ran a lab: Jev as it ships, prompted only, with no signature-specific training and no fine-tuning, on 419 scanned pages. It didn’t clear the bars we set. We later put the same two questions to a second, larger set of 2,299 pages at a higher resolution, where it did better on location but still fell short of the 90% box bar — and where the pattern on pages with several signatures turned out to run the other way.

Context

Each Jev request carries a JSON state, here the page image, and one or more typed questions. We used three types. A Noul returns the probability that a statement is true. A Choice picks one option from a short list and gives a probability for each. A Box returns one bounding box with a confidence. Jev bills input tokens only, at $0.042 per million in TypeSafe’s published price when we ran.

Image input is still experimental: TypeSafe puts it behind an opt-in header and says so. Before using real pages we checked how the API handles images, using synthetic pages with scribbles. Jev accepted images between 280 and 1,568 pixels on each side and rejected anything outside that range. From the smallest to the largest accepted size, image tokens grew 27 times while pixels grew 31 times, so there was no sign of the image being shrunk to a fixed size before it was tokenised. We couldn’t see what happens inside the model after that.

The same check found something that shaped everything after it. A Box question returns exactly one box, every time. All 15 Box answers held one box, including on a synthetic page with three scribbled signatures where we asked for “all the handwritten signatures”, and on a page with none. There is no “not found” answer, so counting signatures, and deciding when there’s nothing to box, have to come from other questions.

What we tested

The pages. We used a 419-page test split of a public signature-detection dataset. 383 pages carry at least one labelled signature, 467 signatures in all, and 60 of those pages carry two or more. The other 36 have no labelled signature, and we checked all 36 by hand and found none signed. Every page is a 640×640 image as published, and we sent it at that size.

The second set. SignverOD, 2,299 scanned pages from tobacco litigation documents, tax forms, bank cheques and lease documents. 2,041 pages carry at least one labelled signature, 3,962 signatures in all, and 1,215 of those pages carry two or more. The remaining 258 pages carry no signature label but are not blank: 229 carry labelled initials, 98 a redaction and 46 a date. Not one page in the set is free of labelled handwriting, which is why this run produces no false-yes rate. Each page was shrunk to fit Jev’s limits and sent as a JPEG; every one reached the 1,568 px ceiling on its longer side.

The questions. We sent one request per page with two questions. We fixed the wording before Jev saw any real page and never changed it.

  • Presence, a Noul: “Does page contain a handwritten signature?” Short criteria said what counts (pen strokes forming a signature, usually cursive) and what doesn’t (printed or typed names, ‘/s/‘ marks, stamps, logos, cursive letterheads). A score of 0.5 or above counts as “signed”.
  • Location, a Box: “a handwritten signature in page“. A box is right if each of its four edges is within 5% of the page’s width or height of the matching edge of any labelled signature.
How location was scored: a box counts as right only if all four edges land within 5% of the page, shown as a right box inside its tolerance band and a missed box with one edge outside it.

The bars. Before the runs, we set three pass thresholds for Jev on its own: balanced accuracy on presence of at least 0.95, a false-yes rate on unsigned pages of at most 5%, and at least 90% of boxes right. We also planned to run Amazon Textract’s signature feature on the same pages for comparison. A 40-page pilot came first, with a rule to stop if Jev was clearly failing. It didn’t trigger, and the remaining 379 pages ran with nothing changed. The second set has no bars of its own: it reused the question wording and the 5% rule unchanged, and nothing else about it was fixed in advance, so it is reported beside the scored run rather than against it.

After seeing those results we added two runs that do not change the scored result: one on pages with several signatures, and one on the second set of pages. Both are reported beside it below.

Results

Presence held up best. Jev said “signed” on all 383 signed pages of the first set, and on 2,037 of the 2,041 signed pages of the second (99.8%). The false-yes side comes only from the first set, which is the only one with unsigned pages: Jev said “signed” on 6 of its 36, a false-yes rate of 16.7%, which put balanced accuracy at 0.917.

Location was weaker, and it moved between the two sets. On the first, 284 of 383 boxes (74.2%) were within 5% on every edge; on the second, 1,760 of 2,041 (86.2%). Neither clears the 90% bar. The split by signature count runs opposite ways: on the first set, pages with one signature scored 255 of 323 (78.9%) and pages with two or more 29 of 60 (48.3%); on the second, one signature scored 686 of 826 (83.1%) and two or more 1,074 of 1,215 (88.4%).

MeasureFirst run, 419 pagesSecond run, 2,299 pagesBar, first run
Signed pages called signed383 / 383 (100%)2,037 / 2,041 (99.8%)none set
Unsigned pages called signed6 / 36 (16.7%)no unsigned pages in the setat most 5%
Presence balanced accuracy0.917not computableat least 0.95
Boxes right, all signed pages284 / 383 (74.2%)1,760 / 2,041 (86.2%)at least 90%
Boxes right, one signature255 / 323 (78.9%)686 / 826 (83.1%)none set
Boxes right, two or more29 / 60 (48.3%)1,074 / 1,215 (88.4%)none set

95% bootstrap intervals over pages. First run: signed called signed 100% to 100%, unsigned called signed 5.6% to 30.6%, balanced accuracy 0.847 to 0.972, boxes right 69.7% to 78.6% (all signed), 74.4% to 83.4% (one signature), 35.6% to 61.4% (two or more). Second run: signed called signed 99.6% to 100.0%, boxes right 84.7% to 87.8% (all signed), 80.5% to 85.6% (one signature), 86.5% to 90.2% (two or more). The first run resamples signed and unsigned pages separately; the second resamples its 2,041 signed pages, since it has no unsigned ones.

Jev missed all three bars, and the lab passes only if every bar holds. The second run does not change that: it sets no bars, and on the one measure the bars and it have in common — boxes right on signed pages — 86.2% is still short of 90%.

The misses are uneven, in both sets. On the 353 signed pages of the first full run, the median page’s worst edge was off by 3.0% of the page, inside the 5% tolerance; of the 90 boxes that missed, 22 were off by between 5% and 6% and 53 by more than 10%. The second set is much the same shape: a median worst edge of 2.8%, and of the 281 boxes that missed, 83 were off by between 5% and 6% and 98 by more than 10%. A near miss and a box on the wrong part of the page both count as missed, and in both sets roughly a third of the misses are near ones.

Worst edge error on 353 signed pages: 263 boxes were within 5%, then 22 over 5% up to 6%, 9 up to 8%, 6 up to 10%, and 53 over 10%.

The false yeses, in the first set, follow a pattern. On all six unsigned pages Jev flagged, its box sat on or near handwriting that isn’t a signing mark: a filing name, routing notes on two pages, a short flourish by a stamp, a faint scribble by a document number, and header initials. Our criteria said a signature could be “anywhere on the page” and didn’t mention notes or initials, so some of this comes from our wording. Two of the six looked borderline on review. Leaving those two out, a check we’d committed to before the full run, lifts balanced accuracy to 0.941 and lowers the false-yes rate to 4 of 34 (11.8%). Both are still short of their bars, and the check decides nothing.

Several signatures on one page. On the first set’s 60 multi-signature pages, Jev’s single box was right on 29 (48.3%), well below its single-signature pages. On the second set’s 1,215, it was right on 1,074 (88.4%), slightly above its own. We cannot explain the reversal from the data. The obvious candidate, that a page with more labelled signatures gives one box more chances to match, does not hold: the two sets’ multi-signature pages carry a similar number of signatures each, 2.40 and 2.58. Within the second set those pages also carry smaller signatures than its single-signature pages, a median of 1.04% of the page against 2.14%, which under a 5%-of-page rule should make them harder rather than easier. What both sets do show is the limit underneath the page-level score: Box returns one box per question, so that box matched 29 of the 144 signatures on the first set’s multi-signature pages (20.1%) and 1,074 of the 3,136 on the second set’s (34.2%). On the first set we also looked at what the box did when it was wrong: of 31 pages, it overlapped one signature but missed the tolerance on 22, spanned two or more signatures on 5, and missed every signature on 4. Because Box gives one box per question, we tried the approach TypeSafe’s documentation suggests for several objects. A count question (none, one or several) comes first, and on pages counted as several, the page is cut into four overlapping tiles and Jev is asked for a box in each.

The count-then-tile method: each page is counted as none, one or several; the 87 pages counted as several were cut into four overlapping tiles, giving 348 tile requests, 281 tile boxes kept and 273 boxes after merging.

The count question did well. It matched the label on 372 of 419 pages (88.8%) and called 53 of the 60 multi-signature pages “several”. The tiles didn’t help. Across all 467 labelled signatures, count-then-tile found 283 (60.6%), against 284 (60.8%) for the single page box. On the multi-signature pages it found 29 of 144 signatures, the same number as the single box. The tiles also returned more boxes, so precision fell from 284 of 389 (73.0%) to 287 of 575 (49.9%). It found every signature on 4 of the 60 multi-signature pages, where the single box never did, but found at least one on only 25, against 29. We haven’t examined why the tile boxes miss. Tiles cutting a signature at the edge is one possibility we didn’t check. We did not repeat the tiling on the second set.

The count question against the labels: 30 of 36 unsigned pages, 289 of 323 one-signature pages and 53 of 60 multi-signature pages were counted right, and every miss was one step off.
Recall and precision for the single page box against count-then-tile: recall barely moves, while precision falls from 73.0% to 49.9% on all pages, 78.9% to 63.2% on one signature, and 48.3% to 19.8% on two or more.

Cost and speed, and what resolution costs. The 379-page full run at 640×640 used 551,345 input tokens, about 1,450 a page, and cost $0.023 at the published price — about six cents per thousand pages. Every run in the first part of the lab came to $0.066 in total. The second set, at up to 1,568 px a side, used 11,994,070 input tokens over 2,299 pages, about 5,217 a page, and cost $0.50, or about 22 cents per thousand pages. That is roughly 3.6 times the tokens a page for 2.4 times the longer side. Median response time was 0.35 seconds a page on the first run and 0.44 on the second, with 95th percentiles of 0.89 and 0.63 seconds, measured from our machine including the network. Two caveats apply. We computed cost from the tokens the API reported rather than from a bill, and TypeSafe’s price page didn’t say whether image tokens are billed at the text rate.

Confidence. Box confidence separated right boxes from wrong ones in both sets, by different margins: on the first full run, a median of 0.85 on the 263 right boxes against 0.385 on the 90 wrong ones; on the second, 0.78 on 1,760 right against 0.53 on 281 wrong. A cut-off that works on one set would not transfer unchanged to the other. We recorded it but didn’t use it, so we don’t yet know how well a confidence cut-off would work in practice. The presence score is less useful as a filter. The six false yeses scored between 0.66 and 0.96, inside the range of the signed pages (0.69 to 0.99), so no single threshold removes all six without losing signed pages too.

Limitations

  • We didn’t run an LLM. The comparison the “replace the LLM” claim needs — a vision-capable LLM on the same 419 pages under the same scoring — isn’t in this lab.
  • We still can’t separate resolution from everything else. The first set was 640×640 throughout and the second ran at the 1,568 px ceiling throughout, so neither run varies resolution inside itself, and the two differ in their documents and their labelling convention as well as their image size. The higher box score on the second set cannot be attributed to any one of the three. We also didn’t tag pages as clean or noisy, or by where the signature sits.
  • The unsigned sample is small. With 36 unsigned pages, the false-yes interval runs from 5.6% to 30.6%. One person hand-checked them. The dataset’s labels aren’t perfect either: we found a page with two signatures on signature lines and only one labelled. The second set does not help here. Every one of its 2,299 pages carries labelled handwriting of some kind, so it offers no unsigned pages at all. Jev called 241 of the 258 pages without a signature label signed, but 229 of those carry labelled initials, and whether an initialled sign-off counts as a signature is exactly the question our criteria left open — so that number is not a false-yes rate and we don’t report it as one.
  • We didn’t tune the prompt. The wording was fixed before Jev saw a real page. That keeps the result clean, but we don’t know how much better wording would recover, especially on the false yeses.
  • Image input is experimental. It needs an opt-in header, and when we ran, TypeSafe said it couldn’t yet vouch for it in production.
  • Verification wasn’t tested. The lab had a second part, telling genuine signatures from forgeries given one reference. We didn’t run it, and this lab makes no conclusions about verification.

Where might Jev be useful for signatures?

These uses fit what we measured, but we haven’t tested any of them end to end.

  • A first-pass “is anything signed here?” gate, where missing a signed page costs more than a false flag. Jev missed none of the 383 signed pages, and its 6 false flags fell on pages with other handwriting, which a person can clear quickly.
  • Picking out pages that need another path. On the first set the count question called 53 of the 60 multi-signature pages “several”, even though one Box question returns one box however many signatures a page carries — on the second set’s multi-signature pages it matched 1,074 of 3,136. Pages a count question flags as having several could go to a person or another tool.
  • A location hint on single-signature pages, for a reviewer to confirm. 79% of those boxes were within 5%, and Box confidence may show which ones to check first.

Alternatives, and how we’d choose

  • A vision LLM. Its answer is free text, so it isn’t limited to one box per question.
  • A detector trained for signatures. The dataset’s publisher also publishes a trained detector with results on a 419-image test split, under a different metric (mAP at IoU 0.5). We didn’t run it. The trade-off is the one Jev avoids: labelled data, a training run, and retraining when your documents change.
  • A document API with a signature feature, such as AWS Textract or Azure Document Intelligence.
  • Fine-tuning a vision LLM, or training a custom model with reinforcement learning. Not attempted. The lab set out to see how far prompting alone gets.

How we’d choose:

  • If you need every signature boxed on multi-signature pages, Jev as we used it isn’t the answer. Test a trained detector or a vision LLM first.
  • If you need a fast, cheap signed/unsigned flag with a person reviewing what it flags, Jev is worth testing on a labelled sample of your own pages. It’s one request per page, with no training step.
  • Either way, test on your own documents. Our numbers come from two public datasets, each at a single resolution, with a prompt we never tuned — and the box score moved twelve points between them.

Where this leaves us

With prompting alone, Jev called almost every signed page we gave it signed — 383 of 383, then 2,037 of 2,041 — and put its box within 5% of the label on 74% of the first set and 86% of the second. It did that for six to twenty-two cents per thousand pages depending on image size, with a median response under half a second. It didn’t meet the bars we set. Its false yeses, on the only set that could show them, came from handwriting that isn’t a signature. And one Box question returns one box, so a page with several signatures gets one of them, with or without tiles.

That makes it plausible that a decision model could replace a vision LLM as the signature detector, for a narrower job than we started with: single-signature pages, presence first, with a person or a confidence cut-off catching the misses. We have no LLM figures on either set, and nothing in our data isolates scan quality, signature position or resolution — the twelve-point gap between the two sets is consistent with any of them, and with the documents simply being different. “It works when the scan is good and the signature is where you’d expect” is a hypothesis for the next lab, not a finding of this one.

What we’d test next:

  • A vision LLM on the same 419 pages with the same scoring, recording cost and latency, so the comparison is head to head.
  • Pages tagged by scan quality and signature position, scored per group, to test that condition directly.
  • The same pages at two sizes. We have now run a second set at 1,568 px a side and seen a higher box score, but with the documents and labelling changed as well, so it settles nothing. Sending one set of pages at 640 px and at 1,568 px, with everything else held still, would.
  • Presence criteria narrowed to the signing mark, and Box confidence as a cut-off.

Sources

Have an AI priority that
has to work?

Talk with us