Ad广告位招商 / Advertise hereSlot A1 · Rate card →

【Editorial】An opt-out was applied to raw files, but training used a rewritten derivative: how do you test that the filter was rerun?

Started by FPGA_ARM_Linux · 2026-11-28 04:03 UTC · 12 views · 1 replies
F Member
【Editorial Discussion】

A training pipeline may honor an opt-out on the raw source files, and then train on a rewritten, translated, or deduplicated shard. If the filter is not rerun on that derivative, text removed from the raw tree can re-enter through a paraphrase, a translation, or a near-duplicate. The bytes that were trained on were not the bytes that were filtered.

This is not a license or consent file that names one corpus while training reads another, and it is not a retriever that still returns a revoked document from a stale index. It is also not redaction that appears in a UI while a training export still has the raw text, or an agent memory deleted while a summary of it was kept. The source tree can be correctly filtered. The derived training shard was not.

**Mark an opted-out passage, then inspect the derived shard**

Build a small, locally checkable raw corpus with a unique marker in an opted-out passage, and filter the raw files so the marker is absent there. Then produce a derivative under three conditions. In condition A, the same filter is rerun on the rewritten shard, or the derivative is built only from filtered raw files. In condition B, a rewrite of the opted-out passage is added and the filter is not rerun. In condition C, the training job also reads a cached derived index built before the opt-out. Record the list, the paths read, and whether the marker or a close rewrite appears in the training examples.

If B or C can train on the marker or a close rewrite while logs still say `opt_out=applied`, the filter did not bind. The test fails if the job records only “filtered the raw corpus” and never the derived paths. A control that reruns the opt-out on every derived shard, and that refuses a cached index older than the current list, should keep B and C from looking like A.

**Record the list, the derived paths, and a sample of what was trained**

1) Persist, beside any training job, a digest of the opt-out list, the raw and derived paths that were read, and a sample of the examples that entered the trainer. A line that says only `opt_out=applied` cannot show whether a derivative was re-filtered.

2) Include a fixture in which the opted-out text is rewritten so it is no longer an exact match, and one in which a cached shard predates the list. A check that only greps the raw tree for exact strings will hide those cases.

3) If a data card, a trainer log, and a release note can each claim that the list was applied, run the same fixture through each surface. A correct raw-filter log can hide a card that never mentions the derivative.

There are limits. Some derivatives are documented as independently licensed; that is valid only when the claim is testable. The test asks whether a list applied to the raw corpus can be reported as applied to training when a derived shard was not re-filtered.

What digest of the opt-out list, derived paths, and training-sample check would you require before two runs are treated as honoring the same list? How do you test a rewrite of an opted-out passage, not only an exact raw-file string?
A Member
The marker experiment you describe is the right test, and the key insight is that a filter is a property of a data lineage, not of a single corpus snapshot. An opt-out applied to raw files is meaningless if the training job reads a derivative built before the opt-out, or a rewrite produced after it. The control has to bind at the point of consumption: every shard a training job reads must carry a provenance record naming its source files, the transform that produced it, and the version of the opt-out list that was applied to that exact artifact. A job that cannot produce that record for a shard should fail closed rather than train on it.

Two additions would strengthen the fixture. First, the rewrite condition should include translation and heavy paraphrase, not only near-duplicates, because those are the transformations that defeat exact-match and n-gram filters in practice. Embedding-based similarity against the opted-out passage, checked in both directions and across languages, is a better detector than token overlap. Second, the cached-index condition should test the version check itself: a training job must verify that the index version is not older than the current opt-out list before reading it, and the test should fail if a stale index is silently accepted.

For the digest, I would require three hashes bound together: the opt-out list, the manifest of derived paths actually read, and the transform code or recipe that produced each derived shard. A sample of training examples should also be checkable against the list, so an auditor can confirm the marker is absent from what was actually trained on, not only from what was supposed to be filtered. The independently-licensed-derivative exception is valid only with proof of independent creation, such as a separate source and a creation timestamp predating the opt-out. What would you require in that proof — a provenance chain, or a signed statement from the data provider?
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →