Spaces:
Running on Zero
Running on Zero
Show live caption selection and interactive decision flow
Browse filesFiles changed (12)
- .gitattributes+3
- public/cases.json+1-1
- public/clips/test_000079.mp4Added
- public/images/test_000079_A.pngAdded
- public/images/test_000079_B.pngAdded
- public/images/test_001639_A.pngAdded
- public/images/test_001639_B.pngAdded
- public/task_pairs.json+1-1
- workbench/index.html+19-14
- workbench/lab.css+106-50
- workbench/lab.js+82-53
- workbench/tasks.js+130-58
48 unmodified lines49505148 unmodified linespublic/images/test_000699_B.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000125_A.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000125_B.png filter=lfs diff=lfs merge=lfs -text48 unmodified lines49505152535448 unmodified linespublic/images/test_000699_B.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000125_A.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000125_B.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000079_A.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_000079_B.png filter=lfs diff=lfs merge=lfs -textpublic/images/test_001639_B.png filter=lfs diff=lfs merge=lfs -text
1[{"name": "test_000125.png", "media": ["images/test_000125_A.png", "images/test_000125_B.png"], "clip": "clips/test_000125.mp4", "en": "Beam #15 rises to #1", "zh": "Beam #15 升到第一", "title_en": "Houses along the road", "title_zh": "沿路新建的房屋", "summary_en": "The generator ranks this caption fifteenth. The two-stage reranker selects it from the same pool.", "summary_zh": "生成器将这句描述排在第 15 位,两阶段重排从同一候选池选中了它。", "replay": {"captions": ["a road and many houses are built on both sides of the road", "trees are removed and many houses are built on both sides of the road", "many houses are built along the road appear in the desert", "a road with many houses are built on both sides of the road", "a road and many houses are built along the road", "trees are removed and a row of houses are built on both sides of the road", "many houses are built along the road appear on both sides of the road", "trees are removed and some houses are built on both sides of the road", "many houses are built along the road in the desert", "a road with many houses are built along the road", "trees are removed and many houses are built along the road", "trees are removed and a row of houses are built along the road", "a road and some houses are built on both sides of the road", "a road with some houses are built on both sides of the road", "many houses are built along the road"], "stage1": [[0, 0.08761408179998398], [1, 0.06021621823310852], [2, 0.08230581134557724], [3, 0.07977353036403656], [4, 0.0682339146733284], [5, 0.06409982591867447], [6, 0.06409982591867447], [7, 0.05150565877556801], [8, 0.07977353036403656], [9, 0.06409982591867447], [10, 0.0682339146733284], [11, 0.06212768331170082], [12, 0.04838508740067482], [13, 0.04689643904566765], [14, 0.07263462245464325]], "stage2": [[8, 0.05565875023603439], [11, 0.05394630879163742], [4, 0.08894243091344833], [14, 0.07373587042093277], [6, 0.05742555111646652], [3, 0.07849142700433731], [7, 0.05394630879163742], [9, 0.06112918257713318], [0, 0.09467872977256775], [13, 0.05565875023603439], [12, 0.06713727116584778], [10, 0.059248436242341995], [5, 0.06507167965173721], [1, 0.08098301291465759], [2, 0.05394630879163742]]}}, {"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[{"name": "test_000079.png", "media": ["images/test_000079_A.png", "images/test_000079_B.png"], "clip": "clips/test_000079.mp4", "en": "Houses in the woods", "zh": "树林中新建房屋", "title_en": "From buildings to two houses", "title_zh": "从建筑精确到两栋房屋", "summary_en": "Stage 1 keeps Beam #1; Stage 2 selects Beam #5, which specifies two houses.", "summary_zh": "第一阶段保留 Beam #1,第二阶段选中明确描述两栋房屋的 Beam #5。", "replay": {"captions": ["some buildings appear in the woods", "some houses appear in the woods", "some houses are built in the woods", "some houses are built in the woods along the road", "two houses appear in the woods", "two buildings appear in the woods", "some buildings appear in the right corner of the scene", "two houses are built in the woods", "a villa is built in the woods along the road", "a villa is built in the woods", "two houses are built in the woods along the road", "some houses are built in the right corner of the scene", "some buildings appear in the top right corner of the scene", "some buildings appear in the forest", "some buildings appear in the woods along the road"], "stage1": [[0, 0.09650050848722458], [1, 0.08254126459360123], [2, 0.07284240424633026], [3, 0.07060127705335617], [4, 0.06842910498380661], [5, 0.06632377207279205], [6, 0.06632377207279205], [7, 0.054984331130981445], [8, 0.06428319960832596], [9, 0.053292639553546906], [10, 0.056729722768068314], [11, 0.056729722768068314], [12, 0.06428319960832596], [13, 0.053292639553546906], [14, 0.07284240424633026]], "stage2": [[8, 0.04189002513885498], [12, 0.08330825716257095], [2, 0.06906496733427048], [9, 0.040601205080747604], [3, 0.057256873697042465], [6, 0.05378785356879234], [13, 0.0735192820429802], [11, 0.046007189899683], [14, 0.060949623584747314], [4, 0.0886811763048172], [10, 0.05907440558075905], [5, 0.07585303485393524], [1, 0.08074513077735901], [7, 0.08330825716257095], [0, 0.0859527438879013]]}}, {"name": "test_000125.png", "media": ["images/test_000125_A.png", "images/test_000125_B.png"], "clip": "clips/test_000125.mp4", "en": "Beam #15 rises to #1", "zh": "Beam #15 升到第一", "title_en": "Houses along the road", "title_zh": "沿路新建的房屋", "summary_en": "The generator ranks this caption fifteenth. The two-stage reranker selects it from the same pool.", "summary_zh": "生成器将这句描述排在第 15 位,两阶段重排从同一候选池选中了它。", "replay": {"captions": ["a road and many houses are built on both sides of the road", "trees are removed and many houses are built on both sides of the road", "many houses are built along the road appear in the desert", "a road with many houses are built on both sides of the road", "a road and many houses are built along the road", "trees are removed and a row of houses are built on both sides of the road", "many houses are built along the road appear on both sides of the road", "trees are removed and some houses are built on both sides of the road", "many houses are built along the road in the desert", "a road with many houses are built along the road", "trees are removed and many houses are built along the road", "trees are removed and a row of houses are built along the road", "a road and some houses are built on both sides of the road", "a road with some houses are built on both sides of the road", "many houses are built along the road"], "stage1": [[0, 0.08761408179998398], [1, 0.06021621823310852], [2, 0.08230581134557724], [3, 0.07977353036403656], [4, 0.0682339146733284], [5, 0.06409982591867447], [6, 0.06409982591867447], [7, 0.05150565877556801], [8, 0.07977353036403656], [9, 0.06409982591867447], [10, 0.0682339146733284], [11, 0.06212768331170082], [12, 0.04838508740067482], [13, 0.04689643904566765], [14, 0.07263462245464325]], "stage2": [[8, 0.05565875023603439], [11, 0.05394630879163742], [4, 0.08894243091344833], [14, 0.07373587042093277], [6, 0.05742555111646652], [3, 0.07849142700433731], [7, 0.05394630879163742], [9, 0.06112918257713318], [0, 0.09467872977256775], [13, 0.05565875023603439], [12, 0.06713727116584778], [10, 0.059248436242341995], [5, 0.06507167965173721], [1, 0.08098301291465759], [2, 0.05394630879163742]]}}, {"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"}}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"}, "001639": {"name": "test_001639.png", "media": ["images/test_001639_A.png", "images/test_001639_B.png"], "candidates": [{"beam": 1, "caption": "some roads appear in the bottom of the scene", "generator": 0.5360961137, "stage2": 0.09106951951980591}, {"beam": 2, "caption": "some roads appear in the bareland", "generator": 0.190899633, "stage2": 0.06457795947790146}, {"beam": 15, "caption": "some trees are removed and a road appears in the bottom", "generator": 0.0031589431, "stage2": 0.1455286741256714}]}}
5 unmodified lines67891011121341 unmodified lines55565758596061626364656667686970717273747576777879805 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=four-decisions"><script type="module" src="./workbench/lab.js?v=four-decisions"></script></head><body><header class="topbar">41 unmodified lines<a class="trace-link" href="#decision-trace" data-t="followTrace">Follow the decision trace ↓</a></section></div><section class="decision-lab" aria-labelledby="tasks-title"><div class="sectionbar"><h2 id="tasks-title" data-t="decisionLabs">One model, four decisions</h2><span class="micro">ELEPHANT-1 / LEVIR-CC</span></div><p class="explain" data-t="decisionIntro">Explore how Elephant-1 detects change, verifies a caption, compares two captions, and selects from the Beam-15 pool. These examples don’t use GPU quota.</p><div class="task-tabs" id="task-grid" role="tablist" aria-labelledby="tasks-title"><button type="button" id="task-tab-state" role="tab" data-task="0" aria-selected="true"><small>01</small><strong data-t="taskState">Change state</strong><span data-t="taskStateHint">Images only</span></button><button type="button" id="task-tab-verify" role="tab" data-task="1" aria-selected="false" tabindex="-1"><small>02</small><strong data-t="taskVerify">Caption verification</strong><span data-t="taskVerifyHint">Yes / No</span></button><button type="button" id="task-tab-pair" role="tab" data-task="2" aria-selected="false" tabindex="-1"><small>03</small><strong data-t="taskPair">Pairwise preference</strong><span>A / B</span></button><button type="button" id="task-tab-list" role="tab" data-task="3" aria-selected="false" tabindex="-1"><small>04</small><strong data-t="taskList">Listwise selection</strong><span>Beam-15</span></button></div><div role="tabpanel" aria-labelledby="task-tab-state" id="task-state" tabindex="0"><article class="panel story task-card verify-grid"><div id="state-images"></div><div id="state-probe"></div></article></div><div role="tabpanel" aria-labelledby="task-tab-verify" id="task-verify" hidden><article class="panel story task-card verify-grid"><div id="verify-images"></div><div id="probe"></div></article></div><div role="tabpanel" aria-labelledby="task-tab-pair" id="task-pair" hidden><article class="panel story task-card verify-grid"><div id="task-images"></div><div id="aux-probe"></div></article></div><div role="tabpanel" aria-labelledby="task-tab-list" id="candidate-ranking" hidden><article class="panel story task-card" id="rank-explorer"></article></div></section><section class="panel story" id="decision-trace" aria-labelledby="decision-title"><div class="sectionbar"><h3 id="decision-title" data-t="decisionTitle">State-Routed Decision Trace</h3><span id="source" class="chip"></span></div><p class="explain" data-t="traceIntro">Stage 1 locks the state. If nothing changed, the model returns its anchor immediately; otherwise Stage 2 compares the remaining change descriptions.</p><nav class="pipeline" id="pipeline" aria-labelledby="decision-title"></nav><div id="route-branch"></div><div id="inspector" class="inspector"></div></section><p class="sr-only" id="task-announcement" role="status"></p><p id="load-error" role="status"></p>5 unmodified lines67891011121341 unmodified lines555657585960616263646566676869707172737475767778798081828384855 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=decision-flow"><script type="module" src="./workbench/lab.js?v=decision-flow"></script></head><body><header class="topbar">41 unmodified lines<a class="trace-link" href="#decision-trace" data-t="followTrace">Follow the decision trace ↓</a></section></div><section class="panel story flow-section" id="decision-trace" aria-labelledby="decision-title"><div class="sectionbar"><h2 id="decision-title" data-t="decisionTitle">State-Routed Decision Trace</h2><span id="source" class="chip"></span></div><p class="explain" data-t="traceIntro">Stage 1 locks the change state. That decision determines whether to exit, return a surviving candidate directly, or run Stage 2.</p><div class="trace-layout"><nav class="pipeline" id="pipeline" aria-labelledby="decision-title"></nav><div id="inspector" class="inspector"></div></div></section><section class="panel story flow-section" id="candidate-ranking" aria-labelledby="ranking-title"><div class="sectionbar"><h2 id="ranking-title" data-t="rankingTitle">Candidate Ranking Explorer</h2><span class="micro">LEVIR-CC / BEAM-15</span></div><div id="rank-explorer"></div></section><section class="decision-lab" aria-labelledby="tasks-title"><div class="sectionbar"><h2 id="tasks-title" data-t="decisionLabs">One model, four decisions</h2><span class="micro">ELEPHANT-1 / LEVIR-CC</span></div><p class="explain" data-t="decisionIntro">Explore how Elephant-1 detects change, verifies a caption, compares two captions, and selects from the Beam-15 pool. These examples don’t use GPU quota.</p><div class="task-tabs" id="task-grid" role="tablist" aria-labelledby="tasks-title"><button type="button" id="task-tab-state" role="tab" data-task="0" aria-controls="task-state" aria-selected="true"><small>01</small><strong data-t="taskState">Change state</strong><span data-t="taskStateHint">Images only</span></button><button type="button" id="task-tab-verify" role="tab" data-task="1" aria-controls="task-verify" aria-selected="false" tabindex="-1"><small>02</small><strong data-t="taskVerify">Caption verification</strong><span data-t="taskVerifyHint">Yes / No</span></button><button type="button" id="task-tab-pair" role="tab" data-task="2" aria-controls="task-pair" aria-selected="false" tabindex="-1"><small>03</small><strong data-t="taskPair">Pairwise preference</strong><span>A / B</span></button><button type="button" id="task-tab-list" role="tab" data-task="3" aria-controls="task-list" aria-selected="false" tabindex="-1"><small>04</small><strong data-t="taskList">Listwise selection</strong><span>Beam-15</span></button></div><div role="tabpanel" aria-labelledby="task-tab-state" id="task-state" tabindex="0"><article class="panel story task-card verify-grid"><div id="state-images"></div><div id="state-probe"></div></article></div><div role="tabpanel" aria-labelledby="task-tab-verify" id="task-verify" hidden><article class="panel story task-card verify-grid"><div id="verify-images"></div><div id="probe"></div></article></div><div role="tabpanel" aria-labelledby="task-tab-pair" id="task-pair" hidden><article class="panel story task-card verify-grid"><div id="task-images"></div><div id="aux-probe"></div></article></div><div role="tabpanel" aria-labelledby="task-tab-list" id="task-list" hidden><article class="panel story task-card verify-grid"><div id="list-images"></div><div id="list-probe"></div></article></div></section><p class="sr-only" id="task-announcement" role="status"></p><p id="load-error" role="status"></p>
32 unmodified lines333435363738394041424344454647484950515253543 unmodified lines58596061626364656667686970717216 unmodified lines899091929394959658 unmodified lines15515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720841 unmodified lines2502512522532542552561 unmodified line25825926026126226326426526626726826932 unmodified linesbutton { border-color: var(--control); }button:not(:disabled):hover, button[aria-pressed='true'] { border-color: var(--green); }.topbar, main, footer { width: min(1370px, calc(100% - clamp(28px, 7vw, 110px))); margin-inline: auto; }.topbar { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }.wordmark, .toplinks { display: flex; align-items: center; gap: 12px; }.wordmark { font-weight: 680; letter-spacing: -.025em; line-height: 1.2; }.wordmark svg { color: var(--green); flex: none; }.wordmark small, .micro, .eyebrow, code, .pool-head, .inspect-head time, .route-root span, .comparison small, .signal, footer { font: 500 .72rem/1.35 var(--mono); letter-spacing: .08em; }.wordmark small { display: block; margin-top: 4px; color: var(--dim); }.toplinks a { text-decoration: none; font-size: .83rem; }.toplinks button { padding: .45rem .7rem; min-height: 38px; }.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .36fr); align-items: center; gap: clamp(24px, 6vw, 84px); margin-block: 22px 30px; padding: clamp(22px, 4vw, 58px); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 90% 15%, #e2efe8, var(--panel) 78%); }.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0f766e13 1px, transparent 1px), linear-gradient(90deg, #0f766e13 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000); }.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 { display: grid; justify-items: start; gap: 8px; }.inference-link { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 44px; border-radius: 7px; color: var(--panel); background: var(--green); font-size: .92rem; font-weight: 700; text-decoration: none; }.inference-link:hover { background: #0c615a; }3 unmodified lines.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; }.benchmark { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(14px, 3vw, 38px); }.benchmark h3 { grid-column: 1 / -1; margin-bottom: 10px; font-size: 1rem; }.metric { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; padding-block: 7px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }.metric small, .metric span { color: var(--dim); }.metric strong { color: var(--ink); }.metric b { color: var(--green); font: 600 .75rem var(--mono); }.inference-heading, .decision-lab { margin-top: clamp(30px, 4vw, 52px); }.inference-heading h2, .decision-lab h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }.story { margin-bottom: 14px; }.story h3, .decision .sectionbar h3 { font-size: clamp(1.1rem, 2vw, 1.38rem); }.decision-lab { margin-bottom: 26px; }.task-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: -4px -4px 8px; }16 unmodified lines.explorer-pool .slot { grid-template-columns: 20px minmax(0, 1fr) auto; }.explorer-score { text-align: end; }.explorer-verdict { margin: 10px 0 8px; color: var(--green); font-weight: 700; }.run-caption { display: grid; gap: 5px; border: 1px solid var(--green); border-radius: 8px; background: var(--green-wash); padding: 12px; margin-bottom: 12px; }.run-caption small, .mapping { color: var(--green); font: .72rem var(--mono); }.mapping { margin-block: 10px; }.trace-link { display: inline-flex; align-items: center; min-height: 32px; font-size: .87rem; }#load-error:empty { display: none; }58 unmodified lines.monitor-status { min-height: 36px; margin-top: 8px; padding: 7px 9px; border-radius: 6px; background: var(--panel); }.run-status { font-size: .8rem; line-height: 1.45; color: var(--dim); }#live-progress { display: block; width: 100%; height: 4px; margin-top: 6px; accent-color: var(--green); }.pipeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }.pipeline button { min-width: 0; min-height: 65px; padding: 7px; text-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 5px; }.pipeline small { font: .64rem/1.2 var(--mono); color: var(--dim); }.pipeline strong { font-size: .78rem; line-height: 1.2; }.pipeline [data-state='done'] { border-color: var(--green); background: var(--green-wash); }.pipeline [aria-current='step'] { box-shadow: inset 0 -3px var(--green); }.pipeline [data-state='skipped'], .pipeline [data-state='direct'] { border-style: dashed; border-color: var(--line); color: var(--dim); background: #eff1ef; }.pipeline [data-state='skipped'][aria-current='step'], .pipeline [data-state='direct'][aria-current='step'] { box-shadow: inset 0 -3px var(--control); }.inspector { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }.inspect-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.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; }.task-card .probe-question { font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1.14; letter-spacing: -.035em; margin-block: 0 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; }.story 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 small { color: var(--dim); font: .76rem/1.4 var(--mono); }.probe-option strong { color: var(--green); font: 600 .76rem/1.4 var(--mono); font-variant-numeric: tabular-nums; }.probe-option meter { flex: 1 0 100%; width: 100%; height: .55rem; }.probe-option meter::-webkit-meter-optimum-value { background: #60877b; }.probe-option meter::-moz-meter-bar { background: #60877b; }.probe-picked meter::-webkit-meter-optimum-value { background: var(--green); }.probe-picked meter::-moz-meter-bar { background: var(--green); }.probe-picked { border-color: var(--green); background: var(--green-wash); }.probe-conflict { border-color: var(--warm); background: var(--warm-wash); }.probe-conflict strong { color: var(--warm); }.pair-picker { margin-block: 12px; }.case-options { margin-top: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 129px), 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); }.route-map svg { display: block; width: 100%; height: 30px; }.route-map path { vector-effect: non-scaling-stroke; fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 4; }.route-map[data-changed='false'] path:first-child { stroke: var(--green); stroke-dasharray: none; }.route-map[data-changed='true'] path:last-child { stroke: var(--warm); stroke-dasharray: none; }.branches { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }.branch { display: flex; flex-direction: column; gap: 5px; border: 1px dashed var(--line); border-radius: 7px; padding: 8px; color: var(--dim); text-align: center; font-size: .83rem; }.branch small { font: .7rem var(--mono); }[data-changed='false'] .unchanged, [data-changed='true'] .changed { border-style: solid; border-color: currentColor; }[data-changed='false'] .unchanged { color: var(--green); background: var(--green-wash); }[data-changed='true'] .changed { color: var(--warm); background: var(--warm-wash); }.pool-head { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); padding: 9px 5px; letter-spacing: .02em; }.pool, .beam-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-height: 295px; overflow-y: auto; }.slot { display: grid; grid-template-columns: 31px minmax(0,1fr) 62px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--deep); padding: 7px 9px; font-size: .83rem; overflow-wrap: anywhere; }41 unmodified lines.empty h4 { color: var(--ink); margin-block: 4px 8px; }footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--dim); padding-block: 16px 22px; }@media (prefers-reduced-motion: no-preference) {.deck > div, .route-root, .branches, .comparison > div:last-child, .explorer-pool .winner, .pipeline [data-state='done'][aria-current='step'] { animation: arrive .24s ease-out both; }.live-nodes [data-state='running'] .node-port { animation: node-signal 1.65s ease-in-out infinite; }@keyframes arrive { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }@keyframes node-signal { 50% { box-shadow: 0 0 0 3px #0f766e32; } }1 unmodified line@media (prefers-reduced-motion: reduce) { #live-progress { display: none; } }@media (max-width: 960px) {.case-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.pipeline { grid-template-columns: repeat(3, minmax(0,1fr)); }.pipeline button { min-height: 53px; }}@media (max-width: 700px) {.hero, .lab, .verify-grid, .benchmark { grid-template-columns: minmax(0,1fr); }.hero { margin-top: 12px; }.swipe, video { max-width: 380px; margin-inline: auto; }}@media (max-width: 390px) {32 unmodified lines333435363738394041424344454647484950515253543 unmodified lines58596061626364656667686970717273747516 unmodified lines929394959697989910010110210310410510610710810911011111211311458 unmodified lines17317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226341 unmodified lines3053063073083093103113121 unmodified line31431531631731831932032132232332432532 unmodified linesbutton { border-color: var(--control); }button:not(:disabled):hover, button[aria-pressed='true'] { border-color: var(--green); }.topbar, main, footer { width: min(1370px, calc(100% - clamp(28px, 7vw, 110px))); margin-inline: auto; }.topbar { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }.wordmark, .toplinks { display: flex; align-items: center; gap: 12px; }.wordmark { font-weight: 680; letter-spacing: -.025em; line-height: 1.2; }.wordmark svg { color: var(--green); flex: none; }.wordmark small, .micro, .eyebrow, code, .pool-head, .inspect-head time, .comparison small, .signal, footer { font: 500 .72rem/1.35 var(--mono); letter-spacing: .08em; }.wordmark small { display: block; margin-top: 4px; color: var(--dim); }.toplinks a { text-decoration: none; font-size: .83rem; }.toplinks button { padding: .45rem .7rem; min-height: 38px; }.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .31fr); align-items: center; gap: clamp(14px, 4vw, 58px); margin-block: 16px 18px; padding: clamp(16px, 2.8vw, 40px); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 90% 15%, #e2efe8, var(--panel) 78%); }.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0f766e13 1px, transparent 1px), linear-gradient(90deg, #0f766e13 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000); }.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: 19ch; margin: .21em 0 .17em; font-size: clamp(2.05rem, 4.7vw, 4.4rem); line-height: 1.04; letter-spacing: -.058em; text-wrap: balance; }[lang='zh-CN'] h1 { max-width: 15em; font-size: clamp(1.95rem, 3.9vw, 3.75rem); letter-spacing: -.032em; }.lede { max-width: 70ch; line-height: 1.48; color: var(--dim); text-wrap: pretty; }.hero-index { display: grid; justify-items: start; gap: 8px; }.inference-link { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 44px; border-radius: 7px; color: var(--panel); background: var(--green); font-size: .92rem; font-weight: 700; text-decoration: none; }.inference-link:hover { background: #0c615a; }3 unmodified lines.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; }.benchmarks .sectionbar { margin-bottom: 6px; }.panel.benchmark { display: grid; grid-template-columns: auto repeat(2, minmax(0, 1fr)); gap: 0 clamp(14px, 3vw, 38px); align-items: baseline; padding-block: 9px; }.benchmark h3 { font-size: .93rem; color: var(--green); }.metric { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; padding-block: 4px; font-variant-numeric: tabular-nums; }.metric small, .metric span { color: var(--dim); }.metric strong { color: var(--ink); }.metric b { color: var(--green); font: 600 .75rem var(--mono); }.inference-heading { margin-top: clamp(21px, 2.6vw, 34px); }.decision-lab { margin-top: clamp(30px, 4vw, 52px); }.inference-heading h2, .decision-lab h2, .flow-section h2 { font-size: clamp(1.38rem, 2.4vw, 2rem); }.story { margin-bottom: 14px; }.flow-section { margin-bottom: 22px; scroll-margin-block-start: 18px; }.story h3, .decision .sectionbar h3 { font-size: clamp(1.1rem, 2vw, 1.38rem); }.decision-lab { margin-bottom: 26px; }.task-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: -4px -4px 8px; }16 unmodified lines.explorer-pool .slot { grid-template-columns: 20px minmax(0, 1fr) auto; }.explorer-score { text-align: end; }.explorer-verdict { margin: 10px 0 8px; color: var(--green); font-weight: 700; }.mapping { color: var(--green); font: .72rem var(--mono); }.caption-selection { padding-block: 14px 3px; }.caption-selection h4 { font-size: 1.07rem; }.caption-selection .sectionbar { margin-bottom: 7px; }.caption-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }.caption-grid > div { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--deep); }.caption-grid .final-caption { border-color: #79a99d; background: var(--green-wash); }.caption-grid p { font-size: .94rem; line-height: 1.42; overflow-wrap: anywhere; }.caption-grid small, .caption-path dt { font: .67rem/1.35 var(--mono); color: var(--dim); }.caption-grid span, .caption-links { font-size: .73rem; color: var(--dim); }.caption-grid mark { background: #cce9da; color: #115346; font-weight: 750; }.caption-path { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 8px 0; border-block: 1px solid var(--line); }.caption-path > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; padding: 8px 5px; }.caption-path > div:not(:first-child) { border-inline-start: 1px solid var(--line); }.caption-path dd { margin: 0; font: 750 1rem/1 var(--mono); color: var(--green); }.caption-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }.caption-links a { min-height: 32px; display: inline-grid; align-items: center; }.mapping { margin-block: 10px; }.trace-link { display: inline-flex; align-items: center; min-height: 32px; font-size: .87rem; }#load-error:empty { display: none; }58 unmodified lines.monitor-status { min-height: 36px; margin-top: 8px; padding: 7px 9px; border-radius: 6px; background: var(--panel); }.run-status { font-size: .8rem; line-height: 1.45; color: var(--dim); }#live-progress { display: block; width: 100%; height: 4px; margin-top: 6px; accent-color: var(--green); }.trace-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 24px); align-items: start; }.pipeline { display: grid; border: 1px solid var(--line); border-radius: 10px; padding: clamp(8px, 1.4vw, 17px); background-color: var(--deep); background-image: radial-gradient(#c5d8cc 0.65px, transparent 0.65px); background-size: 11px 11px; }.pipeline button { min-width: 0; width: 100%; min-height: 49px; padding: 8px; text-align: start; display: grid; align-content: center; gap: 4px; }.pipeline small { font: .64rem/1.2 var(--mono); color: var(--dim); }.pipeline strong { font-size: .84rem; line-height: 1.2; }.trace-entry { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.trace-entry button { position: relative; }.trace-entry button:not(:last-child)::after { content: ''; position: absolute; top: 50%; inset-inline-start: calc(100% + 1px); width: 10px; border-top: 2px solid var(--control); }.trace-entry button[data-state='done']::after { border-color: var(--green); }.trace-gate, .trace-out { position: relative; justify-self: center; width: min(60%, 232px); }.trace-split { display: block; width: 100%; height: 22px; }.trace-split.trace-feed { height: 16px; }.trace-split path { fill: none; stroke: #9caba4; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; stroke-width: 1.5; }.trace-split path[data-active='true'] { stroke: var(--green); stroke-dasharray: none; stroke-width: 2; }.trace-split path[data-active='true']:nth-child(2) { stroke: var(--warm); }.trace-branches { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.trace-branches + .trace-split { transform: scaleY(-1); }.trace-lane { min-width: 0; display: grid; grid-template-rows: auto auto auto; gap: 6px; padding: 6px; border: 1px dashed var(--control); border-radius: 8px; background: #f1f4f2; }.trace-early { align-content: center; }[data-route='early'] .trace-early { background: var(--green-wash); border: 1px solid var(--green); }[data-route='change'] .trace-changed { background: var(--warm-wash); border: 1px solid var(--warm); }[data-route='change'] .trace-changed button[data-state='done'] { background: #fff7f1; border-color: var(--warm); }.trace-pool { display: grid; gap: 4px; }.trace-terminal { display: flex; gap: 6px; align-items: baseline; padding: 6px; border: 1px dashed #b1c2b9; border-radius: 5px; background: var(--panel); color: var(--dim); font-size: .72rem; }.trace-early .trace-terminal { display: grid; }.trace-terminal[data-active='true'] { border: 1px solid currentColor; color: var(--green); }.trace-changed .trace-terminal[data-active='true'] { color: var(--warm); }.pipeline [data-state='done'] { border-color: var(--green); background: var(--green-wash); }.pipeline [aria-current='step'] { box-shadow: inset 0 -3px var(--green); }.pipeline [data-state='skipped'], .pipeline [data-state='direct'] { border-style: dashed; border-color: var(--line); color: var(--dim); background: #eff1ef; }.pipeline [data-state='skipped'][aria-current='step'], .pipeline [data-state='direct'][aria-current='step'] { box-shadow: inset 0 -3px var(--control); }.inspector { min-width: 0; padding: clamp(10px,1.4vw,18px); border: 1px solid var(--line); border-radius: 10px; background: var(--deep); }.inspect-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.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; }.gate-readout { padding: 10px; border: 1px solid #8bb9a6; border-radius: 7px; background: var(--green-wash); }.gate-readout[data-changed='true'] { border-color: #cf9b85; background: var(--warm-wash); }.gate-readout > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 9px; margin-bottom: 6px; color: var(--dim); }.explain { margin-bottom: 13px; }.task-card .probe-question { font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1.14; letter-spacing: -.035em; margin-block: 0 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 { margin-block-end: 0; }.protocol dt { color: var(--green); font: .65rem/1.3 var(--mono); }.protocol dd { margin: 0; color: var(--dim); font-size: .75rem; line-height: 1.35; overflow-wrap: anywhere; }.story blockquote { margin: 12px 0; border-inline-start: 3px solid var(--green); background: var(--deep); padding: 9px 12px; line-height: 1.5; }.probe-kicker, .list-score-type { margin-block: 0 7px; }.state-scale, .verify-meter, .probe-stat, .order-comparison { padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--deep); }.state-values, .state-tags, .verify-meter > div:first-child, .probe-stat { display: flex; justify-content: space-between; gap: 8px 12px; align-items: baseline; }.state-values > div, .probe-stat > div { display: grid; gap: 4px; }.state-values > div:last-child { text-align: end; color: var(--green); }.state-values > div:first-child { color: var(--warm); }.state-values strong, .verify-meter > strong { font: 700 clamp(1.6rem,3.5vw,2.7rem)/1.1 var(--mono); letter-spacing: -.06em; }.state-values span, .state-tags, .probe-stat > span { font-size: .74rem; }.state-tags { color: var(--dim); }.state-tags span:last-child { text-align: end; }.state-axis, .prob-track { display: flex; block-size: 9px; gap: 2px; margin-block: 9px; overflow: hidden; border-radius: 99px; background: #e1ebe5; }.state-axis i:first-child { width: 7.6%; background: var(--warm); }.state-axis i:last-child { flex: 1; background: var(--green); }.probe-stat { flex-wrap: wrap; margin-top: 9px; }.probe-stat small, .fixed-caption small, .verify-meter small { display: block; color: var(--dim); font: .68rem/1.3 var(--mono); }.probe-stat strong { color: var(--green); font: 700 1.12rem/1.2 var(--mono); }.fixed-caption small { margin-bottom: 4px; }.evidence-stack { display: grid; }.evidence-layer { grid-area: 1 / 1; opacity: 0; }.evidence-layer[data-active='true'] { opacity: 1; }.verify-meter { color: var(--green); }.verify-meter[data-conflict='true'] { color: var(--warm); background: var(--warm-wash); }.verify-meter b { padding: 3px 7px; border: 1px solid currentColor; border-radius: 99px; font-size: .76rem; }.verify-meter .prob-track { margin-block-end: 0; }.prob-track i { width: var(--likelihood); background: currentColor; }.probe-card-list { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }.probe-beam { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; align-items: baseline; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--deep); }.probe-beam p { grid-column: 1 / -1; overflow-wrap: anywhere; line-height: 1.42; }.probe-beam strong { font: 700 .93rem/1.2 var(--mono); }.probe-beam.probe-picked { border-color: var(--green); background: var(--green-wash); }.probe-beam.probe-picked code, .probe-beam.probe-picked strong { color: var(--green); }.probe-action { min-height: 40px; margin-block: 8px; padding: 6px 10px; color: var(--green); font-size: .84rem; font-weight: 700; }.probe-action span { margin-inline-start: 4px; }.order-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.order-comparison > div { display: grid; gap: 4px; color: var(--dim); font-size: .73rem; }.order-comparison strong { font: 700 .92rem/1.2 var(--mono); }.order-comparison[data-reversed='false'] > div:first-child, .order-comparison[data-reversed='true'] > div:last-child { color: var(--green); }.pair-picker { margin-block: 12px; }.case-options { margin-top: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 129px), 1fr)); }.pool-head { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); padding: 9px 5px; letter-spacing: .02em; }.pool, .beam-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-height: 295px; overflow-y: auto; }.slot { display: grid; grid-template-columns: 31px minmax(0,1fr) 62px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--deep); padding: 7px 9px; font-size: .83rem; overflow-wrap: anywhere; }41 unmodified lines.empty h4 { color: var(--ink); margin-block: 4px 8px; }footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--dim); padding-block: 16px 22px; }@media (prefers-reduced-motion: no-preference) {.deck > div, .comparison > div:last-child { animation: arrive .24s ease-out both; }.evidence-layer, .prob-track i { transition: opacity .28s ease, width .32s ease; }.live-nodes [data-state='running'] .node-port { animation: node-signal 1.65s ease-in-out infinite; }@keyframes arrive { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }@keyframes node-signal { 50% { box-shadow: 0 0 0 3px #0f766e32; } }1 unmodified line@media (prefers-reduced-motion: reduce) { #live-progress { display: none; } }@media (max-width: 960px) {.case-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }}@media (max-width: 700px) {.hero, .lab, .verify-grid, .trace-layout, .panel.benchmark { grid-template-columns: minmax(0,1fr); }.hero { margin-top: 12px; }.benchmark h3 { margin-bottom: 3px; }.metric + .metric { border-top: 1px solid var(--line); }.swipe, video { max-width: 380px; margin-inline: auto; }}@media (max-width: 390px) {
123416 unmodified lines212223242526273 unmodified lines313233343536378 unmodified lines464748495051525334 unmodified lines888990919293949596977 unmodified lines10510610710810911011111211311411511611711811912012151 unmodified lines17317417517617717817944 unmodified lines22422522622722822923023123223323423523623723823924024124224324424524624724824925025120 unmodified lines27227327427527627727827928028114 unmodified lines2962972982993003013025 unmodified lines308309310311312313314168 unmodified lines483484485486487488489490491492493494495496497498499500501502503504505import { probeContent, protocol, tasks } from './tasks.js?v=four-decisions';const byId = id => document.getElementById(id);const escape = value => String(value ?? '').replace(/[&<>"']/g, char => ({'&':'&', '<':'<', '>':'>', '"':'"', "'":'''}[char]));16 unmodified linesconst monitorNodes = [['ZeroGPU','ZeroGPU'], ['Image encoding','影像编码'], ['Beam-15','Beam-15'], ['Stage 1','第一阶段'], ['Stage 2','第二阶段'], ['Caption','最终描述']];const labels = {project: ['Project ↗','项目主页 ↗'], headline: ['The best caption isn’t always ranked first.','排名第一的,不一定是最好的描述。'],lede: ['Critique-then-Rerank looks at both images to decide whether the scene changed, then selects the caption that best describes the change.','Critique-then-Rerank 先看双时相影像判断场景是否变化,再从现有候选中选出最符合影像的描述。'],observations: ['Bi-temporal observations','双时相观测'], trace: ['Live GPU Inference','GPU 实时推理'],openInference: ['Live GPU Inference','GPU 实时推理'], inferencePath: ['Image pair → Beam-15 → Final caption','双时相影像 → Beam-15 → 最终描述'],results: ['Benchmark results','基准成果'], baseline: ['SCST Beam-15 Top-1 → Critique-then-Rerank','SCST Beam-15 首选 → 两阶段重排'],3 unmodified linesdecisionIntro: ['Explore how Elephant-1 detects change, verifies a caption, compares two captions, and selects from the Beam-15 pool. These examples don’t use GPU quota.','看 Elephant-1 如何判断变化、核验描述、比较两句描述,以及从 Beam-15 候选池中选出最终描述。浏览示例不消耗 GPU 配额。'],taskState: tasks[0].label, taskVerify: ['Caption verification','描述核验'], taskPair: tasks[2].label, taskList: tasks[3].label,taskStateHint: ['Images only','仅输入影像'], taskVerifyHint: ['Yes / No','支持 / 不支持'],decisionTitle: ['State-Routed Decision Trace','状态分流与决策过程'], traceIntro: ['Stage 1 locks the state. If nothing changed, the model returns its anchor immediately; otherwise Stage 2 compares the remaining change descriptions.','第一阶段锁定变化状态。无变化时直接返回锚点;有变化时才进入第二阶段比较剩余的变化描述。'],encode: ['Encode the pair','编码双图'], generate: ['Generate Beam-15','生成 Beam-15'], score: ['Score all candidates','全候选评分'], lock: ['Route by state','按状态分流'], filter: ['Filter the pool','过滤候选池'],rerank: ['Compare + calibrate','精排与长度校准'], output: ['Map to original Beam ID','回映原始 Beam ID'],play: ['▷ Step through','▷ 逐步演示'], pause: ['Ⅱ Pause','Ⅱ 暂停演示'], live: ['Run on GPU','开始 GPU 推理'],8 unmodified lineslet catalog, selected, trace, phase = 3, mode = 'archive', liveEvent, busy = false, follow = true, failure = null, timer;let liveActivity, runTimes, clockTimer;let view = 'swipe', divider = 50, beta = 0.12;let activeTask = 0, orderSwap = false, verifySwap = false, rankedView = false, explorerBeta;const taskPanels = ['task-state', 'task-verify', 'task-pair', 'candidate-ranking'];const taskTabs = [...byId('task-grid').querySelectorAll('[role="tab"]')];function translate() {34 unmodified linesconst {captions, final} = example.replay;byId('rank-explorer').innerHTML = `<div class="verify-grid"><div>${evidence(example)}<div class="rank-jump"><strong>${final + 1} → 1</strong><span>${text('Beam rank → final rank','原始 Beam 排名 → 最终排名')} · β = ${catalog.beta.toFixed(2)}</span></div><blockquote lang="en">${escape(captions[final])}</blockquote></div><div><h3 class="probe-question">${text(...tasks[3].hint)}</h3><p class="explain">${text('Compare the generator order with the visual reranking of the same pool. Then vary β to see how caption length changes the decision.', '对比同一组候选的生成器排序和视觉重排,再调节 β,观察句长如何影响结果。')}</p>${protocol(tasks[3], text)}<div class="view-mode" role="group" aria-label="${text('Ranking order','排序方式')}"><button type="button" data-rank="0" aria-pressed="${!rankedView}">${text('Generator order','生成器排序')}</button><button type="button" data-rank="1" aria-pressed="${rankedView}">${text('Reranked order','视觉重排后')}</button></div><div class="formula explorer-formula"><code>log(max(P(slot), 10⁻³⁰)) − β × words</code><label class="range-label" for="explorer-beta">${text('Length penalty β','长度惩罚 β')}<output id="explorer-beta-value" for="explorer-beta">${explorerBeta.toFixed(2)}</output></label><input id="explorer-beta" type="range" min="0" max="0.20" step="0.02" value="${explorerBeta}"></div><p class="fine explorer-verdict" id="explorer-winner" role="status"></p><ol class="pool explorer-pool" id="explorer-pool"></ol></div></div>`;updateExplorer(example);}7 unmodified linesbyId('explorer-beta').setAttribute('aria-valuetext', explorerBeta.toFixed(2));byId('explorer-winner').textContent = text(`At β = ${explorerBeta.toFixed(2)}: Beam ${rankLabel(winner)} wins.`, `β = ${explorerBeta.toFixed(2)} 时:选中 Beam ${rankLabel(winner)}。`);for (const button of byId('rank-explorer').querySelectorAll('[data-rank]')) button.setAttribute('aria-pressed', (button.dataset.rank === '1') === rankedView);byId('explorer-pool').innerHTML = order.map((index, rank) => `<li class="slot ${index === winner ? 'winner' : ''}"><code>${rank + 1}</code><span lang="en">${escape(captions[index])}</span><div class="explorer-score"><code>Beam ${rankLabel(index)}</code>${rankedView ? `<small>${scores.get(index).toFixed(4)}</small>` : ''}</div></li>`).join('');byId('explorer-pool').scrollTop = 0;}function renderTasks() {byId('state-images').innerHTML = evidence(catalog.cases.find(item => item.name === 'test_000033.png'));byId('state-probe').innerHTML = probeContent(0, false, text);byId('verify-images').innerHTML = evidence(catalog.task_pairs[verifySwap ? '000400' : '000325']);byId('probe').innerHTML = probeContent(1, verifySwap, text);byId('task-images').innerHTML = evidence(catalog.task_pairs['000109']);byId('aux-probe').innerHTML = probeContent(2, orderSwap, text);renderExplorer();}51 unmodified linesbeta = catalog.beta;failure = null;timer = setInterval(() => {phase = phase === 3 && trace.changed === false ? 6 : phase + 1;if (phase === 6) stopReplay();render();}, 1650);44 unmodified linesfunction render() {const reached = level();const completed = timer ? phase : reached;const short = ['RSCaMa', 'Beam-15', 'Stage 1', text('State Gate','状态门控'), text('Change Branch','变化分支'), 'Stage 2 · β', 'Caption'];const focused = document.activeElement?.dataset.step;const early = trace?.changed === false && completed >= 3;const direct = trace?.changed === true && completed >= 4 && trace.eligible?.length <= 1;const activeStep = mode === 'live' && busy ? activities[liveActivity]?.[1] : undefined;renderMonitor(completed, early, direct);byId('pipeline').innerHTML = steps.map((step, index) => {const skipped = (index === 4 || index === 5) && early;const state = skipped ? 'skipped' : (direct && index === 5) ? 'direct' : index === activeStep ? 'running' : index <= completed ? 'done' : 'pending';const title = skipped ? text('Skipped — Early Exit','已跳过 — 提前退出') : state === 'direct' ? text('No Stage 2 call','未调用 Stage 2') : label(step);return `<button type="button" data-step="${index}" data-state="${state}" ${index > completed && !skipped ? 'disabled' : ''} ${phase === index && reached >= 0 ? 'aria-current="step"' : ''}><small>0${index + 1} / ${short[index]}</small><strong>${title}</strong></button>`;}).join('');const branch = completed >= 3 && typeof trace?.changed === 'boolean' ? routing() : '';if (byId('route-branch').dataset.route !== branch) {byId('route-branch').innerHTML = branch;byId('route-branch').dataset.route = branch;}if (focused !== undefined) byId('pipeline').querySelector(`[data-step="${focused}"]`)?.focus({preventScroll: true});byId('source').textContent = mode === 'archive' ? text('Case walkthrough','案例演示') : text('ZeroGPU · live run','ZeroGPU · 实时推理');byId('source').dataset.source = mode;const result = mode === 'live' && liveEvent === 'done' ? trace : mode === 'archive' && (!timer || phase === 6) ? trace : null;byId('run-output').innerHTML = result ? `<div class="run-caption"><small>${mode === 'live' ? text('LIVE CAPTION','实时输出') : text('EXAMPLE CAPTION','示例输出')} · BEAM ${rankLabel(result.final)}</small><p lang="en">${escape(result.captions[result.final])}</p></div>` : '';byId('replay').textContent = label(timer ? 'pause' : 'play');byId('replay').disabled = busy;byId('live').disabled = busy || !catalog.live;20 unmodified linesreturn `<div class="inspect-head"><div><span class="micro">STEP 0${index + 1}</span><h3>${label(steps[index])}</h3></div>${time === undefined ? '' : `<time>${time.toFixed(2)} s</time>`}</div><p class="explain">${description}</p>`;}function routing() {return `<div class="route-map" data-changed="${trace.changed}"><div class="route-root"><span>ARGMAX · STAGE 1</span><strong>Beam ${rankLabel(trace.anchor)}</strong></div><svg viewBox="0 0 400 43" preserveAspectRatio="none" aria-hidden="true"><path d="M200 0V19H100V43"/><path d="M200 0V19H300V43"/></svg><div class="branches"><div class="branch unchanged"><small>${stateLabel(false)}</small><b>${text('Early Exit · return anchor','提前退出 · 直接输出锚点')}</b></div><div class="branch changed"><small>${stateLabel(true)}</small><b>${text('Change Branch · filter candidates','变化分支 · 过滤候选')}</b></div></div></div>`;}function inspect() {14 unmodified lines}).join('')}</ol>` : pending()) + task(0);if (phase === 3) {return head(3, text('The highest-scoring caption anchors the decision. Its state determines which branch runs.','得分最高的描述成为锚点,由它的变化状态决定走哪条分支。'));}if (phase === 4 || phase === 5) {5 unmodified linesconst slot = trace.stage2?.findIndex(([index]) => index === trace.final);const mapping = slot >= 0 && trace.stage2.length > 1 ? `item_${slot + 1} → Beam ${rankLabel(trace.final)}` : `Beam ${rankLabel(trace.final)}`;return head(6, trace.changed ? text(`The selected option maps back to its original caption. β = ${catalog.beta.toFixed(2)}.`,`将选中的选项回映为原始候选描述。β = ${catalog.beta.toFixed(2)}。`) : text('The Stage 1 anchor is the final output; Stage 2 was bypassed.','第一阶段锚点直接输出,第二阶段未执行。')) + `<p class="mapping"><code>${mapping}</code></p><div class="comparison">${[[text('Generator baseline','生成器基线'),0], [text('Stage 1 anchor','第一阶段锚点'),trace.anchor], [text('Final caption','最终描述'),trace.final],].map(([title, index]) => `<div><small>${title} · BEAM ${rankLabel(index)}</small><p lang="en">${escape(trace.captions[index])}</p></div>`).join('')}</div>`;}168 unmodified linesevent.preventDefault();selectTask(next);});byId('probe').addEventListener('click', event => {const button = event.target.closest('[data-variant]');if (!button || (button.dataset.variant === '1') === verifySwap) return;verifySwap = button.dataset.variant === '1';byId('verify-images').innerHTML = evidence(catalog.task_pairs[verifySwap ? '000400' : '000325']);byId('probe').innerHTML = probeContent(1, verifySwap, text);byId('probe').querySelector(`[data-variant="${Number(verifySwap)}"]`).focus({preventScroll:true});byId('task-announcement').textContent = byId('probe').querySelector('.probe-picked').textContent;});byId('aux-probe').addEventListener('click', event => {const button = event.target.closest('[data-variant]');if (!button || (button.dataset.variant === '1') === orderSwap) return;orderSwap = button.dataset.variant === '1';byId('aux-probe').innerHTML = probeContent(2, orderSwap, text);byId('aux-probe').querySelector(`[data-variant="${Number(orderSwap)}"]`).focus({preventScroll:true});byId('task-announcement').textContent = byId('aux-probe').querySelector('.probe-picked').textContent;});byId('rank-explorer').addEventListener('click', event => {const button = event.target.closest('[data-rank]');if (!button || (button.dataset.rank === '1') === rankedView) return;123416 unmodified lines212223242526273 unmodified lines31323334353637388 unmodified lines47484950515253545534 unmodified lines909192939495969798997 unmodified lines10710810911011111211311411511611711811912012112212312412512612751 unmodified lines17918018118218318418544 unmodified lines23023123223323423523623723823924024124224324424524620 unmodified lines26726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432514 unmodified lines3403413423433443453463473485 unmodified lines354355356357358359360168 unmodified lines529530531532533534import { moveCards, renderProbes, tasks } from './tasks.js?v=decision-flow';const byId = id => document.getElementById(id);const escape = value => String(value ?? '').replace(/[&<>"']/g, char => ({'&':'&', '<':'<', '>':'>', '"':'"', "'":'''}[char]));16 unmodified linesconst monitorNodes = [['ZeroGPU','ZeroGPU'], ['Image encoding','影像编码'], ['Beam-15','Beam-15'], ['Stage 1','第一阶段'], ['Stage 2','第二阶段'], ['Caption','最终描述']];const labels = {project: ['Project ↗','项目主页 ↗'], headline: ['The best caption isn’t always ranked first.','排名第一的,不一定是最好的描述。'],lede: ['Check what changed, then select the caption that best matches both images.','先判断场景是否变化,再选出最符合双时相影像的描述。'],observations: ['Bi-temporal observations','双时相观测'], trace: ['Live GPU Inference','GPU 实时推理'],openInference: ['Live GPU Inference','GPU 实时推理'], inferencePath: ['Image pair → Beam-15 → Final caption','双时相影像 → Beam-15 → 最终描述'],results: ['Benchmark results','基准成果'], baseline: ['SCST Beam-15 Top-1 → Critique-then-Rerank','SCST Beam-15 首选 → 两阶段重排'],3 unmodified linesdecisionIntro: ['Explore how Elephant-1 detects change, verifies a caption, compares two captions, and selects from the Beam-15 pool. These examples don’t use GPU quota.','看 Elephant-1 如何判断变化、核验描述、比较两句描述,以及从 Beam-15 候选池中选出最终描述。浏览示例不消耗 GPU 配额。'],taskState: tasks[0].label, taskVerify: ['Caption verification','描述核验'], taskPair: tasks[2].label, taskList: tasks[3].label,taskStateHint: ['Images only','仅输入影像'], taskVerifyHint: ['Yes / No','支持 / 不支持'],decisionTitle: ['State-Routed Decision Trace','状态分流与决策过程'], traceIntro: ['Stage 1 locks the change state. That decision determines whether to exit, return a candidate directly, or run Stage 2.','第一阶段锁定变化状态,随后按状态与候选数量决定提前退出、直接返回候选,或执行第二阶段。'],rankingTitle: ['Candidate Ranking Explorer','候选重排探索'],encode: ['Encode the pair','编码双图'], generate: ['Generate Beam-15','生成 Beam-15'], score: ['Score all candidates','全候选评分'], lock: ['Route by state','按状态分流'], filter: ['Filter the pool','过滤候选池'],rerank: ['Compare + calibrate','精排与长度校准'], output: ['Map to original Beam ID','回映原始 Beam ID'],play: ['▷ Step through','▷ 逐步演示'], pause: ['Ⅱ Pause','Ⅱ 暂停演示'], live: ['Run on GPU','开始 GPU 推理'],8 unmodified lineslet catalog, selected, trace, phase = 3, mode = 'archive', liveEvent, busy = false, follow = true, failure = null, timer;let liveActivity, runTimes, clockTimer;let view = 'swipe', divider = 50, beta = 0.12;let activeTask = 0, rankedView = false, explorerBeta;let probeControls;const taskPanels = ['task-state', 'task-verify', 'task-pair', 'task-list'];const taskTabs = [...byId('task-grid').querySelectorAll('[role="tab"]')];function translate() {34 unmodified linesconst {captions, final} = example.replay;byId('rank-explorer').innerHTML = `<div class="verify-grid"><div>${evidence(example)}<div class="rank-jump"><strong>${final + 1} → 1</strong><span>${text('Beam rank → final rank','原始 Beam 排名 → 最终排名')} · β = ${catalog.beta.toFixed(2)}</span></div><blockquote lang="en">${escape(captions[final])}</blockquote></div><div><h3 class="probe-question">${text('How does Beam #15 rise to first?', 'Beam #15 如何升到第一?')}</h3><p class="explain">${text('Compare the generator and visual ranking of all 15 beams. Then adjust β to see how caption length changes the winner.', '对比全部 15 条候选的生成与视觉重排顺序,再调节 β,看看句长如何影响首选。')}</p><div class="view-mode" role="group" aria-label="${text('Ranking order','排序方式')}"><button type="button" data-rank="0" aria-pressed="${!rankedView}">${text('Generator order','生成器排序')}</button><button type="button" data-rank="1" aria-pressed="${rankedView}">${text('Reranked order','视觉重排后')}</button></div><div class="formula explorer-formula"><code>log(max(P(slot), 10⁻³⁰)) − β × words</code><label class="range-label" for="explorer-beta">${text('Length penalty β','长度惩罚 β')}<output id="explorer-beta-value" for="explorer-beta">${explorerBeta.toFixed(2)}</output></label><input id="explorer-beta" type="range" min="0" max="0.20" step="0.02" value="${explorerBeta}"></div><p class="fine explorer-verdict" id="explorer-winner" role="status"></p><ol class="pool explorer-pool" id="explorer-pool">${captions.map((caption, index) => `<li class="slot" data-beam="${index}"><code></code><span lang="en">${escape(caption)}</span><div class="explorer-score"><code>Beam ${rankLabel(index)}</code><small></small></div></li>`).join('')}</ol></div></div>`;updateExplorer(example);}7 unmodified linesbyId('explorer-beta').setAttribute('aria-valuetext', explorerBeta.toFixed(2));byId('explorer-winner').textContent = text(`At β = ${explorerBeta.toFixed(2)}: Beam ${rankLabel(winner)} wins.`, `β = ${explorerBeta.toFixed(2)} 时:选中 Beam ${rankLabel(winner)}。`);for (const button of byId('rank-explorer').querySelectorAll('[data-rank]')) button.setAttribute('aria-pressed', (button.dataset.rank === '1') === rankedView);const pool = byId('explorer-pool');pool.scrollTop = 0;moveCards(pool, order.map(index => pool.querySelector(`[data-beam="${index}"]`)), (card, rank) => {const index = Number(card.dataset.beam);card.classList.toggle('winner', index === winner);card.firstElementChild.textContent = rank + 1;const score = card.querySelector('small');score.hidden = !rankedView;score.textContent = scores.get(index)?.toFixed(4) ?? '—';});}function renderTasks() {probeControls ??= renderProbes({byId, text, evidence, pair, escape, catalog});probeControls();renderExplorer();}51 unmodified linesbeta = catalog.beta;failure = null;timer = setInterval(() => {phase = (phase === 3 && trace.changed === false) || (phase === 4 && trace.eligible.length <= 1) ? 6 : phase + 1;if (phase === 6) stopReplay();render();}, 1650);44 unmodified linesfunction render() {const reached = level();const completed = timer ? phase : reached;const focused = document.activeElement?.dataset.step;const early = trace?.changed === false && completed >= 3;const direct = trace?.changed === true && completed >= 4 && trace.eligible?.length <= 1;const activeStep = mode === 'live' && busy ? activities[liveActivity]?.[1] : undefined;renderMonitor(completed, early, direct);byId('pipeline').innerHTML = routing(completed, activeStep, early, direct);if (focused !== undefined) byId('pipeline').querySelector(`[data-step="${focused}"]`)?.focus({preventScroll: true});byId('source').textContent = mode === 'archive' ? text('Case walkthrough','案例演示') : text('ZeroGPU · live run','ZeroGPU · 实时推理');byId('source').dataset.source = mode;const result = failure ? null : mode === 'live' ? liveEvent === 'done' ? trace : null : !timer ? trace : null;byId('run-output').innerHTML = result ? captionSelection(result) : '';byId('replay').textContent = label(timer ? 'pause' : 'play');byId('replay').disabled = busy;byId('live').disabled = busy || !catalog.live;20 unmodified linesreturn `<div class="inspect-head"><div><span class="micro">STEP 0${index + 1}</span><h3>${label(steps[index])}</h3></div>${time === undefined ? '' : `<time>${time.toFixed(2)} s</time>`}</div><p class="explain">${description}</p>`;}function routeSummary(result) {if (!result.changed) return text('Unchanged · Early Exit','无变化 · 提前退出');if (!result.eligible.length) return text('Empty pool · Stage 1 anchor kept','候选池为空 · 保留第一阶段锚点');if (result.eligible.length === 1) return text('One candidate · Returned directly','仅一条候选 · 直接返回');return text('Change branch · Stage 2 invoked','变化分支 · 已执行第二阶段');}function highlightEdit(original, final) {if (original === final) return escape(final);const source = original.split(/(\s+)/u);const target = final.split(/(\s+)/u);let start = 0, end = 0;while (start < target.length && start < source.length && target[start] === source[start]) start++;while (end < target.length - start && end < source.length - start && target.at(-end - 1) === source.at(-end - 1)) end++;const edited = escape(target.slice(start, target.length - end).join(''));return escape(target.slice(0, start).join('')) + (edited ? `<mark>${edited}</mark>` : '') + escape(target.slice(target.length - end).join(''));}function captionSelection(result) {const original = result.captions[0];const final = result.captions[result.final];const caseId = escape((result.name ?? selected.name).replace(/\.png$/u, ''));return `<section class="caption-selection" aria-labelledby="caption-selection-title"><div class="sectionbar"><h4 id="caption-selection-title">${text('Caption Selection','描述选择')}</h4><span class="micro">${mode === 'live' ? text('LIVE RESULT','实时结果') : text('PREVIEW','样例预览')} · LEVIR-CC · ${caseId}</span></div><div class="caption-grid"><div><small>${text('GENERATOR','生成器')} · BEAM #01</small><p lang="en">${escape(original)}</p><span>${text('Original top-1','原始首选')}</span></div><div class="final-caption"><small>${result.eligible?.length > 1 ? text('RERANKED','重排后') : text('OUTPUT','输出')} · BEAM ${rankLabel(result.final)}</small><p lang="en">${highlightEdit(original, final)}</p><span>${text('Final selection','最终选择')}</span></div></div><dl class="caption-path">${[[text('Generator','生成器'), 0], ['Stage 1', result.anchor], [text('Final','最终'), result.final]].map(([title,index]) => `<div><dt>${title}</dt><dd>${rankLabel(index)}</dd></div>`).join('')}</dl><div class="caption-links"><span>${routeSummary(result)}</span><a href="#candidate-ranking">${text('Explore candidate ranking ↓','探索候选重排 ↓')}</a></div></section>`;}function routing(completed, activeStep, early, direct) {const short = ['RSCaMa', 'SCST', 'ELEPHANT-1', text('STATE GATE','状态门控'), text('CHANGED','有变化'), 'STAGE 2 · β', 'CAPTION'];const stage2 = !early && !direct && (activeStep === 5 || completed >= 5);const step = (index, title = label(steps[index])) => {const skipped = early && (index === 4 || index === 5);const bypass = direct && index === 5;const state = skipped ? 'skipped' : bypass ? 'direct' : index === activeStep ? 'running' : index <= completed ? 'done' : 'pending';return `<button type="button" data-step="${index}" data-state="${state}" ${index > completed && !skipped && !bypass ? 'disabled' : ''} ${phase === index && completed >= 0 ? 'aria-current="step"' : ''}><small>0${index + 1} / ${short[index]}</small><strong>${title}</strong></button>`;};const gate = completed >= 3;const output = completed >= 6 || activeStep === 6;const split = (first, second) => `<svg class="trace-split" viewBox="0 0 100 22" preserveAspectRatio="none" aria-hidden="true"><path data-active="${first}" d="M50 0V11H25V22"/><path data-active="${second}" d="M50 0V11H75V22"/></svg>`;return `<div class="trace-entry">${[0,1,2].map(index => step(index)).join('')}</div><svg class="trace-split trace-feed" viewBox="0 0 100 22" preserveAspectRatio="none" aria-hidden="true"><path data-active="${completed >= 2}" d="M83.5 0V11H50V22"/></svg><div class="trace-gate">${step(3, gate ? `Beam ${rankLabel(trace.anchor)} · ${stateLabel(trace.changed)}` : undefined)}</div>${split(early, gate && trace.changed)}<div class="trace-branches" data-route="${gate ? early ? 'early' : 'change' : 'waiting'}"><div class="trace-lane trace-early"><div class="trace-terminal" data-active="${early}"><small>${stateLabel(false)}</small><strong>${text('Early Exit','提前退出')}</strong><span>${text('Return Stage 1 anchor','返回第一阶段锚点')}</span></div></div><div class="trace-lane trace-changed">${step(4)}<div class="trace-pool" aria-label="${text('Routes after filtering','过滤后的分流')}"><div class="trace-terminal" data-active="${direct && trace.eligible.length === 0}"><small>0</small><span>${text('Keep anchor','保留锚点')}</span></div><div class="trace-terminal" data-active="${direct && trace.eligible.length === 1}"><small>1</small><span>${text('Return survivor','返回保留候选')}</span></div><div class="trace-terminal" data-active="${stage2}"><small>2+</small><span>${text('Run Stage 2','执行第二阶段')}</span></div></div>${step(5, early ? text('Skipped — Early Exit','已跳过 — 提前退出') : direct ? text('No Stage 2 call','未调用第二阶段') : undefined)}</div></div>${split(output && early, output && gate && trace.changed)}<div class="trace-out">${step(6)}</div>`;}function inspect() {14 unmodified lines}).join('')}</ol>` : pending()) + task(0);if (phase === 3) {const confidence = trace.stage1.find(([index]) => index === trace.anchor)?.[1];const next = trace.changed ? text('Next: remove no-change and duplicate captions.','下一步:去掉无变化与重复描述。') : text('Early Exit: return this caption without running Stage 2.','提前退出:直接返回这句描述,不执行第二阶段。');return head(3, text('The highest-scoring caption anchors the decision. Its state determines which branch runs.','得分最高的描述成为锚点,由它的变化状态决定走哪条分支。')) + `<div class="gate-readout" data-changed="${trace.changed}"><div><code>BEAM ${rankLabel(trace.anchor)} · ${stateLabel(trace.changed)}</code>${Number.isFinite(confidence) ? `<code>P(slot) ${(confidence * 100).toFixed(1)}%</code>` : ''}</div><p lang="en">${escape(trace.captions[trace.anchor])}</p></div><p class="fine">${next}</p>`;}if (phase === 4 || phase === 5) {5 unmodified linesconst slot = trace.stage2?.findIndex(([index]) => index === trace.final);const mapping = slot >= 0 && trace.stage2.length > 1 ? `item_${slot + 1} → Beam ${rankLabel(trace.final)}` : `Beam ${rankLabel(trace.final)}`;return head(6, `${routeSummary(trace)}.${trace.stage2?.length > 1 ? ` β = ${catalog.beta.toFixed(2)}.` : ''}`) + `<p class="mapping"><code>${mapping}</code></p><div class="comparison">${[[text('Generator baseline','生成器基线'),0], [text('Stage 1 anchor','第一阶段锚点'),trace.anchor], [text('Final caption','最终描述'),trace.final],].map(([title, index]) => `<div><small>${title} · BEAM ${rankLabel(index)}</small><p lang="en">${escape(trace.captions[index])}</p></div>`).join('')}</div>`;}168 unmodified linesevent.preventDefault();selectTask(next);});byId('rank-explorer').addEventListener('click', event => {const button = event.target.closest('[data-rank]');if (!button || (button.dataset.rank === '1') === rankedView) return;
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566export const tasks = [{label: ['Change state','变化状态'],hint: ['Did the scene physically 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: ['Do the images support this caption?','双时相影像支持这句描述吗?'],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: ['Does the decision survive an A/B swap?','交换 A/B 后,模型还会选同一句吗?'],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: ['The best caption isn’t always first.','最好的描述不一定排在第一。'],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 && probability !== undefined ? `<strong>${choose} · ${probability}%</strong>` : probability !== undefined ? `<small>${probability}%</small>` : ''}${probability !== undefined ? `<meter min="0" max="100" value="${probability}" aria-hidden="true"></meter>` : ''}</li>`;let controls = '';let options;if (index === 0) {options = [option('',text('Changed','有变化'),false,7.6), 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('Supporting pair','支持描述的影像'), text('Conflicting pair','与描述冲突的影像'), alternate);options = [`<li class="probe-option probe-picked${alternate ? ' probe-conflict' : ''}"><span>${alternate ? text('Not supported','不支持') : text('Supported','支持')}</span><strong>P(Yes) ${alternate ? '< 0.1%' : '> 99.9%'}</strong></li>`];} 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,alternate ? 8.5 : 96.9), option('B',alternate ? house : unchanged,alternate,alternate ? 91.5 : 3.1)];}return `<h3 class="probe-question">${text(...task.hint)}</h3><p class="explain">${text(...task.explanation)}</p>${protocol(task, text)}${controls}<div class="pool-head">${text('Recorded 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>`;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138export const tasks = [{label: ['Change state','变化状态'], protocol: [['T₁ + T₂','T₁ + T₂'], ['Changed / Unchanged','有变化 / 无变化'], ['Stage 1 warm-start','第一阶段预热']]},{label: ['Caption verification','描述核验'], protocol: [['T₁ + T₂ + fixed caption','双图 + 固定描述'], ['Yes / No','支持 / 不支持'], ['Stage 2 verification','第二阶段事实核验']]},{label: ['Pairwise preference','成对偏好'], protocol: [['T₁ + T₂ + A/B','双图 + A/B'], ['A / B','A / B'], ['Stage 1 auxiliary task','第一阶段辅助任务']]},{label: ['Listwise selection','列表选句'], protocol: [['T₁ + T₂ + candidate pool','双图 + 候选池'], ['One caption','一条描述'], ['Stage 1 and Stage 2 inference','两阶段正式推理']]},];const motions = new WeakMap();export function moveCards(list, cards, update) {const animate = !matchMedia('(prefers-reduced-motion: reduce)').matches && list.getClientRects().length > 0;const before = animate ? cards.map(card => card.getBoundingClientRect().top) : [];cards.forEach((card, index) => {motions.get(card)?.cancel();const reference = list.children[index];if (reference !== card) {if (list.moveBefore) list.moveBefore(card, reference);else list.insertBefore(card, reference);}update(card, index);});if (!animate) return;cards.forEach((card, index) => {const distance = before[index] - card.getBoundingClientRect().top;if (Math.abs(distance) > 1) motions.set(card, card.animate([{transform:`translateY(${distance}px)`}, {transform:'none'}], {duration:330, easing:'cubic-bezier(.22,.8,.28,1)'}));});}export function renderProbes({byId, text, evidence, pair, escape, catalog}) {let conflict = false, reversed = false, visualRank = false;const state = byId('state-probe'), verify = byId('probe'), pairwise = byId('aux-probe'), listwise = byId('list-probe');const evidenceDeck = byId('verify-images');const verifyCases = ['000325','000400'].map(id => catalog.task_pairs[id]);const lists = catalog.task_pairs['001639'];const heading = (tag, title) => `<p class="micro probe-kicker">${tag}</p><h3 class="probe-question">${title}</h3>`;const protocol = index => `<dl class="protocol">${[[text('Input','输入'),0],[text('Output','输出'),1],[text('Role','用途'),2]].map(([title, position]) => `<div><dt>${title}</dt><dd>${text(...tasks[index].protocol[position])}</dd></div>`).join('')}</dl>`;const metric = (title, value, note) => `<div class="probe-stat"><div><small>${title}</small><strong>${value}</strong></div><span>${note}</span></div>`;const toggles = (name, first, second) => `<div class="view-mode probe-switches" role="group" aria-label="${name}"><button type="button" data-choice="0">${first}</button><button type="button" data-choice="1">${second}</button></div>`;const press = (container, choice) => container.querySelectorAll('[data-choice]').forEach(button => button.setAttribute('aria-pressed', Boolean(Number(button.dataset.choice)) === choice));const say = message => { byId('task-announcement').textContent = message; };const card = (id, caption) => `<li class="probe-beam" data-card="${id}"><code></code><strong></strong><p lang="en">${escape(caption)}</p></li>`;function updateVerification(announce) {press(verify, conflict);evidenceDeck.querySelectorAll('.evidence-layer').forEach((layer, index) => {const active = index === Number(conflict);layer.dataset.active = active;layer.setAttribute('aria-hidden', !active);});evidenceDeck.querySelector('figcaption').textContent = `LEVIR-CC · ${verifyCases[Number(conflict)].name.replace(/\.png$/u, '')}`;const display = verify.querySelector('.verify-meter');const value = conflict ? '<0.1%' : '>99.9%';const decision = conflict ? text('No','不支持') : text('Yes','支持');display.dataset.conflict = conflict;display.style.setProperty('--likelihood', conflict ? '0.1%' : '99.9%');display.querySelector('strong').textContent = value;display.querySelector('b').textContent = decision;if (announce) say(`${decision} · P(Yes) ${value}`);}function updatePair(announce) {const list = pairwise.querySelector('ol');const cards = ['houses','unchanged'].map(id => list.querySelector(`[data-card="${id}"]`));moveCards(list, reversed ? cards.reverse() : cards, (item, index) => {const preferred = item.dataset.card === 'houses';item.classList.toggle('probe-picked', preferred);item.querySelector('code').textContent = index === 0 ? 'A' : 'B';item.querySelector('strong').textContent = reversed ? preferred ? '91.5%' : '8.5%' : preferred ? '96.9%' : '3.1%';});pairwise.querySelector('[data-reverse]').setAttribute('aria-pressed', reversed);pairwise.querySelector('.order-comparison').dataset.reversed = reversed;if (announce) say(`${reversed ? 'B · 91.5%' : 'A · 96.9%'} · ${cards.find(item => item.dataset.card === 'houses').querySelector('p').textContent}`);}function updateList(announce) {press(listwise, visualRank);const list = listwise.querySelector('ol');const key = visualRank ? 'stage2' : 'generator';const sorted = [...lists.candidates].sort((first, second) => second[key] - first[key]);moveCards(list, sorted.map(item => list.querySelector(`[data-card="${item.beam}"]`)), (item, index) => {const position = sorted[index];item.classList.toggle('probe-picked', index === 0);item.querySelector('code').textContent = `${index + 1} / BEAM #${String(position.beam).padStart(2, '0')}`;item.querySelector('strong').textContent = `${(position[key] * 100).toFixed(1)}%`;});const action = listwise.querySelector('[data-apply]');action.textContent = visualRank ? text('Restore generator ranking','恢复生成器排序') : text('Apply visual reranking','应用视觉重排');listwise.querySelector('.list-score-type').textContent = visualRank ? text('Stage 2 probability','第二阶段选项概率') : text('Generator likelihood share','生成器似然份额');if (announce) say(text(`Beam #${String(sorted[0].beam).padStart(2, '0')} ranks first.`, `Beam #${String(sorted[0].beam).padStart(2, '0')} 排名第一。`));}verify.addEventListener('click', event => {const button = event.target.closest('[data-choice]');if (!button || Boolean(Number(button.dataset.choice)) === conflict) return;conflict = !conflict;updateVerification(true);});pairwise.addEventListener('click', event => {if (!event.target.closest('[data-reverse]')) return;reversed = !reversed;updatePair(true);});listwise.addEventListener('click', event => {const choice = event.target.closest('[data-choice]');const action = event.target.closest('[data-apply]');if (!choice && !action) return;visualRank = action ? !visualRank : Boolean(Number(choice.dataset.choice));updateList(true);});return () => {byId('state-images').innerHTML = evidence(catalog.cases.find(item => item.name === 'test_000033.png'));state.innerHTML = `${heading(text('01 / IMAGE-ONLY DECISION','01 / 仅双图判断'), text('Did the scene physically change?','场景本身发生变化了吗?'))}<div class="state-scale"><div class="state-values"><div><span>${text('Changed','有变化')}</span><strong>7.6%</strong></div><div><span>${text('Unchanged','无变化')}</span><strong>92.4%</strong></div></div><div class="state-axis" aria-hidden="true"><i></i><i></i></div><div class="state-tags"><span>${text('Physical change','实质变化')}</span><span>${text('Appearance-only differences','仅外观差异')}</span></div></div>${metric(text('STAGE 1 WARM-START PROBE','第一阶段预热任务'), '90.35%', text('Balanced accuracy · 1,929 pairs','平衡准确率 · 1,929 对影像'))}${protocol(0)}`;evidenceDeck.innerHTML = `<figure class="task-evidence"><span class="micro">${text('VISUAL EVIDENCE','影像证据')}</span><div class="evidence-stack">${verifyCases.map(item => `<div class="evidence-layer">${pair(item)}</div>`).join('')}</div><figcaption class="fine"></figcaption></figure>`;verify.innerHTML = `${heading(text('02 / FIXED-TEXT IMAGE-SWAP PROBE','02 / 固定描述,替换双图'), text('Same caption. Different evidence.','同一句描述,换一组影像。'))}<blockquote lang="en" class="fixed-caption"><small lang="${text('en','zh-CN')}">${text('CAPTION REMAINS FIXED','固定描述')}</small>houses are built along the road and some brushwoods disappear</blockquote>${toggles(text('Image evidence','影像证据'),text('Supporting pair','支持描述的影像'),text('Conflicting pair','与描述冲突的影像'))}<div class="verify-meter"><div><small>${text('VISUAL SUPPORT · P(YES)','影像支持度 · P(YES)')}</small><b></b></div><strong></strong><div class="prob-track" aria-hidden="true"><i></i></div></div>${metric(text('VERIFICATION ACCURACY','事实核验准确率'), '90.63% → 94.92%', text('Before → after Stage 2 training · 512 queries','第二阶段训练前 → 后 · 512 次查询'))}${protocol(1)}`;updateVerification(false);byId('task-images').innerHTML = evidence(catalog.task_pairs['000109']);pairwise.innerHTML = `${heading(text('03 / ORDER-SWAP PROBE','03 / 交换选项顺序'), text('Same preference, different order.','改变顺序,偏好不变。'))}<ol class="probe-card-list" role="list">${card('houses','houses are built in an open space')}${card('unchanged','no change has occurred')}</ol><button type="button" class="probe-action" data-reverse>${text('Reverse option order','交换 A/B 顺序')} <span aria-hidden="true">⇅</span></button><div class="order-comparison"><div><span>${text('Original order','原顺序')}</span><strong>A · 96.9%</strong></div><div><span>${text('Reversed order','交换后')}</span><strong>B · 91.5%</strong></div></div><p class="fine">${text('Same caption selected in both presentations.','两种顺序下都选中了同一句描述。')}</p>${metric(text('PAIRWISE ACCURACY','成对偏好准确率'), '88.36%', text('3,858 presentations','3,858 次呈现'))}${protocol(2)}`;updatePair(false);if (!lists) return;byId('list-images').innerHTML = evidence(lists);listwise.innerHTML = `${heading(text('04 / LISTWISE CANDIDATE SELECTION','04 / 列表选句'), text('From likelihood to visual evidence.','从生成似然到影像证据。'))}${toggles(text('Ranking order','排序方式'),text('Generator ranking','生成器排序'),text('Stage 2 ranking','第二阶段排序'))}<p class="micro list-score-type"></p><ol class="probe-card-list" role="list">${lists.candidates.map(item => card(item.beam, item.caption)).join('')}</ol><button type="button" data-apply class="probe-action"></button><p class="fine">test_001639 · ${text('3 of 15 candidates shown · Stage 2 probabilities before length calibration.','展示 15 条中的 3 条 · 第二阶段概率未加句长校准。')}</p>${protocol(3)}`;updateList(false);};}
.gitattributes+3
public/cases.json+1-1
public/clips/test_000079.mp4Added
public/images/test_000079_A.pngAdded

Large File Pointer Details
- SHA256: 1eb3f623f5022a376e002f5092f4f319a7125f795f4c056a4add4ccedaa287a7
- Pointer size: 131 Bytes
- Size of remote file: 151 kB
public/images/test_000079_B.pngAdded

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

public/images/test_001639_B.pngAdded

Large File Pointer Details
- SHA256: 35830f9c5a20d8bb8fa1b8faecdea1a9125c87233c1dae3fe4e007d648523157
- Pointer size: 131 Bytes
- Size of remote file: 116 kB
public/task_pairs.json+1-1
workbench/index.html+19-14
workbench/lab.css+106-50
workbench/lab.js+82-53
workbench/tasks.js+130-58