Skip to content

About

Reorder the enum options: a Jev clone changes its answer, Jev doesn't. n=6, raw data included.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Reorder the options and a Jev clone changed its answer (on its previous default)

I asked a local Jev clone the same six questions with the same three options, and only changed the order the options were listed in. On its default settings at the time, the answer changed for 5 of the 6 messages. Hosted Jev never changed its answer.

Chosen tier per message and option order, for four jevmlx settings and hosted Jev. A row that changes colour is an answer that depends on option order.

Each panel is one setup. Rows are messages, columns are option orders. A row that changes colour is an answer that depends on order.

Results

setup messages whose answer changed with option order
jevmlx, slots scoring (default at the time) 5 of 6 (14 of 18 answers were simply the option listed second)
jevmlx, slots + prior_correction 6 of 6 (turning it on made things worse)
jevmlx, labels scoring 0 of 6 (but rated an empty message "high risk" every time)
jevmlx, labels + prior_correction 2 of 6
Hosted Jev (jev-1.13.0), two passes 0 of 6

Update, 20 Sep 2026: a few hours after these runs, jevmlx switched its default to labels (PR #103), citing its own measurement on a 7B model: order flips 0.16 with slots vs 0.03 with labels. Follow-up on labels + prior_correction: issue #105.

Hosted rerun, 3 October 2026: the saved result contains two passes over the same six cases and three option orders (36 responses). No case changes its chosen tier across orders in either pass; responses identify jev-1.13.0. This repeats the hosted observation on this small test set, not a general accuracy or calibration result.

Fixed upstream, 21 September 2026: PR #118 made prior_correction compute one order-invariant prior and apply it by option name. Rerunning all four settings at a68ee59, same machine and model:

setting before (bcdb12c) after (a68ee59)
slots 5 of 6 5 of 6
slots + prior_correction 6 of 6 3 of 6
labels 0 of 6 0 of 6
labels + prior_correction 2 of 6 1 of 6

The remaining flips are in the evidence pass, not the prior. In slots mode the corrected prior now leans toward medium — a normal sensor reading is medium in two of three orders — so order bias is smaller, but the setting still isn't safe. Raw runs: results/clone-fix-*.txt.

Try it on your own wrapper

Keep your options and their descriptions identical, change only the order, rerun, and see if the answer moves. Ten minutes. Then try your tool's own settings, because the one that sounds like the fix (prior_correction here) wasn't.

python3.12 -m venv .venv && source .venv/bin/activate
pip install "jevmlx @ git+https://github.com/bnsd55/openjev@bcdb12cb3e3726f1691849bfdb6fb099c15c1933"
python3 clone_jevmlx_position.py        # add --prior-correction, --scoring labels, or --compact

What this doesn't show

  • Why. The effect shows up with slot scoring and not with label scoring. That's where, not why.
  • That TypeSafe's training is the reason Jev is stable. Model size, instruction tuning and prompt template are all possible explanations.
  • Anything about speed or cost.
  • A benchmark. 6 messages, no ground truth, one clone, one model size, one enum width.

The details below are collapsed. Everything is also in the raw files in results/.

Background and the exact test

TypeSafe launched Jev on 15 September 2026. You send typed questions over a fixed answer space (boolean, enum, score) plus context, and get what TypeSafe describes as a calibrated probability per field back in one forward pass, instead of generating text and parsing JSON. Within days, open-source clones of the interface appeared. They read logits at constrained answer positions on local open-weight models, with none of TypeSafe's training behind them.

I ran one of them, jevmlx (MLX, Qwen2.5-1.5B-Instruct-4bit, fully local). It kept answering "medium" a lot, so I tested whether that had to do with where "medium" sat in the list.

Six short messages, one 3-option enum field (risk_tier: low / medium / high) plus a boolean, run through three orderings of the same options: [low, medium, high], [high, medium, low], [medium, high, low]. Same option descriptions every time. Only the position changes, never the meaning.

  • clear_high_risk_scam: a phishing-style urgent message asking for card details
  • benign_smalltalk: a coffee catch-up message
  • ambiguous_urgent: a wire transfer request with no verification, urgent tone
  • technical_neutral: a sensor reading within normal range
  • mild_concern: an unrecognized $40 charge, plausibly a forgotten subscription
  • empty_string: literally nothing
jevmlx on its default at the time (slots), per message

scoring="slots" lists each option under a neutral code in the prompt and scores the codes.

case low/med/high high/med/low med/high/low
clear_high_risk_scam high medium high
benign_smalltalk medium medium high
ambiguous_urgent medium medium high
technical_neutral low low low
mild_concern medium medium high
empty_string medium medium high

14 of the 18 answers are whichever option is listed second: medium in the first two orderings, high in the third. That's how a coffee invite and an empty string become "high risk" once high moves into slot two.

The clone gives no warning. benign_smalltalk lands on high with a log-score margin of 1.48 nats over the runner-up, close to the 1.66 to 1.78 it gives the actual scam. A confidence threshold wouldn't catch it.

jevmlx's other settings

Measured at bcdb12c, before PR #118.

setting cases that change with order answers in slot 1 / 2 / 3
slots (default at the time) 5 / 6 1 / 14 / 3
slots + prior_correction 6 / 6 0 / 5 / 13
labels 0 / 6 6 / 4 / 8
labels + prior_correction 2 / 6 6 / 4 / 8

prior_correction subtracts the model's answer to an empty context. In slots mode it overshoots: the pull moves from slot two to slot three, the scam message comes out low in two of three orderings, and half of the 18 margins fall below 0.27 nats.

scoring="labels" scores the option text itself, and the order effect is gone on this test. Stable isn't the same as sensible, though: in labels mode the clone rates mild_concern and empty_string as high in every ordering. Without ground truth I can't call that wrong, but you can judge "an empty message is high risk" yourself.

Hosted Jev, per message, and how I checked the order reached the model

Each ordering was sent twice, because JSON objects are unordered by spec and TypeSafe's docs don't say whether the criteria map keeps its order. Cells are chosen tier (confidence pass 1 / pass 2).

case low/med/high high/med/low med/high/low
clear_high_risk_scam high (1.00 / 1.00) high (1.00 / 1.00) high (1.00 / 1.00)
benign_smalltalk low (1.00 / 1.00) low (0.99 / 0.99) low (0.99 / 0.99)
ambiguous_urgent high (0.75 / 0.71) high (0.88 / 0.87) high (0.84 / 0.87)
technical_neutral low (1.00 / 1.00) low (1.00 / 1.00) low (1.00 / 1.00)
mild_concern low (0.60 / 0.67) low (0.46 / 0.54) low (0.50 / 0.56)
empty_string low (1.00 / 1.00) low (0.99 / 0.99) low (1.00 / 1.00)

36 of 36 answers keep the same label.

Confidence varies across option orders, but the hosted responses alone do not establish how the server constructs model inputs. In this run, confidence moves with order more than between identical requests: ambiguous_urgent spreads 0.13 to 0.16 across orderings against at most 0.04 between repeats, and is lowest in the original ordering both times. benign_smalltalk and empty_string repeat exactly yet still differ by 0.01 between orderings. mild_concern is the noisiest (0.08 between repeats, 0.13 to 0.14 across orderings). Jev also isn't deterministic: identical requests came back up to 0.08 apart.

Caveats in full
  • No mechanism. The effect appears with slot scoring and not with label scoring. It could be a prior on the codes, a tokenization quirk, or a middle-slot bias. Adding option descriptions (so both systems saw the same rubric) didn't remove it; the defaults flipped on one more case with descriptions than without.
  • No claim about TypeSafe's training. Model scale, instruction tuning, prompt template and how they handle the criteria map are all live explanations for Jev's stability.
  • No latency or cost claim. A local forward pass and a hosted API call aren't comparable that way, so TypeSafe's 40-200x figure is untouched here.
  • n = 6, no ground truth, one clone, one model size, one quantization, one enum width. A method demonstration, not a benchmark.
Setup, full reproduction and files

Setup

  • Clone: jevmlx from bnsd55/openjev at commit bcdb12c, Qwen2.5-1.5B-Instruct-4bit, local on an M4 MacBook via MLX (mlx 0.32.2, mlx_lm 0.31.3). ordered flag off; option descriptions rendered in the prompt. The readout is deterministic, so two runs gave identical output: that confirms reproducibility, not robustness.
  • Jev: hosted jev-latest alias (responses report jev-1.13.0) via TypeSafe's /v1/systemone API, run 2026-09-20 14:47 UTC, every ordering sent twice.

Reproduce

python3.12 -m venv .venv && source .venv/bin/activate   # or: uv venv --python 3.12

# Clone side (Apple Silicon, Python >= 3.12)
pip install "jevmlx @ git+https://github.com/bnsd55/openjev@bcdb12cb3e3726f1691849bfdb6fb099c15c1933"
python3 clone_jevmlx_position.py                       # defaults at the time
python3 clone_jevmlx_position.py --prior-correction    # also: --scoring labels, --compact

# Jev side (needs a TypeSafe API key; the script never prints it)
pip install requests
export TYPESAFE_API_KEY=...
python3 jev_hosted_position.py

# Figure, rebuilt from results/ (needs matplotlib)
python3 make_figure.py

Files

  • clone_jevmlx_position.py, jev_hosted_position.py: the two tests
  • make_figure.py: builds figure/answers_by_order.png from the raw files in results/
  • results/clone-run-1.txt, results/clone-run-2.txt: clone defaults, two runs (identical)
  • results/clone-defaults-fresh.txt: clone defaults again from a clean install of the pinned commit (identical)
  • results/clone-prior-correction.txt, results/clone-labels.txt, results/clone-labels-prior.txt: the other three settings
  • results/clone-fix-*.txt: all four settings rerun at a68ee59, after PR #118
  • results/jev-run.txt, results/exp6_results_20260920T144708Z.json: raw Jev output, both passes
  • results/exp6_results_20261003T154421Z.json: raw output of the 3 Oct 2026 hosted rerun, both passes

Not affiliated with TypeSafe or the jevmlx authors. Personal experiment.

About

Reorder the enum options: a Jev clone changes its answer, Jev doesn't. n=6, raw data included.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Contributors

Languages