Spaces:
Running on Zero
Running on Zero
Organize the decision lab around four model tasks
Browse filesFiles changed (21)
- .gitattributes+8
- README.md+2-2
- app.py+2-1
- public/cases.json+1-1
- public/clips/test_000109.mp4Added
- public/clips/test_000325.mp4Added
- public/clips/test_000400.mp4Added
- public/clips/test_000699.mp4Added
- public/images/test_000109_A.pngAdded
- public/images/test_000109_B.pngAdded
- public/images/test_000325_A.pngAdded
- public/images/test_000325_B.pngAdded
- public/images/test_000400_A.pngAdded
- public/images/test_000400_B.pngAdded
- public/images/test_000699_A.pngAdded
- public/images/test_000699_B.pngAdded
- public/task_pairs.jsonAdded+1
- workbench/index.html+14-9
- workbench/lab.css+29-6
- workbench/lab.js+61-11
- workbench/tasks.jsAdded+67
38 unmodified lines39404138 unmodified linespublic/images/test_001324_A.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_001549_A.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_001549_B.png filter=lfs diff=lfs merge=lfs -text38 unmodified lines394041424344454647484938 unmodified linespublic/images/test_001324_A.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_001549_A.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_001549_B.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000109_A.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000109_B.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000325_A.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000325_B.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000400_A.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000400_B.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000699_A.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000699_B.png filter=lfs diff=lfs merge=lfs -text
11 unmodified lines121314151617181911 unmodified lines# Critique-then-Rerank · Live InferenceThe Decision Lab walks through four LEVIR-CC pairs: joint visual encoding, Beam-15 generation, Elephant-1 state locking, and same-state reranking. [Project page](https://thirteen7.github.io/Critique-then-Rerank/)Inspect paper records immediately or run the same image pair on ZeroGPU and follow the streamed stages. Swipe, compare side by side, or play the original frames as a four-second clip. The β slider reranks the active Stage 2 pool without another GPU call; the final-caption view keeps the paper setting. The app accepts only the four listed pairs.For deployment, select ZeroGPU hardware in Space Settings. Set `CTR_MODEL_READ_TOKEN` as a **Space secret** using a fine-grained token with read access only to `thirteen7/Critique-then-Rerank`. Do not use an account-wide token. The pinned public RSCaMa and Elephant-1 checkpoints are downloaded directly from the Hub; they are not bundled. The first startup after configuration downloads the checkpoints before accepting GPU work.11 unmodified lines121314151617181911 unmodified lines# Critique-then-Rerank · Live InferenceThe Decision Lab presents four tasks: change-state classification, caption factuality, pairwise preference, and listwise selection. The first three show diagnostic examples; listwise selection is the task used at inference. [Project page](https://thirteen7.github.io/Critique-then-Rerank/)Under listwise selection, run one of the preset pairs on ZeroGPU and follow the stream from joint visual encoding through Beam-15 and both decision stages. Swipe, compare side by side, or play the original frames as a four-second clip. The β slider reranks the active Stage 2 pool without another GPU call; the final-caption view keeps the paper setting.For deployment, select ZeroGPU hardware in Space Settings. Set `CTR_MODEL_READ_TOKEN` as a **Space secret** using a fine-grained token with read access only to `thirteen7/Critique-then-Rerank`. Do not use an account-wide token. The pinned public RSCaMa and Elephant-1 checkpoints are downloaded directly from the Hub; they are not bundled. The first startup after configuration downloads the checkpoints before accepting GPU work.
16 unmodified lines17181920212231 unmodified lines5455565758596016 unmodified linesPUBLIC = ROOT / 'public'FRONTEND = ROOT / 'workbench'CASES = {record['name']: record for record in read(PUBLIC / 'cases.json')}CONFIG = profile('levir')CHECKPOINTS = None31 unmodified lines'eligible': [index for index, _ in row['stage2']],'final': decision('levir', row, CONFIG['beta'], CONFIG['templates'])}records.append({**record, 'replay': trace})return {'cases': records, 'templates': CONFIG['templates'], 'beta': CONFIG['beta'],'tasks': [GENERAL, CHANGED], 'live': CHECKPOINTS is not None}16 unmodified lines1718192021222331 unmodified lines5556575859606116 unmodified linesPUBLIC = ROOT / 'public'FRONTEND = ROOT / 'workbench'CASES = {record['name']: record for record in read(PUBLIC / 'cases.json')}TASK_PAIRS = read(PUBLIC / 'task_pairs.json')CONFIG = profile('levir')CHECKPOINTS = None31 unmodified lines'eligible': [index for index, _ in row['stage2']],'final': decision('levir', row, CONFIG['beta'], CONFIG['templates'])}records.append({**record, 'replay': trace})return {'cases': records, 'task_pairs': TASK_PAIRS, 'templates': CONFIG['templates'], 'beta': CONFIG['beta'],'tasks': [GENERAL, CHANGED], 'live': CHECKPOINTS is not None}
1[{"name": "test_000033.png", "en": "False Positive Blocked", "zh": "误报拦截", "media": ["images/test_000033_A.png", "images/test_000033_B.png"], "title_en": "Stage 1 Blocks Hallucinated Construction", "title_zh": "第一阶段拦截无变化幻觉", "summary_en": "Beam-15 top-1 hallucinates a new building at the bottom of the scene. Stage 1 locks the state to Unchanged and skips Stage 2 by construction.", "summary_zh": "Beam-15 首句在底部幻觉出新建筑;第一阶段将状态锁定为“无变化”,结构上直接跳过第二阶段精排。", "clip": "clips/test_000033.mp4", "replay": {"captions": ["a building appears at the bottom of the scene", "a building is built at the bottom of the scene", "the scene is the same as before", "a small building is built at the bottom of the scene", "a small building appears at the bottom of the scene", "the scene is removed and a building is built at the bottom", "some buildings are built at the bottom of the scene", "some buildings appear at the bottom of the scene", "a villa is built at the bottom of the scene", "a house is built at the bottom of the scene", "the scene is removed and a building appears at the bottom", "two buildings appear at the bottom of the scene", "a building appears at the bottom right corner of the scene", "a building is built at the bottom right corner of the scene", "two buildings are built at the bottom of the scene"], "stage1": [[0, 0.03613479062914848], [1, 0.029035119339823723], [2, 0.7034565210342407], [3, 0.021242547780275345], [4, 0.02407095767557621], [5, 0.018169714137911797], [6, 0.020588982850313187], [7, 0.018169714137911797], [8, 0.024835053831338882], [9, 0.018169714137911797], [10, 0.014599774032831192], [11, 0.017610691487789154], [12, 0.015063220635056496], [13, 0.017610691487789154], [14, 0.021242547780275345]], "stage2": []}}, {"name": "test_001549.png", "en": "Same-State Reranking", "zh": "同状态精排", "media": ["images/test_001549_A.png", "images/test_001549_B.png"], "title_en": "Stage 2 Refines Singular to Plural Houses", "title_zh": "第二阶段修正对象与复数表达", "summary_en": "Both Beam-15 top-1 and Stage 1 select a changed caption (\"a building\"). Stage 2 compares only changed candidates and promotes \"some houses\", aligning with the scene.", "summary_zh": "Beam-15 首句与第一阶段都选中变化句(a building);第二阶段仅在变化候选内重排,选中更贴合画面的 some houses。", "clip": "clips/test_001549.mp4", "replay": {"captions": ["a building appears at the bottom right corner of the scene", "some houses appear at the bottom right corner of the scene", "a building appears at the bottom of the scene", "a house appears at the bottom right corner of the scene", "some houses appear at the bottom of the scene", "some buildings appear at the bottom right corner of the scene", "a house appears at the bottom of the scene", "some buildings appear at the bottom of the scene", "a villa appears at the bottom right corner of the scene", "a few houses appear at the bottom of the scene", "a few houses appear at the bottom right corner of the scene", "some houses are built at the bottom right corner of the scene", "a small building appears at the bottom right corner of the scene", "two houses appear at the bottom right corner of the scene", "a corner of houses appears at the bottom of the scene"], "stage1": [[0, 0.09699154645204544], [1, 0.09400742501020432], [2, 0.06069576367735863], [3, 0.08559473603963852], [4, 0.0646103024482727], [5, 0.08559473603963852], [6, 0.05031855031847954], [7, 0.05031855031847954], [8, 0.06666125357151031], [9, 0.05882834643125534], [10, 0.08040881901979446], [11, 0.051915835589170456], [12, 0.04303973913192749], [13, 0.06069576367735863], [14, 0.05031855031847954]], "stage2": [[11, 0.0644257590174675], [0, 0.09978457540273666], [12, 0.053410835564136505], [9, 0.03139860928058624], [2, 0.03557928651571274], [4, 0.04427913948893547], [3, 0.09085488319396973], [7, 0.04427913948893547], [1, 0.12418390810489655], [8, 0.060522403568029404], [13, 0.09978457540273666], [6, 0.023700913414359093], [10, 0.07771230489015579], [5, 0.1166599839925766], [14, 0.03342364728450775]]}}, {"name": "test_001324.png", "en": "Length Calibration (β)", "zh": "长度惩罚权衡", "media": ["images/test_001324_A.png", "images/test_001324_B.png"], "title_en": "Drag β to Observe Concise vs. Verbose Reranking", "title_zh": "拖动 β 观察简洁与冗长候选的切换", "summary_en": "At β = 0.00, Stage 2 prefers the longer phrase (\"at the bottom side of the scene\"). With Val-selected β = 0.12, length calibration selects the concise top candidate without rewriting text.", "summary_zh": "当 β = 0.00 时第二阶段偏向较长表达(at the bottom side of the scene);启用验证集选定的 β = 0.12 后,无需重写文本即可重排回更简洁的候选句。", "clip": "clips/test_001324.mp4", "replay": {"captions": ["a road is built at the bottom", "a road is built at the bottom side of the scene", "a road is built on the bottom side of the scene", "a road appears at the bottom", "a road is built on the bareland", "a road is built on the bottom", "a road is built at the bottom of the scene", "a road appears at the bottom of the scene", "a road appears at the bottom side of the scene", "a road is built at the bottom left corner of the scene", "a road and a road is built on the bottom", "a road appears at the bottom left corner of the scene", "a road are built at the bottom", "a road and a road is built on the bareland", "a road appears on the bareland"], "stage1": [[0, 0.0876748338341713], [1, 0.07737276703119278], [2, 0.07499226182699203], [3, 0.0876748338341713], [4, 0.04995561018586159], [5, 0.062170762568712234], [6, 0.0876748338341713], [7, 0.07737276703119278], [8, 0.08236288279294968], [9, 0.06828122586011887], [10, 0.04141465947031975], [11, 0.06025797501206398], [12, 0.045485105365514755], [13, 0.03890547156333923], [14, 0.05840403214097023]], "stage2": [[0, 0.09296959638595581], [14, 0.07707450538873672], [6, 0.09010922163724899], [4, 0.051342688500881195], [2, 0.07707450538873672], [11, 0.06801801919937134], [13, 0.022082215175032616], [8, 0.08204538375139236], [5, 0.05817888677120209], [1, 0.10210712999105453], [7, 0.08464978635311127], [10, 0.02502242848277092], [3, 0.07707450538873672], [12, 0.02835412509739399], [9, 0.0638970136642456]]}}, {"name": "test_001095.png", "en": "Boundary / Failure Case", "zh": "边界与失败案例", "media": ["images/test_001095_A.png", "images/test_001095_B.png"], "title_en": "Honest Boundary: Missed Change Cannot Be Flipped", "title_zh": "算法边界:初筛漏报锁定后不可翻转", "summary_en": "A small corner house appears on the right and is present in Beam-15 top-1, but Stage 1 predicts Unchanged. Because state-locking is structural, Stage 2 cannot override a Stage 1 false negative.", "summary_zh": "画面右侧出现小范围房屋变化且位于 Beam-15 首句中,但第一阶段误判为无变化;由于状态锁定是结构保证,第二阶段无法挽回初筛漏报。", "clip": "clips/test_001095.mp4", "replay": {"captions": ["a building is built on the right", "a building is built on the bareland", "the scene is the same as before", "a scene is built on the right", "some buildings are built on the right", "some buildings are built on the bareland", "a scene is built on the bareland", "two buildings are built on the right", "a large building is built on the right", "two buildings are built on the bareland", "a building is built on the right side of the scene", "a small building is built on the right", "a building is built on the right side", "a few buildings are built on the right", "a scene is built on the right side of the scene"], "stage1": [[0, 0.05586867779493332], [1, 0.024791575968265533], [2, 0.5642536878585815], [3, 0.03839794546365738], [4, 0.02898428961634636], [5, 0.022572988644242287], [6, 0.026390496641397476], [7, 0.025578545406460762], [8, 0.0360715277493], [9, 0.02055293880403042], [10, 0.031833015382289886], [11, 0.025578545406460762], [12, 0.0360715277493], [13, 0.028092535212635994], [14, 0.034961726516485214]], "stage2": []}}]1[{"name": "test_000699.png", "media": ["images/test_000699_A.png", "images/test_000699_B.png"], "clip": "clips/test_000699.mp4", "en": "Roadside houses", "zh": "沿路房屋", "title_en": "Choosing a more precise location", "title_zh": "选出更准确的位置描述", "summary_en": "Stage 1 locks Changed with Beam #1; Stage 2 selects Beam #2, which locates the houses along the road.", "summary_zh": "第一阶段用 Beam #1 锁定有变化;第二阶段选中 Beam #2,将房屋的位置描述为沿路。", "replay": {"captions": ["a row of houses is built on the right side of the scene", "a row of houses is built along the road", "a row of houses are built on the right side of the scene", "a row of houses is built on both sides of the road", "a row of houses is built on the right side of the road", "some houses are built on the right side of the road", "some houses are built along the road", "a row of houses is built on the right side", "a row of houses are built along the road", "a row of houses is built at the right corner of the scene", "a row of houses is built on the right", "some houses are built on the right side of the scene", "a row of houses is built at the edge of the scene", "some houses are built on both sides of the road", "a row of houses is built on the bareland"], "stage1": [[0, 0.1111542209982872], [1, 0.06741844117641449], [2, 0.08931492269039154], [3, 0.059496570378541946], [4, 0.07176656275987625], [5, 0.05417224019765854], [6, 0.057666048407554626], [7, 0.0653441920876503], [8, 0.07176656275987625], [9, 0.0653441920876503], [10, 0.06741844117641449], [11, 0.06138518452644348], [12, 0.050890110433101654], [13, 0.043528616428375244], [14, 0.06333376467227936]], "stage2": [[5, 0.05558950826525688], [11, 0.07364413142204285], [3, 0.04196116328239441], [14, 0.06918226182460785], [1, 0.09165161103010178], [0, 0.09456093609333038], [7, 0.09756262600421906], [12, 0.05387919768691063], [2, 0.07137834280729294], [6, 0.04905756935477257], [4, 0.08883178234100342], [10, 0.07364413142204285], [13, 0.025450732558965683], [8, 0.06299116462469101], [9, 0.050614822655916214]]}}, {"name": "test_000033.png", "en": "False Positive Blocked", "zh": "误报拦截", "media": ["images/test_000033_A.png", "images/test_000033_B.png"], "title_en": "Stage 1 Blocks Hallucinated Construction", "title_zh": "第一阶段拦截无变化幻觉", "summary_en": "Beam-15 top-1 hallucinates a new building at the bottom of the scene. Stage 1 locks the state to Unchanged and skips Stage 2 by construction.", "summary_zh": "Beam-15 首句在底部幻觉出新建筑;第一阶段将状态锁定为“无变化”,结构上直接跳过第二阶段精排。", "clip": "clips/test_000033.mp4", "replay": {"captions": ["a building appears at the bottom of the scene", "a building is built at the bottom of the scene", "the scene is the same as before", "a small building is built at the bottom of the scene", "a small building appears at the bottom of the scene", "the scene is removed and a building is built at the bottom", "some buildings are built at the bottom of the scene", "some buildings appear at the bottom of the scene", "a villa is built at the bottom of the scene", "a house is built at the bottom of the scene", "the scene is removed and a building appears at the bottom", "two buildings appear at the bottom of the scene", "a building appears at the bottom right corner of the scene", "a building is built at the bottom right corner of the scene", "two buildings are built at the bottom of the scene"], "stage1": [[0, 0.03613479062914848], [1, 0.029035119339823723], [2, 0.7034565210342407], [3, 0.021242547780275345], [4, 0.02407095767557621], [5, 0.018169714137911797], [6, 0.020588982850313187], [7, 0.018169714137911797], [8, 0.024835053831338882], [9, 0.018169714137911797], [10, 0.014599774032831192], [11, 0.017610691487789154], [12, 0.015063220635056496], [13, 0.017610691487789154], [14, 0.021242547780275345]], "stage2": []}}, {"name": "test_001549.png", "en": "Same-State Reranking", "zh": "同状态精排", "media": ["images/test_001549_A.png", "images/test_001549_B.png"], "title_en": "Stage 2 Refines Singular to Plural Houses", "title_zh": "第二阶段修正对象与复数表达", "summary_en": "Both Beam-15 top-1 and Stage 1 select a changed caption (\"a building\"). Stage 2 compares only changed candidates and promotes \"some houses\", aligning with the scene.", "summary_zh": "Beam-15 首句与第一阶段都选中变化句(a building);第二阶段仅在变化候选内重排,选中更贴合画面的 some houses。", "clip": "clips/test_001549.mp4", "replay": {"captions": ["a building appears at the bottom right corner of the scene", "some houses appear at the bottom right corner of the scene", "a building appears at the bottom of the scene", "a house appears at the bottom right corner of the scene", "some houses appear at the bottom of the scene", "some buildings appear at the bottom right corner of the scene", "a house appears at the bottom of the scene", "some buildings appear at the bottom of the scene", "a villa appears at the bottom right corner of the scene", "a few houses appear at the bottom of the scene", "a few houses appear at the bottom right corner of the scene", "some houses are built at the bottom right corner of the scene", "a small building appears at the bottom right corner of the scene", "two houses appear at the bottom right corner of the scene", "a corner of houses appears at the bottom of the scene"], "stage1": [[0, 0.09699154645204544], [1, 0.09400742501020432], [2, 0.06069576367735863], [3, 0.08559473603963852], [4, 0.0646103024482727], [5, 0.08559473603963852], [6, 0.05031855031847954], [7, 0.05031855031847954], [8, 0.06666125357151031], [9, 0.05882834643125534], [10, 0.08040881901979446], [11, 0.051915835589170456], [12, 0.04303973913192749], [13, 0.06069576367735863], [14, 0.05031855031847954]], "stage2": [[11, 0.0644257590174675], [0, 0.09978457540273666], [12, 0.053410835564136505], [9, 0.03139860928058624], [2, 0.03557928651571274], [4, 0.04427913948893547], [3, 0.09085488319396973], [7, 0.04427913948893547], [1, 0.12418390810489655], [8, 0.060522403568029404], [13, 0.09978457540273666], [6, 0.023700913414359093], [10, 0.07771230489015579], [5, 0.1166599839925766], [14, 0.03342364728450775]]}}, {"name": "test_001324.png", "en": "Length Calibration (β)", "zh": "长度惩罚权衡", "media": ["images/test_001324_A.png", "images/test_001324_B.png"], "title_en": "Drag β to Observe Concise vs. Verbose Reranking", "title_zh": "拖动 β 观察简洁与冗长候选的切换", "summary_en": "At β = 0.00, Stage 2 prefers the longer phrase (\"at the bottom side of the scene\"). With Val-selected β = 0.12, length calibration selects the concise top candidate without rewriting text.", "summary_zh": "当 β = 0.00 时第二阶段偏向较长表达(at the bottom side of the scene);启用验证集选定的 β = 0.12 后,无需重写文本即可重排回更简洁的候选句。", "clip": "clips/test_001324.mp4", "replay": {"captions": ["a road is built at the bottom", "a road is built at the bottom side of the scene", "a road is built on the bottom side of the scene", "a road appears at the bottom", "a road is built on the bareland", "a road is built on the bottom", "a road is built at the bottom of the scene", "a road appears at the bottom of the scene", "a road appears at the bottom side of the scene", "a road is built at the bottom left corner of the scene", "a road and a road is built on the bottom", "a road appears at the bottom left corner of the scene", "a road are built at the bottom", "a road and a road is built on the bareland", "a road appears on the bareland"], "stage1": [[0, 0.0876748338341713], [1, 0.07737276703119278], [2, 0.07499226182699203], [3, 0.0876748338341713], [4, 0.04995561018586159], [5, 0.062170762568712234], [6, 0.0876748338341713], [7, 0.07737276703119278], [8, 0.08236288279294968], [9, 0.06828122586011887], [10, 0.04141465947031975], [11, 0.06025797501206398], [12, 0.045485105365514755], [13, 0.03890547156333923], [14, 0.05840403214097023]], "stage2": [[0, 0.09296959638595581], [14, 0.07707450538873672], [6, 0.09010922163724899], [4, 0.051342688500881195], [2, 0.07707450538873672], [11, 0.06801801919937134], [13, 0.022082215175032616], [8, 0.08204538375139236], [5, 0.05817888677120209], [1, 0.10210712999105453], [7, 0.08464978635311127], [10, 0.02502242848277092], [3, 0.07707450538873672], [12, 0.02835412509739399], [9, 0.0638970136642456]]}}, {"name": "test_001095.png", "en": "Boundary / Failure Case", "zh": "边界与失败案例", "media": ["images/test_001095_A.png", "images/test_001095_B.png"], "title_en": "Honest Boundary: Missed Change Cannot Be Flipped", "title_zh": "算法边界:初筛漏报锁定后不可翻转", "summary_en": "A small corner house appears on the right and is present in Beam-15 top-1, but Stage 1 predicts Unchanged. Because state-locking is structural, Stage 2 cannot override a Stage 1 false negative.", "summary_zh": "画面右侧出现小范围房屋变化且位于 Beam-15 首句中,但第一阶段误判为无变化;由于状态锁定是结构保证,第二阶段无法挽回初筛漏报。", "clip": "clips/test_001095.mp4", "replay": {"captions": ["a building is built on the right", "a building is built on the bareland", "the scene is the same as before", "a scene is built on the right", "some buildings are built on the right", "some buildings are built on the bareland", "a scene is built on the bareland", "two buildings are built on the right", "a large building is built on the right", "two buildings are built on the bareland", "a building is built on the right side of the scene", "a small building is built on the right", "a building is built on the right side", "a few buildings are built on the right", "a scene is built on the right side of the scene"], "stage1": [[0, 0.05586867779493332], [1, 0.024791575968265533], [2, 0.5642536878585815], [3, 0.03839794546365738], [4, 0.02898428961634636], [5, 0.022572988644242287], [6, 0.026390496641397476], [7, 0.025578545406460762], [8, 0.0360715277493], [9, 0.02055293880403042], [10, 0.031833015382289886], [11, 0.025578545406460762], [12, 0.0360715277493], [13, 0.028092535212635994], [14, 0.034961726516485214]], "stage2": []}}]
1{"000109": {"name": "test_000109.png", "media": ["images/test_000109_A.png", "images/test_000109_B.png"], "clip": "clips/test_000109.mp4"}, "000325": {"name": "test_000325.png", "media": ["images/test_000325_A.png", "images/test_000325_B.png"], "clip": "clips/test_000325.mp4"}, "000400": {"name": "test_000400.png", "media": ["images/test_000400_A.png", "images/test_000400_B.png"], "clip": "clips/test_000400.mp4"}, "000699": {"name": "test_000699.png", "media": ["images/test_000699_A.png", "images/test_000699_B.png"], "clip": "clips/test_000699.mp4"}}5 unmodified lines6789101112133 unmodified lines171819202122232425262728291 unmodified line31323334353637383 unmodified lines4243444546475 unmodified lines<meta name="theme-color" content="#f7f8f6"><link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M3 12 16 5l13 7-13 7L3 12Zm0 7 13 7 13-7' fill='none' stroke='%230f766e' stroke-width='2.5'/%3E%3C/svg%3E"><title>Critique-then-Rerank · Decision Lab</title><link rel="stylesheet" href="./workbench/lab.css?v=light"><script type="module" src="./workbench/lab.js"></script></head><body><header class="topbar">3 unmodified lines<main><section class="hero" aria-labelledby="headline"><div><p class="eyebrow"><span class="signal"></span> LEVIR-CC <span class="dim">/</span> ELEPHANT-1</p><h1 id="headline" data-t="headline">From two images<br>to one decision.</h1><p class="lede" data-t="lede">Follow the same location through time. See how 15 captions are generated, which option locks the change state, and how the final caption is selected.</p></div><ol class="hero-index" aria-label="Pipeline stages"><li><b>01</b><span data-t="encode">Encode the pair</span></li><li><b>02</b><span data-t="generate">Generate captions</span></li><li><b>03</b><span data-t="lock">Lock the state</span></li><li><b>04</b><span data-t="rerank">Rerank within the state</span></li></ol></section><section class="cases" aria-labelledby="case-heading"><div class="sectionbar"><h2 id="case-heading" data-t="choose">Choose a test pair</h2><span class="micro">04 PAIRS / LEVIR-CC</span></div><div class="case-grid" id="case-grid"></div></section><div class="lab"><aside class="observation panel" aria-labelledby="observation-title">1 unmodified line<div id="viewer"></div><div id="case-context" class="case-context"></div></aside><section class="decision panel" aria-labelledby="trace-title"><div class="sectionbar"><h2 id="trace-title" data-t="trace">Decision trace</h2><span class="micro">T₁ / T₂ → CAPTION</span></div><div class="toolbar"><div class="transport"><button type="button" id="replay" data-t="play">▷ Step through</button><button type="button" id="live" data-t="live">Run on GPU ↗</button></div><span id="source" class="chip"></span>3 unmodified lines<div id="inspector" class="inspector"></div></section></div><noscript>This interactive trace requires JavaScript. / 交互演示需要 JavaScript。</noscript></main><footer><span>CRITIQUE-THEN-RERANK</span><span>LEVIR-CC · DECISION LAB</span></footer>5 unmodified lines6789101112133 unmodified lines171819202122232425262728291 unmodified line3132333435363738394041423 unmodified lines464748495051525 unmodified lines<meta name="theme-color" content="#f7f8f6"><link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M3 12 16 5l13 7-13 7L3 12Zm0 7 13 7 13-7' fill='none' stroke='%230f766e' stroke-width='2.5'/%3E%3C/svg%3E"><title>Critique-then-Rerank · Decision Lab</title><link rel="stylesheet" href="./workbench/lab.css?v=tasks"><script type="module" src="./workbench/lab.js?v=tasks"></script></head><body><header class="topbar">3 unmodified lines<main><section class="hero" aria-labelledby="headline"><div><p class="eyebrow"><span class="signal"></span> LEVIR-CC <span class="dim">/</span> ELEPHANT-1</p><h1 id="headline" data-t="headline">One model, four decision tasks.</h1><p class="lede" data-t="lede">Every task starts with two images of the same place. What changes is the question, the text the model sees, and the options it can choose.</p></div><div class="hero-index task-key"><p><b>01–03</b> <span data-t="diagnosticGroup">Training task examples</span></p><p><b>04</b> <span data-t="inferenceGroup">End-to-end inference</span></p></div></section><section class="cases" aria-labelledby="case-heading"><div class="sectionbar"><h2 id="case-heading" data-t="choose">Choose a decision task</h2><span class="micro">04 TASKS / ELEPHANT-1</span></div><div class="case-grid task-grid" id="task-grid" role="group" aria-labelledby="case-heading"></div></section><div class="lab"><aside class="observation panel" aria-labelledby="observation-title">1 unmodified line<div id="viewer"></div><div id="case-context" class="case-context"></div></aside><section class="decision panel" id="probe" aria-labelledby="probe-title"></section><section class="decision panel" id="inference-panel" aria-labelledby="trace-title" hidden><div class="sectionbar"><h2 id="trace-title" data-t="trace">Listwise selection · Inference</h2><span class="micro">T₁ / T₂ → CAPTION</span></div><p class="explain" data-t="listIntro">With two images and a list of candidates, choose the best-supported caption. Both stages use this task.</p><div id="list-protocol"></div><details class="pair-picker"><summary data-t="pairs">Change example image pair</summary><div class="case-grid case-options" id="case-grid"></div></details><div class="toolbar"><div class="transport"><button type="button" id="replay" data-t="play">▷ Step through</button><button type="button" id="live" data-t="live">Run on GPU ↗</button></div><span id="source" class="chip"></span>3 unmodified lines<div id="inspector" class="inspector"></div></section></div><p class="sr-only" id="task-announcement" role="status"></p><noscript>This interactive trace requires JavaScript. / 交互演示需要 JavaScript。</noscript></main><footer><span>CRITIQUE-THEN-RERANK</span><span>LEVIR-CC · DECISION LAB</span></footer>
17 unmodified lines18192021222320 unmodified lines444546474849505152535455565758596041 unmodified lines10210310410510610765 unmodified lines1731741751761771781791802 unmodified lines18318418518617 unmodified lines}*, *::before, *::after { box-sizing: border-box; }body { margin: 0; }button, a, input { font: inherit; }button { color: inherit; cursor: pointer; }button:disabled { cursor: default; opacity: .55; }20 unmodified lines.eyebrow, .micro { color: var(--green); }.signal { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #0f766e18; }.dim { color: var(--dim); }h1 { max-width: 16ch; margin: .3em 0 .2em; font-size: clamp(2.35rem, 5.6vw, 5.4rem); line-height: 1.01; letter-spacing: -.065em; }[lang='zh-CN'] h1 { letter-spacing: -.032em; }.lede { max-width: 64ch; line-height: 1.62; color: var(--dim); }.hero-index { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 8px; background: #ffffffb3; }.hero-index li { display: flex; align-items: center; gap: 13px; min-height: 42px; padding: 8px 12px; font-size: .87rem; }.hero-index li + li { border-top: 1px solid var(--line); }.hero-index b { font: 500 .72rem var(--mono); color: var(--green); }.sectionbar { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; }.sectionbar h2 { font-size: 1.05rem; letter-spacing: -.02em; }.sectionbar code { color: var(--dim); }.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }.case { position: relative; display: grid; grid-template-columns: 57px minmax(0,1fr); align-items: center; gap: 10px; min-height: 80px; text-align: start; padding: 9px; background: var(--panel); }.case img { border-radius: 4px; }.case-number { position: absolute; inset: 13px auto auto 13px; background: var(--panel); color: var(--ink); border-radius: 3px; padding: 2px 3px; font: .61rem var(--mono); }41 unmodified lines.inspect-head h3 { font-size: clamp(1.4rem, 2.1vw, 2rem); line-height: 1.13; margin-block: 4px 6px; letter-spacing: -.036em; }.inspect-head time { color: var(--green); white-space: nowrap; }.explain { margin-bottom: 13px; }.route-map { margin-block: 16px 12px; }.route-root { margin-inline: auto; width: max-content; display: grid; text-align: center; gap: 3px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 15px; background: var(--deep); }.route-root span { color: var(--dim); }65 unmodified lines.hero, .lab { grid-template-columns: minmax(0,1fr); }.hero { margin-top: 12px; }.hero-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.hero-index li:nth-child(2) { border-top: 0; }.hero-index li { padding-inline: 6px; gap: 6px; }.swipe, video { max-width: 380px; margin-inline: auto; }}@media (max-width: 390px) {2 unmodified lines.wordmark small, .toplinks a { font-size: .66rem; }.case { grid-template-columns: 38px minmax(0,1fr); padding: 6px; gap: 6px; }.case-number { inset: 19px auto auto 7px; }}17 unmodified lines181920212223242520 unmodified lines464748495051525354555657585960616263646566676841 unmodified lines11011111211311411511611711811912012112212312412512612712812965 unmodified lines1951961971981992002012022 unmodified lines20520620720820917 unmodified lines}*, *::before, *::after { box-sizing: border-box; }body { margin: 0; }[hidden] { display: none !important; }.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }button, a, input { font: inherit; }button { color: inherit; cursor: pointer; }button:disabled { cursor: default; opacity: .55; }20 unmodified lines.eyebrow, .micro { color: var(--green); }.signal { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #0f766e18; }.dim { color: var(--dim); }h1 { max-width: 16ch; margin: .3em 0 .2em; font-size: clamp(2.35rem, 5.6vw, 5.4rem); line-height: 1.05; letter-spacing: -.065em; text-wrap: balance; }[lang='zh-CN'] h1 { max-width: 9em; font-size: clamp(2.15rem, 4.6vw, 4.5rem); letter-spacing: -.032em; }.lede { max-width: 64ch; line-height: 1.62; color: var(--dim); }.hero-index { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 8px; background: #ffffffb3; }.task-key p { display: flex; align-items: center; gap: 13px; min-height: 42px; padding: 8px 12px; font-size: .87rem; }.task-key p + p { border-top: 1px solid var(--line); }.hero-index b { font: 500 .72rem var(--mono); color: var(--green); }.sectionbar { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; }.sectionbar h2 { font-size: 1.05rem; letter-spacing: -.02em; }.sectionbar code { color: var(--dim); }.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }.task-choice { display: grid; align-content: center; justify-items: start; gap: 5px; min-height: 106px; padding: 12px clamp(10px, 1.8vw, 22px); background: var(--panel); border-color: var(--line); text-align: start; }.task-choice code { color: var(--green); }.task-choice strong { font-size: clamp(.94rem, 1.35vw, 1.12rem); line-height: 1.22; }.task-choice small { color: var(--dim); font-size: .81rem; line-height: 1.35; }.task-choice[aria-pressed='true'] { background: var(--green-wash); box-shadow: inset 0 -3px var(--green); }.task-choice:last-child:not([aria-pressed='true']) code { color: var(--warm); }.case { position: relative; display: grid; grid-template-columns: 57px minmax(0,1fr); align-items: center; gap: 10px; min-height: 80px; text-align: start; padding: 9px; background: var(--panel); }.case img { border-radius: 4px; }.case-number { position: absolute; inset: 13px auto auto 13px; background: var(--panel); color: var(--ink); border-radius: 3px; padding: 2px 3px; font: .61rem var(--mono); }41 unmodified lines.inspect-head h3 { font-size: clamp(1.4rem, 2.1vw, 2rem); line-height: 1.13; margin-block: 4px 6px; letter-spacing: -.036em; }.inspect-head time { color: var(--green); white-space: nowrap; }.explain { margin-bottom: 13px; }.probe-question { font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1.14; letter-spacing: -.035em; margin-block: 8px; }.protocol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-block: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--line); overflow: hidden; }.protocol > div { display: grid; align-content: start; gap: 5px; background: var(--deep); padding: 10px; }.protocol small { color: var(--green); font: .72rem/1.3 var(--mono); }.protocol strong { font-size: .88rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }.decision blockquote { margin: 12px 0; border-inline-start: 3px solid var(--green); background: var(--deep); padding: 9px 12px; line-height: 1.5; }.probe-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }.probe-option { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; row-gap: 4px; border: 1px solid var(--line); padding: 10px 12px; border-radius: 7px; background: var(--deep); font-size: .91rem; line-height: 1.4; }.probe-option span { flex: 1 1 130px; }.probe-option code { color: var(--dim); }.probe-option strong { color: var(--green); font: 600 .76rem/1.4 var(--mono); font-variant-numeric: tabular-nums; }.probe-picked { border-color: var(--green); background: var(--green-wash); }.pair-picker { margin-block: 12px; }.case-options { margin-top: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr)); }.route-map { margin-block: 16px 12px; }.route-root { margin-inline: auto; width: max-content; display: grid; text-align: center; gap: 3px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 15px; background: var(--deep); }.route-root span { color: var(--dim); }65 unmodified lines.hero, .lab { grid-template-columns: minmax(0,1fr); }.hero { margin-top: 12px; }.hero-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.task-key p + p { border-top: 0; border-inline-start: 1px solid var(--line); }.task-key p { padding-inline: 8px; gap: 7px; font-size: .8rem; }.swipe, video { max-width: 380px; margin-inline: auto; }}@media (max-width: 390px) {2 unmodified lines.wordmark small, .toplinks a { font-size: .66rem; }.case { grid-template-columns: 38px minmax(0,1fr); padding: 6px; gap: 6px; }.case-number { inset: 19px auto auto 7px; }.protocol > div { padding: 8px 6px; }}
123456789103 unmodified lines1415161718191 unmodified line2122232425261 unmodified line2829303132331 unmodified line35363738394041421 unmodified line4445464748495051527 unmodified lines6061626364656667118 unmodified lines18618718818919019127 unmodified lines2192202212222232241 unmodified line22622722822923023123240 unmodified lines273274275276277278const byId = id => document.getElementById(id);const escape = value => String(value ?? '').replace(/[&<>"']/g, char => ({'&':'&', '<':'<', '>':'>', '"':'"', "'":'''}[char]));const steps = ['encode', 'generate', 'lock', 'rerank', 'output'];const labels = {project: ['Project ↗','项目主页 ↗'], headline: ['From two images to one decision.','从两张影像,到一次决策。'],lede: ['Follow the same location through time. See how 15 captions are generated, which option locks the change state, and how the final caption is selected.','追踪同一地点的两个时相,查看 15 条候选如何生成、哪个选项锁定变化状态,以及最后如何选出描述。'],choose: ['Choose a test pair','选择测试案例'], observations: ['Bi-temporal observations','双时相观测'], trace: ['Decision trace','决策过程'],encode: ['Encode the pair','编码双图'], generate: ['Generate captions','生成候选'], lock: ['Lock the state','锁定状态'],rerank: ['Same-state reranking','同状态精排'], output: ['Final caption','最终描述'],play: ['▷ Step through','▷ 逐步演示'], pause: ['Ⅱ Pause','Ⅱ 暂停演示'], live: ['Run on GPU ↗','实时推理 ↗'],3 unmodified linesconst label = key => text(...labels[key]);let catalog, selected, trace, phase = 2, mode = 'archive', liveEvent, busy = false, follow = true, failure = '', timer;let view = 'swipe', divider = 50, beta = 0.12;function translate() {document.documentElement.lang = text('en','zh-CN');1 unmodified linefor (const node of document.querySelectorAll('[data-t]')) node.textContent = label(node.dataset.t);byId('language').textContent = text('中文','EN');byId('language').setAttribute('aria-label', text('切换到中文','Switch to English'));}const media = path => `./media/${path.split('/').map(encodeURIComponent).join('/')}`;1 unmodified lineconst rankLabel = index => `#${String(index + 1).padStart(2, '0')}`;const image = (path, later) => `<img src="${media(path)}" width="256" height="256" alt="${later ? text('T₂: later satellite image','T₂:后一时相遥感影像') : text('T₁: earlier satellite image','T₁:前一时相遥感影像')}">`;function renderCases() {byId('case-grid').innerHTML = catalog.cases.map((item, index) => `<button type="button" class="case" data-case="${index}" aria-pressed="${item === selected}" ${busy ? 'disabled' : ''}><span class="case-number">0${index + 1}</span>${image(item.media[1], true).replace(/alt="[^"]*"/, 'alt=""')}1 unmodified line}function renderViewer() {byId('case-id').textContent = selected.name.replace('.png','');const [before, after] = selected.media;const modes = [['swipe',text('Swipe','拉帘')],['pair',text('Side by side','并排')],['video',text('Playback','时序播放')]];const frame = (path, later) => `<div class="frame">${image(path, later)}<span>${later ? 'T₂' : 'T₁'}</span></div>`;let stage;1 unmodified line<input id="divider" type="range" min="0" max="100" value="${divider}" aria-valuetext="${divider}%"></div><label class="range-label" for="divider">${text('Drag to compare T₁ / T₂','拖动对比 T₁ / T₂')}<output id="divider-value">${divider}%</output></label>`;if (view === 'pair') stage = `<div class="pair">${frame(before, false)}${frame(after, true)}</div>`;if (view === 'video') stage = `<video controls playsinline preload="metadata" poster="${media(before)}" src="${media(selected.clip)}" aria-label="${text('T₁ to T₂ playback','T₁ 到 T₂ 时序播放')}"></video><p class="fine">${text('Original frames only · 2 s per observation','仅播放两张原始影像 · 每个时相 2 秒')}</p>`;byId('viewer').innerHTML = `<div class="view-mode">${modes.map(([key, title]) => `<button type="button" data-view="${key}" aria-pressed="${view === key}">${title}</button>`).join('')}</div>${stage}`;byId('case-context').innerHTML = `<span class="micro">${text('CASE GUIDE','案例导读')}</span><h3>${escape(text(selected.title_en, selected.title_zh))}</h3><p>${escape(text(selected.summary_en, selected.summary_zh))}</p>`;}function select(index) {7 unmodified linesdivider = 50;failure = '';renderCases();renderViewer();render();}function stopReplay() {118 unmodified linesphase = 0;beta = catalog.beta;renderCases();render();let source;try {27 unmodified linessource?.close();busy = false;renderCases();render();}}1 unmodified linebyId('language').addEventListener('click', () => {lang = lang === 'en' ? 'zh' : 'en';translate();if (catalog) { renderCases(); renderViewer(); render(); }});byId('case-grid').addEventListener('click', event => {const button = event.target.closest('[data-case]');40 unmodified linesif (!response.ok) throw new Error('Catalog unavailable');catalog = await response.json();select(0);} catch {byId('status').textContent = text('Cases could not load. Refresh to retry.', '未能加载案例,请刷新重试。');}1234567891011121314153 unmodified lines19202122232425261 unmodified line282930313233341 unmodified line36373839404142434445464748495051525354555657581 unmodified line606162636465666768691 unmodified line717273747576777879807 unmodified lines88899091929394118 unmodified lines21321421521621721821927 unmodified lines2472482492502512522531 unmodified line25525625725825926026126226326426526626726826927027127227327427527627727827928028140 unmodified lines322323324325326327328import { probeContent, protocol, tasks } from './tasks.js';const byId = id => document.getElementById(id);const escape = value => String(value ?? '').replace(/[&<>"']/g, char => ({'&':'&', '<':'<', '>':'>', '"':'"', "'":'''}[char]));const steps = ['encode', 'generate', 'lock', 'rerank', 'output'];const labels = {project: ['Project ↗','项目主页 ↗'], headline: ['One model, four decision tasks.','一个模型,四种决策任务。'],lede: ['Every task starts with two images of the same place. What changes is the question, the text the model sees, and the options it can choose.','四项任务都从同一地点的两期影像出发,区别在于问什么、给模型哪些文字,以及它要从哪些选项中作答。'],choose: ['Choose a decision task','选择决策任务'], observations: ['Bi-temporal observations','双时相观测'], trace: ['Listwise selection · Inference','列表选句 · 完整推理'],diagnosticGroup: ['Training task examples','训练任务示例'], inferenceGroup: ['End-to-end inference','端到端推理'],listIntro: ['With two images and a list of candidates, choose the best-supported caption. Both stages use this task.','给定双时相影像和一组候选,选出最符合影像的一句。正式推理的两个阶段都使用这项任务。'],pairs: ['Change example image pair','更换示例影像'],encode: ['Encode the pair','编码双图'], generate: ['Generate captions','生成候选'], lock: ['Lock the state','锁定状态'],rerank: ['Same-state reranking','同状态精排'], output: ['Final caption','最终描述'],play: ['▷ Step through','▷ 逐步演示'], pause: ['Ⅱ Pause','Ⅱ 暂停演示'], live: ['Run on GPU ↗','实时推理 ↗'],3 unmodified linesconst label = key => text(...labels[key]);let catalog, selected, trace, phase = 2, mode = 'archive', liveEvent, busy = false, follow = true, failure = '', timer;let view = 'swipe', divider = 50, beta = 0.12;let activeTask = 0, alternate = false;const listwise = () => activeTask === tasks.length - 1;function translate() {document.documentElement.lang = text('en','zh-CN');1 unmodified linefor (const node of document.querySelectorAll('[data-t]')) node.textContent = label(node.dataset.t);byId('language').textContent = text('中文','EN');byId('language').setAttribute('aria-label', text('切换到中文','Switch to English'));renderTasks();}const media = path => `./media/${path.split('/').map(encodeURIComponent).join('/')}`;1 unmodified lineconst rankLabel = index => `#${String(index + 1).padStart(2, '0')}`;const image = (path, later) => `<img src="${media(path)}" width="256" height="256" alt="${later ? text('T₂: later satellite image','T₂:后一时相遥感影像') : text('T₁: earlier satellite image','T₁:前一时相遥感影像')}">`;function renderTasks() {byId('task-grid').innerHTML = tasks.map((task, index) => `<button type="button" class="task-choice" data-task="${index}" aria-pressed="${index === activeTask}" ${!catalog || busy ? 'disabled' : ''}><code>0${index + 1}</code><strong>${text(...task.label)}</strong><small>${text(...task.hint)}</small></button>`).join('');}function showTask() {byId('probe').hidden = listwise();byId('inference-panel').hidden = !listwise();if (listwise()) {byId('list-protocol').innerHTML = protocol(tasks[activeTask], text);render();} else {byId('probe').innerHTML = probeContent(activeTask, alternate, text);}renderViewer();}function renderCases() {byId('case-grid').innerHTML = catalog.cases.map((item, index) => `<button type="button" class="case" data-case="${index}" aria-pressed="${item === selected}" ${busy ? 'disabled' : ''}><span class="case-number">0${index + 1}</span>${image(item.media[1], true).replace(/alt="[^"]*"/, 'alt=""')}1 unmodified line}function renderViewer() {const current = listwise() ? selected : [catalog.cases.find(item => item.name === 'test_000033.png'),catalog.task_pairs[alternate ? '000400' : '000325'], catalog.task_pairs['000109']][activeTask];byId('case-id').textContent = current.name.replace('.png','');const [before, after] = current.media;const modes = [['swipe',text('Swipe','拉帘')],['pair',text('Side by side','并排')],['video',text('Playback','时序播放')]];const frame = (path, later) => `<div class="frame">${image(path, later)}<span>${later ? 'T₂' : 'T₁'}</span></div>`;let stage;1 unmodified line<input id="divider" type="range" min="0" max="100" value="${divider}" aria-valuetext="${divider}%"></div><label class="range-label" for="divider">${text('Drag to compare T₁ / T₂','拖动对比 T₁ / T₂')}<output id="divider-value">${divider}%</output></label>`;if (view === 'pair') stage = `<div class="pair">${frame(before, false)}${frame(after, true)}</div>`;if (view === 'video') stage = `<video controls playsinline preload="metadata" poster="${media(before)}" src="${media(current.clip)}" aria-label="${text('T₁ to T₂ playback','T₁ 到 T₂ 时序播放')}"></video><p class="fine">${text('Original frames only · 2 s per observation','仅播放两张原始影像 · 每个时相 2 秒')}</p>`;byId('viewer').innerHTML = `<div class="view-mode">${modes.map(([key, title]) => `<button type="button" data-view="${key}" aria-pressed="${view === key}">${title}</button>`).join('')}</div>${stage}`;byId('case-context').hidden = !listwise();byId('case-context').innerHTML = listwise() ? `<span class="micro">${text('EXAMPLE PAIR','示例影像')}</span><h3>${escape(text(selected.title_en, selected.title_zh))}</h3><p>${escape(text(selected.summary_en, selected.summary_zh))}</p>` : '';}function select(index) {7 unmodified linesdivider = 50;failure = '';renderCases();showTask();}function stopReplay() {118 unmodified linesphase = 0;beta = catalog.beta;renderCases();renderTasks();render();let source;try {27 unmodified linessource?.close();busy = false;renderCases();renderTasks();render();}}1 unmodified linebyId('language').addEventListener('click', () => {lang = lang === 'en' ? 'zh' : 'en';translate();if (catalog) { renderCases(); showTask(); }});byId('task-grid').addEventListener('click', event => {const button = event.target.closest('[data-task]');if (!button || !catalog || busy || Number(button.dataset.task) === activeTask) return;stopReplay();activeTask = Number(button.dataset.task);alternate = false;divider = 50;renderTasks();showTask();byId('task-grid').querySelector(`[data-task="${activeTask}"]`)?.focus({preventScroll:true});});byId('probe').addEventListener('click', event => {const button = event.target.closest('[data-variant]');if (!button || (button.dataset.variant === '1') === alternate) return;alternate = button.dataset.variant === '1';byId('probe').innerHTML = probeContent(activeTask, alternate, text);if (activeTask === 1) renderViewer();byId('probe').querySelector(`[data-variant="${Number(alternate)}"]`).focus({preventScroll:true});byId('task-announcement').textContent = byId('probe').querySelector('.probe-picked').textContent;});byId('case-grid').addEventListener('click', event => {const button = event.target.closest('[data-case]');40 unmodified linesif (!response.ok) throw new Error('Catalog unavailable');catalog = await response.json();select(0);renderTasks();} catch {byId('probe').textContent = text('Examples could not load. Refresh to retry.', '未能加载示例,请刷新重试。');}
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667export const tasks = [ { label: ['Change state','变化状态'], hint: ['Did anything change?','场景变了吗?'], input: ['T₁ + T₂ only','只输入 T₁ 和 T₂'], output: ['Changed / Unchanged','有变化 / 无变化'], role: ['Stage 1 warm-start and auxiliary training','第一阶段预热与辅助训练'], explanation: ['The model judges physical change from the two images alone. In this example, the lighting changes but the scene does not.','模型只看前后影像,判断场景本身是否变化。这组图的光照不同,但场景没有实质变化。'], }, { label: ['Caption factuality','事实核验'], hint: ['Is this caption true?','这句描述属实吗?'], input: ['T₁ + T₂ + one fixed caption','双图 + 一句固定描述'], output: ['Yes / No','支持 / 不支持'], role: ['Stage 2 verification training','第二阶段事实核验训练'], explanation: ['Keep the caption fixed and swap both images. The model checks whether the new pair still supports the same description.','保持描述不变,只替换整组前后影像,观察模型是否仍支持这句描述。'], }, { label: ['Pairwise preference','成对偏好'], hint: ['Which of two captions fits?','两句里哪句更准确?'], input: ['T₁ + T₂ + captions A and B','双图 + A、B 两句描述'], output: ['A / B','选 A 或 B'], role: ['Stage 1 auxiliary training','第一阶段辅助训练'], explanation: ['Keep the image pair fixed. Swap A and B to see whether the model still prefers the same description.','保持双时相影像不变,交换 A 和 B,观察模型是否仍然选择同一句描述。'], }, { label: ['Listwise selection','列表选句'], hint: ['Which candidate is best?','整组候选里哪句最好?'], input: ['T₁ + T₂ + a caption list','双图 + 一组候选描述'], output: ['One caption from the list','从列表选出一句'], role: ['Stage 1 and Stage 2 inference','两阶段正式推理'], },];
export function protocol(task, text) { const field = (heading, value) => `<div><small>${heading}</small><strong>${text(...value)}</strong></div>`; return `<div class="protocol">${field(text('Input','输入'), task.input)}${field(text('Output','输出'), task.output)}${field(text('Role','模型中的用途'), task.role)}</div>`;}
export function probeContent(index, alternate, text) { const task = tasks[index]; const choose = text('Selected','选中'); const option = (key, label, selected, probability) => `<li class="probe-option${selected ? ' probe-picked' : ''}">${key ? `<code>${key}</code>` : ''}<span${key ? ' lang="en"' : ''}>${label}</span>${selected ? `<strong>${choose}${probability ? ` · ${probability}` : ''}</strong>` : ''}</li>`; let controls = ''; let options; if (index === 0) { options = [option('',text('Changed','有变化'),false), option('',text('Unchanged','无变化'),true,'92.4%')]; } else if (index === 1) { controls = `<blockquote lang="en">houses are built along the road and some brushwoods disappear</blockquote>` + switches(text('Choose the image evidence','切换影像证据'), text('Matching images','支持描述的影像'), text('Different images','另一组影像'), alternate); options = [option('',text('Yes','支持'),!alternate,'P(Yes) > 99.9%'), option('',text('No','不支持'),alternate,'P(Yes) < 0.1%')]; } else { controls = switches(text('Choose candidate order','切换选项顺序'), text('Original A/B','原顺序 A/B'), text('Swap A/B','交换 A/B'), alternate); const house = 'houses are built in an open space'; const unchanged = 'no change has occurred'; options = [option('A',alternate ? unchanged : house,!alternate,'96.9%'), option('B',alternate ? house : unchanged,alternate,'91.5%')]; } return `<div class="sectionbar"><h2 id="probe-title">${text(...task.label)}</h2><span class="chip">${text('Task example','任务示例')}</span></div> <h3 class="probe-question">${text(...task.hint)}</h3><p class="explain">${text(...task.explanation)}</p>${protocol(task, text)}${controls} <div class="pool-head">${text('Example decision','示例决策')}</div><ul class="probe-options" role="list">${options.join('')}</ul>`;}
function switches(label, first, second, alternate) { return `<div class="view-mode probe-switches" role="group" aria-label="${label}"> <button type="button" data-variant="0" aria-pressed="${!alternate}">${first}</button> <button type="button" data-variant="1" aria-pressed="${alternate}">${second}</button></div>`;}.gitattributes+8
README.md+2-2
app.py+2-1
public/cases.json+1-1
public/clips/test_000109.mp4Added
public/clips/test_000325.mp4Added
public/clips/test_000400.mp4Added
public/clips/test_000699.mp4Added
public/images/test_000109_A.pngAdded

Large File Pointer Details
- SHA256: 970e754ef1669ae18df81fa4b338824aa402259c7977b5e4c43ffa80aebe1851
- Pointer size: 131 Bytes
- Size of remote file: 140 kB
public/images/test_000109_B.pngAdded

Large File Pointer Details
- SHA256: d279d4ebb1873055771402edeb882d9afd2af169707706bb3aec3e4c9150633f
- Pointer size: 131 Bytes
- Size of remote file: 138 kB
public/images/test_000325_A.pngAdded

Large File Pointer Details
- SHA256: 9da01299bb12b1e1d0b84d6034fb41c2441210a2a4cb4b8e472651ee6eabe8d5
- Pointer size: 131 Bytes
- Size of remote file: 135 kB
public/images/test_000325_B.pngAdded

Large File Pointer Details
- SHA256: 52d9bb1d43ffed94404edc31f43b159596a734a6fa2491b9596da1a98686ef26
- Pointer size: 131 Bytes
- Size of remote file: 128 kB
public/images/test_000400_A.pngAdded

Large File Pointer Details
- SHA256: 274af05e2d80a59bbd3bde5a76c8b0272b40caf8e2c035eeae4f755114fa9351
- Pointer size: 131 Bytes
- Size of remote file: 159 kB
public/images/test_000400_B.pngAdded

Large File Pointer Details
- SHA256: 8b7988e8ec412c0aece374ec5d0e426e4e1a632af26531840fc529ae2495c4f0
- Pointer size: 131 Bytes
- Size of remote file: 138 kB
public/images/test_000699_A.pngAdded

Large File Pointer Details
- SHA256: bc30d9c6b2d470987a8c4b4e8d6286031676852138f0ec5a3a62f7160ea711dc
- Pointer size: 131 Bytes
- Size of remote file: 147 kB
public/images/test_000699_B.pngAdded

Large File Pointer Details
- SHA256: d486b6beeb2d063ee0694459443b50542a11e8b8bd76555370b1dca8f94e7031
- Pointer size: 131 Bytes
- Size of remote file: 106 kB
public/task_pairs.jsonAdded+1
workbench/index.html+14-9
workbench/lab.css+29-6
workbench/lab.js+61-11
workbench/tasks.jsAdded+67