kiji-proxy icon indicating copy to clipboard operation
kiji-proxy copied to clipboard

Training templates leak a probe name, plus smaller data-builder issues

Open Davidnet opened this issue 2 weeks ago • 0 comments

Found while reviewing #688. Code: model/dataset/ on that branch.

A probe name leaks into training (synthetic_negatives.py:431 vs :89) The surname pool has "Müller-Lüdenscheidt", which contains the held-out probe name "Müller" as a whole word. 22 of 3,000 German template rows have it inside a SURNAME span. test_synthetic_pools_avoid_probe_names (tests/test_german_training_data.py:187) checks exact set membership only, so it misses this.

Smaller items

  • german_sources.py:42 maps SECONDARY_ADDRESS ("Whg. 4", "Apt 3B") to STREET.
  • german_sources.py:205-207 / _to_sample: nym rows with no entities (about 13%, all PII-free) are dropped, although the mix wants negatives.
  • Unverified: build_training_mix.py:216-222 stops streaming openpii after 50k consecutive non-German rows once a German row has been seen. If German rows come in separate blocks, the subset is silently cut short.
  • german_sources.py:232-236 uses nym offsets without a sanity check. check_offsets found 0 errors on the cached sets, but byte offsets would shift every row with an umlaut.
  • id_templates.py:403-410 draws SSNs and NI numbers from the full assignable space, so generated values can match real people's.

Test gaps

  • test_synthetic_rows_avoid_probe_codes hard-codes 14 of the 23 PROBE_STRINGS.
  • Nothing tests write_samples, summarize or --extend-from.

Davidnet avatar Nov 17 '26 02:11 Davidnet