AjayRangoji's picture
Upload DECISIONS.md
ceae14b verified
|
Raw History Blame Contribute Delete
7.92 kB

DECISIONS

Every non-obvious choice in this project, with its reason and date. Append-only: if a decision is reversed, add a new row and mark the old one SUPERSEDED. IDs are stable and referenced from LOG.md, configs and the paper draft.

Status: ACTIVE | SUPERSEDED | PENDING-GUIDE


A. Approved by guide (2026-10-18)

ID Decision Reason Status
D01 Start from pretrained-only checkpoint buddhist-nlp/byt5-sanskrit, never the segmentation-finetuned one. Avoids gold-split leakage into our test verses. Verified released. Paper must state pretraining saw raw unsegmented DCS/Sangraha text, which is not gold-split leakage. ACTIVE
D02 ByT5-base (d_model 1536, 18 enc / 6 dec layers, ~582M) for every reported number. ByT5-small only for code debugging, never for the pilot. Running the pilot at a different size from final runs adds a confound. Size read from the checkpoint's config.json. ACTIVE
D03 Internal transliteration = IAST, NFC-normalised, lowercase. ByT5 is byte-level; a scheme differing from its pretraining corrupts the baseline. Verified against the official inference toy data, which is IAST. Overrides the earlier SLP1 proposal. ACTIVE
D04 Overlap test set = DCS n Itihasa. Reference-match first, else fuzzy char-similarity >= 0.95. Dev ~500, test ~1000-2000, ids frozen before training. Report the ACTUAL matched count. Edition differences between Itihasa and DCS epic texts may yield fewer matches than hoped; the real number must be honest in the paper. ACTIVE
D05 Near-duplicate removal at the same 0.95 threshold against both the DCS training data and the Itihasa pseudo-label pool. Epic verses repeat; a near-duplicate of a test verse in either place is leakage. ACTIVE
D06 Build dictionary scorer (A) -> run the pilot -> only then build the aligner scorer (B). The guide's decision rule says the dictionary scorer alone suffices for go/no-go. Avoids building B for a dead idea. ACTIVE
D07 The lemmatiser used by Scorer A is retrained on the DCS train split with dev/test removed. chronbmm/sanskrit5-multitask must NOT be used for lemmas. That model was trained on gold DCS annotations including our test verses, so its lemmas would carry gold information into the scorer. ACTIVE
D08 GO/NO-GO (fixed 2026-10-18 before any result existed): GO iff combined gold@1 beats splitter-alone gold@1 by >= 3.0 points absolute on dev at the 10% gold size, AND the paired bootstrap 95% CI on that difference excludes zero. Prevents post-hoc rationalisation of a weak pilot. ACTIVE
D09 3 seeds at all three gold sizes. Paired bootstrap over test sentences for the main comparison. Report seed std as well as the bootstrap CI. Compute is not a constraint; reviewers will check this comparison. ACTIVE
D10 All stretch goals (Sanskrit Heritage segmenter, Mitrasamgraha, iterated pseudo-labelling) deferred until Experiments 1-3 are complete. Scope control. ACTIVE
D11 Venue: ISCLS. Operator hand-checks a sample only; computation never blocks on human verification. Agreed with guide. ACTIVE

B. Taken by me during implementation

ID Decision Reason Status
D12 Primary standard benchmark = chronbmm/sanskrit-sandhi-split-**hackathon**, not -sighum. sighum's validation and test splits are byte-identical (n=4,200 each, md5 910044e1469b). Tuning on its validation set would be tuning on test. hackathon's val (10,235) and test (9,965) are genuinely distinct. SIGHUM may still be reported test-only with nothing tuned on it. Flagged to guide for confirmation. ACTIVE
D13 All Python runs use PYTHONNOUSERSITE=1 and python -I. The login node's ~/.local/lib/python3.10/site-packages otherwise shadows the project env, which already silently produced a wrong torch import once. ACTIVE
D14 indic-transliteration pinned to 2.3.82. 2.3.63 was never released on PyPI. ACTIVE
D15 Itihasa Sanskrit is Devanagari; normalisation transliterates Devanagari -> IAST (NFC) at load time. Confirms D03 end-to-end. A silent mismatch here would poison every downstream scorer. ACTIVE
D16 Match DCS to Itihasa at full-verse level: join DCS sentences sharing (chapter_id, sent_counter) into one verse before matching. DCS stores each half-verse as its own sentence; Itihasa stores the whole verse on one line and its English translates the whole verse. Matching half-verses against full verses would fail, and scoring a candidate against half its translation would corrupt Scorer A. ACTIVE
D17 Overlap dev/test drawn only from pairs whose DCS and Itihasa raw text are identical once whitespace is ignored (15,031 of 38,226). Fuzzy and non-identical matches are used for the pseudo-label pool only, never for dev/test. The guide requires dropping verses whose raw text differs between sources, since a DCS gold split may not correspond to the verse the English translates. We can afford the strict rule: 15k eligible vs ~2.5k needed. ACTIVE
D18 For matching only, nasals m-dot/n-dot/n-tilde/n-under are folded to one class and whitespace removed. Never applied to model input. Editions differ freely (DCS munipu<ms>gavam vs Itihasa munipu<n>gavam); without folding, correct pairs fall below 0.95. ACTIVE
D19 Dev/test sampled by chapter, not by verse; dev and test chapter sets are disjoint and asserted so. Epic verses repeat within a chapter; verse-level sampling would let near-duplicates straddle dev, test and the training pool. ACTIVE
D20 make_splits.py refuses to overwrite an existing frozen split file. Frozen test ids must never be silently regenerated; this makes the convention mechanically enforced rather than remembered. ACTIVE
D21 Never train on the released benchmark train splits. All splitter training data is derived from our own leakage-filtered dcs_train_pool.jsonl, emitted at BOTH granularities (full verse and DCS half-verse). The released benchmark train splits are contaminated with our frozen held-out verses at half-verse granularity: hackathon train 6.59% (5,535 identical + 352 near-dup of 89,323) and sighum train 3.67%. Deriving training data ourselves means we control leakage rather than inheriting someone else's split. ACTIVE
D22 Emit training pairs at both full-verse and half-verse granularity from the same leakage-filtered source. Test time is full-verse (the English translates a whole verse, D16) but the standard benchmark is half-verse. Training on both makes one model valid for both evaluations instead of needing two training regimes. ACTIVE
D23 When reporting on the standard benchmark test sets, drop the contaminated sentences and say so: hackathon test 1.93% (192 of 9,965), sighum test 0.98% (41 of 4,200). Those sentences are half-verses of our frozen dev/test. Scoring on them would report a number partly measured on verses our pseudo-label pipeline has effectively seen. ACTIVE
D24 Any contamination check must be run at the granularity of the data being checked. A first check comparing full-verse keys against the half-verse benchmark returned "0.00% contaminated" for every split - a false clean, because keys of different granularity can never match. The real figure was 6.59%. Granularity mismatch is a silent-pass failure mode, not a crash. ACTIVE

C. Open / pending

ID Question Owner Status
P01 Confirm D12 (hackathon as primary benchmark) with guide. Operator -> guide PENDING-GUIDE
P02 /fsx is at 100% (405 GB free and falling, other users' jobs). Needs headroom before checkpointing ByT5-base x 3 sizes x 3 seeds. Operator PENDING-GUIDE