[FEATURE]: Near-duplicates in the exclusion fork and verifiable topic exclusion Issue Body
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- ai, machine-learning
Research direction
Read docs/roadmap.md and inspect simple/near_duplicates.py and simple/ovl.py, plus the fork and verification paths mentioned in the proposal. The author reports a local implementation and plans to open a pull request, so check the issue for that work before starting. Done means measuring secondary mentions and passage losses, validating topic-filter provenance and range coverage in the chain, and comparing against rarity-matched controls as described.
Written by the indexing model from the issue text.
Description
Per the project roadmap in docs/roadmap.md (#next):
"Near-duplicates in the exclusion fork. The fork removed the 3I/ATLAS article as one document. Other articles that mention the comet stayed in, so the model may still have learned most of its facts. Count the training articles that mention it, and compare both models' loss on those passages. Then try excluding by topic (every range that mentions it), not by document. A topic exclusion is only as good as the filter that picks the ranges, so record the filter's code and version in the chain, and report its misses on a hand-checked sample. Compare against control articles about equally rare subjects, not just random articles of similar length, to separate what the removal did from its general knock-on effect on later training."
I would like to work on implementing this feature.
Proposed Architecture & Design:
- Secondary Mention Scanning (
simple/near_duplicates.py):- Vectorized token subsequence search over
tokens.u16with leading whitespace variants anddata.OFFSET. - Exclude the primary removed document (
3I/ATLAS) fromdocuments.jsonlso only secondary mentions across the corpus are measured. - Align every mention passage with exact training context windows ($k \times \text{ctx}$).
- Vectorized token subsequence search over
- Passage Loss & Token-by-Token Attribution:
- Compute next-token cross-entropy loss under both base models ($\mathcal{L}{\text{orig}}$ and $\mathcal{L}{\text{fork}}$).
- Attribute token-level perplexity deltas ($\Delta_{\text{token}} = \mathcal{L}{\text{fork}} - \mathcal{L}{\text{orig}}$) across the mention span.
- Rarity-Matched Controls & Significance:
- Compare against equally rare astronomical controls (
1I/'Oumuamua,2I/Borisov) rather than arbitrary length-matched documents. - Compute 1,000-resample paired bootstrap 95% CI and permutation test ($p$-value).
- Compare against equally rare astronomical controls (
- Verifiable Topic Filter Specification (
topic_filter.json):- Cryptographically commit the filter extractor code SHA-256 (
filter_code_sha256), version, hand-checked sample error rate, and sorted target ranges[[start, count], ...].
- Cryptographically commit the filter extractor code SHA-256 (
- Chain Integration in
simple/ovl.py:- Add
--exclude-topic-filter FILEtoovl.py fork, committing filter metadata intochain.jsonlunderentry["fork"]["topic_filter"]and applying target ranges tocontrol["exclude"]["wikipedia"]for bit-for-bit coverage validation byovl.stepandverify_segment.
- Add
I have implemented and tested this locally (82/82 tests pass on CPU, clean ruff lint). I will open the PR shortly.
- Dominant language
- Python
- Stars
- 27
- Forks
- 72
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 45
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/OpenVerifiableLLM
-
[BUG]: ovl.py verify --weights crashes with AttributeError on checkpoint .pt filesPossibly taken @Anurag1428 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AOSSIE-Org/OpenVerifiableLLM#387 · 1 comment ·
Maintainers usually reply within 1 day
-
[BUG]: verify_segment accepts empty, wrong-phase, or non-positive fork exclusions as MATCHPossibly taken @Arnav0107 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/OpenVerifiableLLM#385 · 3 comments ·
Maintainers usually reply within 1 day
-
[BUG]: preparation.lock install fails on macOSPossibly taken @darshith2527-sketch claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AOSSIE-Org/OpenVerifiableLLM#357 · 3 comments ·
Maintainers usually reply within 1 day
-
[BUG]: Forked runs omit timestamps for inherited chain entriesPossibly taken @pavithra-r06 claimed this 9 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AOSSIE-Org/OpenVerifiableLLM#334 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
[BUG]: review_ckpt.py passes a run that has .pt files no chain entry coversPossibly taken @arshil42 claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AOSSIE-Org/OpenVerifiableLLM#332 · 4 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in AOSSIE-Org/OpenVerifiableLLM
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
bad-antics/lateralus-lang#1140 ·
Maintainers usually reply within 4 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
fixture good first issue help wanted vendor:cisco
Difficulty 1/5 1-3 hours Newbie friendliness 85/100