{"slug": "how-room-and-tool-relate-to-spread-in-staging-drift", "title": "How room and tool relate to spread in staging drift", "summary": "An analysis of 129 completed runs from StagingBench, an independent benchmark of AI virtual staging tools, found that room differences accounted for 16.93 percent of the spread in staging drift and tool differences for 18.10 percent when each factor was considered alone. The work uses one-factor sums of squares against a grand mean, then a joint room-plus-tool fit updated iteratively until effects settle, noting the two separate shares cannot be added because they may capture overlapping variation. The test is slightly unbalanced, with one refused run leaving room 08 at 12 completed runs versus 13 for every other room.", "body_md": "A virtual staging tool can preserve the architecture in one photo and move it visibly in another. Drift measures that movement, with lower scores indicating less measured movement. Across 129 completed runs from [StagingBench](https://stagingbench.org), an independent benchmark of AI virtual staging tools, differences between room averages accounted for 16.93 percent of the spread in drift when rooms were considered alone. Differences between tool averages accounted for 18.10 percent when tools were considered alone.\n\nThe grand mean gives every completed run equal weight. Subtract that mean from each drift score, square the difference, and add the results. That gives the total sum of squares. Squaring keeps positive and negative differences from canceling and gives larger departures from the mean more weight. The same total serves as the denominator for each share below.\n\nFor the room calculation, group the scores by room and find each room’s mean. Measure how far that mean sits from the grand mean, square the difference, and multiply by the number of completed runs for the room. Adding those weighted distances gives the between-room sum of squares. The tool calculation follows the same steps, grouping the scores by tool instead.\n\nA room mean captures the average across the tools that completed that photo. The highest room mean was 34.9231 in room 04. The lowest was 12.3154 in room 09. Those means describe the scores across completed runs for each room. Individual runs can sit on either side of their room mean, and that variation remains in the total against which the room share is measured.\n\nThe two shares are separate one-factor summaries. The separate fits can pick up overlapping variation, so the shares cannot be added to measure what room and tool explain together. The test is slightly unbalanced. One run was refused, leaving room 08 with 12 completed runs and every other room with 13. That missing combination changes how the room and tool averages relate to each other.\n\nThe joint fit predicts each score by adding a room level and a tool effect. It starts with all tool effects set to zero. It then averages the scores within each room after subtracting the current tool effects. With those room levels in place, it updates each tool effect by averaging what remains for that tool. It repeats these updates until the effects settle. The remaining spread comes from the squared gaps between the observed scores and the joint predictions.\n\n``` python\nfrom collections import defaultdict\nfrom statistics import mean\n\nrows = [\n    ('T01', '01', 16.2), ('T01', '02', 32.9), ('T01', '03', 9.2), ('T01', '04', 40.1), ('T01', '05', 13.7),\n    ('T01', '06', 43.4), ('T01', '07', 41.0), ('T01', '08', 11.6), ('T01', '09', 13.1), ('T01', '10', 22.7),\n    ('T02', '01', 11.0), ('T02', '02', 24.1), ('T02', '03', 21.7), ('T02', '04', 56.5), ('T02', '05', 21.4),\n    ('T02', '06', 26.2), ('T02', '07', 35.1), ('T02', '08', 17.4), ('T02', '09', 9.2), ('T02', '10', 28.0),\n    ('T03', '01', 28.2), ('T03', '02', 30.6), ('T03', '03', 29.7), ('T03', '04', 29.0), ('T03', '05', 15.5),\n    ('T03', '06', 21.1), ('T03', '07', 18.0), ('T03', '08', 12.6), ('T03', '09', 14.9), ('T03', '10', 20.2),\n    ('T04', '01', 27.1), ('T04', '02', 26.6), ('T04', '03', 33.5), ('T04', '04', 28.8), ('T04', '05', 22.5),\n    ('T04', '06', 21.3), ('T04', '07', 24.4), ('T04', '08', 23.5), ('T04', '09', 26.9), ('T04', '10', 26.6),\n    ('T05', '01', 29.4), ('T05', '02', 6.1), ('T05', '03', 23.6), ('T05', '04', 61.5), ('T05', '05', 36.2),\n    ('T05', '06', 57.3), ('T05', '07', 30.4), ('T05', '08', 22.0), ('T05', '09', 11.4), ('T05', '10', 19.9),\n    ('T06', '01', 18.1), ('T06', '02', 23.3), ('T06', '03', 21.0), ('T06', '04', 33.3), ('T06', '05', 14.8),\n    ('T06', '06', 22.5), ('T06', '07', 35.2), ('T06', '08', 27.4), ('T06', '09', 10.2), ('T06', '10', 21.2),\n    ('T07', '01', 25.4), ('T07', '02', 33.6), ('T07', '03', 22.9), ('T07', '04', 50.4), ('T07', '05', 38.0),\n    ('T07', '06', 34.9), ('T07', '07', 46.3), ('T07', '08', 38.7), ('T07', '09', 20.4), ('T07', '10', 28.2),\n    ('T08', '01', 11.4), ('T08', '02', 31.3), ('T08', '03', 26.3), ('T08', '04', 15.1), ('T08', '05', 34.9),\n    ('T08', '06', 16.6), ('T08', '07', 23.5), ('T08', '08', 9.7), ('T08', '09', 5.7), ('T08', '10', 24.5),\n    ('T09', '01', 13.3), ('T09', '02', 11.6), ('T09', '03', 26.4), ('T09', '04', 10.4), ('T09', '05', 19.8),\n    ('T09', '06', 26.0), ('T09', '07', 18.9), ('T09', '08', 7.8), ('T09', '09', 23.3), ('T09', '10', 21.0),\n    ('T10', '01', 10.6), ('T10', '02', 27.8), ('T10', '03', 7.5), ('T10', '04', 6.4), ('T10', '05', 7.8),\n    ('T10', '06', 13.7), ('T10', '07', 9.7), ('T10', '08', 8.9), ('T10', '09', 3.1), ('T10', '10', 17.0),\n    ('T11', '01', 52.8), ('T11', '02', 27.1), ('T11', '03', 61.3), ('T11', '04', 54.5), ('T11', '05', 7.2),\n    ('T11', '06', 9.7), ('T11', '07', 9.2), ('T11', '08', 35.5), ('T11', '09', 7.7), ('T11', '10', 26.6),\n    ('T12', '01', 18.9), ('T12', '02', 25.4), ('T12', '03', 19.1), ('T12', '04', 15.2), ('T12', '05', 8.0),\n    ('T12', '06', 16.3), ('T12', '07', 42.1), ('T12', '09', 11.8), ('T12', '10', 15.7),\n    ('T13', '01', 12.7), ('T13', '02', 16.9), ('T13', '03', 4.0), ('T13', '04', 52.8), ('T13', '05', 18.8),\n    ('T13', '06', 12.6), ('T13', '07', 7.3), ('T13', '08', 41.5), ('T13', '09', 2.4), ('T13', '10', 57.4),\n]\n\nby_room = defaultdict(list)\nby_tool = defaultdict(list)\nfor tool, room, drift in rows:\n    by_room[room].append((tool, drift))\n    by_tool[tool].append((room, drift))\n\ngrand = mean(drift for _, _, drift in rows)\ntotal = sum((drift - grand) ** 2 for _, _, drift in rows)\n\ndef group_means(groups):\n    return {key: mean(drift for _, drift in group)\n            for key, group in groups.items()}\n\ndef between_share(groups, means):\n    return sum(len(group) * (means[key] - grand) ** 2\n               for key, group in groups.items()) / total\n\nroom_means = group_means(by_room)\ntool_means = group_means(by_tool)\nhighest = max(room_means, key=room_means.get)\nlowest = min(room_means, key=room_means.get)\n\ntool_effects = dict.fromkeys(by_tool, 0.0)\nwhile True:\n    room_levels = {\n        room: mean(drift - tool_effects[tool] for tool, drift in group)\n        for room, group in by_room.items()\n    }\n    updated = {\n        tool: mean(drift - room_levels[room] for room, drift in group)\n        for tool, group in by_tool.items()\n    }\n    change = max(abs(updated[tool] - tool_effects[tool]) for tool in by_tool)\n    tool_effects = updated\n    if change < 1e-12:\n        break\n\nresidual = sum((drift - (room_levels[room] + tool_effects[tool])) ** 2\n               for tool, room, drift in rows)\n\nprint(f\"Grand mean: {grand:.4f}\")\nprint(f\"Total sum of squares: {total:.4f}\")\nprint(f\"Between-room share: {between_share(by_room, room_means):.2%}\")\nprint(f\"Between-tool share: {between_share(by_tool, tool_means):.2%}\")\nprint(f\"Highest room mean: {highest} at {room_means[highest]:.4f}\")\nprint(f\"Lowest room mean: {lowest} at {room_means[lowest]:.4f}\")\nprint(f\"Residual share after joint fit: {residual / total:.2%}\")\n```\n\nThe script uses Python’s standard library. The room IDs stay as strings to keep their leading zeros. Each tuple contributes its score to one room group and one tool group, and the calculations use only the completed runs shown above. The tool and room means printed or used for the separate shares are computed directly from those runs. The joint fit estimates its room levels and tool effects separately.\n\nThis is the actual printed output from running the script.\n\n```\nGrand mean: 23.4078\nTotal sum of squares: 22362.6522\nBetween-room share: 16.93%\nBetween-tool share: 18.10%\nHighest room mean: 04 at 34.9231\nLowest room mean: 09 at 12.3154\nResidual share after joint fit: 64.89%\n```\n\nAfter the joint fit, 64.89 percent of the original spread remained. The model gives each tool the same adjustment in every room it completed. It gives each room the same level for every tool that completed it. If a tool preserves the structure especially closely in a particular room, that combination can produce a score below the joint prediction. A bigger change than the room and tool averages suggest can produce a score above it.\n\nThose departures reflect variation that the additive model leaves unexplained. Since each observed tool and room pairing contributes a single score, any effect specific to that pairing is mixed with variation that might appear if the same run were repeated. The shares describe this test set only. Different photos or a different group of tools could change both the group averages and the spread around them.", "url": "https://wpnews.pro/news/how-room-and-tool-relate-to-spread-in-staging-drift", "canonical_source": "https://dev.to/stagingbench/how-room-and-tool-relate-to-spread-in-staging-drift-12gi", "published_at": "2026-12-05 17:05:13+00:00", "updated_at": "2026-12-05 17:13:39.786577+00:00", "lang": "en", "topics": ["artificial-intelligence", "computer-vision", "generative-ai", "ai-tools"], "entities": ["StagingBench"], "also_reported_by": [], "takeaway": "In StagingBench's 129 runs, room alone explained 16.93 percent of drift variance and tool alone 18.10 percent, but the two one-factor shares overlap and cannot be summed—use a joint room-plus-tool fit instead.", "recommendation": {"advice": "When benchmarking tools across varied inputs, report one-factor variance shares separately and fit room and tool jointly rather than adding the shares, since overlapping variation inflates the total.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/how-room-and-tool-relate-to-spread-in-staging-drift", "markdown": "https://wpnews.pro/news/how-room-and-tool-relate-to-spread-in-staging-drift.md", "text": "https://wpnews.pro/news/how-room-and-tool-relate-to-spread-in-staging-drift.txt", "jsonld": "https://wpnews.pro/news/how-room-and-tool-relate-to-spread-in-staging-drift.jsonld"}}