{"abstract":"Epsilon cutoff ignores the candidate count.","category":"Token sampling filters","checks":6,"contract":"Keep tokens whose probability is at least epsilon divided by vocabulary size; empty input returns empty.","contract_signature":"probabilities, epsilon","evaluation_group":"w3-tsf-epsilon-cutoff-relative","failed_approach":"Strict comparison still removes a token whose probability is exactly the adjusted floor.","family":"w3-token-sampling-filters-epsilon-cutoff-relative","id":"FA-98361","implementations":{"attempt":{"sha256":"a21498749c37763ffb155f086b666a31f9c594672790ebfc01f9b313ee4704bc","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(probabilities, epsilon):\n    floor=epsilon/max(1,len(probabilities))\n    return sorted(t for t,p in probabilities.items() if p>floor)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('vocabulary-scaled floor',solve({'a':.4,'b':.2,'c':.1},.3),['a','b','c'])\ncheck('exact floor',solve({'a':.5,'b':.25,'c':.25},.75),['a','b','c'])\ncheck('empty',solve({},.5),[])\ncheck('singleton',solve({'x':.2},.3),[])\ncheck('zero epsilon',solve({'a':.1,'b':0},0),['a','b'])\ncheck('larger vocab',solve({'a':.5,'b':.2,'c':.1,'d':.05},.2),['a','b','c','d'])\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"4b289d6daca67866f176920b5eea8f6a4ef41c6f28e2d967f62ddf72f2abace1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(probabilities, epsilon):\n    return sorted(t for t,p in probabilities.items() if p>=epsilon)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('vocabulary-scaled floor',solve({'a':.4,'b':.2,'c':.1},.3),['a','b','c'])\ncheck('exact floor',solve({'a':.5,'b':.25,'c':.25},.75),['a','b','c'])\ncheck('empty',solve({},.5),[])\ncheck('singleton',solve({'x':.2},.3),[])\ncheck('zero epsilon',solve({'a':.1,'b':0},0),['a','b'])\ncheck('larger vocab',solve({'a':.5,'b':.2,'c':.1,'d':.05},.2),['a','b','c','d'])\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"These are toy finite-vocabulary contracts with supplied scores, histories, and draws; they do not claim production model quality or compatibility. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w3-token-sampling-filters-epsilon-cutoff-relative","generated_at":"2026-09-30T16:48:12.371166+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A finite, deterministic token-selection contract isolates one decoding operation from model inference and runtime behavior.","root_cause":"Epsilon is treated as an absolute cutoff instead of a vocabulary-adjusted cutoff.","sha256":"a14325128e9d4e8462aa86dd50907ceded9b28a84326243e4a8a199e8c99aaca","title":"Token sampling: Epsilon cutoff ignores the candidate count · case 01","variant":1,"variant_policy":"The same explicitly authored fixtures repeat across all five numbered records; runtime N is unused. These records share one mechanism and must remain together in evaluation splits.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":27.739,"exit_code":1,"observations":[{"actual":["a","b","c"],"check":"vocabulary-scaled floor","expected":["a","b","c"],"passed":true},{"actual":["a"],"check":"exact floor","expected":["a","b","c"],"passed":false},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[],"check":"singleton","expected":[],"passed":true},{"actual":["a"],"check":"zero epsilon","expected":["a","b"],"passed":false},{"actual":["a","b","c"],"check":"larger vocab","expected":["a","b","c","d"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"vocabulary-scaled floor\", \"actual\": [\"a\", \"b\", \"c\"], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": true}, {\"check\": \"exact floor\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": false}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"singleton\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"zero epsilon\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"larger vocab\", \"actual\": [\"a\", \"b\", \"c\"], \"expected\": [\"a\", \"b\", \"c\", \"d\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.931,"exit_code":1,"observations":[{"actual":["a"],"check":"vocabulary-scaled floor","expected":["a","b","c"],"passed":false},{"actual":[],"check":"exact floor","expected":["a","b","c"],"passed":false},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[],"check":"singleton","expected":[],"passed":true},{"actual":["a","b"],"check":"zero epsilon","expected":["a","b"],"passed":true},{"actual":["a","b"],"check":"larger vocab","expected":["a","b","c","d"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"vocabulary-scaled floor\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": false}, {\"check\": \"exact floor\", \"actual\": [], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": false}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"singleton\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"zero epsilon\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"larger vocab\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\", \"c\", \"d\"], \"passed\": false}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}