Skip to content

Ngram copying loss upstream - #285

Merged
jopetty merged 2 commits into
allenai:jacksonp/ladderfrom
jopetty:ngram-copying-loss-upstream
Aug 14, 2026
Merged

jopetty merged 2 commits into
allenai:jacksonp/ladderfrom
jopetty:ngram-copying-loss-upstream

Conversation

@jopetty

@jopetty jopetty commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Adds BPB copy loss eval

jopetty and others added 2 commits August 13, 2026 19:00
Restricts bits-per-byte to positions whose preceding k-gram already
occurred earlier in the same document, isolating how much of a
model's loss on a document comes from copying previously-seen spans
rather than genuine prediction. Adds NGramCopyingBPBMetricInstanceAvg
and NGramCopyingBPBMetricByteAvg (k=1..5) and wires them into
c4/c4_1k/c4_10k/c4_100k as a new :ngram_copying_bpb variant.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Per review feedback: unweighted per-document averaging overweights
documents with only a few masked bytes and needed explicit exclusion
for zero-copy documents. Pooling logprobs/bytes across the corpus
before dividing once handles both naturally.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jopetty
jopetty merged commit 6b83547 into allenai:jacksonp/ladder Aug 14, 2026
10 checks passed
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