Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.
Python calibrationclassificationdecision-modelhuggingfacejevmodernbertmultilingualnlppythonpytorchroutingtyped-decisionszero-shot
feat(research): choice identical-option control for presentation_checks (#602, part a)
hiroki-abe-580341955cf7f5
diff --git a/research/eval/README.md b/research/eval/README.mdindex 3f7815f5..e7425a73 100644--- a/research/eval/README.md+++ b/research/eval/README.md@@ -318,13 +318,42 @@ identical-option control passes in Japanese and Turkish, so on those states it wnot catch the prior on its own. That is the case for running both checks in everylanguage.+### The choice control (`choice_slot0_identical`)++The identical-option control, applied to `choice` (#602, part a). Choice keys must be+unique, so the options are numbered keys with one shared description (`1: a request`,+`2: a request`, ...), the counterpart of score's `level N:` prefix. The metric is the+score control's metric on the choice marker logits: slot 0 minus the mean over the+options, averaged over the states and both texts. It is gated at 4 options (the gate+is the same, −0.20), and 3 options are reported beside it. The control runs in every+`--lang` run, and `--checks choice_slot0_identical` names it anywhere. Without either,+the default English report is unchanged. With the control, the parity check also+compares the choice probabilities with `Agent.system_one`.++CPU, fp32, `convaiinnovations/laya@55cf4c4`, laya 0.3.21. Full output:+`research/results/presentation_checks_choice.json`. `Router` picks `english` for the+English states and `multilingual` for the rest; every row runs on the checkpoint named.++| checkpoint | language | `choice_slot0_identical`, K = 4 (leave-one-out) | K = 3 | choice parity |+|---|---|---|---|---|+| `laya` (english) | `en` | +0.902 (+0.833 .. +0.971) PASS | +0.322 | 4.84e-5 |+| `laya-multilingual` | `en` | +0.399 (+0.334 .. +0.455) PASS | +0.249 | 4.93e-5 |+| `laya-multilingual` | `ja` | +0.394 (+0.283 .. +0.493) PASS | +0.196 | 4.89e-5 |+| `laya-multilingual` | `ko` | +0.096 (−0.025 .. +0.204) PASS | −0.147 | 4.87e-5 |+| `laya-multilingual` | `hi` | +0.346 (+0.285 .. +0.389) PASS | +0.267 | 4.97e-5 |+| `laya-multilingual` | `tr` | +0.538 (+0.431 .. +0.588) PASS | +0.360 | 4.95e-5 |++On the same states `laya-multilingual` fails the score first-slot check in every+language, so its slot-0 deficit is specific to `score`: with choice options it+favours slot 0 instead. Korean is closest to the gate, and below 0 at 3 options.+### Tests`research/eval/test_presentation_checks.py` runs offline, with scripted logits inplace of a checkpoint:```bash-python research/eval/test_presentation_checks.py # 154 passed, 0 failed+python research/eval/test_presentation_checks.py # 219 passed, 0 failed```It pins the fixed inputs and both gates. It checks that the identical-option@@ -334,7 +363,9 @@ bounds, the one-sided gates, and the exit codes. A scripted slot-0 hole fails bochecks, and an order-invariant model scores exactly 1/3. For each language itpins ten distinct states, three levels in every slot twice, and routing to`multilingual`. It also checks the `--lang` parsing. The default run gives the same-report as `lang="en"`.+report as `lang="en"`. For the choice control it checks the `N: <same text>` rendering,+the centring and the gate at 4 options by hand, the 3-option value beside it, and+that the control stays out of the default run.### Limits@@ -348,14 +379,14 @@ report as `lang="en"`.(multilingual: −0.75 / −0.52 / −0.25 and −0.58 / −0.47 / −0.37.)* Passing is not accuracy. A checkpoint can clear both gates and still rank urgencybadly; this checks one known failure, not `score` quality.-* `score` only, 10 states per language. The states are short support messages, so a+* Score checks and the choice control only, 10 states per language. The states are short support messages, so acheckpoint's behaviour on long inputs is not covered here. The Korean, Hindi andTurkish states and levels were written by a non-native speaker; corrections fromnative speakers are welcome.* Thresholds were set on CPU fp32. On CUDA, `Agent` runs the forward pass underreduced-precision autocast and `score_cases` does not. The parity check reports thatdifference instead of hiding it.-* New checks are one function each, registered in `CHECKS`.+* New checks are one function each, registered in `CHECKS` (score) or `CHOICE_CHECKS`.## Metamorphic option-order robustness (experimental)diff --git a/research/eval/presentation_checks.py b/research/eval/presentation_checks.pyindex d74e3762..a9e7ef56 100644--- a/research/eval/presentation_checks.py+++ b/research/eval/presentation_checks.py@@ -24,7 +24,14 @@ Checksdepend on the order picks the first slot in exactly 1/3 of the decisions. Themetric is the observed first-slot rate.-Both metrics read raw marker logits (before temperature) through+``choice_slot0_identical``+ The same control for ``choice`` (#602, part a). Choice keys must be unique, so the+ options are numbered keys with one shared description (``1: a request``,+ ``2: a request``, ...), the counterpart of score's ``level N:`` prefix. Gated at 4+ options, with 3 reported beside it; same gate as the score control. It runs with+ ``--lang`` (or when named in ``--checks``), so the default English report is unchanged.++All metrics read raw marker logits (before temperature) through``laya_eval.score_cases``, the same forward pass ``research/scripts/bench_local.py``uses. ``parity`` checks that path against ``Agent.system_one`` before anything isreported.@@ -92,6 +99,9 @@ STATES = (INSTRUCTIONS = "How urgent is this request?"IDENTICAL_TEXTS = ("moderate", "a request")IDENTICAL_KS = (3, 4, 5)+# Option counts for the choice control. The first is gated: 4, as in a 4-option routing+# question; 3 is reported next to it.+CHOICE_KS = (4, 3)LEVELS = ("Not urgent", "Soon", "Work is blocked")# Fixed states in other languages, for the multilingual checkpoint (#602). Each tuple follows@@ -183,6 +193,16 @@ def identical_question(text: str, k: int, instructions: str = INSTRUCTIONS) -> Dreturn {"type": "score", "instructions": instructions, "criteria": [text] * k}+def choice_identical_question(text: str, k: int, instructions: str = INSTRUCTIONS) -> Dict[str, Any]:+ """Numbered keys with one shared description: `1: <text>`, `2: <text>`, ... (#602).++ Choice keys must be unique, so the options cannot be identical outright; a numbered key is+ the closest counterpart of the `level N:` prefix the score control carries.+ """+ return {"type": "choice", "instructions": instructions,+ "criteria": {str(i + 1): text for i in range(k)}}++def permuted_questions(levels: Sequence[str] = LEVELS,instructions: str = INSTRUCTIONS) -> List[Tuple[Tuple[int, ...], Dict[str, Any]]]:"""Every order of `levels`, as (order, question); order[slot] indexes `levels`."""@@ -274,16 +294,61 @@ def check_score_first_slot_permuted(score_fn: ScoreFn, states: Optional[Sequence}+def check_choice_slot0_identical(score_fn: ScoreFn, states: Optional[Sequence[str]] = None,+ lang: str = "en") -> Dict[str, Any]:+ """The score control's counterpart for `choice` (#602, part a).++ One choice question whose options are `1: <text>`, `2: <text>`, ...: they differ only by+ position and the numbered key. The metric is slot 0's raw marker logit minus the mean over+ the options, averaged over states and texts, at the first entry of CHOICE_KS; the others are+ reported beside it and not gated. Same gate as the score control.+ """+ spec = LANGUAGES[lang]+ states = spec["states"] if states is None else states+ configs = [(text, k) for text in spec["identical_texts"] for k in CHOICE_KS]+ questions = [choice_identical_question(text, k, spec["instructions"]) for text, k in configs]+ by_k: Dict[int, List[float]] = {k: [] for k in CHOICE_KS}+ per_config: Dict[str, List[float]] = {"%s/K=%d" % c: [] for c in configs}+ for state in states:+ slot0: Dict[int, List[float]] = {k: [] for k in CHOICE_KS}+ for (text, k), z in zip(configs, score_fn(state, questions)):+ z = [float(v) for v in z]+ centred = z[0] - mean(z)+ slot0[k].append(centred)+ per_config["%s/K=%d" % (text, k)].append(centred)+ for k in CHOICE_KS:+ by_k[k].append(mean(slot0[k]))+ gated = by_k[CHOICE_KS[0]]+ metric = mean(gated)+ lo, hi = leave_one_out(gated)+ return {+ "metric": round(metric, 4),+ "threshold": SLOT0_MIN,+ "passed": passes(metric, SLOT0_MIN),+ "leave_one_out": [round(lo, 4), round(hi, 4)],+ "k": CHOICE_KS[0],+ "by_k": {str(k): round(mean(v), 4) for k, v in by_k.items()},+ "per_state": [round(x, 4) for x in gated],+ "per_config": {name: round(mean(v), 4) for name, v in per_config.items()},+ }++CHECKS: Dict[str, Callable[..., Dict[str, Any]]] = {"score_slot0_identical": check_score_slot0_identical,"score_first_slot_permuted": check_score_first_slot_permuted,}+# Checks outside the default English run, so its report is unchanged. A `--lang` run adds them;+# `--checks` can name them anywhere.+CHOICE_CHECKS: Dict[str, Callable[..., Dict[str, Any]]] = {+ "choice_slot0_identical": check_choice_slot0_identical,+}+ALL_CHECKS: Dict[str, Callable[..., Dict[str, Any]]] = {**CHECKS, **CHOICE_CHECKS}def run_checks(score_fn: ScoreFn, names: Optional[Sequence[str]] = None,states: Optional[Sequence[str]] = None, lang: str = "en") -> Dict[str, Any]:names = list(names or CHECKS)- results = {name: CHECKS[name](score_fn, states, lang) for name in names}+ results = {name: ALL_CHECKS[name](score_fn, states, lang) for name in names}return {"checks": results, "passed": all(r["passed"] for r in results.values())}@@ -350,6 +415,25 @@ def parity(agent, states: Optional[Sequence[str]] = None, lang: str = "en") -> freturn worst+def choice_parity(agent, states: Optional[Sequence[str]] = None, lang: str = "en") -> float:+ """`parity` for the choice control's questions, keyed by option name as system_one reports them."""+ from laya.common import QTYPES++ spec = LANGUAGES[lang]+ states = spec["states"] if states is None else states+ questions = {"k%d" % k: choice_identical_question(spec["identical_texts"][0], k, spec["instructions"])+ for k in CHOICE_KS}+ score = agent_score_fn(agent)+ worst = 0.0+ for state in states:+ public = agent.system_one(state, questions)["answers"]+ for (qid, q), z in zip(questions.items(), score(state, list(questions.values()))):+ p = softmax_t(z, temperature_for(agent, QTYPES["choice"], len(z)))+ got = [public[qid]["probabilities"][key] for key in q["criteria"]]+ worst = max(worst, max(abs(a - float(b)) for a, b in zip(got, p)))+ return worst++def main(argv: Optional[Sequence[str]] = None) -> int:parser = argparse.ArgumentParser(prog="presentation-checks",@@ -360,16 +444,20 @@ def main(argv: Optional[Sequence[str]] = None) -> int:help="checkpoint subfolder, e.g. multilingual")parser.add_argument("--device", default="cpu",help="default cpu: fp32 and deterministic, which is what the thresholds were set on")- parser.add_argument("--checks", default=",".join(CHECKS),- help="comma-separated subset of: %s" % ", ".join(CHECKS))+ parser.add_argument("--checks", default=None,+ help="comma-separated subset of: %s. Default: %s; with --lang, all of them"+ % (", ".join(ALL_CHECKS), ", ".join(CHECKS)))parser.add_argument("--out", default=None, help="write the JSON report here")parser.add_argument("--lang", action="append", default=None,help="fixed-state language: %s; repeat or comma-separate (--lang ja,ko). ""Without it the run is English and the report is unchanged" % ", ".join(LANGUAGES))args = parser.parse_args(argv)- names = [x.strip() for x in args.checks.split(",") if x.strip()]- unknown = [x for x in names if x not in CHECKS]+ if args.checks is None:+ names = list(CHECKS) if args.lang is None else list(ALL_CHECKS)+ else:+ names = [x.strip() for x in args.checks.split(",") if x.strip()]+ unknown = [x for x in names if x not in ALL_CHECKS]if unknown:print("unknown checks: %s" % ", ".join(unknown), file=sys.stderr)return 2@@ -410,6 +498,12 @@ def main(argv: Optional[Sequence[str]] = None) -> int:spec = LANGUAGES[lang]routed = routes(spec["states"])lang_worst = parity(agent, lang=lang)+ extra: Dict[str, Any] = {}+ if any(name in CHOICE_CHECKS for name in names):+ extra = {"parity_score_max_abs_diff": lang_worst,+ "parity_choice_max_abs_diff": choice_parity(agent, lang=lang),+ "choice_ks": list(CHOICE_KS)}+ lang_worst = max(lang_worst, extra["parity_choice_max_abs_diff"])lang_report = run_checks(agent_score_fn(agent), names, lang=lang)by_lang[lang] = {"config": {"states": len(spec["states"]), "instructions": spec["instructions"],@@ -417,6 +511,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:"identical_ks": list(IDENTICAL_KS), "levels": list(spec["levels"]),"router_picks": routed},"parity_max_abs_diff": lang_worst,+ **extra,**lang_report,}print("== %s: Router picks %s" % (lang, ", ".join(@@ -448,6 +543,9 @@ def print_report(report: Dict[str, Any], worst: float) -> None:print(" %-26s %8.4f >= %5.2f %s (leave-one-out %.4f .. %.4f)"% (name, r["metric"], r["threshold"], "PASS" if r["passed"] else "FAIL",r["leave_one_out"][0], r["leave_one_out"][1]))+ if "by_k" in r:+ print(" %-26s gated at K=%d; by K: %s" % ("", r["k"], ", ".join(+ "%s %.4f" % (k, v) for k, v in r["by_k"].items())))print(" parity vs Agent.system_one: max |dp| %.2e (tolerance %.0e)" % (worst, PARITY_TOL))diff --git a/research/eval/test_presentation_checks.py b/research/eval/test_presentation_checks.pyindex de5dc9db..e59c5103 100644--- a/research/eval/test_presentation_checks.py+++ b/research/eval/test_presentation_checks.py@@ -13,9 +13,10 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspafrom laya.common import render_options # noqa: E402from research.eval.presentation_checks import ( # noqa: E402- CHECKS, FIRST_SLOT_MIN, IDENTICAL_KS, IDENTICAL_TEXTS, INSTRUCTIONS, LANGUAGES, LEVELS, PARITY_TOL,- SLOT0_MIN, STATES, check_score_first_slot_permuted, check_score_slot0_identical, exit_code,- identical_question, leave_one_out, main, parse_langs, passes, permuted_questions, routes, run_checks,+ ALL_CHECKS, CHECKS, CHOICE_KS, FIRST_SLOT_MIN, IDENTICAL_KS, IDENTICAL_TEXTS, INSTRUCTIONS, LANGUAGES,+ LEVELS, PARITY_TOL, SLOT0_MIN, STATES, check_choice_slot0_identical, check_score_first_slot_permuted,+ check_score_slot0_identical, choice_identical_question, exit_code, identical_question, leave_one_out,+ main, parse_langs, passes, permuted_questions, routes, run_checks,)PASS, FAIL = [], []@@ -239,6 +240,56 @@ for bad in (["xx"], ["ja,xx"], [","]):check("langs/unknown code exits 2 before loading a checkpoint", main(["--lang", "xx"]), 2)+# ------------------------------------------------ choice identical-option control (#602 a)+check("choice/option counts, gated first", CHOICE_KS, (4, 3))+check("choice/kept out of the default run", sorted(CHECKS), ["score_first_slot_permuted", "score_slot0_identical"])+check("choice/registered beside it", sorted(ALL_CHECKS),+ ["choice_slot0_identical", "score_first_slot_permuted", "score_slot0_identical"])+for lang, spec in LANGUAGES.items():+ for text in spec["identical_texts"]:+ for k in CHOICE_KS:+ q = choice_identical_question(text, k, spec["instructions"])+ check("choice/%s %s K=%d numbered keys" % (lang, text, k), list(q["criteria"]),+ [str(i + 1) for i in range(k)])+ rendered = render_options({"t": q["type"], "ins": q["instructions"], "crit": q["criteria"]})+ check("choice/%s %s K=%d renders numbered key + shared description" % (lang, text, k),+ rendered, ["%d: %s" % (i + 1, text) for i in range(k)])++r = check_choice_slot0_identical(FLAT)+check("choice/flat logits sit at zero and pass", (r["metric"], r["passed"]), (0.0, True))+r = check_choice_slot0_identical(NO_SLOT0)+# slot 0 at -2, the rest at +0.5: K=4 -2 - (-0.5/4) = -1.875, K=3 -2 - (-1/3) = -5/3+check("choice/suppressed slot 0 gated at K=4", r["metric"], -1.875)+check("choice/K=3 reported beside it", r["by_k"], {"4": -1.875, "3": round(-5 / 3, 4)})+check("choice/suppressed slot 0 fails", (r["k"], r["passed"]), (4, False))+r = check_choice_slot0_identical(scripted([-0.1, 0.0, 0.0, 0.0, 0.0]))+check("choice/a slight deficit above the gate passes", (r["metric"], r["passed"]), (-0.075, True))+r = check_choice_slot0_identical(scripted([-0.3, 0.0, 0.0, 0.0, 0.0]))+check("choice/a deficit below the gate fails", (r["metric"], r["passed"]), (-0.225, False))+r = check_choice_slot0_identical(EARLY)+check_true("choice/one-sided: early-slot preference passes", r["metric"] > 0 and r["passed"], str(r))+check("choice/one row per state", len(r["per_state"]), len(STATES))+check("choice/one entry per (text, K)", len(r["per_config"]), len(IDENTICAL_TEXTS) * len(CHOICE_KS))+for lang, spec in LANGUAGES.items():+ seen = []++ def recording(state, questions, _seen=seen):+ _seen.extend(q["instructions"] for q in questions)+ return FLAT(state, questions)++ r = check_choice_slot0_identical(recording, lang=lang)+ check_true("choice/%s asks in its own language" % lang, set(seen) == {spec["instructions"]})+ check("choice/%s per-config keys use its texts" % lang, sorted(r["per_config"]),+ sorted("%s/K=%d" % (t, k) for t in spec["identical_texts"] for k in CHOICE_KS))++calls = []+run_checks(lambda s, q: calls.append(len(q)) or FLAT(s, q), list(ALL_CHECKS), lang="ja")+check("choice/all three checks: one forward per state per check", len(calls), 3 * 10)+check("choice/default run_checks still runs the two score checks only", sorted(run_checks(FLAT)["checks"]),+ ["score_first_slot_permuted", "score_slot0_identical"])+check("choice/unknown check name exits 2", main(["--checks", "nope"]), 2)++print("\n%d passed, %d failed" % (len(PASS), len(FAIL)))for f in FAIL:print(" FAIL " + f)diff --git a/research/results/presentation_checks_choice.json b/research/results/presentation_checks_choice.jsonnew file mode 100644index 00000000..5c7a17d8--- /dev/null+++ b/research/results/presentation_checks_choice.json@@ -0,0 +1,1038 @@+{+ "about": "research/eval/presentation_checks.py --lang with the choice identical-option control (#602, part a); laya-multilingual on en,ja,ko,hi,tr and laya (english) on en",+ "revision": "convaiinnovations/laya@55cf4c4ebb4ebe31b2550e8bdf3bd21b99753851",+ "environment": {+ "device": "cpu",+ "dtype": "float32",+ "torch": "2.14.0+cpu",+ "transformers": "5.17.0",+ "python": "3.11.9",+ "laya": "0.3.21"+ },+ "multilingual": {+ "config": {+ "model": "convaiinnovations/laya",+ "subfolder": "multilingual",+ "device": "cpu",+ "langs": [+ "en",+ "ja",+ "ko",+ "hi",+ "tr"+ ],+ "laya_version": "0.3.21"+ },+ "languages": {+ "en": {+ "config": {+ "states": 10,+ "instructions": "How urgent is this request?",+ "identical_texts": [+ "moderate",+ "a request"+ ],+ "identical_ks": [+ 3,+ 4,+ 5+ ],+ "levels": [+ "Not urgent",+ "Soon",+ "Work is blocked"+ ],+ "router_picks": {+ "english": 10+ }+ },+ "parity_max_abs_diff": 4.976981188759e-05,+ "parity_score_max_abs_diff": 4.976981188759e-05,+ "parity_choice_max_abs_diff": 4.931923009171557e-05,+ "choice_ks": [+ 4,+ 3+ ],+ "checks": {+ "score_slot0_identical": {+ "metric": -0.4917,+ "threshold": -0.2,+ "passed": false,+ "leave_one_out": [+ -0.563,+ -0.4253+ ],+ "per_state": [+ -0.2235,+ -0.434,+ -0.6344,+ -0.2102,+ -1.0894,+ -0.9533,+ 0.1498,+ -0.2656,+ -0.4718,+ -0.7846+ ],+ "per_config": {+ "moderate/K=3": -0.7506,+ "moderate/K=4": -0.5224,+ "moderate/K=5": -0.2548,+ "a request/K=3": -0.5806,+ "a request/K=4": -0.4701,+ "a request/K=5": -0.3717+ },+ "per_slot_centred": {+ "moderate/K=3": [+ -0.7506,+ 0.7242,+ 0.0263+ ],+ "moderate/K=4": [+ -0.5224,+ 1.0311,+ 0.151,+ -0.6598+ ],+ "moderate/K=5": [+ -0.2548,+ 1.0529,+ 0.3262,+ -0.4503,+ -0.6739+ ],+ "a request/K=3": [+ -0.5806,+ 0.5528,+ 0.0278+ ],+ "a request/K=4": [+ -0.4701,+ 0.5605,+ 0.1682,+ -0.2586+ ],+ "a request/K=5": [+ -0.3717,+ 0.4884,+ 0.2081,+ -0.0723,+ -0.2525+ ]+ }+ },+ "score_first_slot_permuted": {+ "metric": 0.0167,+ "threshold": 0.15,+ "passed": false,+ "leave_one_out": [+ 0.0,+ 0.0185+ ],+ "decisions": 60,+ "per_state": [+ 0.0,+ 0.0,+ 0.0,+ 0.1667,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0+ ],+ "argmax_by_slot": [+ 1,+ 28,+ 31+ ],+ "picks_by_label": {+ "Not urgent": 19,+ "Soon": 11,+ "Work is blocked": 30+ },+ "order_invariant_states": 0+ },+ "choice_slot0_identical": {+ "metric": 0.3993,+ "threshold": -0.2,+ "passed": true,+ "leave_one_out": [+ 0.3343,+ 0.4548+ ],+ "k": 4,+ "by_k": {+ "4": 0.3993,+ "3": 0.2492+ },+ "per_state": [+ -0.0523,+ 0.6619,+ 0.8279,+ 0.0832,+ 0.2588,+ 0.0757,+ 0.5732,+ 0.9839,+ 0.6806,+ -0.1001+ ],+ "per_config": {+ "moderate/K=4": 0.3979,+ "moderate/K=3": 0.1874,+ "a request/K=4": 0.4006,+ "a request/K=3": 0.3109+ }+ }+ },+ "passed": false+ },+ "ja": {+ "config": {+ "states": 10,+ "instructions": "この依頼の緊急度は?",+ "identical_texts": [+ "中程度",+ "依頼"+ ],+ "identical_ks": [+ 3,+ 4,+ 5+ ],+ "levels": [+ "急がない",+ "早めに",+ "業務が止まっている"+ ],+ "router_picks": {+ "multilingual": 10+ }+ },+ "parity_max_abs_diff": 4.894195970356341e-05,+ "parity_score_max_abs_diff": 4.6754520251379716e-05,+ "parity_choice_max_abs_diff": 4.894195970356341e-05,+ "choice_ks": [+ 4,+ 3+ ],+ "checks": {+ "score_slot0_identical": {+ "metric": -0.0183,+ "threshold": -0.2,+ "passed": true,+ "leave_one_out": [+ -0.1204,+ 0.0313+ ],+ "per_state": [+ 0.1001,+ 0.2712,+ -0.0314,+ 0.9,+ -0.2066,+ -0.3125,+ -0.1266,+ -0.0819,+ -0.2302,+ -0.4654+ ],+ "per_config": {+ "中程度/K=3": -0.4143,+ "中程度/K=4": -0.2208,+ "中程度/K=5": 0.0876,+ "依頼/K=3": 0.0129,+ "依頼/K=4": 0.1993,+ "依頼/K=5": 0.2252+ },+ "per_slot_centred": {+ "中程度/K=3": [+ -0.4143,+ 0.7693,+ -0.3551+ ],+ "中程度/K=4": [+ -0.2208,+ 0.9156,+ -0.0359,+ -0.6589+ ],+ "中程度/K=5": [+ 0.0876,+ 1.1026,+ -0.1029,+ -0.3562,+ -0.7311+ ],+ "依頼/K=3": [+ 0.0129,+ 0.0993,+ -0.1122+ ],+ "依頼/K=4": [+ 0.1993,+ 0.0885,+ -0.1,+ -0.1878+ ],+ "依頼/K=5": [+ 0.2252,+ 0.0781,+ -0.0912,+ -0.132,+ -0.0802+ ]+ }+ },+ "score_first_slot_permuted": {+ "metric": 0.0,+ "threshold": 0.15,+ "passed": false,+ "leave_one_out": [+ 0.0,+ 0.0+ ],+ "decisions": 60,+ "per_state": [+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0+ ],+ "argmax_by_slot": [+ 0,+ 29,+ 31+ ],+ "picks_by_label": {+ "急がない": 12,+ "早めに": 18,+ "業務が止まっている": 30+ },+ "order_invariant_states": 0+ },+ "choice_slot0_identical": {+ "metric": 0.3941,+ "threshold": -0.2,+ "passed": true,+ "leave_one_out": [+ 0.2834,+ 0.4932+ ],+ "k": 4,+ "by_k": {+ "4": 0.3941,+ "3": 0.196+ },+ "per_state": [+ -0.1368,+ 0.4048,+ 0.8313,+ 0.7776,+ -0.4982,+ 0.4204,+ 0.1022,+ 1.3904,+ 0.6874,+ -0.0384+ ],+ "per_config": {+ "中程度/K=4": 0.5089,+ "中程度/K=3": 0.2002,+ "依頼/K=4": 0.2792,+ "依頼/K=3": 0.1918+ }+ }+ },+ "passed": false+ },+ "ko": {+ "config": {+ "states": 10,+ "instructions": "이 요청은 얼마나 긴급한가요?",+ "identical_texts": [+ "보통",+ "요청"+ ],+ "identical_ks": [+ 3,+ 4,+ 5+ ],+ "levels": [+ "급하지 않음",+ "빨리",+ "업무가 멈춤"+ ],+ "router_picks": {+ "multilingual": 10+ }+ },+ "parity_max_abs_diff": 4.968593182863579e-05,+ "parity_score_max_abs_diff": 4.968593182863579e-05,+ "parity_choice_max_abs_diff": 4.865408263221571e-05,+ "choice_ks": [+ 4,+ 3+ ],+ "checks": {+ "score_slot0_identical": {+ "metric": -0.5695,+ "threshold": -0.2,+ "passed": false,+ "leave_one_out": [+ -0.6217,+ -0.5057+ ],+ "per_state": [+ -0.522,+ -0.7999,+ -0.5239,+ -0.1021,+ -0.3256,+ -0.6993,+ -1.1435,+ -0.0994,+ -0.5991,+ -0.8804+ ],+ "per_config": {+ "보통/K=3": -0.9965,+ "보통/K=4": -0.753,+ "보통/K=5": -0.5084,+ "요청/K=3": -0.6171,+ "요청/K=4": -0.3946,+ "요청/K=5": -0.1475+ },+ "per_slot_centred": {+ "보통/K=3": [+ -0.9965,+ 0.7452,+ 0.2513+ ],+ "보통/K=4": [+ -0.753,+ 0.7988,+ 0.317,+ -0.3628+ ],+ "보통/K=5": [+ -0.5084,+ 0.8851,+ 0.2085,+ -0.0849,+ -0.5004+ ],+ "요청/K=3": [+ -0.6171,+ 0.7792,+ -0.1621+ ],+ "요청/K=4": [+ -0.3946,+ 0.7719,+ 0.2128,+ -0.5901+ ],+ "요청/K=5": [+ -0.1475,+ 0.8516,+ 0.2394,+ -0.3379,+ -0.6057+ ]+ }+ },+ "score_first_slot_permuted": {+ "metric": 0.05,+ "threshold": 0.15,+ "passed": false,+ "leave_one_out": [+ 0.0185,+ 0.0556+ ],+ "decisions": 60,+ "per_state": [+ 0.3333,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.1667,+ 0.0+ ],+ "argmax_by_slot": [+ 3,+ 34,+ 23+ ],+ "picks_by_label": {+ "급하지 않음": 30,+ "빨리": 12,+ "업무가 멈춤": 18+ },+ "order_invariant_states": 0+ },+ "choice_slot0_identical": {+ "metric": 0.0964,+ "threshold": -0.2,+ "passed": true,+ "leave_one_out": [+ -0.0253,+ 0.2041+ ],+ "k": 4,+ "by_k": {+ "4": 0.0964,+ "3": -0.1466+ },+ "per_state": [+ -0.5874,+ 0.542,+ 1.1918,+ 0.4605,+ -0.8724,+ 0.3945,+ -0.3792,+ 0.6508,+ -0.0021,+ -0.4344+ ],+ "per_config": {+ "보통/K=4": 0.0005,+ "보통/K=3": -0.2769,+ "요청/K=4": 0.1923,+ "요청/K=3": -0.0164+ }+ }+ },+ "passed": false+ },+ "hi": {+ "config": {+ "states": 10,+ "instructions": "यह अनुरोध कितना ज़रूरी है?",+ "identical_texts": [+ "मध्यम",+ "एक अनुरोध"+ ],+ "identical_ks": [+ 3,+ 4,+ 5+ ],+ "levels": [+ "ज़रूरी नहीं",+ "जल्द",+ "काम रुका हुआ है"+ ],+ "router_picks": {+ "multilingual": 10+ }+ },+ "parity_max_abs_diff": 4.965819877289501e-05,+ "parity_score_max_abs_diff": 4.9100966272169755e-05,+ "parity_choice_max_abs_diff": 4.965819877289501e-05,+ "choice_ks": [+ 4,+ 3+ ],+ "checks": {+ "score_slot0_identical": {+ "metric": -0.2252,+ "threshold": -0.2,+ "passed": false,+ "leave_one_out": [+ -0.2998,+ -0.1824+ ],+ "per_state": [+ -0.3324,+ 0.0546,+ -0.3361,+ 0.4463,+ -0.3899,+ -0.6105,+ -0.1479,+ -0.4678,+ -0.4899,+ 0.0215+ ],+ "per_config": {+ "मध्यम/K=3": -0.6239,+ "मध्यम/K=4": -0.2763,+ "मध्यम/K=5": -0.0001,+ "एक अनुरोध/K=3": -0.3694,+ "एक अनुरोध/K=4": -0.092,+ "एक अनुरोध/K=5": 0.0104+ },+ "per_slot_centred": {+ "मध्यम/K=3": [+ -0.6239,+ 0.7648,+ -0.1409+ ],+ "मध्यम/K=4": [+ -0.2763,+ 0.8558,+ -0.1443,+ -0.4351+ ],+ "मध्यम/K=5": [+ -0.0001,+ 0.8603,+ -0.0434,+ -0.3431,+ -0.4737+ ],+ "एक अनुरोध/K=3": [+ -0.3694,+ 0.6559,+ -0.2865+ ],+ "एक अनुरोध/K=4": [+ -0.092,+ 0.6153,+ -0.248,+ -0.2753+ ],+ "एक अनुरोध/K=5": [+ 0.0104,+ 0.7579,+ -0.1775,+ -0.3007,+ -0.2901+ ]+ }+ },+ "score_first_slot_permuted": {+ "metric": 0.0667,+ "threshold": 0.15,+ "passed": false,+ "leave_one_out": [+ 0.037,+ 0.0741+ ],+ "decisions": 60,+ "per_state": [+ 0.0,+ 0.0,+ 0.1667,+ 0.0,+ 0.0,+ 0.3333,+ 0.0,+ 0.1667,+ 0.0,+ 0.0+ ],+ "argmax_by_slot": [+ 4,+ 28,+ 28+ ],+ "picks_by_label": {+ "ज़रूरी नहीं": 16,+ "जल्द": 10,+ "काम रुका हुआ है": 34+ },+ "order_invariant_states": 1+ },+ "choice_slot0_identical": {+ "metric": 0.3464,+ "threshold": -0.2,+ "passed": true,+ "leave_one_out": [+ 0.285,+ 0.3893+ ],+ "k": 4,+ "by_k": {+ "4": 0.3464,+ "3": 0.2665+ },+ "per_state": [+ 0.2226,+ -0.0399,+ 0.899,+ 0.1501,+ 0.0867,+ 0.097,+ 0.6837,+ 0.8692,+ 0.4969,+ -0.0013+ ],+ "per_config": {+ "मध्यम/K=4": 0.3652,+ "मध्यम/K=3": 0.1671,+ "एक अनुरोध/K=4": 0.3276,+ "एक अनुरोध/K=3": 0.3659+ }+ }+ },+ "passed": false+ },+ "tr": {+ "config": {+ "states": 10,+ "instructions": "Bu talep ne kadar acil?",+ "identical_texts": [+ "orta",+ "bir talep"+ ],+ "identical_ks": [+ 3,+ 4,+ 5+ ],+ "levels": [+ "Acil değil",+ "Yakında",+ "İş durdu"+ ],+ "router_picks": {+ "multilingual": 10+ }+ },+ "parity_max_abs_diff": 4.9524597828143335e-05,+ "parity_score_max_abs_diff": 4.95214576753944e-05,+ "parity_choice_max_abs_diff": 4.9524597828143335e-05,+ "choice_ks": [+ 4,+ 3+ ],+ "checks": {+ "score_slot0_identical": {+ "metric": 0.1386,+ "threshold": -0.2,+ "passed": true,+ "leave_one_out": [+ 0.0684,+ 0.1739+ ],+ "per_state": [+ 0.3692,+ 0.0143,+ -0.048,+ 0.3167,+ -0.1295,+ -0.1789,+ 0.0882,+ -0.1014,+ 0.7705,+ 0.2849+ ],+ "per_config": {+ "orta/K=3": -0.0454,+ "orta/K=4": 0.1406,+ "orta/K=5": 0.422,+ "bir talep/K=3": -0.1856,+ "bir talep/K=4": 0.142,+ "bir talep/K=5": 0.358+ },+ "per_slot_centred": {+ "orta/K=3": [+ -0.0454,+ 0.5798,+ -0.5344+ ],+ "orta/K=4": [+ 0.1406,+ 0.8411,+ -0.1579,+ -0.8238+ ],+ "orta/K=5": [+ 0.422,+ 0.8838,+ -0.0243,+ -0.59,+ -0.6915+ ],+ "bir talep/K=3": [+ -0.1856,+ 0.4061,+ -0.2205+ ],+ "bir talep/K=4": [+ 0.142,+ 0.6643,+ -0.2369,+ -0.5694+ ],+ "bir talep/K=5": [+ 0.358,+ 0.7853,+ -0.1461,+ -0.4808,+ -0.5164+ ]+ }+ },+ "score_first_slot_permuted": {+ "metric": 0.0333,+ "threshold": 0.15,+ "passed": false,+ "leave_one_out": [+ 0.0185,+ 0.037+ ],+ "decisions": 60,+ "per_state": [+ 0.1667,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.1667,+ 0.0+ ],+ "argmax_by_slot": [+ 2,+ 28,+ 30+ ],+ "picks_by_label": {+ "Acil değil": 15,+ "Yakında": 12,+ "İş durdu": 33+ },+ "order_invariant_states": 0+ },+ "choice_slot0_identical": {+ "metric": 0.5384,+ "threshold": -0.2,+ "passed": true,+ "leave_one_out": [+ 0.4309,+ 0.5882+ ],+ "k": 4,+ "by_k": {+ "4": 0.5384,+ "3": 0.3596+ },+ "per_state": [+ 0.4907,+ 0.0904,+ 1.5061,+ 0.091,+ 0.4602,+ 0.7514,+ 0.4186,+ 0.3425,+ 0.7905,+ 0.4429+ ],+ "per_config": {+ "orta/K=4": 0.855,+ "orta/K=3": 0.5717,+ "bir talep/K=4": 0.2218,+ "bir talep/K=3": 0.1476+ }+ }+ },+ "passed": false+ }+ },+ "parity_max_abs_diff": 4.976981188759e-05,+ "passed": false,+ "seconds": 41.2+ },+ "english": {+ "config": {+ "model": "convaiinnovations/laya",+ "subfolder": null,+ "device": "cpu",+ "langs": [+ "en"+ ],+ "laya_version": "0.3.21"+ },+ "languages": {+ "en": {+ "config": {+ "states": 10,+ "instructions": "How urgent is this request?",+ "identical_texts": [+ "moderate",+ "a request"+ ],+ "identical_ks": [+ 3,+ 4,+ 5+ ],+ "levels": [+ "Not urgent",+ "Soon",+ "Work is blocked"+ ],+ "router_picks": {+ "english": 10+ }+ },+ "parity_max_abs_diff": 4.922322174815211e-05,+ "parity_score_max_abs_diff": 4.922322174815211e-05,+ "parity_choice_max_abs_diff": 4.843380685043419e-05,+ "choice_ks": [+ 4,+ 3+ ],+ "checks": {+ "score_slot0_identical": {+ "metric": 0.6638,+ "threshold": -0.2,+ "passed": true,+ "leave_one_out": [+ 0.5203,+ 0.7405+ ],+ "per_state": [+ 0.5923,+ 0.656,+ 0.222,+ 1.9554,+ -0.0263,+ 0.4189,+ 1.0751,+ 0.7183,+ 0.828,+ 0.1986+ ],+ "per_config": {+ "moderate/K=3": 0.0981,+ "moderate/K=4": 0.4054,+ "moderate/K=5": 0.8496,+ "a request/K=3": 0.2079,+ "a request/K=4": 0.7411,+ "a request/K=5": 1.6808+ },+ "per_slot_centred": {+ "moderate/K=3": [+ 0.0981,+ 0.0789,+ -0.1769+ ],+ "moderate/K=4": [+ 0.4054,+ 0.284,+ -0.2765,+ -0.4129+ ],+ "moderate/K=5": [+ 0.8496,+ 0.6907,+ 0.0293,+ -0.5735,+ -0.9963+ ],+ "a request/K=3": [+ 0.2079,+ -0.2148,+ 0.0069+ ],+ "a request/K=4": [+ 0.7411,+ 0.6621,+ -0.73,+ -0.6732+ ],+ "a request/K=5": [+ 1.6808,+ 1.4661,+ 0.1138,+ -1.3483,+ -1.9125+ ]+ }+ },+ "score_first_slot_permuted": {+ "metric": 0.2167,+ "threshold": 0.15,+ "passed": true,+ "leave_one_out": [+ 0.2037,+ 0.2407+ ],+ "decisions": 60,+ "per_state": [+ 0.3333,+ 0.0,+ 0.3333,+ 0.3333,+ 0.3333,+ 0.3333,+ 0.1667,+ 0.3333,+ 0.0,+ 0.0+ ],+ "argmax_by_slot": [+ 13,+ 18,+ 29+ ],+ "picks_by_label": {+ "Not urgent": 34,+ "Soon": 6,+ "Work is blocked": 20+ },+ "order_invariant_states": 5+ },+ "choice_slot0_identical": {+ "metric": 0.902,+ "threshold": -0.2,+ "passed": true,+ "leave_one_out": [+ 0.8332,+ 0.9714+ ],+ "k": 4,+ "by_k": {+ "4": 0.902,+ "3": 0.3217+ },+ "per_state": [+ 1.2728,+ 1.1362,+ 0.6752,+ 1.5219,+ 0.3398,+ 0.5505,+ 0.278,+ 1.3748,+ 1.2408,+ 0.6303+ ],+ "per_config": {+ "moderate/K=4": 0.9309,+ "moderate/K=3": 0.5321,+ "a request/K=4": 0.8732,+ "a request/K=3": 0.1112+ }+ }+ },+ "passed": true+ }+ },+ "parity_max_abs_diff": 4.922322174815211e-05,+ "passed": true,+ "seconds": 58.3+ }+}