nero commited on
Add corrected SIB-2.5k benchmark and deterministic grading tools
Browse filesSIB-2.5k is a 2,500-item English instruction-following and reasoning benchmark across 10 categories, with deterministic grading, inline gold proofs, and 25 three-turn consistency tests.
Files changed (7)
- SHA256SUMSAdded+6
- slm_instruct_bench.jsonlAdded
- slm_instruct_bench_grade.pyAdded+238
- slm_instruct_bench_meta.jsonAdded+108
- slm_instruct_bench_prepare.pyAdded+41
- static_baselines.jsonAdded+36
- verification.jsonAdded+71
123456163625d5dfaf4a22478afedc797a4ad2c8b77dc901b3b28ad9f1bf3b3f98710f slm_instruct_bench.jsonl801ee9699aa328806829949132bb92967b117be25feaa3a201a1cc8c19c25b65 slm_instruct_bench_grade.pyf13d0ab9ad7d6812dfe7ceb5b5893edb1f5953a7eb9015fcb6d4fc81c6d9d357 slm_instruct_bench_meta.json24d25416514c426ac9707ebe1201227ec87c3a1b7326d79943b5f9d690a00d5d slm_instruct_bench_prepare.pycdf6d795c2642cd92d65daf751a1b1c2dca6300c0e8211300b49af0978f55877 static_baselines.json2bef2aea882099b21467a93ef5d933c37de401a5f05db5d1a3ec69fbd374424b verification.json123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238"""Deterministic, standard-library-only grading. Does not call a model.
Usage: python3 grader.py --data slm_instruct_bench.jsonl --responses responses.jsonlResponses: {"id":"...","response":"..."}; episodes use "responses":["...",...]."""import argparseimport collectionsimport jsonimport refrom decimal import Decimal, InvalidOperationfrom pathlib import Path
EDGE='.,!?;:"\'()[]{}'
def contract(item): value=item['check'] if not value.startswith('json:'):raise ValueError('Executable json: check required') return json.loads(value[5:])
def clean(value,c): return value.strip() if c.get('strip_outer',True) else value
def words(value):return [x.strip(EDGE) for x in value.split()]def letters(value):return ''.join(re.findall('[A-Za-z]',value))
def constraint_result(value,rules): failures=[];w=words(value);lo=[x.casefold() for x in w];lines=value.splitlines() rows=[[x.casefold() for x in words(line)] for line in lines] lens=[len(letters(x)) for x in w] def increasing(seq):return all(a<b for a,b in zip(seq,seq[1:])) def decreasing(seq):return all(a>b for a,b in zip(seq,seq[1:])) def at_positions(spec, fn): pairs=[p.split(':') for p in spec.split(',')] return all(0<int(i)<=len(w) and fn(lo[int(i)-1],v) for i,v in pairs) for rule in rules: key,sep,arg=rule.partition('=');ok=False if key=='words':ok=len(w)==int(arg) elif key=='min_words':ok=len(w)>=int(arg) elif key=='max_words':ok=len(w)<=int(arg) elif key=='lines':ok=len(lines)==int(arg) and all(x.strip() for x in lines) elif key=='line_words':ok=[len(words(x)) for x in lines]==list(map(int,arg.split(','))) elif key=='allowed':ok=all(x in arg.casefold().split(',') for x in lo) elif key=='unique':ok=len(lo)==len(set(lo)) elif key=='lower':ok=value==value.lower() elif key=='upper':ok=value==value.upper() elif key=='no_punct':ok=bool(re.fullmatch(r'[A-Za-z0-9\s]+',value)) elif key=='no_spaces':ok=' ' not in value elif key=='forbid':ok=not any(x.casefold() in value.casefold() for x in arg) elif key=='alphabet':ok=all(x in arg or x.isspace() for x in value) elif key=='contains':ok=all(x in lo for x in arg.casefold().split(',')) elif key=='ban':ok=all(x not in lo for x in arg.casefold().split(',')) elif key=='count': token,n=arg.rsplit(':',1);ok=lo.count(token.casefold())==int(n) elif key=='first':ok=bool(w) and lo[0]==arg.casefold() elif key=='last':ok=bool(w) and lo[-1]==arg.casefold() elif key=='nth': n,t=arg.split(':',1);i=int(n)-1;ok=0<=i<len(w) and lo[i]==t.casefold() elif key=='first_initial':ok=bool(w) and w[0].casefold().startswith(arg.casefold()) elif key=='last_initial':ok=bool(w) and w[-1].casefold().startswith(arg.casefold()) elif key=='last_suffix':ok=bool(w) and w[-1].casefold().endswith(arg.casefold()) elif key=='all_initial':ok=bool(w) and all(x.casefold().startswith(arg.casefold()) for x in w) elif key=='all_contains':ok=bool(w) and all(arg.casefold() in x.casefold() for x in w) elif key=='each_count': token,n=arg.split(':');ok=bool(w) and all(x.casefold().count(token.casefold())==int(n) for x in w) elif key=='word_lengths':ok=[len(letters(x)) for x in w]==list(map(int,arg.split(','))) elif key=='min_length':ok=bool(w) and all(len(letters(x))>=int(arg) for x in w) elif key=='max_length':ok=bool(w) and all(len(letters(x))<=int(arg) for x in w) elif key=='even_lengths':ok=bool(w) and all(len(letters(x))%2==0 for x in w) elif key=='ascending':ok=lo==sorted(lo) and len(lo)==len(set(lo)) elif key=='descending':ok=lo==sorted(lo,reverse=True) and len(lo)==len(set(lo)) elif key=='line_ascending':ok=all(increasing(row) for row in rows) elif key=='line_unique':ok=all(len(row)==len(set(row)) for row in rows) elif key=='line_starts':ok=len(rows)==len(arg.split(',')) and all(row and row[0]==t for row,t in zip(rows,arg.split(','))) elif key=='line_ends':ok=len(rows)==len(arg.split(',')) and all(row and row[-1]==t for row,t in zip(rows,arg.split(','))) elif key=='position_lengths':ok=at_positions(arg,lambda x,n:len(letters(x))==int(n)) elif key=='position_initials':ok=at_positions(arg,lambda x,c:x.startswith(c)) elif key=='positions_ascending': ix=[int(x)-1 for x in arg.split(',')];ok=all(0<=i<len(lo) for i in ix) and increasing([lo[i] for i in ix]) elif key=='tokens_containing': char,n=arg.split(':');ok=sum(char in x for x in lo)==int(n) elif key=='line_sort': ix=[int(x)-1 for x in arg.split(',')];ok=all(0<=i<len(rows) and increasing(rows[i]) for i in ix) elif key=='line_initials':ok=len(rows)==len(arg.split(',')) and all(all(x.startswith(c) for x in row) for row,c in zip(rows,arg.split(','))) elif key=='line_first_initial':ok=all(row and row[0].startswith(arg) for row in rows) elif key=='first_line_initial':ok=bool(rows) and all(x.startswith(arg) for x in rows[0]) elif key=='first_line_lengths':ok=bool(rows) and all(len(letters(x))==int(arg) for x in rows[0]) elif key=='line_lengths':ok=len(rows)==len(arg.split(',')) and all(all(len(letters(x))==int(n) for x in row) for row,n in zip(rows,arg.split(','))) elif key=='line_first_min':ok=all(row and len(letters(row[0]))>=int(arg) for row in rows) elif key=='initials':ok=''.join(x[:1] for x in lo)==arg elif key=='line_token_count': token,n=arg.split(':');ok=all(row.count(token)==int(n) for row in rows) elif key=='line_suffix_count': suffix,n=arg.split(':');ok=all(sum(x.endswith(suffix) for x in row)==int(n) for row in rows) elif key=='line_initial_count': i,char,n=arg.split(':');i=int(i)-1;ok=0<=i<len(rows) and sum(x.startswith(char) for x in rows[i])==int(n) elif key=='line_max_initial':ok=all(max(collections.Counter(x[:1] for x in row).values(),default=0)<=int(arg) for row in rows) elif key=='line_members': members,n=arg.split(':');ok=all(sum(x in members.split(',') for x in row)==int(n) for row in rows) elif key=='line_contains': i,tokens=arg.split(':');i=int(i)-1;ok=0<=i<len(rows) and all(t in rows[i] for t in tokens.split(',')) elif key=='line_some_length':ok=all(any(len(letters(x))==int(arg) for x in row) for row in rows) elif key=='line_letter_parity':ok=all(sum(len(letters(x)) for x in row)%2==({'even':0,'odd':1}[arg]) for row in rows) elif key=='shared_only': ok=len(rows)==2 and set(rows[0])&set(rows[1])==set(arg.split(',')) elif key=='same_line':ok=any(all(t in row for t in arg.split(',')) for row in rows) elif key=='different_lines': a,b=arg.split(',');ok=any(a in row for row in rows) and any(b in row for row in rows) and all(not(a in row and b in row) for row in rows) elif key=='token_lines': token,n=arg.split(':');ok=sum(token in row for row in rows)==int(n) elif key=='max_token_lines':ok=all(sum(t in row for row in rows)<=int(arg) for t in set(lo)) elif key=='lasts_differ': ends=[row[-1] for row in rows if row];ok=len(ends)==len(rows) and len(ends)==len(set(ends)) elif key=='firsts_differ': starts=[row[0] for row in rows if row];ok=len(starts)==len(rows) and len(starts)==len(set(starts)) elif key=='firsts_ascending':ok=all(rows) and increasing([row[0] for row in rows]) elif key=='firsts_descending':ok=all(rows) and decreasing([row[0] for row in rows]) elif key=='lasts_ascending':ok=all(rows) and increasing([row[-1] for row in rows]) elif key=='lasts_descending':ok=all(rows) and decreasing([row[-1] for row in rows]) elif key=='tail_ascending':ok=all(increasing(row[1:]) for row in rows) elif key=='adjacent_different':ok=all(a!=b for a,b in zip(lo,lo[1:])) elif key=='adjacent_except':ok=all(a!=b for i,(a,b) in enumerate(zip(lo,lo[1:]),1) if i!=int(arg)) elif key=='endpoints_differ':ok=bool(lo) and lo[0]!=lo[-1] elif key=='palindrome_tokens':ok=lo==lo[::-1] elif key=='pattern': ok=len(lo)==len(arg) and all((arg[i]==arg[j])==(lo[i]==lo[j]) for i in range(len(arg)) for j in range(len(arg))) elif key=='repeat_halves':ok=len(lo)%2==0 and lo[:len(lo)//2]==lo[len(lo)//2:] elif key=='reverse_lines':ok=len(rows)==2 and rows[1]==rows[0][::-1] elif key=='rotate_line':ok=len(rows)==2 and rows[1]==rows[0][int(arg):]+rows[0][:int(arg)] elif key=='gap': token,n=arg.split(':');ix=[i for i,t in enumerate(lo) if t==token];ok=len(ix)==2 and ix[1]-ix[0]-1==int(n) elif key=='length_count': n,c=map(int,arg.split(':'));ok=lens.count(n)==c elif key=='length_increasing':ok=increasing(lens) elif key=='length_decreasing':ok=decreasing(lens) elif key=='length_ascending_alpha':ok=list(zip(lens,lo))==sorted(zip(lens,lo)) elif key=='length_descending_alpha':ok=list(zip(lens,lo))==sorted(zip(lens,lo),key=lambda x:(-x[0],x[1])) elif key=='length_parity':ok=[x%2 for x in lens]==[{'odd':1,'even':0}[x] for x in arg.split(',')] elif key=='endings_count': chars,n=arg.split(':');ok=sum(bool(t) and t[-1] in chars for t in lo)==int(n) elif key=='interior_unique':ok=len(lo[1:-1])==len(set(lo[1:-1])) elif key=='interior_contains':ok=all(arg in t for t in lo[1:-1]) elif key=='label_total': table={t:int(n) for t,n in (p.split(':') for p in arg.split(','))};labels=lo[:-1] ok=len(labels)==3 and len(set(labels))==3 and all(x in table for x in labels) and lo[-1].isdigit() and int(lo[-1])==sum(table[x] for x in labels) elif key=='ascending_labels':ok=increasing(lo[:-1]) elif key=='descending_labels':ok=decreasing(lo[:-1]) elif key=='disjoint_lines': sets=[set(x.casefold() for x in words(line)) for line in lines] ok=all(not (a&b) for i,a in enumerate(sets) for b in sets[i+1:]) elif key=='line_shorter': a,b=map(int,arg.split(','));ok=max(a,b)<=len(lines) and len(words(lines[a-1]))<len(words(lines[b-1])) elif key=='regex':ok=re.fullmatch(arg,value) is not None elif key=='literal_count': token,n=arg.rsplit(':',1);ok=value.count(token)==int(n) elif key=='syllables': specification=json.loads(arg);table=specification['table'];counts=specification['counts'] try:ok=[sum(table[x.casefold()] for x in words(line)) for line in lines]==counts except KeyError:ok=False else:raise ValueError('Unknown constraint '+key) if not ok:failures.append(rule) return failures
def grade_value(response,answer,c): if not isinstance(response,str):return {'pass':False,'failures':['response must be a string']} value=clean(response,c);mode=c['type'];failures=[] if mode=='choice': if value!=answer:failures=['incorrect option letter or extra output'] elif mode=='exact': if not c.get('case_sensitive',False):value=value.casefold();answer=answer.casefold() if value!=answer:failures=['incorrect literal answer or extra output'] elif mode=='one_of': accepted=c['values'] if not c.get('case_sensitive',False):value=value.casefold();accepted=[x.casefold() for x in accepted] if value not in accepted:failures=['not an accepted answer'] elif mode=='number': try: pattern={'integer':r'[+-]?[0-9]+','digits':r'[0-9]+'}.get(c.get('format'),r'[+-]?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)') if not re.fullmatch(pattern,value):raise InvalidOperation() a=Decimal(value);b=Decimal(answer) if not a.is_finite() or a!=b:failures=['incorrect numeric value'] except InvalidOperation:failures=['numeric answer required; no units or commentary'] elif mode=='constraints': failures=constraint_result(value,c['rules']) if not value:failures.append('nonempty answer required') else:raise ValueError('Unknown verifier '+mode) return {'pass':not failures,'failures':failures}
def grade(item,response): c=contract(item) if c['type']!='episode':return grade_value(response,item['answer'],c) if not isinstance(response,list) or len(response)!=len(c['turns']): return {'pass':False,'failures':['one response for each declared turn is required']} results=[grade_value(v,t['answer'],t['check']) for v,t in zip(response,c['turns'])] failures=[f'turn {i+1}: {reason}' for i,r in enumerate(results) for reason in r['failures']] for pair in c.get('equal_turns',[]): a,b=pair if response[a].strip().casefold()!=response[b].strip().casefold():failures.append(f'turns {a+1}/{b+1} inconsistent') return {'pass':not failures,'failures':failures,'turns':results}
def render_initial(item): p=item['prompt'] if 'choices' in item:p+='\n\n'+'\n'.join(f'{chr(65+i)}. {s}' for i,s in enumerate(item['choices'])) return [{'role':'user','content':p}]
def next_messages(item,responses): """Build actual episode history from actual responses, never oracle answers.""" c=contract(item);messages=render_initial(item) if c['type']!='episode':return messages if not responses else None for i,response in enumerate(responses): messages.append({'role':'assistant','content':response}) if i+1<len(c['turns']):messages.append({'role':'user','content':c['turns'][i+1]['prompt']}) return messages if len(responses)<len(c['turns']) else None
def main(): ap=argparse.ArgumentParser();ap.add_argument('--data',type=Path,required=True);ap.add_argument('--responses',type=Path,required=True);ap.add_argument('--output',type=Path) a=ap.parse_args();items=[json.loads(s) for s in a.data.read_text().splitlines()] supplied={} for line in a.responses.read_text().splitlines(): r=json.loads(line) if not isinstance(r.get('id'),str):raise ValueError('Response ID must be a string') if ('response' in r)==('responses' in r):raise ValueError('Supply exactly one response or responses field') if r['id'] in supplied:raise ValueError('Duplicate response ID '+r['id']) supplied[r['id']]=r.get('responses',r.get('response')) known={r['id'] for r in items};extra=set(supplied)-known if extra:raise ValueError('Unknown response IDs '+str(sorted(extra))) records=[];cats=collections.defaultdict(list) for item in items: if item['id'] not in supplied:result={'pass':False,'failures':['missing response']} else:result=grade(item,supplied[item['id']]) records.append({'id':item['id'],'category':item['category'],**result});cats[item['category']].append(result['pass']) summary={'items':len(items),'submitted':len(supplied),'passed':sum(x['pass'] for x in records), 'strict_percent':100*sum(x['pass'] for x in records)/len(items), 'categories':{k:{'items':len(v),'passed':sum(v),'percent':100*sum(v)/len(v)} for k,v in cats.items()}, 'method':'deterministic response grading; no model calls'} if a.output:a.output.write_text(''.join(json.dumps(x)+'\n' for x in records)) print(json.dumps(summary,indent=2))
if __name__=='__main__':main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108{ "name": "SLM-Instruct Bench (SIB-2.5k)", "version": "1.0.0-corrected", "release_date": "2026-12-04", "target_size": 2500, "purpose": "English short-form instruction execution, reasoning and evidence handling for language models, including the 1–3B parameter class.", "categories": [ "constraint_following", "character_level", "multistep_arithmetic", "logical_deduction", "state_tracking", "injection_resistance", "negation_traps", "false_premise", "passage_binding", "self_consistency" ], "items_per_category": 250, "category_scope": { "constraint_following": "Finite vocabulary, letter/token constraints, multi-line formatting and composed transformations; all feasible witnesses pass.", "character_level": "Literal character operations and word boundaries; all 250 independently recomputed.", "multistep_arithmetic": "Arithmetic chains, rates, percentages, timing and checkpoints; all 250 independently recomputed with rational arithmetic.", "logical_deduction": "Quantifiers, conditionals, order constraints and finite truth assignments; policy compliance and time scopes are explicit where needed.", "state_tracking": "Actual state versus belief, transfers, checkpoints, toggles and explicit event histories. Behavioral decision rules are stated.", "injection_resistance": "Explicit untrusted spans; exact transformations, supplied glossaries, extraction, factual assertions and balanced rule-based classification.", "negation_traps": "Explicit classical negation or disclosed dialect convention, quantified scope, three-state counterexamples and supplied editing policies.", "false_premise": "102 supported-value controls, 73 disproved-premise cases, 75 undecidable cases; uses self-contained records.", "passage_binding": "Named role, reference and multi-hop binding with clarified causality, gender, timing, location and reward conditions.", "self_consistency": "225 finite single-turn problems and 25 actual three-turn episodes using retained actual assistant history." }, "schema_per_line": { "id": "unique nonempty string", "category": "one of categories", "prompt": "initial user instruction only", "choices": "optional array of 2, 4 or 10 distinct nonempty strings, rendered in current order as A, B, …", "answer": "gold literal/number/option letter; feasible witness for constraints; final-turn answer for episodes", "check": "string beginning json: followed by a verifier object with a type, required parameters and inline proof" }, "check_schema_version": 1, "verifier_types": { "choice": "strict single external option letter", "exact": "literal comparison with declared case and outer-whitespace rules", "number": "exact Decimal value equality, optional integer/digits grammar", "one_of": "one of the explicit accepted literals", "constraints": "all declared executable predicates must pass; witness is not the only valid output", "episode": "three actual user/assistant turns, all independently graded; preserve actual assistant responses between turns" }, "normalization": { "outer_whitespace": "str.strip unless the check explicitly disables it", "case": "str.casefold for exact/one_of when case_sensitive is false; otherwise preserved", "tokens": "Python whitespace-delimited tokens; in constraint predicates surrounding .,!?:; quotes/brackets are stripped for token identity; finite allowed vocabularies and punctuation predicates further restrict outputs", "quoted_counts": "count only the explicitly bounded quoted span; numerals and hyphenated strings are each one whitespace token", "letters": "ASCII a–z/A–Z in constraint length predicates; literal source operations follow their explicit text", "lines": "str.splitlines after outer whitespace normalization; declared line/token counts must all match", "numeric": "plain decimal syntax only, no exponent, thousands separator, units, NaN or Infinity; additional integer/digits grammar when declared", "extra_output": "unrequested prefixes, suffixes and commentary fail unless the task explicitly permits them" }, "scoring": { "item": "1 for all requirements satisfied; otherwise 0. No discretionary partial credit.", "episode": "1 only if every declared turn passes; a correct final answer alone is insufficient", "aggregate": "100 × passed items / 2500; also report all ten category percentages", "missing_response": "fails the item; report submitted count and full denominator", "invalid_input": "duplicate/unknown response IDs or conflicting response fields are rejected" }, "delivery": { "grader": "slm_instruct_bench_grade.py", "renderer": "slm_instruct_bench_prepare.py", "protocol": "Only rendered user prompts/choices and actual previous assistant replies enter model messages. Never send answer, check, category, ID, or unrevealed future turns.", "independent_items": "reset conversation between items; retain actual history within an episode", "turn_counts": { "single_turn_items": 2475, "three_turn_episodes": 25, "total_requests_for_one_full_run": 2550 } }, "calibration": { "model_runs": 0, "status": "not run, explicitly excluded by user", "capable_slm_expected_score": null, "historical_20_to_30_percent_target": "Unverified design intent; this release makes no measured model-performance claim.", "random_baseline": "Policy-specific, not a blanket zero chance for free responses.", "uniform_mcq_otherwise_empty_percent": 7.074, "uniform_mcq_otherwise_unknown_percent": 10.354, "static_policy_report": "static_baselines.json" }, "verification": { "status": "PASS", "gold_witnesses_accepted": 2500, "negative_grader_checks": 7090, "independent_recomputations": 707, "finite_model_checks": 9, "independently_recomputed_categories": [ "character_level", "multistep_arithmetic" ], "remaining_gold_evidence": "inline authored derivations plus executable witness/answer checks; no claim of two independent human reviews", "duplicate_ids": 0, "duplicate_prompts": 0, "known_audit_groups_resolved": 237 }, "artifacts": { "dataset_sha256": "163625d5dfaf4a22478afedc797a4ad2c8b77dc901b3b28ad9f1bf3b3f98710f", "grader_sha256": "801ee9699aa328806829949132bb92967b117be25feaa3a201a1cc8c19c25b65", "provenance": "original_snapshot.jsonl, changes_from_original.jsonl and finding_resolutions.jsonl in the local release package" }, "delivery_status": "Corrected local release with executable scoring and saved verification evidence. Model inference was not run."}1234567891011121314151617181920212223242526272829303132333435363738394041"""Render the next request for each item without making any inference calls.
python3 prepare_requests.py --data slm_instruct_bench.jsonl > requests.jsonlpython3 prepare_requests.py --data slm_instruct_bench.jsonl --responses responses.jsonlCompleted single-turn items and episodes are omitted. Actual response history isretained; no gold answer, check, category, or future user turn is exposed early."""import argparseimport jsonfrom pathlib import Pathfrom slm_instruct_bench_grade import contract,next_messages
def prepare(items,submitted): known={r['id'] for r in items} if set(submitted)-known:raise ValueError('Unknown response IDs') out=[] for item in items: supplied=submitted.get(item['id']) if contract(item)['type']=='episode': history=[] if supplied is None else supplied if not isinstance(history,list) or not all(isinstance(v,str) for v in history):raise ValueError('Episode needs an array of actual string responses: '+item['id']) if len(history)>len(contract(item)['turns']):raise ValueError('Too many episode responses: '+item['id']) else: if supplied is not None and not isinstance(supplied,str):raise ValueError('Single-turn item needs a string: '+item['id']) history=[] if supplied is None else [supplied] messages=next_messages(item,history) if messages is not None:out.append({'id':item['id'],'messages':messages}) return out
def main(): p=argparse.ArgumentParser(description=__doc__);p.add_argument('--data',type=Path,required=True);p.add_argument('--responses',type=Path) a=p.parse_args();items=[json.loads(s) for s in a.data.read_text().splitlines()];submitted={} if a.responses: for line in a.responses.read_text().splitlines(): r=json.loads(line);rid=r['id'] if rid in submitted:raise ValueError('Duplicate response ID '+rid) if ('response' in r)==('responses' in r):raise ValueError('Supply exactly one response or responses field') submitted[rid]=r.get('responses',r.get('response')) for request in prepare(items,submitted):print(json.dumps(request,ensure_ascii=False))
if __name__=='__main__':main()123456789101112131415161718192021222324252627282930313233343536{ "method": "Exact probabilities for the specified static policies; ties are uniform. Not model runs.", "percent": { "uniform; otherwise EMPTY": 7.074, "uniform; otherwise NO": 10.594, "uniform; otherwise YES": 10.274000000000001, "uniform; otherwise UNKNOWN": 10.354, "uniform; otherwise NONE": 9.994, "pick_longest; otherwise EMPTY": 6.04, "pick_longest; otherwise NO": 9.56, "pick_longest; otherwise YES": 9.24, "pick_longest; otherwise UNKNOWN": 9.32, "pick_longest; otherwise NONE": 8.96, "pick_shortest; otherwise EMPTY": 6.811666666666666, "pick_shortest; otherwise NO": 10.331666666666665, "pick_shortest; otherwise YES": 10.011666666666667, "pick_shortest; otherwise UNKNOWN": 10.091666666666665, "pick_shortest; otherwise NONE": 9.731666666666666, "avoid_unique_longest; otherwise EMPTY": 7.424444444444445, "avoid_unique_longest; otherwise NO": 10.944444444444445, "avoid_unique_longest; otherwise YES": 10.624444444444446, "avoid_unique_longest; otherwise UNKNOWN": 10.704444444444444, "avoid_unique_longest; otherwise NONE": 10.344444444444445, "avoid_absolutes; otherwise EMPTY": 7.624444444444445, "avoid_absolutes; otherwise NO": 11.144444444444446, "avoid_absolutes; otherwise YES": 10.824444444444445, "avoid_absolutes; otherwise UNKNOWN": 10.904444444444445, "avoid_absolutes; otherwise NONE": 10.544444444444444, "always_B; otherwise EMPTY": 7.08, "always_B; otherwise NO": 10.6, "always_B; otherwise YES": 10.280000000000001, "always_B; otherwise UNKNOWN": 10.36, "always_B; otherwise NONE": 10.0 }, "free_response_warning": "There is no uniform distribution on unrestricted strings. These numbers describe only the named policies, not every random or heuristic guesser."}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ "status": "PASS", "items": 2500, "unique_ids": 2500, "categories": { "constraint_following": 250, "character_level": 250, "multistep_arithmetic": 250, "logical_deduction": 250, "state_tracking": 250, "injection_resistance": 250, "negation_traps": 250, "false_premise": 250, "passage_binding": 250, "self_consistency": 250 }, "check_types": { "constraints": 188, "exact": 986, "number": 595, "choice": 684, "one_of": 22, "episode": 25 }, "gold_witnesses_accepted": 2500, "negative_grader_checks": 7090, "accepted_alias_checks": 47, "independent_recomputations": 707, "independent_recomputation_failures": 0, "finite_model_checks": 9, "episodes": 25, "episode_turns": 75, "duplicate_prompts": 0, "duplicate_choice_sets_within_item": 0, "numeric_formats": { "decimal": 551, "integer": 42, "digits": 2 }, "choice_sizes": { "4": 659, "2": 24, "10": 1 }, "choice_position_counts": { "4": { "B": 165, "C": 165, "A": 165, "D": 164 }, "2": { "B": 12, "A": 12 }, "10": { "A": 1 } }, "false_premise_controls": { "NONE": 73, "UNKNOWN": 75, "SUPPORTED_VALUE": 102 }, "over_60_word_prompts": 0, "maximum_prompt_words": 60, "sha256": "163625d5dfaf4a22478afedc797a4ad2c8b77dc901b3b28ad9f1bf3b3f98710f", "model_inference_calls": 0, "model_calibration_performed": false, "interpretation": "Stored-answer acceptance verifies grader consistency. Independent computations cover the stated subset; remaining items have inline authored proofs. No model accuracy is inferred."}SHA256SUMSAdded+6
slm_instruct_bench.jsonlAdded
slm_instruct_bench_grade.pyAdded+238
slm_instruct_bench_meta.jsonAdded+108
slm_instruct_bench_prepare.pyAdded+41
static_baselines.jsonAdded+36
verification.jsonAdded+71