# AddressBench scoring pipeline Run the benchmark on your own model's generations in four steps. All steps resume from their progress files; rerunning the same command continues where it stopped. ## Layout - `judge_cf.py` — the judged probes (SBA / CSLR / SOR / EC / AC) over the counterfactual variants, one MLLM judge under a fixed scaffold (protocol: `bindbench/spec/counterfactual_protocol.md`). - `score_identity_seq.py` — FIS/TIS from ArcFace identity sequences (buffalo_l, 48 frames per video, per-frame one-to-one assignment; absent frames score zero in the TIS window). - `run_ms_amt.py` — MS from the AMT-based motion-smoothness implementation (numerically equivalent to VBench's to 1e-6). - `score_counterfactual.py` — aggregates the three into the eight table columns with per-column denominators and case-grouped bootstrap CIs. ## Usage ```bash # 1. judged probes (MLM judge; set your endpoint in the environment) python3 -I judge_cf.py --model kimi-k3 --arm # 2. identity sequences and motion python3 -I score_identity_seq.py --videos python3 -I run_ms_amt.py --videos # 3. aggregate to the eight columns python3 -I score_counterfactual.py \ --judge judge_cf_.jsonl --identity identity_seq_.jsonl --ms ms_amt_.jsonl \ --tasks bindbench_pool_tasks.jsonl --variant-tasks bindbench_pool_variant_tasks.jsonl \ --out counterfactual_.json --tex ``` Outputs land next to the videos by default. Failure taxonomy (unsupported input / generation failure / wrong answer) is reported separately and never mixed into the scores. ## Requirements Python 3.10+, PyTorch, and for the identity path an InsightFace/ArcFace runtime; the motion path uses AMT. The judged probes need an MLLM endpoint (any OpenAI-compatible chat API; the reference run used kimi-k3).