Skip to content

Record: 100-record exact-k versus PolicyBench's sampled 100 - #989

Merged
MaxGhenis merged 6 commits into
mainfrom
policybench-exact-k-100-vs-sampled-20260922
Nov 11, 2026
Merged

MaxGhenis merged 6 commits into
mainfrom
policybench-exact-k-100-vs-sampled-20260922

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Evidence record, not a code change. Max asked on 2026-09-22 to compare the 100-record L0/exact-k support with PolicyBench's sampled 100 households, without running PolicyBench, and to see how the households differ.

Both designs use PolicyBench's pinned release populace-us-2024-5da5a95-20260611 and the same national targets from the labelled feed. The run covers 200 seeds with no reduction: 72.2 minutes, 16.3 GB peak RSS.

Design National capped MAPE Without the two apparently misplaced cells Headline MAPE National Kish ESS
Sampled, self-weighted 82.2% 78.5% 38.6% 100.0
Sampled, post-stratified 65.0% 61.3% 4.1% 32.0
Exact-k, refit 58.7% 59.0% 17.9% 12.4

The run fitted each target set separately. Two of the 26 feed-declared zero targets dominate the national uncapped errors: Table 2.5's EITC returns and amount for three or more children at $30,000 to $35,000 of AGI. IRS's TY2023 workbook prints 0 there, but its child columns over $20,000 to $35,000 reconcile with the all-returns rows only in sum: the $25,000 to $30,000 row holds 310,212 returns too many and the $20,000 to $25,000 row 1,187, so IRS appears to have placed that cell's ~311,000 returns in those two rows. Both sampled designs hold a household in the cell and take the capped maximum on both targets, which adds 4.0 points to their capped MAPE. Exact-k holds none: its smallest weight, 333.5, exceeds every error outside its five largest. The README reports this, and the national reading now leads with capped MAPE.

Findings

  1. No household appears in both sets. Going from the sample to national exact-k, one-person households fall from 58 to 26 and SNAP/Medicaid/SSI recipients rise from 21 to 44. Most of that contrast compares two random draws: 90 of the 100 exact-k households came from one Sampford boundary draw over closed L0 gates (median open probability 0.0055), and the record ran one draw seed.
  2. Exact-k concentrates weight. Its ten largest weights carry 73.1% of total weight, and only 76 of its households meet PolicyBench eligibility.
  3. Which design fits better depends on the metric. Exact-k has the lower national capped error, but 4.0 of its 6.3-point lead over the post-stratified sample comes from the apparently misplaced cell (4.0 of 23.5 points against the self-weighted sample). Against the 200 repeated post-stratified draws, exact-k's national capped MAPE is lower than 87% of them, while its share of national targets within 10% (23.4%) is lower than every draw's. On the headline targets, every draw beats it.

Contents

experiments/policybench-exact-k-100-vs-sampled-20260922/: README.md, compare_designs.py, which renders every aggregate from the bundled JSONs, and households.csv / household_ids.json, the 200 household rows side by side (public release rows only). The record includes no poverty or SPM targets. It evaluates no model and changes nothing in PolicyBench.

Verification

181/181 validation checks passed, plus Ruff, Python compilation and CI inventory verification. A Subfleet lane (Astra) produced the record. Its sandbox could not commit, so the main session committed it and merged origin/main.

Commit ad1d711 changes reporting only, after review r1 (an independent Opus 5.5 agent). Review r1 reproduced every number from the bundled JSONs, confirmed that the release is public, and found two should-fix items and seven nits:

  • The national reading now leads with capped MAPE, reports it without the two cells, and places exact-k among the draws (S1).
  • The household section now says the support is mostly one boundary draw (S2).
  • The README defines the three weight columns (N5), names the commit behind its packages/ line citations and the input flags (N6), and says what the AGI-band count counts (N3).
  • verification.json drops its stale delivery fields (N2).
  • source_revision.json records the new edits. validate again passes 181/181 and rebuilds the producer script to its recorded hash, so no numerical output changes.

Commit f080fc4 answers review r2 (the same agent), which reproduced every new number and found two should-fix items:

  • zero_target_audit.json now carries a workbook_check block with the TY2021–2023 workbooks' Chronicle paths, commit and sha256, the per-row residuals and the three-or-more column; its workbook and source-cell flags now read true, and IRS confirmation stays false (R2-1).
  • The README names the $25,000 to $30,000 and $20,000 to $25,000 rows instead of "the rows below" (R2-2).
  • Nits: the misplacement reads as apparent, uncapped MAPE as the run's primary measure, the cell's 4.0 points sit against each design's gap, and exact-k's two cell errors are exactly 0 by the weight-floor argument above, so its ex-cell figure is 59.0% (58.95%, rounded).

Review r3 (same agent, head f080fc4) approved with nits: every workbook_check field recomputes from the three workbooks, and the record still validates 181/181 and renders byte-identically. Commit 790e211 takes two of its nits: the audit marks the run's original interpretation as written before the workbook check, and source_revision.json lists the r2 reading edits. It leaves the hash-tracked script comment as it is.

The absolute local paths (N1) stay: the run recorded them in its inputs and audits, and the script's defaults name the original machine's inputs, which the README now says to override.

Not verified: why the earlier lost run failed, and how any model or reform performs on either set. The Table 2.5 cell's misplacement is a reading of IRS's published rows. Microcosm's calibration targets the same two cells; #1577 (draft) binds them as one $25,000 to $35,000 row, and Chronicle's feed carries the cell as IRS printed it.

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits September 23, 2026 04:30
Evidence record for Max's 2026-09-22 ask ("compare the 100-rec L0 with the
sampled"; "dont actually run pb but i want to see how the households differ").
Both designs on PolicyBench's pinned release populace-us-2024-5da5a95-20260611
(f32c2e5e…) and the same national targets from the labelled feed: the frozen
PPS sample self-weighted and post-stratified, the maintained L0/exact-k
calibrator's 100-record support, and a 200-seed sampling distribution. The
household-level side-by-side is households.csv / household_ids.json (public
release rows only); everything else is aggregates rendered from the bundled
JSONs by compare_designs.py. Nothing evaluates a model or changes PolicyBench.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 4 commits November 11, 2026 08:13
….5 zero

Review r1 found that one zero-valued Table 2.5 cell (three or more children,
$30,000 to $35,000 of AGI) drives the national uncapped figure and 4.0 of
the 6.3-point capped gap between post-stratification and exact-k, and that
most of each exact-k support comes from one Sampford boundary draw. IRS's
TY2023 workbook prints 0 in that cell, but its child columns over $20,000 to
$35,000 reconcile with the all-returns rows only in sum, so IRS appears to
have placed the cell's ~311,000 returns in the rows below.

- The reading block leads the national set with capped MAPE, reports it
  without the two cells, and places exact-k among the 200 post-stratified
  draws: a lower capped MAPE than 87% of them, a lower within-10% share than
  every one, and on headline targets every draw beats it.
- The household section says 90 of the 100 national exact-k households came
  from the boundary draw, from one draw seed.
- README prose covers the zero-cell finding, the three weight columns, the
  commit behind the packages/ line citations and the input flags.
  verification.json drops its stale 2026-09-23 delivery fields.
- source_revision.json carries the new reporting edits. validate passes
  181/181 and rebuilds the producer to 12ee1e6f; no numerical output changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l (review r2)

- zero_target_audit.json gains a workbook_check block: the TY2021-2023
  workbooks' Chronicle paths, commit and sha256, the per-row
  child-minus-all-returns residuals, and the three-or-more column. Its
  workbook and source-cell flags now read true; IRS confirmation stays false.
- The README names the $25,000-$30,000 and $20,000-$25,000 rows as holding
  the excess (r2-2), hedges the misplacement, calls uncapped MAPE the run's
  primary measure, and corrects the calibrated_weight definition.
- The reading sets the cell's 4.0 points against each sampled design's gap
  (6.3 and 23.5 points) and reports exact-k's ex-cell capped MAPE as 59.0%:
  its smallest weight, 333.5, exceeds every error outside its five largest,
  so it holds no household in the cell.
- source_revision.json records the new edits; validate passes 181/181 and
  rebuilds the producer to its recorded hash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… nits)

- zero_target_audit.json labels the run's original interpretation as
  written before the 2026-11-11 workbook check, and the new reading says the
  all-returns rows suggest, rather than imply, the cell's true count.
- source_revision.json's changes list names the two reading edits from
  review r2; its edits array already reproduced them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis marked this pull request as ready for review November 11, 2026 15:45
@MaxGhenis
MaxGhenis merged commit 895e466 into main Nov 11, 2026
12 checks passed
@MaxGhenis
MaxGhenis deleted the policybench-exact-k-100-vs-sampled-20260922 branch November 11, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant