Add code, result files and documentation
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitignore +14 -0
- NOTICE +10 -0
- README.md +140 -0
- configs/.gitkeep +0 -0
- configs/phase1.yaml +25 -0
- configs/phase2.yaml +61 -0
- configs/phase2b.yaml +60 -0
- configs/phase3.yaml +75 -0
- configs/phase4_fertility.yaml +72 -0
- docs/REPORT.md +888 -0
- docs/experiment-log.md +444 -0
- docs/hardware-notes.md +114 -0
- notebooks/.gitkeep +0 -0
- requirements.txt +20 -0
- results/.gitkeep +0 -0
- results/manifest.md +43 -0
- results/phase4_capacity_pilot_seed0.json +5 -0
- results/phase4_capacity_pilot_seed1.json +5 -0
- results/phase4_lambda10M_E1_seed0.json +5 -0
- results/phase4_lambda10M_E1_seed1.json +5 -0
- results/phase4_lambda10M_L2_seed0.json +5 -0
- results/phase4_lambda10M_L2_seed1.json +5 -0
- results/phase4_lambda10M_L4_seed0.json +5 -0
- results/phase4_lambda10M_L4_seed1.json +5 -0
- results/phase4_lambda_sweep_seed0.json +5 -0
- results/phase4_lambda_sweep_seed1.json +5 -0
- results/phase4_pilot_seed1.json +6 -0
- results/phase4_token_projection_pilot.json +5 -0
- results/phase5_dependence_probe/Devanagari.json +448 -0
- results/phase5_dependence_probe/English.json +448 -0
- results/phase5_dependence_probe/IAST.json +448 -0
- results/phase5_dependence_probe/ISO.json +448 -0
- results/phase5_dependence_probe/ITRANS.json +448 -0
- results/phase5_dependent/eval_Devanagari_seed0.json +0 -0
- results/phase5_dependent/eval_Devanagari_seed1.json +0 -0
- results/phase5_dependent/eval_Devanagari_seed2.json +0 -0
- results/phase5_dependent/eval_English_seed0.json +0 -0
- results/phase5_dependent/eval_English_seed1.json +0 -0
- results/phase5_dependent/eval_English_seed2.json +0 -0
- results/phase5_dependent/eval_IAST_seed0.json +0 -0
- results/phase5_dependent/eval_IAST_seed1.json +0 -0
- results/phase5_dependent/eval_IAST_seed2.json +0 -0
- results/phase5_dependent/eval_ISO_seed0.json +0 -0
- results/phase5_dependent/eval_ISO_seed1.json +0 -0
- results/phase5_dependent/eval_ISO_seed2.json +0 -0
- results/phase5_dependent/eval_ITRANS_seed0.json +0 -0
- results/phase5_dependent/eval_ITRANS_seed1.json +0 -0
- results/phase5_dependent/eval_ITRANS_seed2.json +0 -0
- results/phase5_dependent/grouppilot_train_Devanagari_seed0.json +150 -0
- results/phase5_dependent/grouppilot_train_Devanagari_seed1.json +150 -0
.gitignore
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__/
|
| 2 |
+
*.pyc
|
| 3 |
+
.ipynb_checkpoints/
|
| 4 |
+
/data/
|
| 5 |
+
checkpoints/
|
| 6 |
+
results/*.csv
|
| 7 |
+
*.pt
|
| 8 |
+
*.safetensors
|
| 9 |
+
.env
|
| 10 |
+
wandb/
|
| 11 |
+
|
| 12 |
+
.venv/
|
| 13 |
+
*.egg-info/
|
| 14 |
+
.pytest_cache/
|
NOTICE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This project trains and evaluates prediction heads on top of the frozen
|
| 2 |
+
meta-llama/Llama-3.2-1B model and reports results obtained with it. The model
|
| 3 |
+
weights are not distributed here; they must be obtained from Meta's repository
|
| 4 |
+
at https://huggingface.co/meta-llama/Llama-3.2-1B under its own terms.
|
| 5 |
+
|
| 6 |
+
Llama 3.2 is licensed under the Llama 3.2 Community License, Copyright (c) Meta
|
| 7 |
+
Platforms, Inc. All Rights Reserved.
|
| 8 |
+
|
| 9 |
+
License text: https://huggingface.co/meta-llama/Llama-3.2-1B/blob/main/LICENSE.txt
|
| 10 |
+
Acceptable use policy: https://www.llama.com/llama3_2/use-policy
|
README.md
ADDED
|
@@ -0,0 +1,140 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
---
|
| 12 |
+
|
| 13 |
+
This repository holds the code, result files and documentation of the project.
|
| 14 |
+
It contains no model weights: the frozen base model must be downloaded from
|
| 15 |
+
`meta-llama/Llama-3.2-1B`, and the trained draft heads are not included.
|
| 16 |
+
Tested with Python 3.10.12, torch 2.5.1+cu121 and transformers 5.16.1.
|
| 17 |
+
|
| 18 |
+
# code-switch-mtp
|
| 19 |
+
|
| 20 |
+
Does multi-token prediction (MTP) get harder because of **tokenizer fertility**
|
| 21 |
+
(how many tokens it takes to write a word) or because of **morphological
|
| 22 |
+
complexity** (how much grammar is packed into each token)?
|
| 23 |
+
|
| 24 |
+
Comparing two languages cannot answer this, because switching language changes
|
| 25 |
+
both at once. This project varies fertility while holding morphology fixed, by
|
| 26 |
+
romanizing Hindi: same words, same grammar, different spelling system, and
|
| 27 |
+
therefore different fertility under the same tokenizer.
|
| 28 |
+
|
| 29 |
+
**Start here: [`docs/REPORT.md`](docs/REPORT.md)** — the full write-up,
|
| 30 |
+
explained from scratch, with every number, decision, and caveat.
|
| 31 |
+
|
| 32 |
+
## What is in this repository
|
| 33 |
+
|
| 34 |
+
| Path | Contents |
|
| 35 |
+
|---|---|
|
| 36 |
+
| `src/data/` | corpus building, ITRANS romanization, Dakshina parsing |
|
| 37 |
+
| `src/measure/` | fertility, word-boundary alignment, entropy, D_indep |
|
| 38 |
+
| `src/models/` | Medusa-1 style MTP heads |
|
| 39 |
+
| `src/train/` | MTP + NTP training stack |
|
| 40 |
+
| `scripts/` | one entry point per experiment phase |
|
| 41 |
+
| `configs/` | YAML config per phase |
|
| 42 |
+
| `results/` | measurement CSVs (gitignored; see `results/manifest.md`) |
|
| 43 |
+
| `docs/` | report, experiment log, hardware notes |
|
| 44 |
+
| `tests/` | 91 unit tests |
|
| 45 |
+
|
| 46 |
+
## Headline results
|
| 47 |
+
|
| 48 |
+
- The originally specified Phase 3 architecture (frozen backbone + independent
|
| 49 |
+
per-head blocks) gives `D = BPB(MTP) - BPB(NTP) = 0.000000` **by
|
| 50 |
+
construction** — verified analytically and by ablation. MTP's cost needs
|
| 51 |
+
shared trainable capacity to exist at all.
|
| 52 |
+
- Byte-level spans are far closer to independent than subword spans
|
| 53 |
+
(`D_indep` at k=3: 2.94 and 1.01 for byte vs 8.7–10.8 for all subword
|
| 54 |
+
conditions), consistent across Hindi and English.
|
| 55 |
+
- Fertility does **not** move `D_indep` within a model; model identity mattered
|
| 56 |
+
~20x more than script.
|
| 57 |
+
- Boundary-completion rate (this project's novel metric) separates conditions
|
| 58 |
+
far more sharply than `D` does, is stable across seeds, and tracks fertility
|
| 59 |
+
rather than script.
|
| 60 |
+
|
| 61 |
+
Hypotheses H2 (script-switch discontinuity) and H3 (orthographic ambiguity)
|
| 62 |
+
were not resolved; see the limitations section of the report.
|
| 63 |
+
|
| 64 |
+
## Stage 2: draft heads that speed up decoding (phases 4 and 5)
|
| 65 |
+
|
| 66 |
+
Stage 2 uses the look-ahead heads as drafters for lossless draft-and-verify
|
| 67 |
+
decoding on a frozen `meta-llama/Llama-3.2-1B`, on English and on Hindi written
|
| 68 |
+
in four ways: Devanagari and three romanizations (ITRANS, IAST, ISO). Every
|
| 69 |
+
drafted token is checked against the frozen model, so the output is identical
|
| 70 |
+
to greedy decoding.
|
| 71 |
+
|
| 72 |
+
Tokens per backbone pass (maximum 4), mean of 3 seeds, 10M training tokens:
|
| 73 |
+
|
| 74 |
+
| Drafter | English | Devanagari | ITRANS | IAST | ISO |
|
| 75 |
+
|---|---|---|---|---|---|
|
| 76 |
+
| Independent heads (vanilla MTP) | 1.33 | 1.69 | 1.43 | 1.59 | 1.65 |
|
| 77 |
+
| Dependent heads | 1.66 | 2.09 | 1.68 | 1.85 | 1.90 |
|
| 78 |
+
| Dependent heads, backbone targets | 1.75 | 2.20 | 1.68 | 1.87 | 1.89 |
|
| 79 |
+
|
| 80 |
+
- End-to-end speed against greedy decoding on one GTX 1080 Ti: vanilla MTP
|
| 81 |
+
heads give 0.83x (English) to 1.08x (Devanagari). Dependent heads with
|
| 82 |
+
backbone targets and a 4,352-token draft shortlist give 1.43x (English) and
|
| 83 |
+
1.86x (Devanagari), with identical output on 48 of 48 documents.
|
| 84 |
+
- Where drafts fail in Hindi is set by the word group, not the word. With
|
| 85 |
+
dependent heads and backbone targets in Devanagari, the first draft is right
|
| 86 |
+
73% of the time inside a word, 76% at a function word that continues a group
|
| 87 |
+
(postposition, auxiliary, particle), and 36% at the start of a new group.
|
| 88 |
+
The same split appears in all three romanizations.
|
| 89 |
+
- At Hindi-English switches on real text, the first draft is right 8% of the
|
| 90 |
+
time when entering English, 43% when returning to Hindi with a function word
|
| 91 |
+
and 6% when returning with a content word.
|
| 92 |
+
- Using word position to choose draft-tree candidates does not beat the head's
|
| 93 |
+
own confidence. Reweighting the loss by acceptance, masking look-ahead
|
| 94 |
+
targets at word boundaries and gradient surgery did not help either.
|
| 95 |
+
|
| 96 |
+
None of the drafting components is new. Extra heads on a frozen model follow
|
| 97 |
+
Medusa, dependent heads follow Hydra, backbone targets follow the
|
| 98 |
+
self-distillation of Medusa-2 and Hydra++, the frequency shortlist follows
|
| 99 |
+
FR-Spec, and the tree baselines follow Sequoia and EAGLE-2. The word group is
|
| 100 |
+
taken from Karthika et al., "Semantically Cohesive Word Grouping in Indian
|
| 101 |
+
Languages" (arXiv 2501.03988), and is approximated here with a closed-class
|
| 102 |
+
word list (`scripts/phase5_word_groups.py`). The contribution of this stage is
|
| 103 |
+
the measurements.
|
| 104 |
+
|
| 105 |
+
Entry points: `scripts/phase5_queue.sh` (train, then evaluate one condition
|
| 106 |
+
and seed), `scripts/phase5_aggregate.py` (tokens-per-pass tables),
|
| 107 |
+
`scripts/phase5_timing_all.sh` (end-to-end speed),
|
| 108 |
+
`scripts/phase5_tree_draft.py` and `scripts/phase5_tree_aggregate.py`
|
| 109 |
+
(position classes and draft trees), `scripts/phase5_switch_points.py`
|
| 110 |
+
(Hindi-English switches). Results are in `results/phase5_dependent/`.
|
| 111 |
+
|
| 112 |
+
Data: Hindi from the verified split of `ai4bharat/sangraha`, English from
|
| 113 |
+
`wikimedia/wikipedia`, human-typed romanized Hindi from Dakshina. Corpora and
|
| 114 |
+
trained head checkpoints are not part of this repository.
|
| 115 |
+
|
| 116 |
+
Llama 3.2 is licensed under the Llama 3.2 Community License, Copyright (c) Meta
|
| 117 |
+
Platforms, Inc. All Rights Reserved. See `NOTICE`.
|
| 118 |
+
|
| 119 |
+
## Setup
|
| 120 |
+
|
| 121 |
+
Requires Python 3.10 and NVIDIA GPUs. The torch pin is deliberate — Pascal
|
| 122 |
+
(sm_61) support depends on it, see `docs/hardware-notes.md`.
|
| 123 |
+
|
| 124 |
+
```bash
|
| 125 |
+
python3 -m venv .venv && source .venv/bin/activate
|
| 126 |
+
pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 \
|
| 127 |
+
--index-url https://download.pytorch.org/whl/cu121
|
| 128 |
+
pip install -r requirements.txt
|
| 129 |
+
pytest tests/ -v
|
| 130 |
+
```
|
| 131 |
+
|
| 132 |
+
Set `CUDA_DEVICE_ORDER=PCI_BUS_ID` before importing torch in anything you add;
|
| 133 |
+
without it PyTorch orders GPUs fastest-first and its indices will not match
|
| 134 |
+
`nvidia-smi`.
|
| 135 |
+
|
| 136 |
+
Gated models need a Hugging Face token with "read access to public gated
|
| 137 |
+
repos" enabled. Put it in `.env` as `HF_TOKEN=...` (gitignored).
|
| 138 |
+
|
| 139 |
+
`results/manifest.md` documents every output CSV and the command that
|
| 140 |
+
regenerates it.
|
configs/.gitkeep
ADDED
|
File without changes
|
configs/phase1.yaml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Phase 1 data pipeline configuration.
|
| 2 |
+
|
| 3 |
+
seed: 0
|
| 4 |
+
|
| 5 |
+
hindi_corpus:
|
| 6 |
+
dataset: ai4bharat/sangraha
|
| 7 |
+
data_files_pattern: "verified/hin/data-*.parquet"
|
| 8 |
+
target_tokens: 50_000_000
|
| 9 |
+
min_chars: 20 # drop near-empty rows before dedup
|
| 10 |
+
out_path: /data/cs769_mtp/scratch/data/hindi_corpus/sangraha_hin_50M.jsonl
|
| 11 |
+
|
| 12 |
+
itrans:
|
| 13 |
+
lang_code: hi
|
| 14 |
+
reversibility_sample_size: 1000
|
| 15 |
+
reversibility_min_rate: 0.99
|
| 16 |
+
|
| 17 |
+
dakshina:
|
| 18 |
+
root: /data/cs769_mtp/scratch/data/dakshina/dakshina_dataset_v1.0/hi
|
| 19 |
+
romanized_pairs_file: romanized/hi.romanized.rejoined.tsv
|
| 20 |
+
lexicon_files:
|
| 21 |
+
- lexicons/hi.translit.sampled.train.tsv
|
| 22 |
+
- lexicons/hi.translit.sampled.dev.tsv
|
| 23 |
+
- lexicons/hi.translit.sampled.test.tsv
|
| 24 |
+
|
| 25 |
+
results_dir: results
|
configs/phase2.yaml
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Phase 2 zero-training measurement configuration.
|
| 2 |
+
#
|
| 3 |
+
# sentences_per_condition is a deliberate, documented reduction from the
|
| 4 |
+
# full 9,907-sentence verified pool: a timing calibration (5 sentences,
|
| 5 |
+
# max_positions=3, monte_carlo_samples=8) measured ~7s/sentence on this
|
| 6 |
+
# hardware with no KV-caching in the entropy/D_indep estimators (each
|
| 7 |
+
# Monte Carlo rollout step re-runs the full prefix from scratch). At that
|
| 8 |
+
# rate the full pool would take multiple hours per condition. See
|
| 9 |
+
# docs/experiment-log.md for the full reasoning.
|
| 10 |
+
|
| 11 |
+
seed: 0
|
| 12 |
+
|
| 13 |
+
fertility_triples_csv: results/phase1_fertility_triples.csv
|
| 14 |
+
english_control_csv: results/phase1b_english_control.csv
|
| 15 |
+
results_dir: results
|
| 16 |
+
output_csv: results/phase2_measurements.csv
|
| 17 |
+
|
| 18 |
+
sentences_per_condition: 100
|
| 19 |
+
max_positions_per_sentence: 5
|
| 20 |
+
max_horizon: 8
|
| 21 |
+
monte_carlo_samples: 8
|
| 22 |
+
top_k_cap: 100
|
| 23 |
+
top_k_coverage: 0.99
|
| 24 |
+
adamtp_target_group_size: 4.0
|
| 25 |
+
|
| 26 |
+
models:
|
| 27 |
+
sarvam1:
|
| 28 |
+
hf_id: sarvamai/sarvam-1
|
| 29 |
+
kind: causal
|
| 30 |
+
llama32:
|
| 31 |
+
hf_id: meta-llama/Llama-3.2-1B
|
| 32 |
+
kind: causal
|
| 33 |
+
byt5large:
|
| 34 |
+
hf_id: /data/cs769_mtp/scratch/models/byt5-large-safetensors
|
| 35 |
+
kind: seq2seq
|
| 36 |
+
|
| 37 |
+
conditions:
|
| 38 |
+
L1: { model: sarvam1, text_column: devanagari, device: "cuda:0" }
|
| 39 |
+
L2: { model: llama32, text_column: itrans_roman, device: "cuda:0" }
|
| 40 |
+
L3: { model: llama32, text_column: natural_roman, device: "cuda:1" }
|
| 41 |
+
L4: { model: llama32, text_column: devanagari, device: "cuda:2" }
|
| 42 |
+
L5: { model: byt5large, text_column: devanagari, device: "cuda:0" }
|
| 43 |
+
E1: { model: llama32, text_column: text, source: english, device: "cuda:1" }
|
| 44 |
+
E2: { model: byt5large, text_column: text, source: english, device: "cuda:2" }
|
| 45 |
+
|
| 46 |
+
# GPU assignment note: cuda:N indices below are per-process, set after
|
| 47 |
+
# CUDA_VISIBLE_DEVICES restricts each process to one physical GPU -- so
|
| 48 |
+
# every condition actually uses cuda:0 from its own process's point of
|
| 49 |
+
# view. The device field here just documents which physical GPU
|
| 50 |
+
# (nvidia-smi/PCI order) each condition is launched on: L1 -> GPU 3
|
| 51 |
+
# (Quadro P6000, per the hardware brief); L2-L5,E1,E2 spread across
|
| 52 |
+
# GPUs 0-2 (1080 Tis). scripts/phase2_measurement.py's --gpu argument is
|
| 53 |
+
# the actual source of truth; the values above are for human reference.
|
| 54 |
+
physical_gpu:
|
| 55 |
+
L1: 3
|
| 56 |
+
L2: 0
|
| 57 |
+
L3: 1
|
| 58 |
+
L4: 2
|
| 59 |
+
L5: 0
|
| 60 |
+
E1: 1
|
| 61 |
+
E2: 2
|
configs/phase2b.yaml
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Phase 2b: resolving two Phase 2 measurement blockers.
|
| 2 |
+
#
|
| 3 |
+
# Blocker A -- a 2x2 factorial (model x script) separating model identity
|
| 4 |
+
# from fertility as the driver of the L1 D_indep anomaly. Phase 2 could not
|
| 5 |
+
# distinguish these because L1 was the only condition on Sarvam-1. The four
|
| 6 |
+
# cells share one paired sentence subset so the comparison is within-sentence.
|
| 7 |
+
#
|
| 8 |
+
# The fertility ordering across cells makes the two hypotheses testable
|
| 9 |
+
# against each other: sarvam_dev 1.60 < llama_rom 2.94 ~ llama_dev 2.93 <
|
| 10 |
+
# sarvam_rom 3.55. A fertility-driven effect and a model-driven effect
|
| 11 |
+
# therefore predict different orderings of D_indep, rather than the same one.
|
| 12 |
+
#
|
| 13 |
+
# Blocker B -- whether L5's entropy trough depth was an artifact of driving
|
| 14 |
+
# ByT5 with the prefix mirrored into its bidirectional encoder.
|
| 15 |
+
|
| 16 |
+
seed: 0
|
| 17 |
+
|
| 18 |
+
fertility_triples_csv: results/phase1_fertility_triples.csv
|
| 19 |
+
out_csv: results/phase2b_blockers.csv
|
| 20 |
+
|
| 21 |
+
# Set from a timing calibration (8- and 40-sentence runs, load time
|
| 22 |
+
# amortized out): ~0.795 s/sentence for Sarvam-1, ~0.83 for the romanized
|
| 23 |
+
# Sarvam cell, ~0.7 for Llama. D_indep evaluates a fixed 2-token prefix, so
|
| 24 |
+
# its cost barely tracks fertility. GPU 3 is the bottleneck since both
|
| 25 |
+
# Sarvam cells must share the P6000 and run sequentially there:
|
| 26 |
+
# 22s load + n * 1.625s, so n=2000 lands near 55 min, inside the ~2h budget
|
| 27 |
+
# while giving 20x Phase 2's per-condition sample.
|
| 28 |
+
blocker_a_sentences: 2000
|
| 29 |
+
blocker_b_sentences: 150
|
| 30 |
+
|
| 31 |
+
max_positions_per_sentence: 5
|
| 32 |
+
max_horizon: 8
|
| 33 |
+
monte_carlo_samples: 8
|
| 34 |
+
bootstrap_resamples: 2000
|
| 35 |
+
|
| 36 |
+
models:
|
| 37 |
+
sarvam1:
|
| 38 |
+
hf_id: sarvamai/sarvam-1
|
| 39 |
+
kind: causal
|
| 40 |
+
llama32:
|
| 41 |
+
hf_id: meta-llama/Llama-3.2-1B
|
| 42 |
+
kind: causal
|
| 43 |
+
byt5large:
|
| 44 |
+
hf_id: /data/cs769_mtp/scratch/models/byt5-large-safetensors
|
| 45 |
+
kind: seq2seq
|
| 46 |
+
|
| 47 |
+
# Blocker A cells. physical_gpu is the nvidia-smi/PCI-order GPU each cell is
|
| 48 |
+
# launched on; Sarvam-1 (~2B fp32) needs the 24GB P6000, so both Sarvam cells
|
| 49 |
+
# share GPU 3 and run sequentially there while the Llama cells run in
|
| 50 |
+
# parallel on 1080 Tis.
|
| 51 |
+
blocker_a_cells:
|
| 52 |
+
sarvam_dev: { model: sarvam1, text_column: devanagari, physical_gpu: 3 }
|
| 53 |
+
sarvam_rom: { model: sarvam1, text_column: itrans_roman, physical_gpu: 3 }
|
| 54 |
+
llama_dev: { model: llama32, text_column: devanagari, physical_gpu: 0 }
|
| 55 |
+
llama_rom: { model: llama32, text_column: itrans_roman, physical_gpu: 1 }
|
| 56 |
+
|
| 57 |
+
blocker_b:
|
| 58 |
+
model: byt5large
|
| 59 |
+
text_column: devanagari
|
| 60 |
+
physical_gpu: 2
|
configs/phase3.yaml
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Phase 3: MTP head training and measurement.
|
| 2 |
+
#
|
| 3 |
+
# Single backbone (Llama-3.2-1B) for every condition. Phase 2b measured the
|
| 4 |
+
# model-identity effect on D_indep at +0.851 (k=3, 10.9 sigma) against a
|
| 5 |
+
# script effect of -0.041, so a multi-backbone ladder would confound the
|
| 6 |
+
# primary comparison; one backbone removes that term entirely.
|
| 7 |
+
#
|
| 8 |
+
# L2 vs L4 is the controlled pair: same language, same source documents,
|
| 9 |
+
# same model, near-identical fertility (2.94 vs 2.93), differing only in
|
| 10 |
+
# script. E1 supplies the differing-fertility point (~1.50).
|
| 11 |
+
#
|
| 12 |
+
# L3 (natural romanization) is deliberately absent. Human-written
|
| 13 |
+
# romanization exists only in Dakshina's 9,907 sentences (~0.38M tokens),
|
| 14 |
+
# an order of magnitude under the training budget, and machine
|
| 15 |
+
# romanization is not a substitute: H3 is specifically about human
|
| 16 |
+
# orthographic variation, so a synthetic stand-in would not test it.
|
| 17 |
+
|
| 18 |
+
seed: 0
|
| 19 |
+
|
| 20 |
+
backbone:
|
| 21 |
+
hf_id: meta-llama/Llama-3.2-1B
|
| 22 |
+
hidden_size: 2048
|
| 23 |
+
|
| 24 |
+
# The trunk is what makes D measurable. With a frozen backbone and
|
| 25 |
+
# independent per-head ResBlocks, head 1's loss is the only term containing
|
| 26 |
+
# head 1's parameters, so its gradients are bit-identical to a standalone
|
| 27 |
+
# next-token head's and D is exactly zero however long training runs. A
|
| 28 |
+
# trainable shared trunk is the "shared trunk with k parallel heads" the
|
| 29 |
+
# multi-token-prediction setting actually describes; the k objectives
|
| 30 |
+
# compete for its capacity, which is the cost D is meant to detect.
|
| 31 |
+
use_shared_trunk: true
|
| 32 |
+
n_heads: 4
|
| 33 |
+
|
| 34 |
+
learning_rate: 0.0001
|
| 35 |
+
batch_size: 2
|
| 36 |
+
seq_len: 512
|
| 37 |
+
|
| 38 |
+
# Set from a measured calibration run rather than assumed; see
|
| 39 |
+
# docs/experiment-log.md for the throughput number behind it.
|
| 40 |
+
target_train_tokens: 10_000_000
|
| 41 |
+
|
| 42 |
+
data_dir: /data/cs769_mtp/scratch/data/phase3
|
| 43 |
+
checkpoint_dir: /data/cs769_mtp/scratch/checkpoints/phase3
|
| 44 |
+
run_log_dir: /data/cs769_mtp/scratch/logs/phase3
|
| 45 |
+
|
| 46 |
+
heldout_docs: 512
|
| 47 |
+
eval_max_tokens_per_doc: 512
|
| 48 |
+
|
| 49 |
+
# BPB and per-head accuracy use all 512 held-out documents. Speculative
|
| 50 |
+
# decoding uses a subset with shorter completions: the draft/verify loop
|
| 51 |
+
# here carries no KV cache, so every round re-encodes the whole growing
|
| 52 |
+
# sequence, measured at 15.2 s/document at 128 completion tokens -- 130
|
| 53 |
+
# minutes per condition against roughly 3 hours of training. Acceptance and
|
| 54 |
+
# boundary completion are per-round statistics, and 256 documents x ~32
|
| 55 |
+
# rounds still yields several thousand rounds per condition, so the
|
| 56 |
+
# reduction costs precision that the metric does not need rather than
|
| 57 |
+
# changing what is measured.
|
| 58 |
+
spec_docs: 256
|
| 59 |
+
spec_prompt_tokens: 256
|
| 60 |
+
spec_completion_tokens: 64
|
| 61 |
+
|
| 62 |
+
sangraha_jsonl: /data/cs769_mtp/scratch/data/hindi_corpus/sangraha_hin_50M.jsonl
|
| 63 |
+
|
| 64 |
+
conditions:
|
| 65 |
+
L4: { source: sangraha, transform: none, physical_gpu: 0 }
|
| 66 |
+
L2: { source: sangraha, transform: itrans_romanize, physical_gpu: 1 }
|
| 67 |
+
E1: { source: english, transform: none, physical_gpu: 2 }
|
| 68 |
+
|
| 69 |
+
# Zero-training D_indep from Phase 2 (n=100) and Phase 2b (n=2000, Llama
|
| 70 |
+
# cells only), carried here so Phase 3 can compare trained D against the
|
| 71 |
+
# proxy without re-reading those CSVs at analysis time.
|
| 72 |
+
d_indep_reference:
|
| 73 |
+
L4: { d_indep_k2: 2.877, d_indep_k3: 8.665, source: phase2b_n2000 }
|
| 74 |
+
L2: { d_indep_k2: 2.614, d_indep_k3: 8.925, source: phase2b_n2000 }
|
| 75 |
+
E1: { d_indep_k2: 2.845, d_indep_k3: 10.813, source: phase2_n100 }
|
configs/phase4_fertility.yaml
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Phase 4: within-model fertility sweep.
|
| 2 |
+
#
|
| 3 |
+
# Phase 3's same-model pair could not test whether the MTP cost follows
|
| 4 |
+
# tokens-per-word: under Llama-3.2, Devanagari and ITRANS cost almost the
|
| 5 |
+
# same number of pieces per word (3.05 vs 3.06, n=2000 paired sentences).
|
| 6 |
+
# IAST and ISO 15919 write the same Hindi with diacritics, which Llama's
|
| 7 |
+
# vocabulary covers less well. Same model, same language, same source
|
| 8 |
+
# documents and held-out split, same token budget -- only the spelling
|
| 9 |
+
# system, and with it tokens-per-word, changes.
|
| 10 |
+
#
|
| 11 |
+
# Every training and evaluation setting below is copied from
|
| 12 |
+
# configs/phase3.yaml so the new points sit on the same axis as the
|
| 13 |
+
# existing Devanagari and ITRANS runs.
|
| 14 |
+
|
| 15 |
+
seed: 0
|
| 16 |
+
|
| 17 |
+
backbone:
|
| 18 |
+
hf_id: meta-llama/Llama-3.2-1B
|
| 19 |
+
hidden_size: 2048
|
| 20 |
+
|
| 21 |
+
use_shared_trunk: true
|
| 22 |
+
n_heads: 4
|
| 23 |
+
|
| 24 |
+
learning_rate: 0.0001
|
| 25 |
+
batch_size: 2
|
| 26 |
+
seq_len: 512
|
| 27 |
+
target_train_tokens: 10_000_000
|
| 28 |
+
|
| 29 |
+
data_dir: /data/cs769_mtp/scratch/data/phase4_fertility
|
| 30 |
+
checkpoint_dir: /data/cs769_mtp/scratch/checkpoints/phase4_fertility
|
| 31 |
+
run_log_dir: /data/cs769_mtp/scratch/logs/phase4_fertility
|
| 32 |
+
run_out_dir: /data/cs769_mtp/scratch/runs/phase4_fertility
|
| 33 |
+
|
| 34 |
+
heldout_docs: 512
|
| 35 |
+
eval_max_tokens_per_doc: 512
|
| 36 |
+
|
| 37 |
+
# Acceptance is measured with the corrected decoder
|
| 38 |
+
# (scripts/phase4_speculative_eval.py), never src.train.evaluate.speculative_decode,
|
| 39 |
+
# whose all-accepted rounds commit an unverified duplicate token.
|
| 40 |
+
spec_docs: 256
|
| 41 |
+
spec_prompt_tokens: 256
|
| 42 |
+
spec_completion_tokens: 64
|
| 43 |
+
|
| 44 |
+
sangraha_jsonl: /data/cs769_mtp/scratch/data/hindi_corpus/sangraha_hin_50M.jsonl
|
| 45 |
+
|
| 46 |
+
# Reversibility gate, identical to Phase 1's: >= 99% exact round trip on
|
| 47 |
+
# the same 1,000-sentence Dakshina sample, after normalize_for_comparison.
|
| 48 |
+
# A second sample of 1,000 sentences from the held-out sangraha documents
|
| 49 |
+
# checks the text the models actually train on.
|
| 50 |
+
reversibility_min_rate: 0.99
|
| 51 |
+
reversibility_sample_size: 1000
|
| 52 |
+
dakshina_root: /data/cs769_mtp/scratch/data/dakshina/dakshina_dataset_v1.0/hi
|
| 53 |
+
|
| 54 |
+
# Paired sentences for tokens-per-word, as in Phase 2b blocker A.
|
| 55 |
+
fertility_triples_csv: results/phase1_fertility_triples.csv
|
| 56 |
+
fertility_sentences: 2000
|
| 57 |
+
|
| 58 |
+
conditions:
|
| 59 |
+
IAST: { scheme: IAST, physical_gpu: 0 }
|
| 60 |
+
ISO: { scheme: ISO, physical_gpu: 1 }
|
| 61 |
+
|
| 62 |
+
# Existing same-model points, re-scored with the corrected decoder after
|
| 63 |
+
# the new runs finish so all four scripts share one acceptance protocol.
|
| 64 |
+
existing:
|
| 65 |
+
Devanagari:
|
| 66 |
+
heldout: /data/cs769_mtp/scratch/data/phase3/L4_heldout.jsonl
|
| 67 |
+
checkpoints:
|
| 68 |
+
seed0: /data/cs769_mtp/scratch/checkpoints/phase3/L4_seed0/mtp.pt
|
| 69 |
+
ITRANS:
|
| 70 |
+
heldout: /data/cs769_mtp/scratch/data/phase3/L2_heldout.jsonl
|
| 71 |
+
checkpoints:
|
| 72 |
+
seed0: /data/cs769_mtp/scratch/checkpoints/phase3/L2_seed0/mtp.pt
|
docs/REPORT.md
ADDED
|
@@ -0,0 +1,888 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Multi-Token Prediction and Tokenizer Fertility: Stage 1 Report
|
| 2 |
+
|
| 3 |
+
This report explains, from scratch, what this project asked, what was built,
|
| 4 |
+
what was measured, and what the numbers mean. It assumes no prior knowledge of
|
| 5 |
+
the project. Every number reported here comes from a CSV in `results/`; the
|
| 6 |
+
file is named next to each table.
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
## 1. The basics
|
| 11 |
+
|
| 12 |
+
### 1.1 Tokens and tokenizers
|
| 13 |
+
|
| 14 |
+
A language model does not read text as letters. It reads *tokens*: chunks of
|
| 15 |
+
text from a fixed vocabulary the model was built with. A tokenizer is the
|
| 16 |
+
component that cuts text into those chunks.
|
| 17 |
+
|
| 18 |
+
Different tokenizers cut differently. The English word `cat` is usually one
|
| 19 |
+
token. The Hindi word `नमस्ते` might be five. Nothing is wrong in either case;
|
| 20 |
+
the tokenizer's vocabulary simply covers some text better than other text.
|
| 21 |
+
|
| 22 |
+
### 1.2 Fertility
|
| 23 |
+
|
| 24 |
+
**Fertility** = the average number of tokens it takes to write one word.
|
| 25 |
+
|
| 26 |
+
- Low fertility (~1.3): most words are a single token. Typical for English
|
| 27 |
+
under an English-centric tokenizer.
|
| 28 |
+
- High fertility (~5, or ~15): each word is chopped into many pieces.
|
| 29 |
+
Typical for scripts the tokenizer's vocabulary does not cover well, and for
|
| 30 |
+
byte-level tokenizers, which use one token per raw byte of text.
|
| 31 |
+
|
| 32 |
+
Fertility is a property of the *pairing* of a text and a tokenizer, not of the
|
| 33 |
+
text alone. The same Hindi sentence has different fertility under different
|
| 34 |
+
tokenizers.
|
| 35 |
+
|
| 36 |
+
### 1.3 Next-token prediction (NTP)
|
| 37 |
+
|
| 38 |
+
The standard way a language model is trained: given all the text so far,
|
| 39 |
+
predict the next token. One prediction per step.
|
| 40 |
+
|
| 41 |
+
### 1.4 Multi-token prediction (MTP)
|
| 42 |
+
|
| 43 |
+
Instead of predicting only the next token, the model has several output
|
| 44 |
+
"heads". Head 1 predicts the next token (t+1), head 2 predicts the one after
|
| 45 |
+
(t+2), head 3 predicts t+3, and so on.
|
| 46 |
+
|
| 47 |
+
Why do this: if the extra heads are usually right, you can accept several
|
| 48 |
+
tokens per forward pass instead of one, which makes generation faster. This is
|
| 49 |
+
the basis of *speculative decoding*.
|
| 50 |
+
|
| 51 |
+
The catch: each head makes its own separate guess. The model learns several
|
| 52 |
+
independent predictions, not one joint prediction of the whole span. Real text
|
| 53 |
+
is not independent — what token t+2 is depends heavily on what token t+1 turned
|
| 54 |
+
out to be. Independent heads cannot represent that dependence.
|
| 55 |
+
|
| 56 |
+
### 1.5 The puzzle this project is about
|
| 57 |
+
|
| 58 |
+
Published work found:
|
| 59 |
+
|
| 60 |
+
- Gloeckle et al. (ICML 2024): MTP helps most when predicting raw **bytes**.
|
| 61 |
+
They guessed subword tokens already carry more meaning per token, making
|
| 62 |
+
independent prediction of several of them harder. They did not test that
|
| 63 |
+
guess.
|
| 64 |
+
- Aynetdinov & Akbik (ACL 2025): at 1.3B and 3B parameters, subword MTP is
|
| 65 |
+
**worse** than plain next-token prediction (1.19 vs 1.08 bits-per-byte).
|
| 66 |
+
Byte-level MTP is better.
|
| 67 |
+
- All of this work is English-only.
|
| 68 |
+
|
| 69 |
+
So MTP helps at byte level and hurts at subword level. Two possible reasons:
|
| 70 |
+
|
| 71 |
+
1. **Fertility.** Subword tokens are bigger, denser chunks. Guessing several
|
| 72 |
+
of them independently is a worse approximation than guessing several bytes.
|
| 73 |
+
2. **Morphological complexity.** Maybe it is not chunk size but grammar
|
| 74 |
+
density — how much grammatical information (tense, case, agreement) is
|
| 75 |
+
packed into each token.
|
| 76 |
+
|
| 77 |
+
**The question this project asks: which one is it?**
|
| 78 |
+
|
| 79 |
+
### 1.6 Why this is hard to answer, and the trick used
|
| 80 |
+
|
| 81 |
+
You cannot answer it by comparing two languages. Switching from English to
|
| 82 |
+
Hindi changes fertility *and* morphology at the same time. When both move
|
| 83 |
+
together you cannot tell which caused the effect. That is a confound.
|
| 84 |
+
|
| 85 |
+
The trick: **romanization**. Write the same Hindi sentence in Roman letters
|
| 86 |
+
instead of Devanagari script. Same words, same grammar, same meaning — only
|
| 87 |
+
the spelling system changed. But a Llama-style tokenizer, whose vocabulary is
|
| 88 |
+
mostly Latin text, cuts Roman-script Hindi into fewer pieces than Devanagari.
|
| 89 |
+
|
| 90 |
+
So fertility changes while morphology stays fixed. That is the one thing
|
| 91 |
+
comparing two different languages can never give you.
|
| 92 |
+
|
| 93 |
+
### 1.7 The conditions ("the fertility ladder")
|
| 94 |
+
|
| 95 |
+
Same Hindi content, different tokenization setups:
|
| 96 |
+
|
| 97 |
+
| Label | Text | Tokenizer |
|
| 98 |
+
|---|---|---|
|
| 99 |
+
| L1 | Devanagari | Sarvam-1 |
|
| 100 |
+
| L2 | ITRANS Roman (machine romanization) | Llama-3.2 |
|
| 101 |
+
| L3 | Natural Roman (human romanization) | Llama-3.2 |
|
| 102 |
+
| L4 | Devanagari | Llama-3.2 |
|
| 103 |
+
| L5 | Devanagari | byte-level |
|
| 104 |
+
| E1 | English (control) | Llama-3.2 |
|
| 105 |
+
| E2 | English (control) | byte-level |
|
| 106 |
+
|
| 107 |
+
L2 vs L3 was intended as the key pair: same fertility, but human romanization
|
| 108 |
+
is inconsistent (the same word gets spelled `kiya`, `kiyaa`, `kia`), so it is
|
| 109 |
+
more ambiguous. If L3 is worse than L2 at equal fertility, fertility alone
|
| 110 |
+
does not explain the difficulty.
|
| 111 |
+
|
| 112 |
+
### 1.8 The hypotheses
|
| 113 |
+
|
| 114 |
+
- **H1 (Dissociation).** Plot `D = BPB(MTP) − BPB(NTP)` against fertility for
|
| 115 |
+
all conditions. One curve fitting both languages means fertility is the
|
| 116 |
+
mechanism. Hindi sitting off the English curve means morphology contributes
|
| 117 |
+
separately.
|
| 118 |
+
- **H2 (Script-switch).** In code-mixed text, acceptance should dip *before* a
|
| 119 |
+
script switch, because a fixed prediction horizon straddles two regimes it
|
| 120 |
+
cannot see coming.
|
| 121 |
+
- **H3 (Ambiguity).** L3 shows higher D and lower acceptance than L2 at
|
| 122 |
+
matched fertility.
|
| 123 |
+
|
| 124 |
+
### 1.9 Two measurements to know
|
| 125 |
+
|
| 126 |
+
**BPB (bits per byte).** How many bits the model needs, on average, to encode
|
| 127 |
+
one *byte* of the original text. Per-byte, not per-token, because different
|
| 128 |
+
tokenizers produce different token counts for the same text — comparing
|
| 129 |
+
per-token loss across tokenizers is not a fair comparison, but per-byte always
|
| 130 |
+
is.
|
| 131 |
+
|
| 132 |
+
`D = BPB(MTP) − BPB(NTP)` is therefore "how much worse does the model get at
|
| 133 |
+
predicting the next token when you also ask it to predict t+2, t+3, t+4?"
|
| 134 |
+
Positive D = MTP costs something.
|
| 135 |
+
|
| 136 |
+
**D_indep.** A cheaper measurement that needs no training. It asks: how far
|
| 137 |
+
is the true joint probability of a span of k tokens from the product of the
|
| 138 |
+
individual independent probabilities? Formally a KL divergence. Large D_indep
|
| 139 |
+
= lots of joint structure that independent heads must throw away. It is a
|
| 140 |
+
*proxy*: it predicts where MTP should hurt, without paying to train anything.
|
| 141 |
+
|
| 142 |
+
---
|
| 143 |
+
|
| 144 |
+
## 2. Hardware and why it constrained everything
|
| 145 |
+
|
| 146 |
+
Four Pascal-generation NVIDIA GPUs:
|
| 147 |
+
|
| 148 |
+
| GPU | Model | Memory |
|
| 149 |
+
|---|---|---|
|
| 150 |
+
| 0, 1, 2 | GTX 1080 Ti | 11 GB each |
|
| 151 |
+
| 3 | Quadro P6000 | 24 GB |
|
| 152 |
+
|
| 153 |
+
Driver 580.178.04. Pascal is old (2016-era), and that ruled several things out:
|
| 154 |
+
|
| 155 |
+
- **No tensor cores.** Those arrived with Volta. So the fp16 speedups modern
|
| 156 |
+
code assumes do not apply. Everything runs in fp32.
|
| 157 |
+
- **No bf16.** Needs Ampere.
|
| 158 |
+
- **No FlashAttention.** FlashAttention-2 needs Ampere, FlashAttention-1 needs
|
| 159 |
+
Turing. Attention goes through
|
| 160 |
+
`torch.nn.functional.scaled_dot_product_attention` instead, which picks a
|
| 161 |
+
memory-efficient or plain-math backend.
|
| 162 |
+
|
| 163 |
+
### 2.1 Measured hardware behaviour
|
| 164 |
+
|
| 165 |
+
fp32 matrix multiply, 4096×4096, 20 warmup + 100 timed iterations:
|
| 166 |
+
|
| 167 |
+
| GPU | fp32 throughput |
|
| 168 |
+
|---|---|
|
| 169 |
+
| 0 (1080 Ti) | 8.40 TFLOP/s |
|
| 170 |
+
| 1 (1080 Ti) | 9.86 TFLOP/s |
|
| 171 |
+
| 2 (1080 Ti) | 9.78 TFLOP/s |
|
| 172 |
+
| 3 (P6000) | 9.53 TFLOP/s |
|
| 173 |
+
|
| 174 |
+
Running all four at once: 9.61 / 9.35 / 8.76 / 9.23 TFLOP/s — no meaningful
|
| 175 |
+
slowdown, so four independent single-GPU jobs work fine.
|
| 176 |
+
|
| 177 |
+
**A result that contradicted the expectation.** The project brief predicted
|
| 178 |
+
fp16 would be about 64× slower than fp32 on this hardware. Measured on GPU 0:
|
| 179 |
+
fp16 8.11 TFLOP/s vs fp32 8.40 TFLOP/s — essentially the same, not 64× slower.
|
| 180 |
+
The likely reason is that cuBLAS routes fp16 matrix multiplies through an
|
| 181 |
+
fp32-accumulate path, avoiding the crippled native fp16 arithmetic that only
|
| 182 |
+
shows up in raw instruction-level benchmarks. The practical conclusion did not
|
| 183 |
+
change (fp32 stays the default, since fp16 buys nothing here and costs
|
| 184 |
+
precision), but the stated reason for it was wrong.
|
| 185 |
+
|
| 186 |
+
### 2.2 A trap worth knowing about
|
| 187 |
+
|
| 188 |
+
`torch.cuda.get_arch_list()` does **not** contain `sm_61` (the Pascal
|
| 189 |
+
architecture code) in the torch build used here. It lists
|
| 190 |
+
`sm_50, sm_60, sm_70, sm_75, sm_80, sm_86, sm_90`.
|
| 191 |
+
|
| 192 |
+
Despite that, every GPU reports capability `(6, 1)` and real kernels run
|
| 193 |
+
correctly. The mechanism: the wheel ships PTX (portable intermediate code) for
|
| 194 |
+
`sm_60`, and the driver recompiles it for the actual `sm_61` device on first
|
| 195 |
+
use. Consequence: the first use of any new kernel shape pays a one-time
|
| 196 |
+
compile cost, cached afterwards.
|
| 197 |
+
|
| 198 |
+
**Decision taken:** proceed on cu121 with PTX JIT rather than downgrade torch,
|
| 199 |
+
after confirming empirically that real matmuls produce correct results on all
|
| 200 |
+
four cards.
|
| 201 |
+
|
| 202 |
+
### 2.3 A second trap
|
| 203 |
+
|
| 204 |
+
By default PyTorch orders GPUs fastest-first, so `torch.cuda:0` was the
|
| 205 |
+
**P6000**, not GPU 0 from `nvidia-smi`. Any code pinning GPUs by index would
|
| 206 |
+
have silently used the wrong card.
|
| 207 |
+
|
| 208 |
+
**Decision taken:** set `CUDA_DEVICE_ORDER=PCI_BUS_ID` before importing torch
|
| 209 |
+
in every script, so torch's numbering matches `nvidia-smi`'s.
|
| 210 |
+
|
| 211 |
+
### 2.4 Baseline throughput
|
| 212 |
+
|
| 213 |
+
Llama-3.2-1B, fp32, GPU 0:
|
| 214 |
+
|
| 215 |
+
- Forward pass: 4769.1 MiB peak memory, 28.1–28.5 ms/iteration
|
| 216 |
+
- Training step (frozen backbone + one MTP head, batch 4 × seq 512):
|
| 217 |
+
**~2500 tokens/sec**, ~818 ms/step
|
| 218 |
+
|
| 219 |
+
This was faster than the brief's planning assumption of ~3 TFLOP/s per card.
|
| 220 |
+
|
| 221 |
+
---
|
| 222 |
+
|
| 223 |
+
## 3. Phase 1 — building the data
|
| 224 |
+
|
| 225 |
+
### 3.1 Sources
|
| 226 |
+
|
| 227 |
+
- **Hindi corpus:** `ai4bharat/sangraha`, verified Hindi split. Streamed and
|
| 228 |
+
subsampled rather than downloaded whole.
|
| 229 |
+
- **Parallel romanization:** the Dakshina dataset — 10,000 Hindi sentences
|
| 230 |
+
that have both a Devanagari original and a human-written Roman version, plus
|
| 231 |
+
a lexicon of words with their attested romanizations.
|
| 232 |
+
- **English control:** `wikimedia/wikipedia`, English.
|
| 233 |
+
|
| 234 |
+
**Problem found:** Dakshina is not on the Hugging Face Hub despite having a
|
| 235 |
+
Hub-style name (`google-research-datasets/dakshina`). It is only distributed
|
| 236 |
+
as a ~2 GB tar from a Google Cloud Storage bucket linked in its GitHub README.
|
| 237 |
+
|
| 238 |
+
**Decision taken:** download the tar directly, extract only the Hindi
|
| 239 |
+
subdirectory (276 MB), delete the rest.
|
| 240 |
+
|
| 241 |
+
### 3.2 Corpus built
|
| 242 |
+
|
| 243 |
+
Streamed sangraha verified Hindi:
|
| 244 |
+
|
| 245 |
+
| | |
|
| 246 |
+
|---|---|
|
| 247 |
+
| Documents seen | 119,542 |
|
| 248 |
+
| Documents kept | 117,517 |
|
| 249 |
+
| Duplicates dropped | 2,019 |
|
| 250 |
+
| Too short, dropped | 6 |
|
| 251 |
+
| Tokens | 50,000,203 |
|
| 252 |
+
|
| 253 |
+
Took ~35 seconds. (An earlier small-sample extrapolation had predicted ~60
|
| 254 |
+
minutes; that estimate was dominated by connection startup, not real
|
| 255 |
+
throughput. Small-sample extrapolations were treated with more caution
|
| 256 |
+
afterwards.)
|
| 257 |
+
|
| 258 |
+
### 3.3 The romanization problem — the first real blocker
|
| 259 |
+
|
| 260 |
+
The whole L2 condition rests on the claim that ITRANS romanization is
|
| 261 |
+
*reversible*: romanize a sentence, un-romanize it, and get the exact original
|
| 262 |
+
back. If it is not reversible, information was lost, and L2 is no longer "same
|
| 263 |
+
content, different fertility" — the confound the design exists to remove comes
|
| 264 |
+
back in through the side door.
|
| 265 |
+
|
| 266 |
+
The brief set the bar at **99%** exact round-trip on 1000 random sentences.
|
| 267 |
+
|
| 268 |
+
**Result with `indic-nlp-library` (the tool the brief specified): 65.9%.**
|
| 269 |
+
Far below the bar. The pipeline stopped there, as instructed.
|
| 270 |
+
|
| 271 |
+
Diagnosis of the failures:
|
| 272 |
+
|
| 273 |
+
| Check | Rate |
|
| 274 |
+
|---|---|
|
| 275 |
+
| Exact match | 0.659 |
|
| 276 |
+
| After ignoring nukta marks, digit script (18 vs १८), and end punctuation (. vs ।) | 0.778 |
|
| 277 |
+
|
| 278 |
+
So even ignoring everything cosmetic, ~22% failed for structural reasons:
|
| 279 |
+
|
| 280 |
+
- **Nukta loss.** `बाज़ार` → `baajaaara` → `बाजाअर`. The nukta (a dot marking
|
| 281 |
+
sounds borrowed from Persian/Arabic) disappears. Common in real Hindi.
|
| 282 |
+
- **Vowel ambiguity.** `गई` comes back as `गैइ`. The library's own source
|
| 283 |
+
comments acknowledge this ambiguity class and do not resolve it.
|
| 284 |
+
- **String collisions.** `ld` is registered both as an alternate spelling of
|
| 285 |
+
the letter `ळ` and as the literal transliteration of `ल्द्`. So `हल्द्वानी`
|
| 286 |
+
comes back as `हळ्वानी` — the un-romanizer cannot tell which was meant.
|
| 287 |
+
|
| 288 |
+
An earlier, separate discovery: `indic-nlp-library`'s pip package ships
|
| 289 |
+
**without its own data files**. Calling the transliterator without first
|
| 290 |
+
downloading a companion repository and running a specific init sequence does
|
| 291 |
+
not raise an error — it silently returns corrupted output (`नमस्ते` → `नमे`).
|
| 292 |
+
That is a silent-failure mode, not a loud one.
|
| 293 |
+
|
| 294 |
+
### 3.4 The fix
|
| 295 |
+
|
| 296 |
+
Rather than accept a lossy L2, the fix had three parts:
|
| 297 |
+
|
| 298 |
+
1. **Switched to `aksharamukha`** instead of `indic-nlp-library`. This alone
|
| 299 |
+
took the rate from 65.9% to 77.6%.
|
| 300 |
+
2. **Principled normalization before comparison.** Some differences are
|
| 301 |
+
genuinely the same content written differently, and treating them as
|
| 302 |
+
failures is wrong:
|
| 303 |
+
- Unicode NFC normalization (a nukta character can be stored as one
|
| 304 |
+
codepoint or as base + combining mark; these are canonically identical)
|
| 305 |
+
- Digit script (the corpus uses both `18` and `१८` for the same number)
|
| 306 |
+
- Sentence-final punctuation (`.`, `।`, `॥`, and a bare `|` all appear as
|
| 307 |
+
sentence enders in this corpus)
|
| 308 |
+
- Zero-width joiners (affect rendering, not content)
|
| 309 |
+
|
| 310 |
+
This took it to 95.2%.
|
| 311 |
+
3. **Latin-span masking.** The remaining failures were dominated by embedded
|
| 312 |
+
English words and acronyms (`Amex`, `UAVs`, `Shell`) common in
|
| 313 |
+
Wikipedia-derived Hindi, which the transliterator tried to convert
|
| 314 |
+
phonetically and mangled. Detecting Latin runs and routing them around the
|
| 315 |
+
transliterator fixed this.
|
| 316 |
+
|
| 317 |
+
**Final: 99.0% (990/1000).** Bar cleared.
|
| 318 |
+
|
| 319 |
+
Applied to the full pool: 9,908 unique sentences (92 were exact duplicates),
|
| 320 |
+
**9,815 pass**, producing 9,907 verified triples.
|
| 321 |
+
|
| 322 |
+
### 3.5 A design limitation this exposed
|
| 323 |
+
|
| 324 |
+
The public `romanize()` / `deromanize()` functions cannot round-trip embedded
|
| 325 |
+
Latin text on their own. Going Devanagari→Roman, a Latin run is unmistakably
|
| 326 |
+
foreign and can be left alone. Coming back, ITRANS output is *itself* Latin
|
| 327 |
+
letters, so there is no way to distinguish "transliterated Hindi" from "an
|
| 328 |
+
English word that was left alone". The reversibility checker uses an internal
|
| 329 |
+
marker-tagged variant; the public functions keep this documented as a known
|
| 330 |
+
limitation rather than hidden.
|
| 331 |
+
|
| 332 |
+
### 3.6 Romanization ambiguity (H3's mechanism)
|
| 333 |
+
|
| 334 |
+
From the Dakshina lexicon, counting distinct attested romanizations per Hindi
|
| 335 |
+
word:
|
| 336 |
+
|
| 337 |
+
| | |
|
| 338 |
+
|---|---|
|
| 339 |
+
| Distinct word types | 30,000 |
|
| 340 |
+
| Mean romanizations per type | 1.7688 |
|
| 341 |
+
|
| 342 |
+
Histogram: 12,935 types have 1 spelling, 11,967 have 2, 4,376 have 3, 595 have
|
| 343 |
+
4, 92 have 5, and a long thin tail up to 9.
|
| 344 |
+
|
| 345 |
+
*(`results/phase1_romanization_ambiguity.csv`)*
|
| 346 |
+
|
| 347 |
+
---
|
| 348 |
+
|
| 349 |
+
## 4. Phase 2 — measuring without training
|
| 350 |
+
|
| 351 |
+
Three models were used:
|
| 352 |
+
|
| 353 |
+
| Model | Type | Used for |
|
| 354 |
+
|---|---|---|
|
| 355 |
+
| Sarvam-1 (~2B) | causal decoder-only | L1 |
|
| 356 |
+
| Llama-3.2-1B | causal decoder-only | L2, L3, L4, E1 |
|
| 357 |
+
| ByT5-large (1.228B) | encoder-decoder, byte-level | L5, E2 |
|
| 358 |
+
|
| 359 |
+
### 4.1 A gap in the original plan
|
| 360 |
+
|
| 361 |
+
The brief named only Sarvam-1 and Llama-3.2-1B. But L5 and E2 are *byte-level*
|
| 362 |
+
conditions, and neither of those is a byte-level model. Four of the six
|
| 363 |
+
planned measurements need actual model probabilities, so those two conditions
|
| 364 |
+
had nothing to run on.
|
| 365 |
+
|
| 366 |
+
Forcing Llama into byte mode was considered and rejected: it has never seen
|
| 367 |
+
text split into single bytes, so its predictions there would be noise, not a
|
| 368 |
+
measurement of byte-level difficulty.
|
| 369 |
+
|
| 370 |
+
**Decision taken (with sign-off):** source a real byte-level model. EvaByte
|
| 371 |
+
(~6–7B, custom kernels) and MambaByte were rejected as too large for fp32 on
|
| 372 |
+
these GPUs and carrying kernel-compatibility risk. **ByT5-large** was chosen:
|
| 373 |
+
standard Transformer, no custom kernels, 1.228B parameters, multilingual
|
| 374 |
+
pretraining including Hindi.
|
| 375 |
+
|
| 376 |
+
**Problem:** Google ships ByT5 only as a pickle `.bin` checkpoint, which
|
| 377 |
+
current `transformers` refuses to load unless torch ≥ 2.6 (a security guard,
|
| 378 |
+
CVE-2025-32434). Our torch is pinned at 2.5.1 for Pascal support.
|
| 379 |
+
|
| 380 |
+
**Decision taken:** do not touch the torch pin. Convert the checkpoint locally
|
| 381 |
+
with `torch.load(..., weights_only=True)` — which is the actual mitigation for
|
| 382 |
+
that CVE — and re-save as safetensors. This is a standard remediation, not a
|
| 383 |
+
bypass.
|
| 384 |
+
|
| 385 |
+
### 4.2 A caveat that stays with every byte result
|
| 386 |
+
|
| 387 |
+
ByT5 is **encoder-decoder**; the other two models are **decoder-only**. That
|
| 388 |
+
is a genuine architecture difference, not a detail. Any L5/E2 vs L1–L4
|
| 389 |
+
comparison carries it.
|
| 390 |
+
|
| 391 |
+
### 4.3 Fertility (sanity check)
|
| 392 |
+
|
| 393 |
+
| Condition | Expected by brief | Measured (n=100) | Measured on full 9,907 set |
|
| 394 |
+
|---|---|---|---|
|
| 395 |
+
| L1 Devanagari + Sarvam | ~1.5 | 1.737 | 1.608 |
|
| 396 |
+
| L2 ITRANS + Llama | ~2.5 | 3.139 | 2.938 |
|
| 397 |
+
| L3 natural Roman + Llama | ~2.5 | 2.303 | 2.170 |
|
| 398 |
+
| L4 Devanagari + Llama | ~5 | 3.107 | 2.925 |
|
| 399 |
+
| L5 Devanagari + byte | ~15 | 14.742 | 14.340 |
|
| 400 |
+
| E1 English + Llama | ~1.3 | 1.500 | — |
|
| 401 |
+
| E2 English + byte | ~5 | 6.256 | — |
|
| 402 |
+
|
| 403 |
+
**Two mismatches worth flagging.**
|
| 404 |
+
|
| 405 |
+
1. **L4 came in at ~2.9, not ~5.** Llama-3.2's tokenizer (128k vocabulary,
|
| 406 |
+
heavily multilingual) covers Devanagari far better than the estimate
|
| 407 |
+
assumed. This matters: L4 was supposed to be a clearly separated
|
| 408 |
+
high-fertility rung, and instead it sits close to L2.
|
| 409 |
+
2. **L2 and L3 are not fertility-matched.** The brief's design assumed they
|
| 410 |
+
were, with L3 differing only in ambiguity — that is the whole basis of the
|
| 411 |
+
H3 test. Measured, L2 is 2.938 and L3 is 2.170, a 26% gap. Natural
|
| 412 |
+
romanization drops vowels and compresses spelling (`kiya`, `km`, `yah`)
|
| 413 |
+
relative to the more phonetically complete ITRANS (`kiyaa`, `kama`,
|
| 414 |
+
`yaha`), so it is *shorter*, not just more ambiguous. Any L2 vs L3
|
| 415 |
+
difference is therefore entangled with a real fertility gap.
|
| 416 |
+
|
| 417 |
+
### 4.4 Word-boundary alignment
|
| 418 |
+
|
| 419 |
+
Fraction of token boundaries that land on whitespace:
|
| 420 |
+
|
| 421 |
+
| Condition | Alignment |
|
| 422 |
+
|---|---|
|
| 423 |
+
| L1 | 0.637 |
|
| 424 |
+
| L2 | 0.322 |
|
| 425 |
+
| L3 | 0.446 |
|
| 426 |
+
| L4 | 0.326 |
|
| 427 |
+
| L5 | 0.141 |
|
| 428 |
+
| E1 | 0.733 |
|
| 429 |
+
| E2 | 0.316 |
|
| 430 |
+
|
| 431 |
+
Byte conditions are lowest, which is expected: with many tokens per word, the
|
| 432 |
+
within-word boundaries vastly outnumber the real word boundaries.
|
| 433 |
+
|
| 434 |
+
### 4.5 D_indep — the strongest signal in the project
|
| 435 |
+
|
| 436 |
+
KL divergence between the true joint over a span and the product of
|
| 437 |
+
independent marginals. Higher = more joint structure that independent MTP
|
| 438 |
+
heads must discard.
|
| 439 |
+
|
| 440 |
+
| Condition | D_indep k=2 | D_indep k=3 |
|
| 441 |
+
|---|---|---|
|
| 442 |
+
| L1 Devanagari + Sarvam | 2.49 | 10.01 |
|
| 443 |
+
| L2 ITRANS + Llama | 2.60 | 8.89 |
|
| 444 |
+
| L3 natural Roman + Llama | 2.70 | 9.49 |
|
| 445 |
+
| L4 Devanagari + Llama | 2.84 | 8.92 |
|
| 446 |
+
| **L5 Devanagari + byte** | **0.41** | **2.94** |
|
| 447 |
+
| E1 English + Llama | 2.84 | 10.81 |
|
| 448 |
+
| **E2 English + byte** | **0.34** | **1.01** |
|
| 449 |
+
|
| 450 |
+
*(`results/phase2_measurements.csv`, 100 sentences/condition)*
|
| 451 |
+
|
| 452 |
+
**Byte-level spans are far closer to independent than subword spans, in both
|
| 453 |
+
languages.** This is exactly what the published literature would predict:
|
| 454 |
+
there is simply less joint structure for independent heads to lose at byte
|
| 455 |
+
level, so MTP costs less there. This is the clearest and most consistent
|
| 456 |
+
result in the project.
|
| 457 |
+
|
| 458 |
+
### 4.6 Scope decision
|
| 459 |
+
|
| 460 |
+
The entropy and D_indep estimators have no KV-caching — every Monte Carlo
|
| 461 |
+
rollout re-runs the whole prefix from scratch. Measured at ~7 seconds per
|
| 462 |
+
sentence, the full 9,907-sentence pool would have taken many hours per
|
| 463 |
+
condition.
|
| 464 |
+
|
| 465 |
+
**Decision taken:** run **100 sentences per condition**, logged explicitly as
|
| 466 |
+
a proof-of-concept scope reduction, not a publication-grade sample. Fertility
|
| 467 |
+
on the 100-sentence subsample reproduced the full-set numbers closely (L1 1.74
|
| 468 |
+
vs 1.61, L5 14.74 vs 14.34), which is some evidence the subsample is not
|
| 469 |
+
wildly unrepresentative.
|
| 470 |
+
|
| 471 |
+
All seven conditions ran concurrently across all four GPUs in ~33.5 minutes.
|
| 472 |
+
|
| 473 |
+
---
|
| 474 |
+
|
| 475 |
+
## 5. Phase 2b — two things that turned out to be wrong
|
| 476 |
+
|
| 477 |
+
Two findings from Phase 2 did not survive scrutiny. Both were checked before
|
| 478 |
+
committing GPU time to Phase 3, and **both overturned an earlier conclusion.**
|
| 479 |
+
|
| 480 |
+
### 5.1 The L1 anomaly was mostly a model artifact
|
| 481 |
+
|
| 482 |
+
Phase 2 showed L1 with the *lowest* fertility (1.74) but the *highest* D_indep
|
| 483 |
+
(10.01). If fertility drove D_indep, that ordering should not happen. It
|
| 484 |
+
looked like evidence for morphology mattering independently.
|
| 485 |
+
|
| 486 |
+
But L1 was also the only condition running on Sarvam-1. Model identity and
|
| 487 |
+
script were confounded.
|
| 488 |
+
|
| 489 |
+
**Test: a 2×2 factorial**, 2000 sentences per cell, all four cells using the
|
| 490 |
+
same sentences so the comparison is paired:
|
| 491 |
+
|
| 492 |
+
| Cell | Fertility | D_indep k=2 | D_indep k=3 | k=3 std. error |
|
| 493 |
+
|---|---|---|---|---|
|
| 494 |
+
| Sarvam-1 × Devanagari | 1.728 | 2.409 | 9.735 | 0.079 |
|
| 495 |
+
| Sarvam-1 × ITRANS Roman | 3.681 | 2.867 | 9.558 | 0.060 |
|
| 496 |
+
| Llama-3.2-1B × Devanagari | 3.051 | 2.877 | 8.665 | 0.056 |
|
| 497 |
+
| Llama-3.2-1B × ITRANS Roman | 3.065 | 2.614 | 8.925 | 0.062 |
|
| 498 |
+
|
| 499 |
+
*(`results/phase2b_blockers.csv`)*
|
| 500 |
+
|
| 501 |
+
Breaking that down at k=3:
|
| 502 |
+
|
| 503 |
+
- **Model effect (Sarvam − Llama): +0.851**
|
| 504 |
+
- **Script effect (Devanagari − Roman): −0.041**
|
| 505 |
+
- Interaction: +0.437
|
| 506 |
+
|
| 507 |
+
The model effect holds in *both* scripts, as a paired within-sentence
|
| 508 |
+
difference: **+1.059 ± 0.098 (10.9σ)** on Devanagari, **+0.632 ± 0.086
|
| 509 |
+
(7.4σ)** on Roman.
|
| 510 |
+
|
| 511 |
+
**Conclusion: Sarvam-1 simply shows higher D_indep than Llama-3.2-1B whatever
|
| 512 |
+
the script.** The L1 anomaly is mostly a model artifact, not a morphology
|
| 513 |
+
signal. Any comparison across models on this ladder carries a model effect
|
| 514 |
+
about twenty times the size of the script effect.
|
| 515 |
+
|
| 516 |
+
**A second finding from the same table, arguably more important:** within
|
| 517 |
+
either model, **fertility does not move D_indep**. Sarvam's fertility more
|
| 518 |
+
than doubles (1.728 → 3.681) while D_indep *falls slightly* (9.735 → 9.558).
|
| 519 |
+
Llama's fertility is flat (3.051 vs 3.065) and so is D_indep (8.665 vs 8.925).
|
| 520 |
+
|
| 521 |
+
Over the subword fertility range reachable here, D_indep tracks *which model*
|
| 522 |
+
is being used, not how fertile its tokenizer is. **This does not support H1's
|
| 523 |
+
premise.** The one place a large D_indep difference does appear is byte vs
|
| 524 |
+
subword.
|
| 525 |
+
|
| 526 |
+
### 5.2 A bug that invalidated a reported result
|
| 527 |
+
|
| 528 |
+
Phase 2 reported that "entropy trough depth" (mean within-word entropy divided
|
| 529 |
+
by mean at-boundary entropy) failed to separate L1 from L5 (0.790 vs 0.809),
|
| 530 |
+
contrary to the brief's prediction. That was attributed to the ByT5
|
| 531 |
+
architecture mismatch.
|
| 532 |
+
|
| 533 |
+
**That attribution was wrong and the number was invalid.**
|
| 534 |
+
|
| 535 |
+
The bug: the code sampled the **first** N token positions of each sentence.
|
| 536 |
+
Devanagari characters are 3 bytes in UTF-8, so under byte-level tokenization
|
| 537 |
+
the first word boundary sits around byte 11–12 — never inside the first 5
|
| 538 |
+
sampled positions. The byte conditions therefore had zero or near-zero
|
| 539 |
+
boundary samples, and the trough depth was computed from a tiny biased subset.
|
| 540 |
+
|
| 541 |
+
Fixed by sampling positions evenly across the sentence. The old strategy was
|
| 542 |
+
kept selectable so the earlier numbers stay reproducible.
|
| 543 |
+
|
| 544 |
+
Once fixed, the ByT5 driving mode barely matters:
|
| 545 |
+
|
| 546 |
+
| ByT5 driving mode | first positions (buggy) | spread positions (fixed) |
|
| 547 |
+
|---|---|---|
|
| 548 |
+
| mirrored (bidirectional encoder) | 0.752 | 1.129 |
|
| 549 |
+
| causal decoder-only | 2.141 | 1.212 |
|
| 550 |
+
|
| 551 |
+
Corrected trough depths, all seven conditions:
|
| 552 |
+
|
| 553 |
+
| Condition | Phase 2 (buggy) | Corrected |
|
| 554 |
+
|---|---|---|
|
| 555 |
+
| L1 Devanagari + Sarvam | 0.790 | **0.621** |
|
| 556 |
+
| L2 ITRANS + Llama | 0.918 | 0.878 |
|
| 557 |
+
| L3 natural Roman + Llama | 0.832 | 0.782 |
|
| 558 |
+
| L4 Devanagari + Llama | 0.700 | 0.699 |
|
| 559 |
+
| L5 Devanagari + byte | 0.809 | **1.065** |
|
| 560 |
+
| E1 English + Llama | 0.688 | 0.647 |
|
| 561 |
+
| E2 English + byte | 0.911 | 0.873 |
|
| 562 |
+
|
| 563 |
+
**With the bug fixed, the brief's original prediction holds.** L1 (0.621) and
|
| 564 |
+
L5 (1.065) are the two extremes of the Hindi ladder — a clear separation, not
|
| 565 |
+
the near-identical pair originally reported. The earlier "trough depth does
|
| 566 |
+
not separate L1 from L5" claim is **retracted**.
|
| 567 |
+
|
| 568 |
+
Note this bug biased *all seven* conditions, not only the byte ones. The
|
| 569 |
+
`entropy_trough_depth` rows in `results/phase2_measurements.csv` are superseded
|
| 570 |
+
by the corrected rows in `results/phase2b_blockers.csv`.
|
| 571 |
+
|
| 572 |
+
---
|
| 573 |
+
|
| 574 |
+
## 6. Phase 3 — training MTP heads
|
| 575 |
+
|
| 576 |
+
### 6.1 The scope decision
|
| 577 |
+
|
| 578 |
+
The original Phase 3 plan was to train heads for all seven conditions and
|
| 579 |
+
regress D on fertility. Phase 2b's results made that unsound:
|
| 580 |
+
|
| 581 |
+
- The model effect (+0.851) dwarfs the script effect (−0.041), so any
|
| 582 |
+
multi-model ladder confounds the primary comparison.
|
| 583 |
+
- Fertility does not move D_indep within a model anyway.
|
| 584 |
+
|
| 585 |
+
Also, a frozen backbone's embeddings are tied to its own tokenizer's
|
| 586 |
+
vocabulary, so **one frozen backbone cannot serve conditions defined by
|
| 587 |
+
different tokenizers.** L1 needs Sarvam, L2/L3/L4/E1 need Llama, L5/E2 need
|
| 588 |
+
ByT5. The original plan was not implementable as written.
|
| 589 |
+
|
| 590 |
+
**Decision taken: single backbone — Llama-3.2-1B, frozen — and three
|
| 591 |
+
conditions:**
|
| 592 |
+
|
| 593 |
+
- **L4** (Devanagari), from the sangraha corpus
|
| 594 |
+
- **L2** (ITRANS Roman), same corpus, romanized
|
| 595 |
+
- **E1** (English), from Wikipedia
|
| 596 |
+
|
| 597 |
+
This gives zero model confound. **L2 vs L4 is the valuable pair**: same
|
| 598 |
+
language, same content, same model, near-identical fertility (3.05 vs 3.07),
|
| 599 |
+
differing only in script. E1 is the genuinely different-fertility point
|
| 600 |
+
(~1.50).
|
| 601 |
+
|
| 602 |
+
### 6.2 L3 was excluded, and H3 cannot be tested at training scale
|
| 603 |
+
|
| 604 |
+
Human-written romanization exists only in Dakshina's 9,907 sentences —
|
| 605 |
+
**~0.38M tokens**, against a 10M-token training budget. That is an order of
|
| 606 |
+
magnitude short.
|
| 607 |
+
|
| 608 |
+
Machine romanization was explicitly **not** substituted: H3 is specifically
|
| 609 |
+
about *human* orthographic variation, so a machine-generated stand-in would
|
| 610 |
+
look like a test of H3 while testing nothing.
|
| 611 |
+
|
| 612 |
+
**H3 is untestable at training scale with available data.** Reported as a
|
| 613 |
+
limitation, not worked around.
|
| 614 |
+
|
| 615 |
+
### 6.3 The architecture problem — the most important finding
|
| 616 |
+
|
| 617 |
+
The brief specified: frozen backbone, plus `4 × [ResBlock → shared
|
| 618 |
+
unembedding]` heads.
|
| 619 |
+
|
| 620 |
+
Checked before spending GPU hours: with the backbone frozen and each head
|
| 621 |
+
having its own ResBlock, **head 1 shares no trainable parameter with heads
|
| 622 |
+
2–4**. Head 1's parameters appear in exactly one loss term. So training all
|
| 623 |
+
four heads jointly produces bit-identical head-1 weights to training head 1
|
| 624 |
+
alone.
|
| 625 |
+
|
| 626 |
+
Which means **D = BPB(MTP) − BPB(NTP) = 0, by construction.** Not
|
| 627 |
+
approximately zero — exactly zero. The central quantity of the entire phase
|
| 628 |
+
would have been a guaranteed zero, costing ~10 GPU-hours to produce.
|
| 629 |
+
|
| 630 |
+
Verified two ways:
|
| 631 |
+
|
| 632 |
+
1. Analytically: gradient max-absolute-difference between the two setups is
|
| 633 |
+
`0.0`.
|
| 634 |
+
2. By a full ablation run: `BPB(MTP) = 0.491096`, `BPB(NTP) = 0.491096`,
|
| 635 |
+
`D = 0.000000` — identical to six decimal places after 900 steps.
|
| 636 |
+
|
| 637 |
+
**Decision taken:** the brief's own description of MTP is "trains a **shared
|
| 638 |
+
trunk** with k parallel heads". With the backbone frozen, the only possible
|
| 639 |
+
shared trunk is a trainable adapter. So the architecture became:
|
| 640 |
+
|
| 641 |
+
```
|
| 642 |
+
frozen backbone → trainable shared trunk → 4 per-head ResBlocks → shared frozen unembedding
|
| 643 |
+
```
|
| 644 |
+
|
| 645 |
+
The NTP control gets its own trunk and head, at matched per-path capacity, so
|
| 646 |
+
the comparison is fair. Tests assert there is no shared trainable tensor
|
| 647 |
+
between the MTP and NTP paths. The degenerate no-trunk case remains
|
| 648 |
+
reproducible via `--no-shared-trunk`.
|
| 649 |
+
|
| 650 |
+
This is a deviation from the literal brief, and it is reported as such. The
|
| 651 |
+
underlying point is a real methodological result: **Medusa-1-style heads on a
|
| 652 |
+
fully frozen backbone cannot exhibit an MTP-vs-NTP tradeoff at all.** Any
|
| 653 |
+
published result using that exact setup and reporting a nonzero MTP cost must
|
| 654 |
+
be getting it from somewhere else.
|
| 655 |
+
|
| 656 |
+
### 6.4 Training setup
|
| 657 |
+
|
| 658 |
+
Measured throughput first, then set the budget:
|
| 659 |
+
|
| 660 |
+
- **~845–860 tokens/sec** with the full 4-head stack
|
| 661 |
+
- 10M tokens per condition, 9,765 steps, ~3.2 hours each
|
| 662 |
+
- Peak GPU memory 7,188.8 MiB (fits an 11 GB card)
|
| 663 |
+
- All conditions trained concurrently, one per GPU
|
| 664 |
+
- Seed 0; L4 repeated with seed 1
|
| 665 |
+
|
| 666 |
+
Efficiency decision: the MTP stack and the NTP baseline train in the **same
|
| 667 |
+
process, sharing one frozen-backbone forward pass**. The backbone is frozen so
|
| 668 |
+
its hidden states are identical for both; computing it once and feeding both
|
| 669 |
+
head sets halves the backbone compute. Separate optimizers, no gradient
|
| 670 |
+
interaction, asserted by test.
|
| 671 |
+
|
| 672 |
+
### 6.5 Training losses (nats)
|
| 673 |
+
|
| 674 |
+
| Condition | NTP | MTP head 1 | head 2 | head 3 | head 4 |
|
| 675 |
+
|---|---|---|---|---|---|
|
| 676 |
+
| L4 | 1.837475 | 1.853037 | 3.714695 | 4.652925 | 5.124338 |
|
| 677 |
+
| L2 | 3.077316 | 3.116774 | 4.960981 | 5.673229 | 5.933773 |
|
| 678 |
+
| E1 | 2.438694 | 2.479032 | 5.504016 | 6.622214 | 7.070031 |
|
| 679 |
+
| L4 no-trunk | 1.854981 | **1.854981** | 4.513780 | 5.380935 | 5.771061 |
|
| 680 |
+
|
| 681 |
+
*(`results/phase3_training.csv`)*
|
| 682 |
+
|
| 683 |
+
Note the last row: with no shared trunk, NTP and MTP head 1 are **identical**.
|
| 684 |
+
With a shared trunk, MTP head 1 is consistently slightly worse than NTP — that
|
| 685 |
+
is the interference D is meant to capture.
|
| 686 |
+
|
| 687 |
+
### 6.6 Main results
|
| 688 |
+
|
| 689 |
+
| Condition | BPB(MTP) | BPB(NTP) | D | D relative | Accepted tokens/forward | Boundary completion |
|
| 690 |
+
|---|---|---|---|---|---|---|
|
| 691 |
+
| L4 Devanagari | 0.486695 | 0.482983 | 0.003712 | 0.77% | 2.655 | 0.299 |
|
| 692 |
+
| L2 ITRANS Roman | 1.782721 | 1.760392 | 0.022329 | 1.27% | 2.359 | 0.301 |
|
| 693 |
+
| E1 English | 0.709532 | 0.694181 | 0.015351 | 2.21% | 2.222 | 0.716 |
|
| 694 |
+
| L4 no-trunk (ablation) | 0.491096 | 0.491096 | **0.000000** | 0.00% | 2.485 | 0.315 |
|
| 695 |
+
|
| 696 |
+
*(`results/phase3_measurements.csv`)*
|
| 697 |
+
|
| 698 |
+
**D is positive in every trained condition.** The MTP cost reported in the
|
| 699 |
+
literature is reproduced here at 1B scale on a frozen backbone.
|
| 700 |
+
|
| 701 |
+
### 6.7 Per-head accuracy
|
| 702 |
+
|
| 703 |
+
Accuracy drops steeply with each head, and is always higher inside a word than
|
| 704 |
+
at a word boundary:
|
| 705 |
+
|
| 706 |
+
**L4 (Devanagari):**
|
| 707 |
+
|
| 708 |
+
| Head | Overall | Within word | At boundary |
|
| 709 |
+
|---|---|---|---|
|
| 710 |
+
| 1 | 0.603 | 0.726 | 0.405 |
|
| 711 |
+
| 2 | 0.340 | 0.399 | 0.246 |
|
| 712 |
+
| 3 | 0.204 | 0.229 | 0.163 |
|
| 713 |
+
| 4 | 0.131 | 0.146 | 0.107 |
|
| 714 |
+
| NTP baseline | 0.606 | — | — |
|
| 715 |
+
|
| 716 |
+
**L2 (ITRANS Roman):**
|
| 717 |
+
|
| 718 |
+
| Head | Overall | Within word | At boundary |
|
| 719 |
+
|---|---|---|---|
|
| 720 |
+
| 1 | 0.428 | 0.578 | 0.179 |
|
| 721 |
+
| 2 | 0.203 | 0.266 | 0.098 |
|
| 722 |
+
| 3 | 0.119 | 0.160 | 0.053 |
|
| 723 |
+
| 4 | 0.088 | 0.122 | 0.031 |
|
| 724 |
+
| NTP baseline | 0.432 | — | — |
|
| 725 |
+
|
| 726 |
+
**E1 (English):**
|
| 727 |
+
|
| 728 |
+
| Head | Overall | Within word | At boundary |
|
| 729 |
+
|---|---|---|---|
|
| 730 |
+
| 1 | 0.512 | 0.705 | 0.447 |
|
| 731 |
+
| 2 | 0.185 | 0.200 | 0.180 |
|
| 732 |
+
| 3 | 0.096 | 0.114 | 0.090 |
|
| 733 |
+
| 4 | 0.066 | 0.083 | 0.060 |
|
| 734 |
+
| NTP baseline | 0.520 | — | — |
|
| 735 |
+
|
| 736 |
+
Word boundaries are consistently the hard positions, in every condition and at
|
| 737 |
+
every horizon.
|
| 738 |
+
|
| 739 |
+
### 6.8 Does the cheap proxy predict the expensive result?
|
| 740 |
+
|
| 741 |
+
This was Phase 3's actual payload: D_indep needs no training, D needs hours of
|
| 742 |
+
GPU time. If D_indep predicts D, the field gets a cheap substitute.
|
| 743 |
+
|
| 744 |
+
| Condition | D_indep k=3 (proxy) | D absolute | D relative |
|
| 745 |
+
|---|---|---|---|
|
| 746 |
+
| L4 | 8.665 | 0.003712 | 0.77% |
|
| 747 |
+
| L2 | 8.925 | 0.022329 | 1.27% |
|
| 748 |
+
| E1 | 10.813 | 0.015351 | 2.21% |
|
| 749 |
+
|
| 750 |
+
Orderings:
|
| 751 |
+
|
| 752 |
+
- By D_indep: **L4 < L2 < E1**
|
| 753 |
+
- By absolute D: **L4 < E1 < L2** — **disagrees**
|
| 754 |
+
- By relative D: **L4 < L2 < E1** — **agrees**
|
| 755 |
+
|
| 756 |
+
**This is inconclusive, and should not be reported as a success.** With three
|
| 757 |
+
conditions there is a 1-in-6 chance of matching the ordering by luck. One of
|
| 758 |
+
the two ways of measuring D agrees and the other does not.
|
| 759 |
+
|
| 760 |
+
A measurement subtlety explains part of the disagreement: **absolute BPB is
|
| 761 |
+
not comparable across L2 and L4.** They hold identical content, but Devanagari
|
| 762 |
+
is 3 UTF-8 bytes per character against 1 for Roman, so BPB differs about
|
| 763 |
+
fourfold on encoding density alone. Relative D divides that out, which is why
|
| 764 |
+
the relative ordering behaves differently.
|
| 765 |
+
|
| 766 |
+
### 6.9 Seed variability bounds how finely D can be read
|
| 767 |
+
|
| 768 |
+
L4 was trained twice:
|
| 769 |
+
|
| 770 |
+
| | seed 0 | seed 1 |
|
| 771 |
+
|---|---|---|
|
| 772 |
+
| BPB(MTP) | 0.486695 | 0.486018 |
|
| 773 |
+
| BPB(NTP) | 0.482983 | 0.482978 |
|
| 774 |
+
| **D** | **0.003712** | **0.003040** |
|
| 775 |
+
| Accepted/forward | 2.655 | 2.693 |
|
| 776 |
+
| Boundary completion | 0.299 | 0.306 |
|
| 777 |
+
|
| 778 |
+
**D moved 19.9% of its own mean between seeds.** Against D values in the
|
| 779 |
+
0.004–0.022 range, that bounds how confidently small differences between
|
| 780 |
+
conditions can be interpreted. Boundary completion, by contrast, barely moved
|
| 781 |
+
(0.299 → 0.306).
|
| 782 |
+
|
| 783 |
+
### 6.10 Boundary completion — the clearest result
|
| 784 |
+
|
| 785 |
+
Boundary-completion rate is the fraction of accepted speculative spans that
|
| 786 |
+
end at a word boundary rather than mid-word. It does not appear in the
|
| 787 |
+
existing MTP literature and is this project's novel metric.
|
| 788 |
+
|
| 789 |
+
| Condition | Fertility | Boundary completion |
|
| 790 |
+
|---|---|---|
|
| 791 |
+
| L4 Devanagari | 3.05 | 0.299 |
|
| 792 |
+
| L2 ITRANS Roman | 3.07 | 0.301 |
|
| 793 |
+
| E1 English | 1.50 | 0.716 |
|
| 794 |
+
|
| 795 |
+
**The two Hindi conditions agree to within 0.002 despite using different
|
| 796 |
+
scripts**, while matching on fertility. English, at half the fertility, is
|
| 797 |
+
more than twice as high.
|
| 798 |
+
|
| 799 |
+
On these three points, boundary completion **tracks fertility, not script** —
|
| 800 |
+
and it separates the conditions far more sharply than D does, while being far
|
| 801 |
+
more stable across seeds. It is the cleanest fertility-linked signal the
|
| 802 |
+
project produced.
|
| 803 |
+
|
| 804 |
+
---
|
| 805 |
+
|
| 806 |
+
## 7. Everything that limits these results
|
| 807 |
+
|
| 808 |
+
**Sample sizes.**
|
| 809 |
+
- Phase 2 used 100 sentences per condition (no KV-caching made more
|
| 810 |
+
infeasible). Directional, not publication-grade.
|
| 811 |
+
- Phase 2b used 2000 sentences per cell for D_indep and 400 for trough depth.
|
| 812 |
+
- Phase 3 used 10M training tokens per condition, below the brief's 30M
|
| 813 |
+
target, set from measured throughput.
|
| 814 |
+
|
| 815 |
+
**Seeds.** Only L4 was run twice. L2 and E1 are single-seed, below the brief's
|
| 816 |
+
two-seed minimum.
|
| 817 |
+
|
| 818 |
+
**Speculative decoding protocol.** Used 256 documents × 64 completion tokens,
|
| 819 |
+
not the specified 512 × 128. Without a KV cache this costs 15.2 s/document.
|
| 820 |
+
5,600–7,000 scored spans per condition still keeps precision reasonable.
|
| 821 |
+
|
| 822 |
+
**H1 is not answered.** D differences between conditions are small (0.004–0.022)
|
| 823 |
+
relative to seed noise (19.9% of the mean), and three conditions cannot support
|
| 824 |
+
a regression of D on fertility. Phase 2b separately showed fertility does not
|
| 825 |
+
move D_indep within a model.
|
| 826 |
+
|
| 827 |
+
**H2 was never tested.** The code-mixed analysis (script-switch discontinuity)
|
| 828 |
+
required a code-mixed corpus. LinCE's official loader is script-based and the
|
| 829 |
+
installed `datasets` version no longer supports script datasets. This was
|
| 830 |
+
deferred and never revisited. **Phase 4 was not done.**
|
| 831 |
+
|
| 832 |
+
**H3 is untestable at training scale.** Human romanization is ~0.38M tokens.
|
| 833 |
+
Separately, L2 and L3 are not fertility-matched (2.94 vs 2.17), so even the
|
| 834 |
+
zero-training L2 vs L3 comparison is confounded by a real fertility gap.
|
| 835 |
+
|
| 836 |
+
**The architecture deviation.** Phase 3's primary results use a trainable
|
| 837 |
+
shared trunk, not the brief's literal frozen-backbone-plus-independent-heads
|
| 838 |
+
spec. Justified by the brief's own definition of MTP and by the demonstration
|
| 839 |
+
that the literal spec yields D = 0 by construction — but it is a deviation, and
|
| 840 |
+
D means "cost through a shared trunk", not "cost through the specified
|
| 841 |
+
architecture".
|
| 842 |
+
|
| 843 |
+
**Byte conditions carry an architecture confound.** ByT5 is encoder-decoder;
|
| 844 |
+
Sarvam-1 and Llama-3.2-1B are decoder-only. Every L5/E2 comparison inherits
|
| 845 |
+
this.
|
| 846 |
+
|
| 847 |
+
**Superseded numbers.** The `entropy_trough_depth` rows in
|
| 848 |
+
`results/phase2_measurements.csv` are wrong for all seven conditions and are
|
| 849 |
+
superseded by `results/phase2b_blockers.csv`.
|
| 850 |
+
|
| 851 |
+
---
|
| 852 |
+
|
| 853 |
+
## 8. What was actually learned
|
| 854 |
+
|
| 855 |
+
**1. The specified Phase 3 architecture cannot measure what it was meant to
|
| 856 |
+
measure.** Frozen backbone plus independent per-head ResBlocks gives
|
| 857 |
+
D = 0.000000 exactly, verified analytically and empirically. MTP's cost
|
| 858 |
+
requires shared trainable capacity to exist at all. This is a methodological
|
| 859 |
+
result that applies beyond this project.
|
| 860 |
+
|
| 861 |
+
**2. Byte-level spans are far closer to independent than subword spans.**
|
| 862 |
+
D_indep at k=3: 2.94 (Hindi byte) and 1.01 (English byte) against 8.7–10.8 for
|
| 863 |
+
every subword condition. This is consistent across both languages and is the
|
| 864 |
+
strongest empirical signal here. It supports the published finding that MTP
|
| 865 |
+
helps more at byte granularity — there is less joint structure to lose.
|
| 866 |
+
|
| 867 |
+
**3. Fertility does not drive D_indep within the subword range.** Doubling
|
| 868 |
+
Sarvam's fertility (1.73 → 3.68) left D_indep essentially unchanged (9.74 →
|
| 869 |
+
9.56). Model identity mattered roughly twenty times more than script. H1's
|
| 870 |
+
premise is not supported by these measurements.
|
| 871 |
+
|
| 872 |
+
**4. Boundary completion is a better-behaved metric than D.** It separates
|
| 873 |
+
conditions sharply (0.30 vs 0.72), is stable across seeds, and tracks fertility
|
| 874 |
+
rather than script. It is the project's novel contribution and, on this
|
| 875 |
+
evidence, more promising than D for future work.
|
| 876 |
+
|
| 877 |
+
**5. Two reported findings were wrong and were retracted.** The L1 D_indep
|
| 878 |
+
anomaly was a model artifact, not morphology. The entropy-trough-depth
|
| 879 |
+
"failure" was a position-sampling bug; corrected, the original prediction
|
| 880 |
+
holds. Both were caught by explicitly testing the earlier conclusions rather
|
| 881 |
+
than building on them.
|
| 882 |
+
|
| 883 |
+
### If this becomes a paper
|
| 884 |
+
|
| 885 |
+
The architectural impossibility result (§6.3) and boundary completion (§6.10)
|
| 886 |
+
are the two findings that held up. H1 as originally framed is not answered by
|
| 887 |
+
this data, and the honest version of the story leads with what was measured
|
| 888 |
+
rather than with the hypothesis that motivated it.
|
docs/experiment-log.md
ADDED
|
@@ -0,0 +1,444 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Experiment log
|
| 2 |
+
|
| 3 |
+
## 2026-08-29 -- Phase 0: hardware sanity
|
| 4 |
+
|
| 5 |
+
Ran `scripts/phase0_sanity_check.py`. All four GPUs report capability
|
| 6 |
+
(6, 1); `sm_61` is absent from `torch.cuda.get_arch_list()` but kernels
|
| 7 |
+
run correctly via PTX JIT from `sm_60` (see `docs/hardware-notes.md`).
|
| 8 |
+
Llama-3.2-1B fp32 forward pass: 4769 MiB peak, ~28 ms/iter on GPU 0.
|
| 9 |
+
Training step (frozen backbone + 1 MTP head, batch 4 x seq 512): ~2500
|
| 10 |
+
tokens/sec, meaningfully faster than the brief's ~3 TFLOP/s/card planning
|
| 11 |
+
assumption. No blockers.
|
| 12 |
+
|
| 13 |
+
## 2026-08-29 -- Phase 1: data pipeline, HALTED at reversibility check
|
| 14 |
+
|
| 15 |
+
Ran `scripts/phase1_data_pipeline.py`.
|
| 16 |
+
|
| 17 |
+
**Step 1 (Hindi corpus)** completed cleanly: streamed `ai4bharat/sangraha`
|
| 18 |
+
verified/hin, 119,542 docs seen, 117,517 kept (2,019 duplicates dropped,
|
| 19 |
+
6 too-short dropped), 50,000,203 tokens, written to
|
| 20 |
+
`/data/cs769_mtp/scratch/data/hindi_corpus/sangraha_hin_50M.jsonl`.
|
| 21 |
+
Took ~35 seconds -- a prior small-sample extrapolation had projected
|
| 22 |
+
~60 minutes; that estimate was dominated by connection startup latency,
|
| 23 |
+
not steady-state throughput. Actual full run is the only number to trust
|
| 24 |
+
going forward.
|
| 25 |
+
|
| 26 |
+
**Step 2 (ITRANS reversibility)** -- **FAILED the brief's own gate.**
|
| 27 |
+
1000 sentences sampled from Dakshina's hi/romanized/hi.romanized.rejoined.tsv
|
| 28 |
+
(seed 0), each romanized via extended ITRANS
|
| 29 |
+
(`indicnlp.transliterate.unicode_transliterate.ItransTransliterator`) and
|
| 30 |
+
de-romanized back. **Exact-match rate: 0.659 (659/1000), against a 0.99
|
| 31 |
+
threshold.** Per the brief, this is a hard stop: "a lossy L2 invalidates
|
| 32 |
+
the design." Pipeline halted before steps 3-4 (Dakshina triples,
|
| 33 |
+
ambiguity histogram); neither ran.
|
| 34 |
+
|
| 35 |
+
Follow-up diagnosis (not part of the committed pipeline, run interactively
|
| 36 |
+
to characterize the failure): normalizing away three specifically
|
| 37 |
+
"cosmetic" difference classes on both sides before comparing --
|
| 38 |
+
(a) nukta consonants stripped (ज़/ड़/फ़ etc. collapsed to their base
|
| 39 |
+
consonant), (b) digit script unified (Latin 18 vs Devanagari १८),
|
| 40 |
+
(c) terminal punctuation unified (ASCII '.' vs Devanagari danda '।') --
|
| 41 |
+
raises the match rate only to 0.778. The remaining ~22% of sentences fail
|
| 42 |
+
for structural reasons intrinsic to this library's ITRANS scheme, not
|
| 43 |
+
formatting, e.g.:
|
| 44 |
+
|
| 45 |
+
- independent-vs-dependent-vowel ambiguity: गई ("gai") comes back as गैइ,
|
| 46 |
+
not गई -- the library's own code comments acknowledge this ambiguity
|
| 47 |
+
class but do not resolve it losslessly.
|
| 48 |
+
- ITRANS string-level collisions: "ld" is a registered alternate spelling
|
| 49 |
+
for the independent character ळ (retroflex la) *and* the literal
|
| 50 |
+
transliteration of ल्द् (la + halant + da); हल्द्वानी round-trips to
|
| 51 |
+
हळ्वानी because the de-romanizer cannot tell which was meant.
|
| 52 |
+
|
| 53 |
+
Nukta loss alone (root cause of the largest single class of failures,
|
| 54 |
+
e.g. बाज़ार -> baajaaara -> बाजाअर) is expected given how common nukta
|
| 55 |
+
consonants are in real Hindi text (Persian/Arabic loanwords); it was
|
| 56 |
+
already visible in a 3-sentence manual spot-check before the formal test
|
| 57 |
+
ran (see prior session). The vowel-sign/conjunct ambiguity classes were
|
| 58 |
+
not anticipated and are the more serious finding: they mean extended
|
| 59 |
+
ITRANS via indic-nlp-library is not a lossless transform in general, which
|
| 60 |
+
is a problem for the study's premise that L2 has "identical morphology
|
| 61 |
+
and content" to L1, not just a data-cleanliness issue to route around.
|
| 62 |
+
|
| 63 |
+
**Not resolved. Waiting on a decision before Phase 1 steps 3-4 or any
|
| 64 |
+
later phase**: see chat for options under consideration (alternative
|
| 65 |
+
transliteration tooling, filtering Dakshina to only exactly-reversible
|
| 66 |
+
sentences, or accepting a documented information loss and adjusting what
|
| 67 |
+
L2 is claimed to hold constant).
|
| 68 |
+
|
| 69 |
+
## 2026-08-29 -- Phase 1 continued: reversibility fixed, pipeline complete
|
| 70 |
+
|
| 71 |
+
Decision taken: switch transliteration backend to `aksharamukha` (adds
|
| 72 |
+
the dependency; drops `indic-nlp-library`, which is no longer used
|
| 73 |
+
anywhere in the codebase) and route embedded Latin-script spans (English
|
| 74 |
+
words, acronyms -- common in Wikipedia-sourced Hindi) around conversion
|
| 75 |
+
instead of feeding them through it, plus a `normalize_for_comparison`
|
| 76 |
+
step that treats digit script (Latin vs Devanagari digits), NFC form,
|
| 77 |
+
and sentence-final punctuation variants (`.`, danda `।`, double danda
|
| 78 |
+
`॥`, and a bare `|` this corpus uses as an old danda stand-in) as
|
| 79 |
+
equivalent before comparing -- these are the same content differently
|
| 80 |
+
rendered, not a loosened bar. See `src/data/itrans_transliterate.py`
|
| 81 |
+
for the reasoning behind each step, including why `deromanize()` cannot
|
| 82 |
+
safely protect embedded Latin spans the way `romanize()` does (ITRANS
|
| 83 |
+
is itself Latin-alphabet, so a plain Latin-run split on it matches the
|
| 84 |
+
whole string) and uses an internal marker-based path instead for
|
| 85 |
+
reversibility checking specifically.
|
| 86 |
+
|
| 87 |
+
**Reversibility on the same 1000-sentence sample (seed 0): 0.990
|
| 88 |
+
(990/1000)**, up from 0.659, clearing the 0.99 threshold. Remaining
|
| 89 |
+
failures are a mix of a few further vowel-sign edge cases (अा vs आ) and
|
| 90 |
+
one or two genuinely unusual inputs (a mis-typed word with stray
|
| 91 |
+
matras); none showed the systematic pattern the indic-nlp-library
|
| 92 |
+
failures had.
|
| 93 |
+
|
| 94 |
+
Filtered the **full** 10,000-row Dakshina pool (not just the sample)
|
| 95 |
+
through the same check: 9,908 of the 10,000 rows are unique sentences
|
| 96 |
+
(92 rows are exact duplicates of another row's Devanagari text -- a
|
| 97 |
+
property of the source data, not of this pipeline); of those, **9,815
|
| 98 |
+
unique sentences pass**, yielding **9,907 fertility triples** (row-level,
|
| 99 |
+
so passing duplicate rows are each kept) written to
|
| 100 |
+
`results/phase1_fertility_triples.csv`.
|
| 101 |
+
|
| 102 |
+
Step 4 (romanization ambiguity from the Dakshina lexicon) is independent
|
| 103 |
+
of the sentence-level reversibility question -- it reads Dakshina's own
|
| 104 |
+
human-annotated lexicon directly, not anything produced by this
|
| 105 |
+
pipeline's transliteration -- so it was not filtered by the reversible
|
| 106 |
+
subset: 30,000 native types, mean 1.7688 attested romanizations per
|
| 107 |
+
type, histogram in `results/phase1_romanization_ambiguity.csv`.
|
| 108 |
+
|
| 109 |
+
Full pipeline (`python scripts/phase1_data_pipeline.py`) now runs
|
| 110 |
+
end-to-end in ~1m20s. **Phase 1 is complete.**
|
| 111 |
+
|
| 112 |
+
## 2026-08-29 -- Phase 2: zero-training measurement, complete
|
| 113 |
+
|
| 114 |
+
Models: Sarvam-1 (L1), Llama-3.2-1B (L2-L4, E1), ByT5-large (L5, E2).
|
| 115 |
+
ByT5 ships only as a pickle `.bin` checkpoint, which current
|
| 116 |
+
`transformers` refuses to `torch.load` below torch 2.6 (a CVE guard);
|
| 117 |
+
rather than touch the torch==2.5.1+cu121 pin (load-bearing for sm_61 PTX
|
| 118 |
+
support), the checkpoint was converted to safetensors locally via
|
| 119 |
+
`torch.load(..., weights_only=True)` -- a safe, standard remediation,
|
| 120 |
+
not a bypass -- and is loaded from
|
| 121 |
+
`/data/cs769_mtp/scratch/models/byt5-large-safetensors`. ByT5 is
|
| 122 |
+
encoder-decoder, not causal decoder-only like the other two models;
|
| 123 |
+
`src/measure/model_handle.py` drives it by mirroring the growing
|
| 124 |
+
sequence into both encoder and decoder input (a standard T5-family
|
| 125 |
+
scoring trick), which gives it bidirectional encoder access to the
|
| 126 |
+
prefix a causal model only sees causally. This is a real architecture
|
| 127 |
+
mismatch for L5/E2 vs L1-L4, documented here rather than treated as
|
| 128 |
+
equivalent -- keep it in mind interpreting any L5/E2 comparison.
|
| 129 |
+
|
| 130 |
+
**Scope reduction, decided and logged, not silent:** a timing
|
| 131 |
+
calibration (5 sentences, max_positions=3, M=8 Monte Carlo samples)
|
| 132 |
+
measured ~7s/sentence on this hardware, because the entropy/D_indep
|
| 133 |
+
estimators have no KV-caching -- every Monte Carlo rollout step re-runs
|
| 134 |
+
the full prefix from scratch. At that rate the full 9,907-sentence pool
|
| 135 |
+
would run multiple hours per condition. Ran **100 sentences/condition**
|
| 136 |
+
(random sample, seed 0) with max_positions_per_sentence=5, max_horizon=8,
|
| 137 |
+
M=8 instead. All 7 conditions ran as genuinely concurrent GPU-pinned
|
| 138 |
+
processes (verified via matched start timestamps in
|
| 139 |
+
`phase2_out/concurrency.log` and `nvidia-smi` showing 91-100%
|
| 140 |
+
utilization on all four GPUs simultaneously), completing in ~33.5
|
| 141 |
+
minutes wall-clock (08:04:19-08:37:47). This is a directional,
|
| 142 |
+
higher-variance measurement appropriate to a Stage 1 PoC, not a
|
| 143 |
+
publication-grade final number -- rerunning on the full pool with proper
|
| 144 |
+
KV-caching is the natural next step before this feeds a paper.
|
| 145 |
+
|
| 146 |
+
**Sanity checks against earlier interactive findings:** fertility
|
| 147 |
+
reproduced closely -- L1 1.74 (vs 1.61 on the full 9,907-sentence pool),
|
| 148 |
+
L5 14.74 (vs 14.34), consistent given this run's 100-sentence resample.
|
| 149 |
+
E1 (English subword) 1.50, E2 (English byte) 6.26 -- both close to the
|
| 150 |
+
brief's ~1.3/~5 expectations. No negative KL values anywhere in
|
| 151 |
+
`results/phase2_measurements.csv` (would indicate an estimator bug);
|
| 152 |
+
none occurred.
|
| 153 |
+
|
| 154 |
+
**Entropy trough depth -- does NOT separate L1 from L5 most sharply, contrary
|
| 155 |
+
to the brief's expectation.** Measured (mean intra-word entropy / mean
|
| 156 |
+
boundary entropy, horizon=1 only): L1=0.790, L2=0.918, L3=0.832,
|
| 157 |
+
L4=0.700, **L5=0.809**. L1 and L5 are close (0.790 vs 0.809); L4 is
|
| 158 |
+
actually the most different from L1 (0.700). This is a real, reportable
|
| 159 |
+
deviation from the brief's prediction, not a bug -- worth investigating
|
| 160 |
+
further (possibly confounded by the L5/ByT5 architecture mismatch noted
|
| 161 |
+
above) rather than assumed to resolve itself at full scale.
|
| 162 |
+
|
| 163 |
+
**D_indep -- a genuinely on-target result.** The byte-level conditions
|
| 164 |
+
show markedly *lower* D_indep (KL from the true joint to the
|
| 165 |
+
product-of-independent-marginals) than every subword condition, at both
|
| 166 |
+
k=2 and k=3:
|
| 167 |
+
|
| 168 |
+
| condition | d_indep_k2 | d_indep_k3 |
|
| 169 |
+
|---|---|---|
|
| 170 |
+
| L1 (Devanagari+Sarvam) | 2.49 | 10.01 |
|
| 171 |
+
| L2 (ITRANS+Llama) | 2.60 | 8.89 |
|
| 172 |
+
| L3 (natural-roman+Llama) | 2.70 | 9.49 |
|
| 173 |
+
| L4 (Devanagari+Llama) | 2.84 | 8.92 |
|
| 174 |
+
| **L5 (Devanagari+byte)** | **0.41** | **2.94** |
|
| 175 |
+
| E1 (English subword) | 2.84 | 10.81 |
|
| 176 |
+
| **E2 (English byte)** | **0.34** | **1.01** |
|
| 177 |
+
|
| 178 |
+
Byte-level spans are far closer to independent than subword spans, for
|
| 179 |
+
both languages -- directly consistent with Gloeckle et al. and
|
| 180 |
+
Aynetdinov & Akbik's finding that MTP helps more at byte granularity:
|
| 181 |
+
there is simply less joint structure for independent per-head prediction
|
| 182 |
+
to lose. This is the clearest signal in this phase's results and the
|
| 183 |
+
one most worth carrying into Phase 3's actual training comparison,
|
| 184 |
+
modulo the L5/ByT5 architecture caveat above (E2 is the more trustworthy
|
| 185 |
+
of the two byte-condition numbers to lean on if that caveat matters,
|
| 186 |
+
since a byte-level *English* baseline is less central to H1 than the
|
| 187 |
+
Hindi L1-vs-L5 contrast is, but both point the same direction here).
|
| 188 |
+
|
| 189 |
+
**Boundary alignment fraction is much lower for byte conditions**
|
| 190 |
+
(L5=0.14, E2=0.32) than subword conditions (0.32-0.73) -- expected and
|
| 191 |
+
not a bug: with far higher fertility, the many within-word byte-to-byte
|
| 192 |
+
boundaries dilute the fixed count of true word-boundary positions, even
|
| 193 |
+
though every whitespace character is itself still a clean single-byte
|
| 194 |
+
token.
|
| 195 |
+
|
| 196 |
+
Full results in `results/phase2_measurements.csv` (182 rows, one per
|
| 197 |
+
condition x metric). **Phase 2 (100-sentence-per-condition PoC scope) is
|
| 198 |
+
complete.**
|
| 199 |
+
|
| 200 |
+
## 2026-08-29 -- Phase 2b: blocker resolution, two Phase 2 findings corrected
|
| 201 |
+
|
| 202 |
+
Two blockers were opened against Phase 2 before Phase 3's design could be
|
| 203 |
+
settled. Both are now resolved, and both **overturn** a conclusion
|
| 204 |
+
recorded in the Phase 2 entry above. Raw numbers in
|
| 205 |
+
`results/phase2b_blockers.csv`.
|
| 206 |
+
|
| 207 |
+
### Blocker A -- the L1 D_indep anomaly is mostly a MODEL artifact
|
| 208 |
+
|
| 209 |
+
Phase 2 found L1 had the lowest fertility (1.74) yet the highest
|
| 210 |
+
d_indep_k3 (10.01), which read as evidence against a purely
|
| 211 |
+
fertility-driven account. But L1 was also the only condition on Sarvam-1;
|
| 212 |
+
model identity and script were confounded. A 2x2 factorial (n=2000/cell,
|
| 213 |
+
same paired sentence subset across all cells) separates them:
|
| 214 |
+
|
| 215 |
+
| cell | fertility | d_indep_k2 | d_indep_k3 | k3 stderr |
|
| 216 |
+
|---|---|---|---|---|
|
| 217 |
+
| Sarvam-1 x Devanagari | 1.728 | 2.409 | 9.735 | 0.079 |
|
| 218 |
+
| Sarvam-1 x ITRANS-roman | 3.681 | 2.867 | 9.558 | 0.060 |
|
| 219 |
+
| Llama-3.2-1B x Devanagari | 3.051 | 2.877 | 8.665 | 0.056 |
|
| 220 |
+
| Llama-3.2-1B x ITRANS-roman | 3.065 | 2.614 | 8.925 | 0.062 |
|
| 221 |
+
|
| 222 |
+
Decomposition at k=3: **model main effect (Sarvam - Llama) = +0.851**;
|
| 223 |
+
script main effect = -0.041; interaction = +0.437. The model effect holds
|
| 224 |
+
in both script conditions as a within-sentence paired difference:
|
| 225 |
+
+1.059 +/- 0.098 on Devanagari (10.9 sigma), +0.632 +/- 0.086 on Roman
|
| 226 |
+
(7.4 sigma).
|
| 227 |
+
|
| 228 |
+
**Interpretation.** Sarvam-1 shows systematically higher D_indep than
|
| 229 |
+
Llama-3.2-1B irrespective of script, so Phase 2's L1 anomaly is
|
| 230 |
+
principally a model-identity artifact, not a morphology signal. This is a
|
| 231 |
+
negative result for cross-model comparability along the fertility ladder:
|
| 232 |
+
any L1-vs-L2/L3/L4 contrast carries a model effect roughly twice the size
|
| 233 |
+
of the script effect.
|
| 234 |
+
|
| 235 |
+
A second, independent observation from the same table matters at least as
|
| 236 |
+
much: **fertility does not drive D_indep within either model.** Within
|
| 237 |
+
Sarvam-1 fertility more than doubles (1.73 -> 3.68) while d_indep_k3
|
| 238 |
+
barely moves (9.74 -> 9.56, i.e. slightly *down*); within Llama-3.2-1B
|
| 239 |
+
fertility is flat (3.05 vs 3.07) and d_indep_k3 is likewise flat
|
| 240 |
+
(8.67 vs 8.93). Over the subword fertility range accessible here, D_indep
|
| 241 |
+
tracks which model is being used, not how fertile its tokenizer is. H1's
|
| 242 |
+
premise -- that fertility is the mechanism -- is not supported by the
|
| 243 |
+
subword conditions; the byte-vs-subword gap from Phase 2 remains the one
|
| 244 |
+
place a large D_indep difference actually appears.
|
| 245 |
+
|
| 246 |
+
### Blocker B -- the trough-depth "failure" was a sampling bug, not architecture
|
| 247 |
+
|
| 248 |
+
Phase 2 reported that entropy trough depth did not separate L1 from L5
|
| 249 |
+
(0.790 vs 0.809), contrary to the brief's prediction, and attributed this
|
| 250 |
+
tentatively to the ByT5 encoder-decoder mismatch. That attribution was
|
| 251 |
+
**wrong**, and the underlying number was **invalid**.
|
| 252 |
+
|
| 253 |
+
`compute_entropy_profile` sampled the FIRST `max_positions` token
|
| 254 |
+
positions of each sentence. Devanagari characters are 3 bytes in UTF-8,
|
| 255 |
+
so under byte-level tokenization the first word boundary falls around
|
| 256 |
+
byte 11-12 -- never inside the first 5 sampled positions. The byte
|
| 257 |
+
conditions therefore had `n_h1_boundary` at or near 0 and a degenerate
|
| 258 |
+
(often NaN) trough depth computed off a tiny biased subset. Fixed in
|
| 259 |
+
`954e0c2` by adding an evenly-spaced position strategy, with the leading
|
| 260 |
+
strategy retained so Phase 2's committed numbers stay reproducible, and a
|
| 261 |
+
regression test in `212974f`.
|
| 262 |
+
|
| 263 |
+
Driving mode turns out to be nearly irrelevant once sampling is fixed;
|
| 264 |
+
position strategy dominates:
|
| 265 |
+
|
| 266 |
+
| ByT5 driving mode | leading positions | spread positions |
|
| 267 |
+
|---|---|---|
|
| 268 |
+
| mirrored (bidirectional encoder) | 0.752 | 1.129 |
|
| 269 |
+
| causal decoder-only | 2.141 | 1.212 |
|
| 270 |
+
|
| 271 |
+
**Corrected trough depths, all seven conditions** (spread sampling,
|
| 272 |
+
horizon 1, n=400 sentences/condition):
|
| 273 |
+
|
| 274 |
+
| condition | Phase 2 (buggy) | corrected | n_points |
|
| 275 |
+
|---|---|---|---|
|
| 276 |
+
| L1 Devanagari+Sarvam | 0.790 | **0.621** | 1883 |
|
| 277 |
+
| L2 ITRANS+Llama | 0.918 | 0.878 | 1971 |
|
| 278 |
+
| L3 natural-roman+Llama | 0.832 | 0.782 | 1927 |
|
| 279 |
+
| L4 Devanagari+Llama | 0.700 | 0.699 | 1973 |
|
| 280 |
+
| L5 Devanagari+byte | 0.809 | **1.065** | 2000 |
|
| 281 |
+
| E1 English+Llama | 0.688 | 0.647 | 1990 |
|
| 282 |
+
| E2 English+byte | 0.911 | 0.873 | 2000 |
|
| 283 |
+
|
| 284 |
+
**Interpretation.** With the bug fixed, the brief's original prediction
|
| 285 |
+
holds after all: L1 (0.621) and L5 (1.065) are now the two extremes of
|
| 286 |
+
the Hindi ladder, a clear separation rather than the near-identical pair
|
| 287 |
+
Phase 2 reported. The subword conditions move only slightly under the
|
| 288 |
+
fix; L5 moves most, exactly as the byte-length argument predicts. The
|
| 289 |
+
Phase 2 entry's claim that trough depth "does NOT separate L1 from L5" is
|
| 290 |
+
**retracted**.
|
| 291 |
+
|
| 292 |
+
### Status of Phase 2's committed numbers
|
| 293 |
+
|
| 294 |
+
`results/phase2_measurements.csv` retains its original
|
| 295 |
+
`entropy_trough_depth` rows, which were produced with leading-position
|
| 296 |
+
sampling. They are superseded for all seven conditions by the
|
| 297 |
+
`entropy_trough_depth_spread_corrected` rows in
|
| 298 |
+
`results/phase2b_blockers.csv`; prefer the latter. The other Phase 2
|
| 299 |
+
metrics (fertility, boundary alignment, D_indep, AdaMTP) are unaffected
|
| 300 |
+
by this bug, and D_indep specifically is now corroborated at n=2000 by
|
| 301 |
+
Blocker A's Llama cells (k=3 8.665/8.925 vs Phase 2's 100-sentence
|
| 302 |
+
8.665-8.925 range).
|
| 303 |
+
|
| 304 |
+
## 2026-08-29 -- Phase 3: MTP head training, single backbone
|
| 305 |
+
|
| 306 |
+
Three conditions on one frozen Llama-3.2-1B backbone: L4 (Devanagari),
|
| 307 |
+
L2 (ITRANS romanization of the same sangraha documents), E1 (English
|
| 308 |
+
Wikipedia). 10M training tokens each, batch 2 x seq 512, AdamW at 1e-4,
|
| 309 |
+
seed 0, run concurrently one per GPU. Raw rows in
|
| 310 |
+
`results/phase3_training.csv` and `results/phase3_measurements.csv`.
|
| 311 |
+
|
| 312 |
+
**Single backbone, by design.** Phase 2b measured the model-identity
|
| 313 |
+
effect on D_indep at +0.851 (k=3, 10.9 sigma) against a script effect of
|
| 314 |
+
-0.041, so putting L1 on Sarvam-1 alongside Llama conditions would have
|
| 315 |
+
confounded the primary comparison with a term twice the size of the
|
| 316 |
+
effect under study. One backbone removes it outright. The cost is a
|
| 317 |
+
narrow fertility range (L2 3.07, L4 3.05, E1 1.50), which is stated up
|
| 318 |
+
front rather than presented as a ladder it is not.
|
| 319 |
+
|
| 320 |
+
**L3 is absent and cannot be added.** Human-written romanization exists
|
| 321 |
+
only in Dakshina's 9,907 sentences, roughly 0.38M tokens against a 10M
|
| 322 |
+
budget. Machine romanization is not a substitute: H3 concerns human
|
| 323 |
+
orthographic variation specifically, so a synthetic stand-in would test
|
| 324 |
+
nothing. **H3 is untestable at training scale with available data**, and
|
| 325 |
+
no amount of compute changes that -- it is a data limitation.
|
| 326 |
+
|
| 327 |
+
### The specified architecture cannot measure D, and this was verified
|
| 328 |
+
|
| 329 |
+
The brief's Phase 3 architecture is a frozen backbone with
|
| 330 |
+
`4 x [ResBlock -> shared unembedding]`. Under it, head 1's parameters
|
| 331 |
+
appear in exactly one loss term, so its gradients are bit-identical to a
|
| 332 |
+
standalone next-token head's; the k=2..4 objectives cannot reach them.
|
| 333 |
+
D = BPB(MTP) - BPB(NTP) is therefore **zero by construction**, whatever
|
| 334 |
+
the data and however long training runs. Confirmed twice: analytically
|
| 335 |
+
(gradient equality, max abs difference 0.0) and empirically -- an
|
| 336 |
+
ablation run trained 900 steps on L4 with no shared trunk returned
|
| 337 |
+
`BPB mtp=0.491096 ntp=0.491096 D=0.000000`, identical to six decimals,
|
| 338 |
+
with the training losses equal at every logged step.
|
| 339 |
+
|
| 340 |
+
The brief's own framing of multi-token prediction is "a shared trunk
|
| 341 |
+
with k parallel heads", and the cost the literature reports comes from
|
| 342 |
+
that trunk serving k objectives at once. With the backbone frozen, the
|
| 343 |
+
only trunk available is a trainable adapter between it and the heads, so
|
| 344 |
+
that is what the primary runs use: frozen backbone -> trainable shared
|
| 345 |
+
ResBlock -> 4 per-head ResBlocks -> shared frozen unembedding. The NTP
|
| 346 |
+
control gets its own trunk and head, sharing no trainable tensor with
|
| 347 |
+
the MTP stack (asserted in `tests/test_train.py`). The trunkless variant
|
| 348 |
+
stays available behind `--no-shared-trunk`.
|
| 349 |
+
|
| 350 |
+
### Results
|
| 351 |
+
|
| 352 |
+
| condition | BPB(MTP) | BPB(NTP) | D | D relative | accepted/forward | boundary completion |
|
| 353 |
+
|---|---|---|---|---|---|---|
|
| 354 |
+
| L4 Devanagari | 0.486695 | 0.482983 | 0.003712 | 0.77% | 2.655 | 0.299 |
|
| 355 |
+
| L2 ITRANS-roman | 1.782721 | 1.760392 | 0.022329 | 1.27% | 2.359 | 0.301 |
|
| 356 |
+
| E1 English | 0.709532 | 0.694181 | 0.015351 | 2.21% | 2.222 | 0.716 |
|
| 357 |
+
| L4 no shared trunk | 0.491096 | 0.491096 | 0.000000 | 0.00% | 2.485 | 0.315 |
|
| 358 |
+
|
| 359 |
+
D is positive in every shared-trunk condition: adding the t+2..t+4
|
| 360 |
+
objectives does measurably degrade t+1 quality, which is the cost the
|
| 361 |
+
multi-token-prediction literature reports, reproduced here at 1B scale
|
| 362 |
+
on a frozen backbone.
|
| 363 |
+
|
| 364 |
+
**Absolute BPB is not comparable across these conditions.** L2 and L4
|
| 365 |
+
encode identical content, yet their BPB differs roughly fourfold, because
|
| 366 |
+
Devanagari occupies three UTF-8 bytes per character against one for its
|
| 367 |
+
romanization -- the same information spread over a third as many bytes
|
| 368 |
+
raises every per-byte quantity. Only within-condition differences and
|
| 369 |
+
ratios survive that; `d_trained_relative` divides it out.
|
| 370 |
+
|
| 371 |
+
### Does the zero-training proxy predict the trained cost?
|
| 372 |
+
|
| 373 |
+
| ordering | result |
|
| 374 |
+
|---|---|
|
| 375 |
+
| by D_indep (k=3), zero-training | L4 < L2 < E1 |
|
| 376 |
+
| by D absolute, trained | L4 < E1 < L2 -- **disagrees** |
|
| 377 |
+
| by D relative, trained | L4 < L2 < E1 -- **agrees** |
|
| 378 |
+
|
| 379 |
+
The proxy's ordering is reproduced exactly by relative D and violated by
|
| 380 |
+
absolute D. Given the byte-density argument above, relative D is the
|
| 381 |
+
better-posed cross-condition quantity, which favours the proxy. **But
|
| 382 |
+
n = 3 conditions cannot establish this.** Three items admit six
|
| 383 |
+
orderings, so a match carries a 1-in-6 chance of arising at random; this
|
| 384 |
+
is a single consistent observation, not evidence of a relationship, and
|
| 385 |
+
no correlation or regression should be quoted from it. Distinguishing
|
| 386 |
+
"the proxy works on the right scale" from "two of three conditions
|
| 387 |
+
happened to line up" needs more conditions, which the single-backbone
|
| 388 |
+
design deliberately traded away.
|
| 389 |
+
|
| 390 |
+
### Per-head accuracy and the boundary metrics
|
| 391 |
+
|
| 392 |
+
Accuracy falls off sharply with prediction distance in every condition
|
| 393 |
+
(L4: 0.603, 0.340, 0.204, 0.131 for heads 1-4), and intra-word targets
|
| 394 |
+
are consistently easier than word-initial ones -- L4 head 1 scores 0.726
|
| 395 |
+
intra-word against 0.405 at boundaries. Continuing a word in progress is
|
| 396 |
+
substantially more predictable than choosing the next one, and that gap
|
| 397 |
+
is the entropy trough of Phase 2 showing up in trained accuracy.
|
| 398 |
+
|
| 399 |
+
Boundary-completion rate, this project's novel metric, separates the
|
| 400 |
+
conditions far more sharply than D does: E1 0.716 against L4 0.299 and
|
| 401 |
+
L2 0.301. The two Hindi conditions agree to within 0.002 despite using
|
| 402 |
+
different scripts, while matching each other closely on fertility (3.05
|
| 403 |
+
vs 3.07) -- and English, at fertility 1.50, is more than twice as high.
|
| 404 |
+
On these three points the metric tracks fertility, not script, which is
|
| 405 |
+
the cleanest fertility-linked signal anywhere in this project. The same
|
| 406 |
+
caveat applies: three conditions, two of which are near-duplicates in
|
| 407 |
+
fertility.
|
| 408 |
+
|
| 409 |
+
### Status and limitations
|
| 410 |
+
|
| 411 |
+
Measured throughput 845-860 tok/s per GPU, peak 7.9GB, roughly 3.2 hours
|
| 412 |
+
of training per condition plus evaluation. Speculative decoding ran on
|
| 413 |
+
256 held-out documents with 64-token completions rather than the
|
| 414 |
+
specified 512 and 128: the draft/verify loop carries no KV cache, so
|
| 415 |
+
each round re-encodes the whole growing sequence at 15.2 s/document,
|
| 416 |
+
which would have cost 130 minutes per condition against 3 hours of
|
| 417 |
+
training. Acceptance and boundary completion are per-round statistics
|
| 418 |
+
and the reduced subset still yields 5,600-7,000 scored spans per
|
| 419 |
+
condition, so precision is not the binding constraint. Held-out
|
| 420 |
+
documents are disjoint from training by construction and this was
|
| 421 |
+
verified directly.
|
| 422 |
+
|
| 423 |
+
### Seed variability, and what it does to the ordering
|
| 424 |
+
|
| 425 |
+
A second seed was run for L4 only, on the GPU the ablation freed:
|
| 426 |
+
|
| 427 |
+
| L4 | D | D relative | accepted/forward | boundary completion |
|
| 428 |
+
|---|---|---|---|---|
|
| 429 |
+
| seed 0 | 0.003712 | 0.00769 | 2.655 | 0.299 |
|
| 430 |
+
| seed 1 | 0.003040 | 0.00629 | 2.693 | 0.306 |
|
| 431 |
+
|
| 432 |
+
D moves by 0.000672 between seeds, **19.9% of its own mean** -- large in
|
| 433 |
+
relative terms, and a caution against reading small D differences as
|
| 434 |
+
real. The downstream metrics are far steadier (accepted/forward within
|
| 435 |
+
0.04, boundary completion within 0.007).
|
| 436 |
+
|
| 437 |
+
It does not overturn the ordering: L4's relative D spans [0.0063,
|
| 438 |
+
0.0077] across seeds and does not reach L2's 0.0127, and the L2-to-E1
|
| 439 |
+
gap (0.0127 to 0.0221) is wider still than that spread. But L2 and E1
|
| 440 |
+
were each run once, so their own seed variability is unmeasured and this
|
| 441 |
+
is an extrapolation from the one condition that has it. **Two of three
|
| 442 |
+
conditions are single-seed, below the two-seed minimum the brief sets
|
| 443 |
+
for reported numbers**, and closing that is the first thing to do before
|
| 444 |
+
any of these numbers are quoted.
|
docs/hardware-notes.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Hardware notes — Pascal cluster (Stage 1 PoC)
|
| 2 |
+
|
| 3 |
+
## Hardware
|
| 4 |
+
|
| 5 |
+
| GPU | Model | Memory | Arch | Role |
|
| 6 |
+
|---|---|---|---|---|
|
| 7 |
+
| 0 | GTX 1080 Ti | 11 GB | GP102, sm_61 | per-condition job |
|
| 8 |
+
| 1 | GTX 1080 Ti | 11 GB | GP102, sm_61 | per-condition job |
|
| 9 |
+
| 2 | GTX 1080 Ti | 11 GB | GP102, sm_61 | per-condition job |
|
| 10 |
+
| 3 | Quadro P6000 | 24 GB | GP102, sm_61 | larger model / longer sequences |
|
| 11 |
+
|
| 12 |
+
Indices above are `nvidia-smi` / PCI-bus order. **This only matches
|
| 13 |
+
`torch`'s device indexing if `CUDA_DEVICE_ORDER=PCI_BUS_ID` is set before
|
| 14 |
+
`torch` is imported** — by default torch orders devices fastest-first,
|
| 15 |
+
which puts the P6000 at `cuda:0`. Every script in this repo sets this env
|
| 16 |
+
var at the top, before importing torch; do the same in anything ad hoc.
|
| 17 |
+
|
| 18 |
+
## Precision and kernel constraints
|
| 19 |
+
|
| 20 |
+
- No tensor cores (Pascal, pre-Volta). fp16 matmul throughput does not
|
| 21 |
+
benefit from dedicated tensor-core paths on this hardware. All training
|
| 22 |
+
and inference in this project runs in fp32. No autocast, no bf16
|
| 23 |
+
(Ampere-only), no fp16 model weights.
|
| 24 |
+
- FlashAttention requires Turing (FA1) or Ampere (FA2) at minimum; neither
|
| 25 |
+
builds or runs on sm_61. Attention goes through
|
| 26 |
+
`torch.nn.functional.scaled_dot_product_attention`, which selects the
|
| 27 |
+
memory-efficient backend here (confirmed in a prior environment
|
| 28 |
+
validation pass on this machine; flash correctly raises "no available
|
| 29 |
+
kernel" if forced).
|
| 30 |
+
- Do not install flash-attn, xformers, bitsandbytes, apex, deepspeed, or
|
| 31 |
+
any bf16-only path.
|
| 32 |
+
|
| 33 |
+
## `sm_61` arch-list caveat
|
| 34 |
+
|
| 35 |
+
`torch==2.5.1+cu121`'s `torch.cuda.get_arch_list()` does **not** contain
|
| 36 |
+
the literal string `'sm_61'`:
|
| 37 |
+
|
| 38 |
+
```
|
| 39 |
+
['sm_50', 'sm_60', 'sm_70', 'sm_75', 'sm_80', 'sm_86', 'sm_90']
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
`torch.cuda.get_device_capability()` correctly reports `(6, 1)` for all
|
| 43 |
+
four devices, and real kernels (matmul, attention, full model forward and
|
| 44 |
+
backward) execute correctly. The mechanism is PTX forward-compatibility:
|
| 45 |
+
the wheel embeds PTX for `sm_60`, and the driver JIT-recompiles it for the
|
| 46 |
+
actual `sm_61` device on first use. Consequence: **the first call of any
|
| 47 |
+
new kernel shape pays a one-time JIT-compile cost**, cached afterward
|
| 48 |
+
under `~/.nv/ComputeCache`. This was hit and manually verified (real
|
| 49 |
+
matmuls on all four GPUs, correct results, no "no kernel image available"
|
| 50 |
+
error) in a prior environment-validation pass. `scripts/phase0_sanity_check.py`
|
| 51 |
+
checks and logs both facts (arch-list substring and per-device capability)
|
| 52 |
+
on every run; capability is the actual pass criterion, not the substring.
|
| 53 |
+
|
| 54 |
+
No older/newer torch build was found that ships a native `sm_61` cubin
|
| 55 |
+
for a current-enough CUDA toolkit on this driver; cu121 with PTX JIT is
|
| 56 |
+
the accepted path for this project.
|
| 57 |
+
|
| 58 |
+
## Measured throughput
|
| 59 |
+
|
| 60 |
+
From `scripts/phase0_sanity_check.py`, `meta-llama/Llama-3.2-1B`, fp32, on
|
| 61 |
+
GPU 0 (GTX 1080 Ti), batch 4, seq 512, 5 warmup + 20 timed iterations,
|
| 62 |
+
two runs:
|
| 63 |
+
|
| 64 |
+
| Measurement | Run 1 | Run 2 |
|
| 65 |
+
|---|---|---|
|
| 66 |
+
| Forward-pass peak memory | 4769.1 MiB | 4769.1 MiB |
|
| 67 |
+
| Forward-pass avg wall time | 28.14 ms/iter | 28.46 ms/iter |
|
| 68 |
+
| Training-step throughput (frozen backbone + 1 MTP head) | 2510.9 tok/s | 2493.6 tok/s |
|
| 69 |
+
| Training-step avg wall time | 815.65 ms/step | 821.30 ms/step |
|
| 70 |
+
|
| 71 |
+
Training step = frozen-backbone forward (no grad) + `ResBlock -> shared
|
| 72 |
+
frozen unembedding` head forward + backward + AdamW step on the head's
|
| 73 |
+
~(hidden_size^2) params only. This is the actual Phase 3 per-condition
|
| 74 |
+
architecture, not a placeholder.
|
| 75 |
+
|
| 76 |
+
**Budget implication for Phase 3:** at ~2500 tok/s on one 1080 Ti, 30M
|
| 77 |
+
tokens is ~3.3 hours, not the brief's planning estimate of ~6.5 hours
|
| 78 |
+
(which assumed ~3 TFLOP/s/card). A prior, separate environment-validation
|
| 79 |
+
pass measured raw fp32 matmul throughput at 8.4–9.9 TFLOP/s across all
|
| 80 |
+
four cards (4096x4096, cuBLAS SGEMM) — well above the 3 TFLOP/s planning
|
| 81 |
+
number, consistent with the faster-than-expected training-step result
|
| 82 |
+
here. This number is for GPU 0 only; the P6000 (GPU 3) was not separately
|
| 83 |
+
timed in Phase 0. **Still re-measure the first real Phase 3 run per the
|
| 84 |
+
brief's own instruction** before extrapolating the 7-condition budget —
|
| 85 |
+
this Phase 0 number uses random synthetic tokens and a single head, not
|
| 86 |
+
real data density or four heads.
|
| 87 |
+
|
| 88 |
+
One more measured-but-unexpected result from the prior environment
|
| 89 |
+
validation, relevant to any future precision decision: fp16 matmul on
|
| 90 |
+
this hardware was **not** dramatically slower than fp32 (8.1 vs 8.4-9.9
|
| 91 |
+
TFLOP/s), contrary to the naive "1/64 rate, no tensor cores" expectation.
|
| 92 |
+
Likely cause: cuBLAS dispatches fp16 GEMM through an fp32-accumulate path
|
| 93 |
+
on hardware without efficient native fp16 arithmetic, sidestepping the
|
| 94 |
+
crippled path that only shows up in raw half2-instruction microbenchmarks.
|
| 95 |
+
Practical conclusion is unchanged (fp32 stays the default: no speed
|
| 96 |
+
benefit from fp16 here, and it costs precision), but the "dramatically
|
| 97 |
+
slower" framing does not hold for GEMM specifically.
|
| 98 |
+
|
| 99 |
+
## Scratch and disk
|
| 100 |
+
|
| 101 |
+
Scratch directory: `/data/cs769_mtp/scratch` — confirmed writable,
|
| 102 |
+
~105.7 TB free at time of writing. Use this for corpora, checkpoints, and
|
| 103 |
+
anything gitignored.
|
| 104 |
+
|
| 105 |
+
## Environment
|
| 106 |
+
|
| 107 |
+
- `torch==2.5.1+cu121`, `transformers==5.16.1`, full pin list in
|
| 108 |
+
`requirements.txt` at repo root.
|
| 109 |
+
- Python venv at `.venv/` (not committed). Activate before running any
|
| 110 |
+
script here.
|
| 111 |
+
- HF auth: gated model access (`meta-llama/Llama-3.2-1B`) requires a
|
| 112 |
+
token with "read access to public gated repos" enabled, not just a
|
| 113 |
+
valid token — a plain valid token without that scope fails with 403,
|
| 114 |
+
not 401, which is easy to misdiagnose as a connectivity problem.
|
notebooks/.gitkeep
ADDED
|
File without changes
|
requirements.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# torch/torchvision/torchaudio require the cu121 index; sm_61 (Pascal) support
|
| 2 |
+
# is not reliable in newer cuXXX wheels. Install with:
|
| 3 |
+
# pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 \
|
| 4 |
+
# --index-url https://download.pytorch.org/whl/cu121
|
| 5 |
+
torch==2.5.1+cu121
|
| 6 |
+
torchvision==0.20.1+cu121
|
| 7 |
+
torchaudio==2.5.1+cu121
|
| 8 |
+
|
| 9 |
+
transformers==5.16.1
|
| 10 |
+
tokenizers==0.23.1
|
| 11 |
+
datasets==5.0.1
|
| 12 |
+
accelerate==1.14.0
|
| 13 |
+
sentencepiece==0.2.2
|
| 14 |
+
numpy==2.2.6
|
| 15 |
+
pandas==2.3.3
|
| 16 |
+
matplotlib==3.10.9
|
| 17 |
+
tqdm==4.70.0
|
| 18 |
+
aksharamukha==2.3
|
| 19 |
+
pytest==9.1.1
|
| 20 |
+
PyYAML==6.0.3
|
results/.gitkeep
ADDED
|
File without changes
|
results/manifest.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Results manifest
|
| 2 |
+
|
| 3 |
+
CSVs in this directory are gitignored (`results/*.csv`); this file tracks
|
| 4 |
+
what each one is and how to regenerate it. Format for all: `condition, metric, value, n`.
|
| 5 |
+
|
| 6 |
+
| File | Produced by | Status |
|
| 7 |
+
|---|---|---|
|
| 8 |
+
| `phase1_hindi_corpus_stats.csv` | `scripts/phase1_data_pipeline.py` step 1 | complete |
|
| 9 |
+
| `phase1_reversibility.csv` | `scripts/phase1_data_pipeline.py` step 2 | complete -- rate 0.990 (aksharamukha, after switching from indic-nlp-library); see `docs/experiment-log.md` |
|
| 10 |
+
| `phase1_fertility_triples.csv` | `scripts/phase1_data_pipeline.py` step 3 | complete -- 9,907 triples, restricted to the verified-reversible sentence subset |
|
| 11 |
+
| `phase1_romanization_ambiguity.csv` | `scripts/phase1_data_pipeline.py` step 4 | complete -- 30,000 native types, mean 1.7688 attested romanizations/type |
|
| 12 |
+
| `phase1b_english_control.csv` | `src/data/english_control.py` (via interactive build, see `docs/experiment-log.md`) | complete -- 9,906 sentences from wikimedia/wikipedia, word-count-matched to L1-L5 |
|
| 13 |
+
| `phase2_measurements.csv` | `scripts/phase2_measurement.py` (per condition) + `scripts/phase2_merge_results.py` | complete -- 182 rows, 7 conditions x ~26 metrics, 100 sentences/condition (deliberate PoC-scope reduction from the full 9,907 pool, see `docs/experiment-log.md`). **The `entropy_trough_depth` rows are superseded for ALL seven conditions** (not only the byte ones): they were produced with leading-position sampling, which never reaches a word boundary under byte tokenization and biases the subword conditions too. See the Phase 2b entry in `docs/experiment-log.md` and `phase2b_blockers.csv`. |
|
| 14 |
+
| `phase2b_blockers.csv` | `scripts/phase2b_run_all.sh` + `scripts/phase2b_run_trough.sh` + `scripts/phase2b_aggregate.py` | complete -- blocker A (model x script factorial on D_indep, n=2000/cell, paired, with standard errors), blocker B (ByT5 driving mode x position strategy), and `entropy_trough_depth_spread_corrected` for all seven conditions, which supersede the `phase2_measurements.csv` trough rows |
|
| 15 |
+
| `phase3_training.csv` | `scripts/phase3_train.py` (per condition) + `scripts/phase3_aggregate.py` | training-side rows: token budget, steps, throughput, per-head training losses |
|
| 16 |
+
| `phase3_measurements.csv` | same | held-out rows: BPB, D = BPB(MTP) - BPB(NTP), per-head accuracy split by word boundary, speculative acceptance, boundary-completion rate, and the trained-D vs D_indep comparison |
|
| 17 |
+
|
| 18 |
+
Phase 3 run logs are written per condition to the `run_log_dir` in
|
| 19 |
+
`configs/phase3.yaml` (outside the repo, so untracked) as JSON with the
|
| 20 |
+
fields: `command`, `git_hash`, `condition`, `seed`, `use_shared_trunk`,
|
| 21 |
+
`wall_seconds`, `peak_gpu_mib`, `tokens_processed`, `tokens_per_second`.
|
| 22 |
+
|
| 23 |
+
Regenerate Phase 1 with: `python scripts/phase1_data_pipeline.py --config configs/phase1.yaml`
|
| 24 |
+
(requires `.venv` activated; Dakshina must already be extracted at the path in `configs/phase1.yaml`).
|
| 25 |
+
|
| 26 |
+
Regenerate Phase 2 with (one process per condition, each pinned to a GPU via
|
| 27 |
+
`CUDA_VISIBLE_DEVICES`, e.g. `CUDA_VISIBLE_DEVICES=3 python scripts/phase2_measurement.py --condition L1 --out <path>/L1.csv`
|
| 28 |
+
for all 7 conditions), then `python scripts/phase2_merge_results.py --per-condition-dir <path> --out results/phase2_measurements.csv`.
|
| 29 |
+
Requires the ByT5-large safetensors conversion at
|
| 30 |
+
`/data/cs769_mtp/scratch/models/byt5-large-safetensors` (see
|
| 31 |
+
`docs/experiment-log.md` for how it was produced).
|
| 32 |
+
|
| 33 |
+
Regenerate Phase 2b with: `bash scripts/phase2b_run_all.sh <out_dir>` (launches
|
| 34 |
+
every cell concurrently across the four GPUs and records launch/finish
|
| 35 |
+
timestamps to `<out_dir>/concurrency.log`), then
|
| 36 |
+
`python scripts/phase2b_aggregate.py --in-dir <out_dir> --out results/phase2b_blockers.csv`.
|
| 37 |
+
|
| 38 |
+
Regenerate Phase 3 with: `python scripts/phase3_prepare_data.py --condition <C>`
|
| 39 |
+
for each of L4/L2/E1, then one GPU-pinned training process per condition
|
| 40 |
+
(e.g. `CUDA_VISIBLE_DEVICES=0 python scripts/phase3_train.py --condition L4 --out <dir>/L4.csv`),
|
| 41 |
+
then `python scripts/phase3_aggregate.py --in-dir <dir>`. Add
|
| 42 |
+
`--no-shared-trunk` to reproduce the ablation showing D is zero by
|
| 43 |
+
construction without shared trainable capacity.
|
results/phase4_capacity_pilot_seed0.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_capacity_train.py --condition L2 --depths 1,2,4 --seed 0 --max-steps 2245 --spec-docs 64 --out results/phase4_capacity_pilot_seed0.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 8487.2
|
| 5 |
+
}
|
results/phase4_capacity_pilot_seed1.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_capacity_train.py --condition L2 --depths 1,2,4 --seed 1 --max-steps 2245 --spec-docs 64 --out results/phase4_capacity_pilot_seed1.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 8582.6
|
| 5 |
+
}
|
results/phase4_lambda10M_E1_seed0.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_lambda_sweep_train.py --lambdas 0.1 --max-steps 9765 --spec-docs 64 --checkpoint-dir /data/cs769_mtp/scratch/checkpoints/phase4_lambda_10M --condition E1 --seed 0 --out results/phase4_lambda10M_E1_seed0.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 12488.3
|
| 5 |
+
}
|
results/phase4_lambda10M_E1_seed1.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_lambda_sweep_train.py --lambdas 0.1 --max-steps 9765 --spec-docs 64 --checkpoint-dir /data/cs769_mtp/scratch/checkpoints/phase4_lambda_10M --condition E1 --seed 1 --out results/phase4_lambda10M_E1_seed1.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 12582.4
|
| 5 |
+
}
|
results/phase4_lambda10M_L2_seed0.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_lambda_sweep_train.py --lambdas 0.1 --max-steps 9765 --spec-docs 64 --checkpoint-dir /data/cs769_mtp/scratch/checkpoints/phase4_lambda_10M --condition L2 --seed 0 --out results/phase4_lambda10M_L2_seed0.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 12367.0
|
| 5 |
+
}
|
results/phase4_lambda10M_L2_seed1.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_lambda_sweep_train.py --lambdas 0.1 --max-steps 9765 --spec-docs 64 --checkpoint-dir /data/cs769_mtp/scratch/checkpoints/phase4_lambda_10M --condition L2 --seed 1 --out results/phase4_lambda10M_L2_seed1.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 12502.0
|
| 5 |
+
}
|
results/phase4_lambda10M_L4_seed0.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_lambda_sweep_train.py --lambdas 0.1 --max-steps 9765 --spec-docs 64 --checkpoint-dir /data/cs769_mtp/scratch/checkpoints/phase4_lambda_10M --condition L4 --seed 0 --out results/phase4_lambda10M_L4_seed0.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 12211.4
|
| 5 |
+
}
|
results/phase4_lambda10M_L4_seed1.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_lambda_sweep_train.py --lambdas 0.1 --max-steps 9765 --spec-docs 64 --checkpoint-dir /data/cs769_mtp/scratch/checkpoints/phase4_lambda_10M --condition L4 --seed 1 --out results/phase4_lambda10M_L4_seed1.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 12341.9
|
| 5 |
+
}
|
results/phase4_lambda_sweep_seed0.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_lambda_sweep_train.py --condition L2 --lambdas 1.0,0.5,0.25,0.1 --seed 0 --max-steps 2245 --spec-docs 64 --out results/phase4_lambda_sweep_seed0.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 9421.0
|
| 5 |
+
}
|
results/phase4_lambda_sweep_seed1.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_lambda_sweep_train.py --condition L2 --lambdas 1.0,0.5,0.25,0.1 --seed 1 --max-steps 2245 --spec-docs 64 --out results/phase4_lambda_sweep_seed1.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 9437.2
|
| 5 |
+
}
|
results/phase4_pilot_seed1.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_boundary_weighted_train.py --condition L2 --alphas 1.0,0.25,0.0 --seed 1 --max-steps 2245 --train-seconds 20000 --spec-docs 64 --out results/phase4_pilot_seed1.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 7500.1,
|
| 5 |
+
"gpu": "NVIDIA GeForce GTX 1080 Ti"
|
| 6 |
+
}
|
results/phase4_token_projection_pilot.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"command": "scripts/phase4_pcgrad_train.py --condition L2 --seed 0 --max-steps 2245 --train-seconds 20000 --spec-docs 64 --out results/phase4_token_projection_pilot.csv",
|
| 3 |
+
"git_hash": "f25e07d61f2000a0b1a3862552180bc1d5c1a9cd",
|
| 4 |
+
"wall_seconds": 7509.3
|
| 5 |
+
}
|
results/phase5_dependence_probe/Devanagari.json
ADDED
|
@@ -0,0 +1,448 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "Devanagari",
|
| 3 |
+
"bigram_nnz": 251282,
|
| 4 |
+
"betas": [
|
| 5 |
+
0.25,
|
| 6 |
+
0.5,
|
| 7 |
+
1.0
|
| 8 |
+
],
|
| 9 |
+
"teacher_forced": {
|
| 10 |
+
"marginal": {
|
| 11 |
+
"1": {
|
| 12 |
+
"intra": 0.7237324905589629,
|
| 13 |
+
"bound": 0.4045359568169946,
|
| 14 |
+
"all": 0.6021489329950753,
|
| 15 |
+
"n_intra": 37337,
|
| 16 |
+
"n_bound": 22972
|
| 17 |
+
},
|
| 18 |
+
"2": {
|
| 19 |
+
"intra": 0.40244492208490057,
|
| 20 |
+
"bound": 0.24471930665040723,
|
| 21 |
+
"all": 0.3422674930625945,
|
| 22 |
+
"n_intra": 37220,
|
| 23 |
+
"n_bound": 22961
|
| 24 |
+
},
|
| 25 |
+
"3": {
|
| 26 |
+
"intra": 0.2326696661906943,
|
| 27 |
+
"bound": 0.15852807813044995,
|
| 28 |
+
"all": 0.2043528216741878,
|
| 29 |
+
"n_intra": 37117,
|
| 30 |
+
"n_bound": 22936
|
| 31 |
+
},
|
| 32 |
+
"4": {
|
| 33 |
+
"intra": 0.14496314496314497,
|
| 34 |
+
"bound": 0.10394092974484447,
|
| 35 |
+
"all": 0.12929495202336252,
|
| 36 |
+
"n_intra": 37037,
|
| 37 |
+
"n_bound": 22888
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
"oracle_backbone": {
|
| 41 |
+
"1": {
|
| 42 |
+
"intra": 0.7232236119666818,
|
| 43 |
+
"bound": 0.4050148006268501,
|
| 44 |
+
"all": 0.6020162828101941,
|
| 45 |
+
"n_intra": 37337,
|
| 46 |
+
"n_bound": 22972
|
| 47 |
+
},
|
| 48 |
+
"2": {
|
| 49 |
+
"intra": 0.7254970445996776,
|
| 50 |
+
"bound": 0.4052088323679282,
|
| 51 |
+
"all": 0.6032967215566375,
|
| 52 |
+
"n_intra": 37220,
|
| 53 |
+
"n_bound": 22961
|
| 54 |
+
},
|
| 55 |
+
"3": {
|
| 56 |
+
"intra": 0.7268906431015437,
|
| 57 |
+
"bound": 0.4056069061737007,
|
| 58 |
+
"all": 0.6041829717083244,
|
| 59 |
+
"n_intra": 37117,
|
| 60 |
+
"n_bound": 22936
|
| 61 |
+
},
|
| 62 |
+
"4": {
|
| 63 |
+
"intra": 0.7274617274617274,
|
| 64 |
+
"bound": 0.40606431317721076,
|
| 65 |
+
"all": 0.6047058823529412,
|
| 66 |
+
"n_intra": 37037,
|
| 67 |
+
"n_bound": 22888
|
| 68 |
+
}
|
| 69 |
+
},
|
| 70 |
+
"full_b0.25": {
|
| 71 |
+
"1": {
|
| 72 |
+
"intra": 0.7237324905589629,
|
| 73 |
+
"bound": 0.4045359568169946,
|
| 74 |
+
"all": 0.6021489329950753,
|
| 75 |
+
"n_intra": 37337,
|
| 76 |
+
"n_bound": 22972
|
| 77 |
+
},
|
| 78 |
+
"2": {
|
| 79 |
+
"intra": 0.49234282643739924,
|
| 80 |
+
"bound": 0.26414354775488874,
|
| 81 |
+
"all": 0.4052774131370366,
|
| 82 |
+
"n_intra": 37220,
|
| 83 |
+
"n_bound": 22961
|
| 84 |
+
},
|
| 85 |
+
"3": {
|
| 86 |
+
"intra": 0.3404908801896705,
|
| 87 |
+
"bound": 0.20657481688175794,
|
| 88 |
+
"all": 0.2893444124356818,
|
| 89 |
+
"n_intra": 37117,
|
| 90 |
+
"n_bound": 22936
|
| 91 |
+
},
|
| 92 |
+
"4": {
|
| 93 |
+
"intra": 0.25404325404325406,
|
| 94 |
+
"bound": 0.16978329255505067,
|
| 95 |
+
"all": 0.22186065915727993,
|
| 96 |
+
"n_intra": 37037,
|
| 97 |
+
"n_bound": 22888
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"full_b0.5": {
|
| 101 |
+
"1": {
|
| 102 |
+
"intra": 0.7237324905589629,
|
| 103 |
+
"bound": 0.4045359568169946,
|
| 104 |
+
"all": 0.6021489329950753,
|
| 105 |
+
"n_intra": 37337,
|
| 106 |
+
"n_bound": 22972
|
| 107 |
+
},
|
| 108 |
+
"2": {
|
| 109 |
+
"intra": 0.5297420741536808,
|
| 110 |
+
"bound": 0.2678019250032664,
|
| 111 |
+
"all": 0.42980342633056945,
|
| 112 |
+
"n_intra": 37220,
|
| 113 |
+
"n_bound": 22961
|
| 114 |
+
},
|
| 115 |
+
"3": {
|
| 116 |
+
"intra": 0.3945900800172428,
|
| 117 |
+
"bound": 0.21398674572724102,
|
| 118 |
+
"all": 0.32561237573476765,
|
| 119 |
+
"n_intra": 37117,
|
| 120 |
+
"n_bound": 22936
|
| 121 |
+
},
|
| 122 |
+
"4": {
|
| 123 |
+
"intra": 0.3203013203013203,
|
| 124 |
+
"bound": 0.17952638937434465,
|
| 125 |
+
"all": 0.26653316645807257,
|
| 126 |
+
"n_intra": 37037,
|
| 127 |
+
"n_bound": 22888
|
| 128 |
+
}
|
| 129 |
+
},
|
| 130 |
+
"full_b1.0": {
|
| 131 |
+
"1": {
|
| 132 |
+
"intra": 0.7237324905589629,
|
| 133 |
+
"bound": 0.4045359568169946,
|
| 134 |
+
"all": 0.6021489329950753,
|
| 135 |
+
"n_intra": 37337,
|
| 136 |
+
"n_bound": 22972
|
| 137 |
+
},
|
| 138 |
+
"2": {
|
| 139 |
+
"intra": 0.5416174099946266,
|
| 140 |
+
"bound": 0.25264579068855886,
|
| 141 |
+
"all": 0.4313653811003473,
|
| 142 |
+
"n_intra": 37220,
|
| 143 |
+
"n_bound": 22961
|
| 144 |
+
},
|
| 145 |
+
"3": {
|
| 146 |
+
"intra": 0.42923727671956247,
|
| 147 |
+
"bound": 0.20422043948378096,
|
| 148 |
+
"all": 0.3432967545334954,
|
| 149 |
+
"n_intra": 37117,
|
| 150 |
+
"n_bound": 22936
|
| 151 |
+
},
|
| 152 |
+
"4": {
|
| 153 |
+
"intra": 0.36342036342036343,
|
| 154 |
+
"bound": 0.17266689968542467,
|
| 155 |
+
"all": 0.29056320400500624,
|
| 156 |
+
"n_intra": 37037,
|
| 157 |
+
"n_bound": 22888
|
| 158 |
+
}
|
| 159 |
+
},
|
| 160 |
+
"within_b0.25": {
|
| 161 |
+
"1": {
|
| 162 |
+
"intra": 0.7237324905589629,
|
| 163 |
+
"bound": 0.4045359568169946,
|
| 164 |
+
"all": 0.6021489329950753,
|
| 165 |
+
"n_intra": 37337,
|
| 166 |
+
"n_bound": 22972
|
| 167 |
+
},
|
| 168 |
+
"2": {
|
| 169 |
+
"intra": 0.49239656098871576,
|
| 170 |
+
"bound": 0.259178607203519,
|
| 171 |
+
"all": 0.40341636064538644,
|
| 172 |
+
"n_intra": 37220,
|
| 173 |
+
"n_bound": 22961
|
| 174 |
+
},
|
| 175 |
+
"3": {
|
| 176 |
+
"intra": 0.3393593232211655,
|
| 177 |
+
"bound": 0.19580572026508544,
|
| 178 |
+
"all": 0.2845319967362163,
|
| 179 |
+
"n_intra": 37117,
|
| 180 |
+
"n_bound": 22936
|
| 181 |
+
},
|
| 182 |
+
"4": {
|
| 183 |
+
"intra": 0.2544482544482545,
|
| 184 |
+
"bound": 0.15545263893743447,
|
| 185 |
+
"all": 0.21663746349603671,
|
| 186 |
+
"n_intra": 37037,
|
| 187 |
+
"n_bound": 22888
|
| 188 |
+
}
|
| 189 |
+
},
|
| 190 |
+
"within_b0.5": {
|
| 191 |
+
"1": {
|
| 192 |
+
"intra": 0.7237324905589629,
|
| 193 |
+
"bound": 0.4045359568169946,
|
| 194 |
+
"all": 0.6021489329950753,
|
| 195 |
+
"n_intra": 37337,
|
| 196 |
+
"n_bound": 22972
|
| 197 |
+
},
|
| 198 |
+
"2": {
|
| 199 |
+
"intra": 0.531166039763568,
|
| 200 |
+
"bound": 0.2579155960106267,
|
| 201 |
+
"all": 0.42691214835247004,
|
| 202 |
+
"n_intra": 37220,
|
| 203 |
+
"n_bound": 22961
|
| 204 |
+
},
|
| 205 |
+
"3": {
|
| 206 |
+
"intra": 0.39647600829808444,
|
| 207 |
+
"bound": 0.19550052319497732,
|
| 208 |
+
"all": 0.31971758280185836,
|
| 209 |
+
"n_intra": 37117,
|
| 210 |
+
"n_bound": 22936
|
| 211 |
+
},
|
| 212 |
+
"4": {
|
| 213 |
+
"intra": 0.3223803223803224,
|
| 214 |
+
"bound": 0.1558021670744495,
|
| 215 |
+
"all": 0.25875677930746765,
|
| 216 |
+
"n_intra": 37037,
|
| 217 |
+
"n_bound": 22888
|
| 218 |
+
}
|
| 219 |
+
},
|
| 220 |
+
"within_b1.0": {
|
| 221 |
+
"1": {
|
| 222 |
+
"intra": 0.7237324905589629,
|
| 223 |
+
"bound": 0.4045359568169946,
|
| 224 |
+
"all": 0.6021489329950753,
|
| 225 |
+
"n_intra": 37337,
|
| 226 |
+
"n_bound": 22972
|
| 227 |
+
},
|
| 228 |
+
"2": {
|
| 229 |
+
"intra": 0.5449220849005911,
|
| 230 |
+
"bound": 0.24349984756761464,
|
| 231 |
+
"all": 0.4299197421112976,
|
| 232 |
+
"n_intra": 37220,
|
| 233 |
+
"n_bound": 22961
|
| 234 |
+
},
|
| 235 |
+
"3": {
|
| 236 |
+
"intra": 0.43325160977449684,
|
| 237 |
+
"bound": 0.1808074642483432,
|
| 238 |
+
"all": 0.33683579504770783,
|
| 239 |
+
"n_intra": 37117,
|
| 240 |
+
"n_bound": 22936
|
| 241 |
+
},
|
| 242 |
+
"4": {
|
| 243 |
+
"intra": 0.3677403677403677,
|
| 244 |
+
"bound": 0.14011709192590002,
|
| 245 |
+
"all": 0.28080100125156443,
|
| 246 |
+
"n_intra": 37037,
|
| 247 |
+
"n_bound": 22888
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
"cross_b0.25": {
|
| 251 |
+
"1": {
|
| 252 |
+
"intra": 0.7237324905589629,
|
| 253 |
+
"bound": 0.4045359568169946,
|
| 254 |
+
"all": 0.6021489329950753,
|
| 255 |
+
"n_intra": 37337,
|
| 256 |
+
"n_bound": 22972
|
| 257 |
+
},
|
| 258 |
+
"2": {
|
| 259 |
+
"intra": 0.4044062332079527,
|
| 260 |
+
"bound": 0.25761073123992856,
|
| 261 |
+
"all": 0.3483989963609777,
|
| 262 |
+
"n_intra": 37220,
|
| 263 |
+
"n_bound": 22961
|
| 264 |
+
},
|
| 265 |
+
"3": {
|
| 266 |
+
"intra": 0.2409677506263976,
|
| 267 |
+
"bound": 0.1925357516567841,
|
| 268 |
+
"all": 0.2224701513662931,
|
| 269 |
+
"n_intra": 37117,
|
| 270 |
+
"n_bound": 22936
|
| 271 |
+
},
|
| 272 |
+
"4": {
|
| 273 |
+
"intra": 0.15932715932715932,
|
| 274 |
+
"bound": 0.15379238028661307,
|
| 275 |
+
"all": 0.15721318314559868,
|
| 276 |
+
"n_intra": 37037,
|
| 277 |
+
"n_bound": 22888
|
| 278 |
+
}
|
| 279 |
+
},
|
| 280 |
+
"cross_b0.5": {
|
| 281 |
+
"1": {
|
| 282 |
+
"intra": 0.7237324905589629,
|
| 283 |
+
"bound": 0.4045359568169946,
|
| 284 |
+
"all": 0.6021489329950753,
|
| 285 |
+
"n_intra": 37337,
|
| 286 |
+
"n_bound": 22972
|
| 287 |
+
},
|
| 288 |
+
"2": {
|
| 289 |
+
"intra": 0.40298226759806555,
|
| 290 |
+
"bound": 0.26497103784678366,
|
| 291 |
+
"all": 0.35032651501304396,
|
| 292 |
+
"n_intra": 37220,
|
| 293 |
+
"n_bound": 22961
|
| 294 |
+
},
|
| 295 |
+
"3": {
|
| 296 |
+
"intra": 0.24123716895223213,
|
| 297 |
+
"bound": 0.20914719218695502,
|
| 298 |
+
"all": 0.22898106672439344,
|
| 299 |
+
"n_intra": 37117,
|
| 300 |
+
"n_bound": 22936
|
| 301 |
+
},
|
| 302 |
+
"4": {
|
| 303 |
+
"intra": 0.15897615897615897,
|
| 304 |
+
"bound": 0.17511359664452988,
|
| 305 |
+
"all": 0.1651397580308719,
|
| 306 |
+
"n_intra": 37037,
|
| 307 |
+
"n_bound": 22888
|
| 308 |
+
}
|
| 309 |
+
},
|
| 310 |
+
"cross_b1.0": {
|
| 311 |
+
"1": {
|
| 312 |
+
"intra": 0.7237324905589629,
|
| 313 |
+
"bound": 0.4045359568169946,
|
| 314 |
+
"all": 0.6021489329950753,
|
| 315 |
+
"n_intra": 37337,
|
| 316 |
+
"n_bound": 22972
|
| 317 |
+
},
|
| 318 |
+
"2": {
|
| 319 |
+
"intra": 0.39701773240193444,
|
| 320 |
+
"bound": 0.26457906885588606,
|
| 321 |
+
"all": 0.34648809424901544,
|
| 322 |
+
"n_intra": 37220,
|
| 323 |
+
"n_bound": 22961
|
| 324 |
+
},
|
| 325 |
+
"3": {
|
| 326 |
+
"intra": 0.23654929008271142,
|
| 327 |
+
"bound": 0.21690791768399023,
|
| 328 |
+
"all": 0.22904767455414385,
|
| 329 |
+
"n_intra": 37117,
|
| 330 |
+
"n_bound": 22936
|
| 331 |
+
},
|
| 332 |
+
"4": {
|
| 333 |
+
"intra": 0.15503415503415505,
|
| 334 |
+
"bound": 0.189837469416288,
|
| 335 |
+
"all": 0.1683270755110555,
|
| 336 |
+
"n_intra": 37037,
|
| 337 |
+
"n_bound": 22888
|
| 338 |
+
}
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
"partA_seconds": 87.9771609371528,
|
| 342 |
+
"replay": {
|
| 343 |
+
"marginal": {
|
| 344 |
+
"tokens_per_step": 2.6990546218487395,
|
| 345 |
+
"rounds": 5712,
|
| 346 |
+
"accept_by_position": [
|
| 347 |
+
0.9042366946778712,
|
| 348 |
+
0.5264278799612778,
|
| 349 |
+
0.4722324383964693,
|
| 350 |
+
0.4182242990654206
|
| 351 |
+
]
|
| 352 |
+
},
|
| 353 |
+
"full_b0.25": {
|
| 354 |
+
"tokens_per_step": 2.847798046803022,
|
| 355 |
+
"rounds": 5427,
|
| 356 |
+
"accept_by_position": [
|
| 357 |
+
0.9060254284134881,
|
| 358 |
+
0.5842993695342689,
|
| 359 |
+
0.529063696484511,
|
| 360 |
+
0.4723684210526316
|
| 361 |
+
]
|
| 362 |
+
},
|
| 363 |
+
"full_b0.5": {
|
| 364 |
+
"tokens_per_step": 2.8563239644970415,
|
| 365 |
+
"rounds": 5408,
|
| 366 |
+
"accept_by_position": [
|
| 367 |
+
0.9051405325443787,
|
| 368 |
+
0.5820224719101124,
|
| 369 |
+
0.5447525447525448,
|
| 370 |
+
0.4787371134020619
|
| 371 |
+
]
|
| 372 |
+
},
|
| 373 |
+
"full_b1.0": {
|
| 374 |
+
"tokens_per_step": 2.8037010159651667,
|
| 375 |
+
"rounds": 5512,
|
| 376 |
+
"accept_by_position": [
|
| 377 |
+
0.9091074020319303,
|
| 378 |
+
0.5477948513270804,
|
| 379 |
+
0.5318761384335154,
|
| 380 |
+
0.49726027397260275
|
| 381 |
+
]
|
| 382 |
+
},
|
| 383 |
+
"within_b0.25": {
|
| 384 |
+
"tokens_per_step": 2.833394495412844,
|
| 385 |
+
"rounds": 5450,
|
| 386 |
+
"accept_by_position": [
|
| 387 |
+
0.9056880733944954,
|
| 388 |
+
0.580226904376013,
|
| 389 |
+
0.5216480446927374,
|
| 390 |
+
0.46720214190093706
|
| 391 |
+
]
|
| 392 |
+
},
|
| 393 |
+
"within_b0.5": {
|
| 394 |
+
"tokens_per_step": 2.8410596026490067,
|
| 395 |
+
"rounds": 5436,
|
| 396 |
+
"accept_by_position": [
|
| 397 |
+
0.9043414275202355,
|
| 398 |
+
0.5827908868999186,
|
| 399 |
+
0.5319371727748691,
|
| 400 |
+
0.4612860892388451
|
| 401 |
+
]
|
| 402 |
+
},
|
| 403 |
+
"within_b1.0": {
|
| 404 |
+
"tokens_per_step": 2.7869384809669855,
|
| 405 |
+
"rounds": 5543,
|
| 406 |
+
"accept_by_position": [
|
| 407 |
+
0.9083528775031572,
|
| 408 |
+
0.5485600794438927,
|
| 409 |
+
0.5231716147719044,
|
| 410 |
+
0.4588235294117647
|
| 411 |
+
]
|
| 412 |
+
},
|
| 413 |
+
"cross_b0.25": {
|
| 414 |
+
"tokens_per_step": 2.7315388701965646,
|
| 415 |
+
"rounds": 5647,
|
| 416 |
+
"accept_by_position": [
|
| 417 |
+
0.9045510890738445,
|
| 418 |
+
0.5340642129992169,
|
| 419 |
+
0.49450146627565983,
|
| 420 |
+
0.4395848776871757
|
| 421 |
+
]
|
| 422 |
+
},
|
| 423 |
+
"cross_b0.5": {
|
| 424 |
+
"tokens_per_step": 2.7271923620933523,
|
| 425 |
+
"rounds": 5656,
|
| 426 |
+
"accept_by_position": [
|
| 427 |
+
0.9032885431400283,
|
| 428 |
+
0.5329810138970444,
|
| 429 |
+
0.49320602276900477,
|
| 430 |
+
0.4422933730454207
|
| 431 |
+
]
|
| 432 |
+
},
|
| 433 |
+
"cross_b1.0": {
|
| 434 |
+
"tokens_per_step": 2.7023809523809526,
|
| 435 |
+
"rounds": 5712,
|
| 436 |
+
"accept_by_position": [
|
| 437 |
+
0.9037114845938375,
|
| 438 |
+
0.5207283998450213,
|
| 439 |
+
0.4806547619047619,
|
| 440 |
+
0.4504643962848297
|
| 441 |
+
]
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
"replay_docs": 238,
|
| 445 |
+
"partB_seconds": 93.65744689106941,
|
| 446 |
+
"peak_gpu_mib": 5963.0185546875,
|
| 447 |
+
"gpu": "NVIDIA GeForce GTX 1080 Ti"
|
| 448 |
+
}
|
results/phase5_dependence_probe/English.json
ADDED
|
@@ -0,0 +1,448 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "English",
|
| 3 |
+
"bigram_nnz": 2259220,
|
| 4 |
+
"betas": [
|
| 5 |
+
0.25,
|
| 6 |
+
0.5,
|
| 7 |
+
1.0
|
| 8 |
+
],
|
| 9 |
+
"teacher_forced": {
|
| 10 |
+
"marginal": {
|
| 11 |
+
"1": {
|
| 12 |
+
"intra": 0.7070237225064788,
|
| 13 |
+
"bound": 0.45416475686486935,
|
| 14 |
+
"all": 0.5145209129696893,
|
| 15 |
+
"n_intra": 15049,
|
| 16 |
+
"n_bound": 47998
|
| 17 |
+
},
|
| 18 |
+
"2": {
|
| 19 |
+
"intra": 0.20988395358143258,
|
| 20 |
+
"bound": 0.1787793427230047,
|
| 21 |
+
"all": 0.18619177037142992,
|
| 22 |
+
"n_intra": 14994,
|
| 23 |
+
"n_bound": 47925
|
| 24 |
+
},
|
| 25 |
+
"3": {
|
| 26 |
+
"intra": 0.12290913956911548,
|
| 27 |
+
"bound": 0.08640401295851186,
|
| 28 |
+
"all": 0.0950932458473348,
|
| 29 |
+
"n_intra": 14946,
|
| 30 |
+
"n_bound": 47845
|
| 31 |
+
},
|
| 32 |
+
"4": {
|
| 33 |
+
"intra": 0.08917197452229299,
|
| 34 |
+
"bound": 0.05669347407221245,
|
| 35 |
+
"all": 0.06442398225428084,
|
| 36 |
+
"n_intra": 14915,
|
| 37 |
+
"n_bound": 47748
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
"oracle_backbone": {
|
| 41 |
+
"1": {
|
| 42 |
+
"intra": 0.7141338294903316,
|
| 43 |
+
"bound": 0.4606233593066378,
|
| 44 |
+
"all": 0.5211350262502578,
|
| 45 |
+
"n_intra": 15049,
|
| 46 |
+
"n_bound": 47998
|
| 47 |
+
},
|
| 48 |
+
"2": {
|
| 49 |
+
"intra": 0.7166866746698679,
|
| 50 |
+
"bound": 0.46132498695878976,
|
| 51 |
+
"all": 0.5221793099063876,
|
| 52 |
+
"n_intra": 14994,
|
| 53 |
+
"n_bound": 47925
|
| 54 |
+
},
|
| 55 |
+
"3": {
|
| 56 |
+
"intra": 0.7175163923457781,
|
| 57 |
+
"bound": 0.4618455428989445,
|
| 58 |
+
"all": 0.5227022981000462,
|
| 59 |
+
"n_intra": 14946,
|
| 60 |
+
"n_bound": 47845
|
| 61 |
+
},
|
| 62 |
+
"4": {
|
| 63 |
+
"intra": 0.7180690579953067,
|
| 64 |
+
"bound": 0.4622811426656614,
|
| 65 |
+
"all": 0.5231635893589519,
|
| 66 |
+
"n_intra": 14915,
|
| 67 |
+
"n_bound": 47748
|
| 68 |
+
}
|
| 69 |
+
},
|
| 70 |
+
"full_b0.25": {
|
| 71 |
+
"1": {
|
| 72 |
+
"intra": 0.7070237225064788,
|
| 73 |
+
"bound": 0.45416475686486935,
|
| 74 |
+
"all": 0.5145209129696893,
|
| 75 |
+
"n_intra": 15049,
|
| 76 |
+
"n_bound": 47998
|
| 77 |
+
},
|
| 78 |
+
"2": {
|
| 79 |
+
"intra": 0.27657729758570093,
|
| 80 |
+
"bound": 0.23557642149191446,
|
| 81 |
+
"all": 0.2453471924220029,
|
| 82 |
+
"n_intra": 14994,
|
| 83 |
+
"n_bound": 47925
|
| 84 |
+
},
|
| 85 |
+
"3": {
|
| 86 |
+
"intra": 0.17998126589053928,
|
| 87 |
+
"bound": 0.1586581669975964,
|
| 88 |
+
"all": 0.16373365609721138,
|
| 89 |
+
"n_intra": 14946,
|
| 90 |
+
"n_bound": 47845
|
| 91 |
+
},
|
| 92 |
+
"4": {
|
| 93 |
+
"intra": 0.1469661414683205,
|
| 94 |
+
"bound": 0.13422551729915388,
|
| 95 |
+
"all": 0.13725803105500853,
|
| 96 |
+
"n_intra": 14915,
|
| 97 |
+
"n_bound": 47748
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"full_b0.5": {
|
| 101 |
+
"1": {
|
| 102 |
+
"intra": 0.7070237225064788,
|
| 103 |
+
"bound": 0.45416475686486935,
|
| 104 |
+
"all": 0.5145209129696893,
|
| 105 |
+
"n_intra": 15049,
|
| 106 |
+
"n_bound": 47998
|
| 107 |
+
},
|
| 108 |
+
"2": {
|
| 109 |
+
"intra": 0.3217953848205949,
|
| 110 |
+
"bound": 0.2576943140323422,
|
| 111 |
+
"all": 0.27297000905926666,
|
| 112 |
+
"n_intra": 14994,
|
| 113 |
+
"n_bound": 47925
|
| 114 |
+
},
|
| 115 |
+
"3": {
|
| 116 |
+
"intra": 0.21979124849458048,
|
| 117 |
+
"bound": 0.18942418225519908,
|
| 118 |
+
"all": 0.1966523864885095,
|
| 119 |
+
"n_intra": 14946,
|
| 120 |
+
"n_bound": 47845
|
| 121 |
+
},
|
| 122 |
+
"4": {
|
| 123 |
+
"intra": 0.18464632919879317,
|
| 124 |
+
"bound": 0.16610119795593534,
|
| 125 |
+
"all": 0.17051529610775099,
|
| 126 |
+
"n_intra": 14915,
|
| 127 |
+
"n_bound": 47748
|
| 128 |
+
}
|
| 129 |
+
},
|
| 130 |
+
"full_b1.0": {
|
| 131 |
+
"1": {
|
| 132 |
+
"intra": 0.7070237225064788,
|
| 133 |
+
"bound": 0.45416475686486935,
|
| 134 |
+
"all": 0.5145209129696893,
|
| 135 |
+
"n_intra": 15049,
|
| 136 |
+
"n_bound": 47998
|
| 137 |
+
},
|
| 138 |
+
"2": {
|
| 139 |
+
"intra": 0.3276643990929705,
|
| 140 |
+
"bound": 0.25744392279603545,
|
| 141 |
+
"all": 0.27417791128276037,
|
| 142 |
+
"n_intra": 14994,
|
| 143 |
+
"n_bound": 47925
|
| 144 |
+
},
|
| 145 |
+
"3": {
|
| 146 |
+
"intra": 0.23497925866452563,
|
| 147 |
+
"bound": 0.19974919009300868,
|
| 148 |
+
"all": 0.20813492379481136,
|
| 149 |
+
"n_intra": 14946,
|
| 150 |
+
"n_bound": 47845
|
| 151 |
+
},
|
| 152 |
+
"4": {
|
| 153 |
+
"intra": 0.20341937646664432,
|
| 154 |
+
"bound": 0.17772472145430174,
|
| 155 |
+
"all": 0.18384054386160892,
|
| 156 |
+
"n_intra": 14915,
|
| 157 |
+
"n_bound": 47748
|
| 158 |
+
}
|
| 159 |
+
},
|
| 160 |
+
"within_b0.25": {
|
| 161 |
+
"1": {
|
| 162 |
+
"intra": 0.7070237225064788,
|
| 163 |
+
"bound": 0.45416475686486935,
|
| 164 |
+
"all": 0.5145209129696893,
|
| 165 |
+
"n_intra": 15049,
|
| 166 |
+
"n_bound": 47998
|
| 167 |
+
},
|
| 168 |
+
"2": {
|
| 169 |
+
"intra": 0.26857409630518875,
|
| 170 |
+
"bound": 0.1819300991131977,
|
| 171 |
+
"all": 0.2025779176401405,
|
| 172 |
+
"n_intra": 14994,
|
| 173 |
+
"n_bound": 47925
|
| 174 |
+
},
|
| 175 |
+
"3": {
|
| 176 |
+
"intra": 0.16961059815335205,
|
| 177 |
+
"bound": 0.09279966558679068,
|
| 178 |
+
"all": 0.11108279849022949,
|
| 179 |
+
"n_intra": 14946,
|
| 180 |
+
"n_bound": 47845
|
| 181 |
+
},
|
| 182 |
+
"4": {
|
| 183 |
+
"intra": 0.13556821991283943,
|
| 184 |
+
"bound": 0.06494512859177348,
|
| 185 |
+
"all": 0.08175478352456793,
|
| 186 |
+
"n_intra": 14915,
|
| 187 |
+
"n_bound": 47748
|
| 188 |
+
}
|
| 189 |
+
},
|
| 190 |
+
"within_b0.5": {
|
| 191 |
+
"1": {
|
| 192 |
+
"intra": 0.7070237225064788,
|
| 193 |
+
"bound": 0.45416475686486935,
|
| 194 |
+
"all": 0.5145209129696893,
|
| 195 |
+
"n_intra": 15049,
|
| 196 |
+
"n_bound": 47998
|
| 197 |
+
},
|
| 198 |
+
"2": {
|
| 199 |
+
"intra": 0.3268640789649193,
|
| 200 |
+
"bound": 0.18001043296817945,
|
| 201 |
+
"all": 0.21500659578187828,
|
| 202 |
+
"n_intra": 14994,
|
| 203 |
+
"n_bound": 47925
|
| 204 |
+
},
|
| 205 |
+
"3": {
|
| 206 |
+
"intra": 0.23083099156965076,
|
| 207 |
+
"bound": 0.09171282265649493,
|
| 208 |
+
"all": 0.12482680638945072,
|
| 209 |
+
"n_intra": 14946,
|
| 210 |
+
"n_bound": 47845
|
| 211 |
+
},
|
| 212 |
+
"4": {
|
| 213 |
+
"intra": 0.19745222929936307,
|
| 214 |
+
"bound": 0.06479852559269499,
|
| 215 |
+
"all": 0.09637266010245281,
|
| 216 |
+
"n_intra": 14915,
|
| 217 |
+
"n_bound": 47748
|
| 218 |
+
}
|
| 219 |
+
},
|
| 220 |
+
"within_b1.0": {
|
| 221 |
+
"1": {
|
| 222 |
+
"intra": 0.7070237225064788,
|
| 223 |
+
"bound": 0.45416475686486935,
|
| 224 |
+
"all": 0.5145209129696893,
|
| 225 |
+
"n_intra": 15049,
|
| 226 |
+
"n_bound": 47998
|
| 227 |
+
},
|
| 228 |
+
"2": {
|
| 229 |
+
"intra": 0.37901827397625715,
|
| 230 |
+
"bound": 0.17089201877934274,
|
| 231 |
+
"all": 0.22048983613852732,
|
| 232 |
+
"n_intra": 14994,
|
| 233 |
+
"n_bound": 47925
|
| 234 |
+
},
|
| 235 |
+
"3": {
|
| 236 |
+
"intra": 0.3037602033989027,
|
| 237 |
+
"bound": 0.08510816177239001,
|
| 238 |
+
"all": 0.13715341370578585,
|
| 239 |
+
"n_intra": 14946,
|
| 240 |
+
"n_bound": 47845
|
| 241 |
+
},
|
| 242 |
+
"4": {
|
| 243 |
+
"intra": 0.27810928595373785,
|
| 244 |
+
"bound": 0.057803468208092484,
|
| 245 |
+
"all": 0.11024049279479119,
|
| 246 |
+
"n_intra": 14915,
|
| 247 |
+
"n_bound": 47748
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
"cross_b0.25": {
|
| 251 |
+
"1": {
|
| 252 |
+
"intra": 0.7070237225064788,
|
| 253 |
+
"bound": 0.45416475686486935,
|
| 254 |
+
"all": 0.5145209129696893,
|
| 255 |
+
"n_intra": 15049,
|
| 256 |
+
"n_bound": 47998
|
| 257 |
+
},
|
| 258 |
+
"2": {
|
| 259 |
+
"intra": 0.22148859543817526,
|
| 260 |
+
"bound": 0.2353886280646844,
|
| 261 |
+
"all": 0.23207616141388135,
|
| 262 |
+
"n_intra": 14994,
|
| 263 |
+
"n_bound": 47925
|
| 264 |
+
},
|
| 265 |
+
"3": {
|
| 266 |
+
"intra": 0.13455105044828047,
|
| 267 |
+
"bound": 0.15539763820670915,
|
| 268 |
+
"all": 0.15043557197687565,
|
| 269 |
+
"n_intra": 14946,
|
| 270 |
+
"n_bound": 47845
|
| 271 |
+
},
|
| 272 |
+
"4": {
|
| 273 |
+
"intra": 0.10070398927254443,
|
| 274 |
+
"bound": 0.1306651587501047,
|
| 275 |
+
"all": 0.12353382378756204,
|
| 276 |
+
"n_intra": 14915,
|
| 277 |
+
"n_bound": 47748
|
| 278 |
+
}
|
| 279 |
+
},
|
| 280 |
+
"cross_b0.5": {
|
| 281 |
+
"1": {
|
| 282 |
+
"intra": 0.7070237225064788,
|
| 283 |
+
"bound": 0.45416475686486935,
|
| 284 |
+
"all": 0.5145209129696893,
|
| 285 |
+
"n_intra": 15049,
|
| 286 |
+
"n_bound": 47998
|
| 287 |
+
},
|
| 288 |
+
"2": {
|
| 289 |
+
"intra": 0.20741629985327464,
|
| 290 |
+
"bound": 0.258925404277517,
|
| 291 |
+
"all": 0.24665045534735136,
|
| 292 |
+
"n_intra": 14994,
|
| 293 |
+
"n_bound": 47925
|
| 294 |
+
},
|
| 295 |
+
"3": {
|
| 296 |
+
"intra": 0.11688746152816808,
|
| 297 |
+
"bound": 0.189695892987773,
|
| 298 |
+
"all": 0.17236546638849518,
|
| 299 |
+
"n_intra": 14946,
|
| 300 |
+
"n_bound": 47845
|
| 301 |
+
},
|
| 302 |
+
"4": {
|
| 303 |
+
"intra": 0.08273550117331545,
|
| 304 |
+
"bound": 0.16587082181452625,
|
| 305 |
+
"all": 0.1460830154955875,
|
| 306 |
+
"n_intra": 14915,
|
| 307 |
+
"n_bound": 47748
|
| 308 |
+
}
|
| 309 |
+
},
|
| 310 |
+
"cross_b1.0": {
|
| 311 |
+
"1": {
|
| 312 |
+
"intra": 0.7070237225064788,
|
| 313 |
+
"bound": 0.45416475686486935,
|
| 314 |
+
"all": 0.5145209129696893,
|
| 315 |
+
"n_intra": 15049,
|
| 316 |
+
"n_bound": 47998
|
| 317 |
+
},
|
| 318 |
+
"2": {
|
| 319 |
+
"intra": 0.15786314525810324,
|
| 320 |
+
"bound": 0.2637454355764215,
|
| 321 |
+
"all": 0.23851300878907802,
|
| 322 |
+
"n_intra": 14994,
|
| 323 |
+
"n_bound": 47925
|
| 324 |
+
},
|
| 325 |
+
"3": {
|
| 326 |
+
"intra": 0.07306302689682859,
|
| 327 |
+
"bound": 0.20227818998850455,
|
| 328 |
+
"all": 0.1715213963784619,
|
| 329 |
+
"n_intra": 14946,
|
| 330 |
+
"n_bound": 47845
|
| 331 |
+
},
|
| 332 |
+
"4": {
|
| 333 |
+
"intra": 0.0476701307408649,
|
| 334 |
+
"bound": 0.17950490072882633,
|
| 335 |
+
"all": 0.14812568820516095,
|
| 336 |
+
"n_intra": 14915,
|
| 337 |
+
"n_bound": 47748
|
| 338 |
+
}
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
"partA_seconds": 115.26408612215891,
|
| 342 |
+
"replay": {
|
| 343 |
+
"marginal": {
|
| 344 |
+
"tokens_per_step": 2.2224382116078867,
|
| 345 |
+
"rounds": 7202,
|
| 346 |
+
"accept_by_position": [
|
| 347 |
+
0.873923910024993,
|
| 348 |
+
0.3349221480775342,
|
| 349 |
+
0.16555977229601518,
|
| 350 |
+
0.1518624641833811
|
| 351 |
+
]
|
| 352 |
+
},
|
| 353 |
+
"full_b0.25": {
|
| 354 |
+
"tokens_per_step": 2.356323529411765,
|
| 355 |
+
"rounds": 6800,
|
| 356 |
+
"accept_by_position": [
|
| 357 |
+
0.8775,
|
| 358 |
+
0.41344058991117816,
|
| 359 |
+
0.2691528171868666,
|
| 360 |
+
0.18825301204819278
|
| 361 |
+
]
|
| 362 |
+
},
|
| 363 |
+
"full_b0.5": {
|
| 364 |
+
"tokens_per_step": 2.4062453085122355,
|
| 365 |
+
"rounds": 6661,
|
| 366 |
+
"accept_by_position": [
|
| 367 |
+
0.8764449782314968,
|
| 368 |
+
0.44021925316889343,
|
| 369 |
+
0.30233463035019453,
|
| 370 |
+
0.23423423423423423
|
| 371 |
+
]
|
| 372 |
+
},
|
| 373 |
+
"full_b1.0": {
|
| 374 |
+
"tokens_per_step": 2.3948075201432406,
|
| 375 |
+
"rounds": 6702,
|
| 376 |
+
"accept_by_position": [
|
| 377 |
+
0.8769024171888988,
|
| 378 |
+
0.431172366853837,
|
| 379 |
+
0.2959747434885556,
|
| 380 |
+
0.24933333333333332
|
| 381 |
+
]
|
| 382 |
+
},
|
| 383 |
+
"within_b0.25": {
|
| 384 |
+
"tokens_per_step": 2.256695799266986,
|
| 385 |
+
"rounds": 7094,
|
| 386 |
+
"accept_by_position": [
|
| 387 |
+
0.8742599379757542,
|
| 388 |
+
0.354563044179297,
|
| 389 |
+
0.19918144611186903,
|
| 390 |
+
0.1735159817351598
|
| 391 |
+
]
|
| 392 |
+
},
|
| 393 |
+
"within_b0.5": {
|
| 394 |
+
"tokens_per_step": 2.267884969542428,
|
| 395 |
+
"rounds": 7059,
|
| 396 |
+
"accept_by_position": [
|
| 397 |
+
0.874203144921377,
|
| 398 |
+
0.36282612218441096,
|
| 399 |
+
0.20544886109870478,
|
| 400 |
+
0.17391304347826086
|
| 401 |
+
]
|
| 402 |
+
},
|
| 403 |
+
"within_b1.0": {
|
| 404 |
+
"tokens_per_step": 2.262153759185981,
|
| 405 |
+
"rounds": 7076,
|
| 406 |
+
"accept_by_position": [
|
| 407 |
+
0.8743640474844545,
|
| 408 |
+
0.3572005818652012,
|
| 409 |
+
0.20497737556561085,
|
| 410 |
+
0.17880794701986755
|
| 411 |
+
]
|
| 412 |
+
},
|
| 413 |
+
"cross_b0.25": {
|
| 414 |
+
"tokens_per_step": 2.325642141924249,
|
| 415 |
+
"rounds": 6891,
|
| 416 |
+
"accept_by_position": [
|
| 417 |
+
0.8753446524452184,
|
| 418 |
+
0.3973806366047745,
|
| 419 |
+
0.25114726741760535,
|
| 420 |
+
0.17275747508305647
|
| 421 |
+
]
|
| 422 |
+
},
|
| 423 |
+
"cross_b0.5": {
|
| 424 |
+
"tokens_per_step": 2.352422907488987,
|
| 425 |
+
"rounds": 6810,
|
| 426 |
+
"accept_by_position": [
|
| 427 |
+
0.8762114537444934,
|
| 428 |
+
0.40774258421317244,
|
| 429 |
+
0.2704480065762433,
|
| 430 |
+
0.23100303951367782
|
| 431 |
+
]
|
| 432 |
+
},
|
| 433 |
+
"cross_b1.0": {
|
| 434 |
+
"tokens_per_step": 2.335664335664336,
|
| 435 |
+
"rounds": 6864,
|
| 436 |
+
"accept_by_position": [
|
| 437 |
+
0.8763111888111889,
|
| 438 |
+
0.3921862011637573,
|
| 439 |
+
0.27002967359050445,
|
| 440 |
+
0.24646781789638933
|
| 441 |
+
]
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
"replay_docs": 248,
|
| 445 |
+
"partB_seconds": 102.41539405379444,
|
| 446 |
+
"peak_gpu_mib": 5986.7607421875,
|
| 447 |
+
"gpu": "NVIDIA GeForce GTX 1080 Ti"
|
| 448 |
+
}
|
results/phase5_dependence_probe/IAST.json
ADDED
|
@@ -0,0 +1,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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "IAST",
|
| 3 |
+
"bigram_nnz": 267135,
|
| 4 |
+
"betas": [
|
| 5 |
+
0.25,
|
| 6 |
+
0.5,
|
| 7 |
+
1.0
|
| 8 |
+
],
|
| 9 |
+
"teacher_forced": {
|
| 10 |
+
"marginal": {
|
| 11 |
+
"1": {
|
| 12 |
+
"intra": 0.6505094090854608,
|
| 13 |
+
"bound": 0.20384900074019244,
|
| 14 |
+
"all": 0.5044691836076154,
|
| 15 |
+
"n_intra": 41715,
|
| 16 |
+
"n_bound": 20265
|
| 17 |
+
},
|
| 18 |
+
"2": {
|
| 19 |
+
"intra": 0.4024712726573393,
|
| 20 |
+
"bound": 0.09504295447812777,
|
| 21 |
+
"all": 0.3018010735303628,
|
| 22 |
+
"n_intra": 41598,
|
| 23 |
+
"n_bound": 20254
|
| 24 |
+
},
|
| 25 |
+
"3": {
|
| 26 |
+
"intra": 0.25609080174470444,
|
| 27 |
+
"bound": 0.051515301329905575,
|
| 28 |
+
"all": 0.18905126044974402,
|
| 29 |
+
"n_intra": 41497,
|
| 30 |
+
"n_bound": 20227
|
| 31 |
+
},
|
| 32 |
+
"4": {
|
| 33 |
+
"intra": 0.18208162279642598,
|
| 34 |
+
"bound": 0.0306152779153869,
|
| 35 |
+
"all": 0.1324436651730632,
|
| 36 |
+
"n_intra": 41410,
|
| 37 |
+
"n_bound": 20186
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
"oracle_backbone": {
|
| 41 |
+
"1": {
|
| 42 |
+
"intra": 0.5073235047345079,
|
| 43 |
+
"bound": 0.154206760424377,
|
| 44 |
+
"all": 0.39186834462729914,
|
| 45 |
+
"n_intra": 41715,
|
| 46 |
+
"n_bound": 20265
|
| 47 |
+
},
|
| 48 |
+
"2": {
|
| 49 |
+
"intra": 0.5087504206933026,
|
| 50 |
+
"bound": 0.1542905105164412,
|
| 51 |
+
"all": 0.392679298971739,
|
| 52 |
+
"n_intra": 41598,
|
| 53 |
+
"n_bound": 20254
|
| 54 |
+
},
|
| 55 |
+
"3": {
|
| 56 |
+
"intra": 0.5097717907318602,
|
| 57 |
+
"bound": 0.15444702625203935,
|
| 58 |
+
"all": 0.393331605210291,
|
| 59 |
+
"n_intra": 41497,
|
| 60 |
+
"n_bound": 20227
|
| 61 |
+
},
|
| 62 |
+
"4": {
|
| 63 |
+
"intra": 0.5105047090074861,
|
| 64 |
+
"bound": 0.15461210740116912,
|
| 65 |
+
"all": 0.3938729787648549,
|
| 66 |
+
"n_intra": 41410,
|
| 67 |
+
"n_bound": 20186
|
| 68 |
+
}
|
| 69 |
+
},
|
| 70 |
+
"full_b0.25": {
|
| 71 |
+
"1": {
|
| 72 |
+
"intra": 0.6505094090854608,
|
| 73 |
+
"bound": 0.20384900074019244,
|
| 74 |
+
"all": 0.5044691836076154,
|
| 75 |
+
"n_intra": 41715,
|
| 76 |
+
"n_bound": 20265
|
| 77 |
+
},
|
| 78 |
+
"2": {
|
| 79 |
+
"intra": 0.5246406077215251,
|
| 80 |
+
"bound": 0.15280932161548336,
|
| 81 |
+
"all": 0.40288107094354264,
|
| 82 |
+
"n_intra": 41598,
|
| 83 |
+
"n_bound": 20254
|
| 84 |
+
},
|
| 85 |
+
"3": {
|
| 86 |
+
"intra": 0.44111622526929656,
|
| 87 |
+
"bound": 0.1101497997725812,
|
| 88 |
+
"all": 0.3326582852699112,
|
| 89 |
+
"n_intra": 41497,
|
| 90 |
+
"n_bound": 20227
|
| 91 |
+
},
|
| 92 |
+
"4": {
|
| 93 |
+
"intra": 0.3918377203574016,
|
| 94 |
+
"bound": 0.09947488358268107,
|
| 95 |
+
"all": 0.2960257159555815,
|
| 96 |
+
"n_intra": 41410,
|
| 97 |
+
"n_bound": 20186
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"full_b0.5": {
|
| 101 |
+
"1": {
|
| 102 |
+
"intra": 0.6505094090854608,
|
| 103 |
+
"bound": 0.20384900074019244,
|
| 104 |
+
"all": 0.5044691836076154,
|
| 105 |
+
"n_intra": 41715,
|
| 106 |
+
"n_bound": 20265
|
| 107 |
+
},
|
| 108 |
+
"2": {
|
| 109 |
+
"intra": 0.5652194817058512,
|
| 110 |
+
"bound": 0.16638688654093017,
|
| 111 |
+
"all": 0.43461812067516004,
|
| 112 |
+
"n_intra": 41598,
|
| 113 |
+
"n_bound": 20254
|
| 114 |
+
},
|
| 115 |
+
"3": {
|
| 116 |
+
"intra": 0.48415548111911705,
|
| 117 |
+
"bound": 0.13763781084688784,
|
| 118 |
+
"all": 0.3706013868187415,
|
| 119 |
+
"n_intra": 41497,
|
| 120 |
+
"n_bound": 20227
|
| 121 |
+
},
|
| 122 |
+
"4": {
|
| 123 |
+
"intra": 0.43291475489012315,
|
| 124 |
+
"bound": 0.12721688298820966,
|
| 125 |
+
"all": 0.33273264497694655,
|
| 126 |
+
"n_intra": 41410,
|
| 127 |
+
"n_bound": 20186
|
| 128 |
+
}
|
| 129 |
+
},
|
| 130 |
+
"full_b1.0": {
|
| 131 |
+
"1": {
|
| 132 |
+
"intra": 0.6505094090854608,
|
| 133 |
+
"bound": 0.20384900074019244,
|
| 134 |
+
"all": 0.5044691836076154,
|
| 135 |
+
"n_intra": 41715,
|
| 136 |
+
"n_bound": 20265
|
| 137 |
+
},
|
| 138 |
+
"2": {
|
| 139 |
+
"intra": 0.5708207125342565,
|
| 140 |
+
"bound": 0.1658437839439123,
|
| 141 |
+
"all": 0.43820733363512904,
|
| 142 |
+
"n_intra": 41598,
|
| 143 |
+
"n_bound": 20254
|
| 144 |
+
},
|
| 145 |
+
"3": {
|
| 146 |
+
"intra": 0.5030002168831482,
|
| 147 |
+
"bound": 0.149849211450042,
|
| 148 |
+
"all": 0.38727237379301405,
|
| 149 |
+
"n_intra": 41497,
|
| 150 |
+
"n_bound": 20227
|
| 151 |
+
},
|
| 152 |
+
"4": {
|
| 153 |
+
"intra": 0.4540207679304516,
|
| 154 |
+
"bound": 0.14272267908451403,
|
| 155 |
+
"all": 0.3520033768426521,
|
| 156 |
+
"n_intra": 41410,
|
| 157 |
+
"n_bound": 20186
|
| 158 |
+
}
|
| 159 |
+
},
|
| 160 |
+
"within_b0.25": {
|
| 161 |
+
"1": {
|
| 162 |
+
"intra": 0.6505094090854608,
|
| 163 |
+
"bound": 0.20384900074019244,
|
| 164 |
+
"all": 0.5044691836076154,
|
| 165 |
+
"n_intra": 41715,
|
| 166 |
+
"n_bound": 20265
|
| 167 |
+
},
|
| 168 |
+
"2": {
|
| 169 |
+
"intra": 0.524231934227607,
|
| 170 |
+
"bound": 0.14184852374839538,
|
| 171 |
+
"all": 0.399017008342495,
|
| 172 |
+
"n_intra": 41598,
|
| 173 |
+
"n_bound": 20254
|
| 174 |
+
},
|
| 175 |
+
"3": {
|
| 176 |
+
"intra": 0.44063426271778683,
|
| 177 |
+
"bound": 0.09966875957878084,
|
| 178 |
+
"all": 0.32889961765277687,
|
| 179 |
+
"n_intra": 41497,
|
| 180 |
+
"n_bound": 20227
|
| 181 |
+
},
|
| 182 |
+
"4": {
|
| 183 |
+
"intra": 0.391040811398213,
|
| 184 |
+
"bound": 0.08763499455067869,
|
| 185 |
+
"all": 0.2916098447951166,
|
| 186 |
+
"n_intra": 41410,
|
| 187 |
+
"n_bound": 20186
|
| 188 |
+
}
|
| 189 |
+
},
|
| 190 |
+
"within_b0.5": {
|
| 191 |
+
"1": {
|
| 192 |
+
"intra": 0.6505094090854608,
|
| 193 |
+
"bound": 0.20384900074019244,
|
| 194 |
+
"all": 0.5044691836076154,
|
| 195 |
+
"n_intra": 41715,
|
| 196 |
+
"n_bound": 20265
|
| 197 |
+
},
|
| 198 |
+
"2": {
|
| 199 |
+
"intra": 0.5661810663974229,
|
| 200 |
+
"bound": 0.14826700898587933,
|
| 201 |
+
"all": 0.42933130699088146,
|
| 202 |
+
"n_intra": 41598,
|
| 203 |
+
"n_bound": 20254
|
| 204 |
+
},
|
| 205 |
+
"3": {
|
| 206 |
+
"intra": 0.48589054630455214,
|
| 207 |
+
"bound": 0.11361052059128887,
|
| 208 |
+
"all": 0.36389410926057936,
|
| 209 |
+
"n_intra": 41497,
|
| 210 |
+
"n_bound": 20227
|
| 211 |
+
},
|
| 212 |
+
"4": {
|
| 213 |
+
"intra": 0.43494325042260323,
|
| 214 |
+
"bound": 0.0993758050133756,
|
| 215 |
+
"all": 0.3249724008052471,
|
| 216 |
+
"n_intra": 41410,
|
| 217 |
+
"n_bound": 20186
|
| 218 |
+
}
|
| 219 |
+
},
|
| 220 |
+
"within_b1.0": {
|
| 221 |
+
"1": {
|
| 222 |
+
"intra": 0.6505094090854608,
|
| 223 |
+
"bound": 0.20384900074019244,
|
| 224 |
+
"all": 0.5044691836076154,
|
| 225 |
+
"n_intra": 41715,
|
| 226 |
+
"n_bound": 20265
|
| 227 |
+
},
|
| 228 |
+
"2": {
|
| 229 |
+
"intra": 0.5741381797201789,
|
| 230 |
+
"bound": 0.14569961489088576,
|
| 231 |
+
"all": 0.4338420746297614,
|
| 232 |
+
"n_intra": 41598,
|
| 233 |
+
"n_bound": 20254
|
| 234 |
+
},
|
| 235 |
+
"3": {
|
| 236 |
+
"intra": 0.5073137817191604,
|
| 237 |
+
"bound": 0.11618134177090028,
|
| 238 |
+
"all": 0.37913939472490443,
|
| 239 |
+
"n_intra": 41497,
|
| 240 |
+
"n_bound": 20227
|
| 241 |
+
},
|
| 242 |
+
"4": {
|
| 243 |
+
"intra": 0.45967157691378896,
|
| 244 |
+
"bound": 0.10210046566927573,
|
| 245 |
+
"all": 0.342489772063121,
|
| 246 |
+
"n_intra": 41410,
|
| 247 |
+
"n_bound": 20186
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
"cross_b0.25": {
|
| 251 |
+
"1": {
|
| 252 |
+
"intra": 0.6505094090854608,
|
| 253 |
+
"bound": 0.20384900074019244,
|
| 254 |
+
"all": 0.5044691836076154,
|
| 255 |
+
"n_intra": 41715,
|
| 256 |
+
"n_bound": 20265
|
| 257 |
+
},
|
| 258 |
+
"2": {
|
| 259 |
+
"intra": 0.4066541660656762,
|
| 260 |
+
"bound": 0.11819887429643527,
|
| 261 |
+
"all": 0.3121968570135161,
|
| 262 |
+
"n_intra": 41598,
|
| 263 |
+
"n_bound": 20254
|
| 264 |
+
},
|
| 265 |
+
"3": {
|
| 266 |
+
"intra": 0.26047666096344313,
|
| 267 |
+
"bound": 0.07074702130815247,
|
| 268 |
+
"all": 0.1983021191108807,
|
| 269 |
+
"n_intra": 41497,
|
| 270 |
+
"n_bound": 20227
|
| 271 |
+
},
|
| 272 |
+
"4": {
|
| 273 |
+
"intra": 0.19002656363197296,
|
| 274 |
+
"bound": 0.05320519171703161,
|
| 275 |
+
"all": 0.14518799922072861,
|
| 276 |
+
"n_intra": 41410,
|
| 277 |
+
"n_bound": 20186
|
| 278 |
+
}
|
| 279 |
+
},
|
| 280 |
+
"cross_b0.5": {
|
| 281 |
+
"1": {
|
| 282 |
+
"intra": 0.6505094090854608,
|
| 283 |
+
"bound": 0.20384900074019244,
|
| 284 |
+
"all": 0.5044691836076154,
|
| 285 |
+
"n_intra": 41715,
|
| 286 |
+
"n_bound": 20265
|
| 287 |
+
},
|
| 288 |
+
"2": {
|
| 289 |
+
"intra": 0.4051156305591615,
|
| 290 |
+
"bound": 0.1358743951811988,
|
| 291 |
+
"all": 0.31695013904158315,
|
| 292 |
+
"n_intra": 41598,
|
| 293 |
+
"n_bound": 20254
|
| 294 |
+
},
|
| 295 |
+
"3": {
|
| 296 |
+
"intra": 0.2593440489673952,
|
| 297 |
+
"bound": 0.09813615464478173,
|
| 298 |
+
"all": 0.206516103946601,
|
| 299 |
+
"n_intra": 41497,
|
| 300 |
+
"n_bound": 20227
|
| 301 |
+
},
|
| 302 |
+
"4": {
|
| 303 |
+
"intra": 0.18901231586573292,
|
| 304 |
+
"bound": 0.08604973744179134,
|
| 305 |
+
"all": 0.15526982271576076,
|
| 306 |
+
"n_intra": 41410,
|
| 307 |
+
"n_bound": 20186
|
| 308 |
+
}
|
| 309 |
+
},
|
| 310 |
+
"cross_b1.0": {
|
| 311 |
+
"1": {
|
| 312 |
+
"intra": 0.6505094090854608,
|
| 313 |
+
"bound": 0.20384900074019244,
|
| 314 |
+
"all": 0.5044691836076154,
|
| 315 |
+
"n_intra": 41715,
|
| 316 |
+
"n_bound": 20265
|
| 317 |
+
},
|
| 318 |
+
"2": {
|
| 319 |
+
"intra": 0.3997307562863599,
|
| 320 |
+
"bound": 0.14490964747704158,
|
| 321 |
+
"all": 0.3162872663778051,
|
| 322 |
+
"n_intra": 41598,
|
| 323 |
+
"n_bound": 20254
|
| 324 |
+
},
|
| 325 |
+
"3": {
|
| 326 |
+
"intra": 0.254090657155939,
|
| 327 |
+
"bound": 0.12231176150689672,
|
| 328 |
+
"all": 0.21090661655109844,
|
| 329 |
+
"n_intra": 41497,
|
| 330 |
+
"n_bound": 20227
|
| 331 |
+
},
|
| 332 |
+
"4": {
|
| 333 |
+
"intra": 0.18435160589229654,
|
| 334 |
+
"bound": 0.11270187258495987,
|
| 335 |
+
"all": 0.1608708357685564,
|
| 336 |
+
"n_intra": 41410,
|
| 337 |
+
"n_bound": 20186
|
| 338 |
+
}
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
"partA_seconds": 184.89516162173823,
|
| 342 |
+
"replay": {
|
| 343 |
+
"marginal": {
|
| 344 |
+
"tokens_per_step": 2.556555269922879,
|
| 345 |
+
"rounds": 6224,
|
| 346 |
+
"accept_by_position": [
|
| 347 |
+
0.9015102827763496,
|
| 348 |
+
0.49581179825343075,
|
| 349 |
+
0.35442127965492454,
|
| 350 |
+
0.3133874239350913
|
| 351 |
+
]
|
| 352 |
+
},
|
| 353 |
+
"full_b0.25": {
|
| 354 |
+
"tokens_per_step": 2.6769050016784157,
|
| 355 |
+
"rounds": 5958,
|
| 356 |
+
"accept_by_position": [
|
| 357 |
+
0.9011413225914736,
|
| 358 |
+
0.5401378282734215,
|
| 359 |
+
0.42758620689655175,
|
| 360 |
+
0.38870967741935486
|
| 361 |
+
]
|
| 362 |
+
},
|
| 363 |
+
"full_b0.5": {
|
| 364 |
+
"tokens_per_step": 2.6734830707341604,
|
| 365 |
+
"rounds": 5966,
|
| 366 |
+
"accept_by_position": [
|
| 367 |
+
0.8999329534026148,
|
| 368 |
+
0.5349227044142298,
|
| 369 |
+
0.42827298050139273,
|
| 370 |
+
0.4170731707317073
|
| 371 |
+
]
|
| 372 |
+
},
|
| 373 |
+
"full_b1.0": {
|
| 374 |
+
"tokens_per_step": 2.6052287581699347,
|
| 375 |
+
"rounds": 6120,
|
| 376 |
+
"accept_by_position": [
|
| 377 |
+
0.9016339869281046,
|
| 378 |
+
0.48133381660021746,
|
| 379 |
+
0.4348644578313253,
|
| 380 |
+
0.42857142857142855
|
| 381 |
+
]
|
| 382 |
+
},
|
| 383 |
+
"within_b0.25": {
|
| 384 |
+
"tokens_per_step": 2.6701272605492297,
|
| 385 |
+
"rounds": 5972,
|
| 386 |
+
"accept_by_position": [
|
| 387 |
+
0.9020428667113195,
|
| 388 |
+
0.5368479673287544,
|
| 389 |
+
0.42254495159059474,
|
| 390 |
+
0.38707037643207853
|
| 391 |
+
]
|
| 392 |
+
},
|
| 393 |
+
"within_b0.5": {
|
| 394 |
+
"tokens_per_step": 2.663324979114453,
|
| 395 |
+
"rounds": 5985,
|
| 396 |
+
"accept_by_position": [
|
| 397 |
+
0.9012531328320802,
|
| 398 |
+
0.5350389321468298,
|
| 399 |
+
0.4133749133749134,
|
| 400 |
+
0.40402347024308466
|
| 401 |
+
]
|
| 402 |
+
},
|
| 403 |
+
"within_b1.0": {
|
| 404 |
+
"tokens_per_step": 2.601894186806009,
|
| 405 |
+
"rounds": 6124,
|
| 406 |
+
"accept_by_position": [
|
| 407 |
+
0.9023514043109079,
|
| 408 |
+
0.48697068403908794,
|
| 409 |
+
0.420661464139725,
|
| 410 |
+
0.40724381625441697
|
| 411 |
+
]
|
| 412 |
+
},
|
| 413 |
+
"cross_b0.25": {
|
| 414 |
+
"tokens_per_step": 2.5763754045307445,
|
| 415 |
+
"rounds": 6180,
|
| 416 |
+
"accept_by_position": [
|
| 417 |
+
0.9004854368932039,
|
| 418 |
+
0.5044025157232704,
|
| 419 |
+
0.37014606341289635,
|
| 420 |
+
0.31857555341674687
|
| 421 |
+
]
|
| 422 |
+
},
|
| 423 |
+
"cross_b0.5": {
|
| 424 |
+
"tokens_per_step": 2.575517464424321,
|
| 425 |
+
"rounds": 6184,
|
| 426 |
+
"accept_by_position": [
|
| 427 |
+
0.9015200517464425,
|
| 428 |
+
0.5022421524663677,
|
| 429 |
+
0.3732142857142857,
|
| 430 |
+
0.3090909090909091
|
| 431 |
+
]
|
| 432 |
+
},
|
| 433 |
+
"cross_b1.0": {
|
| 434 |
+
"tokens_per_step": 2.5660225442834137,
|
| 435 |
+
"rounds": 6210,
|
| 436 |
+
"accept_by_position": [
|
| 437 |
+
0.9006441223832529,
|
| 438 |
+
0.49848024316109424,
|
| 439 |
+
0.366571018651363,
|
| 440 |
+
0.3150684931506849
|
| 441 |
+
]
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
"replay_docs": 245,
|
| 445 |
+
"partB_seconds": 208.24716028617695,
|
| 446 |
+
"peak_gpu_mib": 5964.14208984375,
|
| 447 |
+
"gpu": "Quadro P6000"
|
| 448 |
+
}
|
results/phase5_dependence_probe/ISO.json
ADDED
|
@@ -0,0 +1,448 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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562,
|
| 4 |
+
"betas": [
|
| 5 |
+
0.25,
|
| 6 |
+
0.5,
|
| 7 |
+
1.0
|
| 8 |
+
],
|
| 9 |
+
"teacher_forced": {
|
| 10 |
+
"marginal": {
|
| 11 |
+
"1": {
|
| 12 |
+
"intra": 0.618986967498351,
|
| 13 |
+
"bound": 0.22726540258903152,
|
| 14 |
+
"all": 0.5024606928288381,
|
| 15 |
+
"n_intra": 43967,
|
| 16 |
+
"n_bound": 18617
|
| 17 |
+
},
|
| 18 |
+
"2": {
|
| 19 |
+
"intra": 0.39039408866995073,
|
| 20 |
+
"bound": 0.11753009458297506,
|
| 21 |
+
"all": 0.30909760471371844,
|
| 22 |
+
"n_intra": 43848,
|
| 23 |
+
"n_bound": 18608
|
| 24 |
+
},
|
| 25 |
+
"3": {
|
| 26 |
+
"intra": 0.2542748719824433,
|
| 27 |
+
"bound": 0.07624838570813604,
|
| 28 |
+
"all": 0.2011936850211783,
|
| 29 |
+
"n_intra": 43744,
|
| 30 |
+
"n_bound": 18584
|
| 31 |
+
},
|
| 32 |
+
"4": {
|
| 33 |
+
"intra": 0.1909180470593626,
|
| 34 |
+
"bound": 0.030668894518406726,
|
| 35 |
+
"all": 0.14311897106109325,
|
| 36 |
+
"n_intra": 43647,
|
| 37 |
+
"n_bound": 18553
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
"oracle_backbone": {
|
| 41 |
+
"1": {
|
| 42 |
+
"intra": 0.47119430481952373,
|
| 43 |
+
"bound": 0.16979105118977278,
|
| 44 |
+
"all": 0.38153521666879714,
|
| 45 |
+
"n_intra": 43967,
|
| 46 |
+
"n_bound": 18617
|
| 47 |
+
},
|
| 48 |
+
"2": {
|
| 49 |
+
"intra": 0.4724730888523992,
|
| 50 |
+
"bound": 0.1698731728288908,
|
| 51 |
+
"all": 0.3823171512744972,
|
| 52 |
+
"n_intra": 43848,
|
| 53 |
+
"n_bound": 18608
|
| 54 |
+
},
|
| 55 |
+
"3": {
|
| 56 |
+
"intra": 0.4734363569861009,
|
| 57 |
+
"bound": 0.17003874300473526,
|
| 58 |
+
"all": 0.382973944294699,
|
| 59 |
+
"n_intra": 43744,
|
| 60 |
+
"n_bound": 18584
|
| 61 |
+
},
|
| 62 |
+
"4": {
|
| 63 |
+
"intra": 0.47409902169679474,
|
| 64 |
+
"bound": 0.17016115992022854,
|
| 65 |
+
"all": 0.3834405144694534,
|
| 66 |
+
"n_intra": 43647,
|
| 67 |
+
"n_bound": 18553
|
| 68 |
+
}
|
| 69 |
+
},
|
| 70 |
+
"full_b0.25": {
|
| 71 |
+
"1": {
|
| 72 |
+
"intra": 0.618986967498351,
|
| 73 |
+
"bound": 0.22726540258903152,
|
| 74 |
+
"all": 0.5024606928288381,
|
| 75 |
+
"n_intra": 43967,
|
| 76 |
+
"n_bound": 18617
|
| 77 |
+
},
|
| 78 |
+
"2": {
|
| 79 |
+
"intra": 0.4859058565955118,
|
| 80 |
+
"bound": 0.16723989681857265,
|
| 81 |
+
"all": 0.39096323811963624,
|
| 82 |
+
"n_intra": 43848,
|
| 83 |
+
"n_bound": 18608
|
| 84 |
+
},
|
| 85 |
+
"3": {
|
| 86 |
+
"intra": 0.41205651060716897,
|
| 87 |
+
"bound": 0.1378067154541541,
|
| 88 |
+
"all": 0.3302849441663458,
|
| 89 |
+
"n_intra": 43744,
|
| 90 |
+
"n_bound": 18584
|
| 91 |
+
},
|
| 92 |
+
"4": {
|
| 93 |
+
"intra": 0.3720759731482118,
|
| 94 |
+
"bound": 0.09335417452703067,
|
| 95 |
+
"all": 0.2889389067524116,
|
| 96 |
+
"n_intra": 43647,
|
| 97 |
+
"n_bound": 18553
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"full_b0.5": {
|
| 101 |
+
"1": {
|
| 102 |
+
"intra": 0.618986967498351,
|
| 103 |
+
"bound": 0.22726540258903152,
|
| 104 |
+
"all": 0.5024606928288381,
|
| 105 |
+
"n_intra": 43967,
|
| 106 |
+
"n_bound": 18617
|
| 107 |
+
},
|
| 108 |
+
"2": {
|
| 109 |
+
"intra": 0.5211184090494435,
|
| 110 |
+
"bound": 0.17766552020636286,
|
| 111 |
+
"all": 0.4187908287434354,
|
| 112 |
+
"n_intra": 43848,
|
| 113 |
+
"n_bound": 18608
|
| 114 |
+
},
|
| 115 |
+
"3": {
|
| 116 |
+
"intra": 0.4524277615215801,
|
| 117 |
+
"bound": 0.1550258286698235,
|
| 118 |
+
"all": 0.363753048389167,
|
| 119 |
+
"n_intra": 43744,
|
| 120 |
+
"n_bound": 18584
|
| 121 |
+
},
|
| 122 |
+
"4": {
|
| 123 |
+
"intra": 0.41210163356015306,
|
| 124 |
+
"bound": 0.12143588637956125,
|
| 125 |
+
"all": 0.32540192926045014,
|
| 126 |
+
"n_intra": 43647,
|
| 127 |
+
"n_bound": 18553
|
| 128 |
+
}
|
| 129 |
+
},
|
| 130 |
+
"full_b1.0": {
|
| 131 |
+
"1": {
|
| 132 |
+
"intra": 0.618986967498351,
|
| 133 |
+
"bound": 0.22726540258903152,
|
| 134 |
+
"all": 0.5024606928288381,
|
| 135 |
+
"n_intra": 43967,
|
| 136 |
+
"n_bound": 18617
|
| 137 |
+
},
|
| 138 |
+
"2": {
|
| 139 |
+
"intra": 0.5277777777777778,
|
| 140 |
+
"bound": 0.17814918314703354,
|
| 141 |
+
"all": 0.4236102215960036,
|
| 142 |
+
"n_intra": 43848,
|
| 143 |
+
"n_bound": 18608
|
| 144 |
+
},
|
| 145 |
+
"3": {
|
| 146 |
+
"intra": 0.4633092538405267,
|
| 147 |
+
"bound": 0.16196728368489022,
|
| 148 |
+
"all": 0.37345976126299574,
|
| 149 |
+
"n_intra": 43744,
|
| 150 |
+
"n_bound": 18584
|
| 151 |
+
},
|
| 152 |
+
"4": {
|
| 153 |
+
"intra": 0.43077416546383485,
|
| 154 |
+
"bound": 0.13976176359618392,
|
| 155 |
+
"all": 0.3439710610932476,
|
| 156 |
+
"n_intra": 43647,
|
| 157 |
+
"n_bound": 18553
|
| 158 |
+
}
|
| 159 |
+
},
|
| 160 |
+
"within_b0.25": {
|
| 161 |
+
"1": {
|
| 162 |
+
"intra": 0.618986967498351,
|
| 163 |
+
"bound": 0.22726540258903152,
|
| 164 |
+
"all": 0.5024606928288381,
|
| 165 |
+
"n_intra": 43967,
|
| 166 |
+
"n_bound": 18617
|
| 167 |
+
},
|
| 168 |
+
"2": {
|
| 169 |
+
"intra": 0.4856549899653348,
|
| 170 |
+
"bound": 0.16014617368873602,
|
| 171 |
+
"all": 0.38867362623286794,
|
| 172 |
+
"n_intra": 43848,
|
| 173 |
+
"n_bound": 18608
|
| 174 |
+
},
|
| 175 |
+
"3": {
|
| 176 |
+
"intra": 0.41130212143379663,
|
| 177 |
+
"bound": 0.131510977184675,
|
| 178 |
+
"all": 0.32787832113977666,
|
| 179 |
+
"n_intra": 43744,
|
| 180 |
+
"n_bound": 18584
|
| 181 |
+
},
|
| 182 |
+
"4": {
|
| 183 |
+
"intra": 0.3720759731482118,
|
| 184 |
+
"bound": 0.08613162291812645,
|
| 185 |
+
"all": 0.2867845659163987,
|
| 186 |
+
"n_intra": 43647,
|
| 187 |
+
"n_bound": 18553
|
| 188 |
+
}
|
| 189 |
+
},
|
| 190 |
+
"within_b0.5": {
|
| 191 |
+
"1": {
|
| 192 |
+
"intra": 0.618986967498351,
|
| 193 |
+
"bound": 0.22726540258903152,
|
| 194 |
+
"all": 0.5024606928288381,
|
| 195 |
+
"n_intra": 43967,
|
| 196 |
+
"n_bound": 18617
|
| 197 |
+
},
|
| 198 |
+
"2": {
|
| 199 |
+
"intra": 0.521300857507754,
|
| 200 |
+
"bound": 0.1663263112639725,
|
| 201 |
+
"all": 0.4155405405405405,
|
| 202 |
+
"n_intra": 43848,
|
| 203 |
+
"n_bound": 18608
|
| 204 |
+
},
|
| 205 |
+
"3": {
|
| 206 |
+
"intra": 0.45318215069495243,
|
| 207 |
+
"bound": 0.1415733964700818,
|
| 208 |
+
"all": 0.360271467077397,
|
| 209 |
+
"n_intra": 43744,
|
| 210 |
+
"n_bound": 18584
|
| 211 |
+
},
|
| 212 |
+
"4": {
|
| 213 |
+
"intra": 0.4134075652393063,
|
| 214 |
+
"bound": 0.10262491241308683,
|
| 215 |
+
"all": 0.3207073954983923,
|
| 216 |
+
"n_intra": 43647,
|
| 217 |
+
"n_bound": 18553
|
| 218 |
+
}
|
| 219 |
+
},
|
| 220 |
+
"within_b1.0": {
|
| 221 |
+
"1": {
|
| 222 |
+
"intra": 0.618986967498351,
|
| 223 |
+
"bound": 0.22726540258903152,
|
| 224 |
+
"all": 0.5024606928288381,
|
| 225 |
+
"n_intra": 43967,
|
| 226 |
+
"n_bound": 18617
|
| 227 |
+
},
|
| 228 |
+
"2": {
|
| 229 |
+
"intra": 0.529237365444262,
|
| 230 |
+
"bound": 0.16315563198624247,
|
| 231 |
+
"all": 0.4201677981298834,
|
| 232 |
+
"n_intra": 43848,
|
| 233 |
+
"n_bound": 18608
|
| 234 |
+
},
|
| 235 |
+
"3": {
|
| 236 |
+
"intra": 0.4681327724945135,
|
| 237 |
+
"bound": 0.14146577701248386,
|
| 238 |
+
"all": 0.37073225516621744,
|
| 239 |
+
"n_intra": 43744,
|
| 240 |
+
"n_bound": 18584
|
| 241 |
+
},
|
| 242 |
+
"4": {
|
| 243 |
+
"intra": 0.43487524915801773,
|
| 244 |
+
"bound": 0.10903896943890476,
|
| 245 |
+
"all": 0.33768488745980707,
|
| 246 |
+
"n_intra": 43647,
|
| 247 |
+
"n_bound": 18553
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
"cross_b0.25": {
|
| 251 |
+
"1": {
|
| 252 |
+
"intra": 0.618986967498351,
|
| 253 |
+
"bound": 0.22726540258903152,
|
| 254 |
+
"all": 0.5024606928288381,
|
| 255 |
+
"n_intra": 43967,
|
| 256 |
+
"n_bound": 18617
|
| 257 |
+
},
|
| 258 |
+
"2": {
|
| 259 |
+
"intra": 0.39292556102900933,
|
| 260 |
+
"bound": 0.13795141874462596,
|
| 261 |
+
"all": 0.31695913923402075,
|
| 262 |
+
"n_intra": 43848,
|
| 263 |
+
"n_bound": 18608
|
| 264 |
+
},
|
| 265 |
+
"3": {
|
| 266 |
+
"intra": 0.25870976591075345,
|
| 267 |
+
"bound": 0.09793370641411968,
|
| 268 |
+
"all": 0.21077204466692337,
|
| 269 |
+
"n_intra": 43744,
|
| 270 |
+
"n_bound": 18584
|
| 271 |
+
},
|
| 272 |
+
"4": {
|
| 273 |
+
"intra": 0.1921552454922446,
|
| 274 |
+
"bound": 0.05163585403977793,
|
| 275 |
+
"all": 0.1502411575562701,
|
| 276 |
+
"n_intra": 43647,
|
| 277 |
+
"n_bound": 18553
|
| 278 |
+
}
|
| 279 |
+
},
|
| 280 |
+
"cross_b0.5": {
|
| 281 |
+
"1": {
|
| 282 |
+
"intra": 0.618986967498351,
|
| 283 |
+
"bound": 0.22726540258903152,
|
| 284 |
+
"all": 0.5024606928288381,
|
| 285 |
+
"n_intra": 43967,
|
| 286 |
+
"n_bound": 18617
|
| 287 |
+
},
|
| 288 |
+
"2": {
|
| 289 |
+
"intra": 0.3907589855865718,
|
| 290 |
+
"bound": 0.15235382631126398,
|
| 291 |
+
"all": 0.3197290892788523,
|
| 292 |
+
"n_intra": 43848,
|
| 293 |
+
"n_bound": 18608
|
| 294 |
+
},
|
| 295 |
+
"3": {
|
| 296 |
+
"intra": 0.25548646671543523,
|
| 297 |
+
"bound": 0.12112569952647438,
|
| 298 |
+
"all": 0.215424849184957,
|
| 299 |
+
"n_intra": 43744,
|
| 300 |
+
"n_bound": 18584
|
| 301 |
+
},
|
| 302 |
+
"4": {
|
| 303 |
+
"intra": 0.1899328705294751,
|
| 304 |
+
"bound": 0.08607772327925403,
|
| 305 |
+
"all": 0.15895498392282958,
|
| 306 |
+
"n_intra": 43647,
|
| 307 |
+
"n_bound": 18553
|
| 308 |
+
}
|
| 309 |
+
},
|
| 310 |
+
"cross_b1.0": {
|
| 311 |
+
"1": {
|
| 312 |
+
"intra": 0.618986967498351,
|
| 313 |
+
"bound": 0.22726540258903152,
|
| 314 |
+
"all": 0.5024606928288381,
|
| 315 |
+
"n_intra": 43967,
|
| 316 |
+
"n_bound": 18617
|
| 317 |
+
},
|
| 318 |
+
"2": {
|
| 319 |
+
"intra": 0.3847609925196132,
|
| 320 |
+
"bound": 0.16573516766981944,
|
| 321 |
+
"all": 0.3195049314717561,
|
| 322 |
+
"n_intra": 43848,
|
| 323 |
+
"n_bound": 18608
|
| 324 |
+
},
|
| 325 |
+
"3": {
|
| 326 |
+
"intra": 0.24350768105340162,
|
| 327 |
+
"bound": 0.14846104175634955,
|
| 328 |
+
"all": 0.21516814272878962,
|
| 329 |
+
"n_intra": 43744,
|
| 330 |
+
"n_bound": 18584
|
| 331 |
+
},
|
| 332 |
+
"4": {
|
| 333 |
+
"intra": 0.18131830366348203,
|
| 334 |
+
"bound": 0.12278337735137175,
|
| 335 |
+
"all": 0.16385852090032155,
|
| 336 |
+
"n_intra": 43647,
|
| 337 |
+
"n_bound": 18553
|
| 338 |
+
}
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
"partA_seconds": 185.25942454766482,
|
| 342 |
+
"replay": {
|
| 343 |
+
"marginal": {
|
| 344 |
+
"tokens_per_step": 2.5965052901571015,
|
| 345 |
+
"rounds": 6238,
|
| 346 |
+
"accept_by_position": [
|
| 347 |
+
0.9119910227637064,
|
| 348 |
+
0.4865529970117771,
|
| 349 |
+
0.4129335260115607,
|
| 350 |
+
0.31408573928258965
|
| 351 |
+
]
|
| 352 |
+
},
|
| 353 |
+
"full_b0.25": {
|
| 354 |
+
"tokens_per_step": 2.68282594308405,
|
| 355 |
+
"rounds": 6044,
|
| 356 |
+
"accept_by_position": [
|
| 357 |
+
0.9094970218398412,
|
| 358 |
+
0.5111879206840094,
|
| 359 |
+
0.4782918149466192,
|
| 360 |
+
0.3869047619047619
|
| 361 |
+
]
|
| 362 |
+
},
|
| 363 |
+
"full_b0.5": {
|
| 364 |
+
"tokens_per_step": 2.6797752808988764,
|
| 365 |
+
"rounds": 6052,
|
| 366 |
+
"accept_by_position": [
|
| 367 |
+
0.9099471249173827,
|
| 368 |
+
0.5086253858725259,
|
| 369 |
+
0.4680471260264191,
|
| 370 |
+
0.41723874904652936
|
| 371 |
+
]
|
| 372 |
+
},
|
| 373 |
+
"full_b1.0": {
|
| 374 |
+
"tokens_per_step": 2.6343683953828645,
|
| 375 |
+
"rounds": 6151,
|
| 376 |
+
"accept_by_position": [
|
| 377 |
+
0.9115590960819379,
|
| 378 |
+
0.48314606741573035,
|
| 379 |
+
0.45625692137320045,
|
| 380 |
+
0.4053398058252427
|
| 381 |
+
]
|
| 382 |
+
},
|
| 383 |
+
"within_b0.25": {
|
| 384 |
+
"tokens_per_step": 2.6770678553739473,
|
| 385 |
+
"rounds": 6057,
|
| 386 |
+
"accept_by_position": [
|
| 387 |
+
0.9098563645368994,
|
| 388 |
+
0.5077118490292143,
|
| 389 |
+
0.48034310221586846,
|
| 390 |
+
0.3757440476190476
|
| 391 |
+
]
|
| 392 |
+
},
|
| 393 |
+
"within_b0.5": {
|
| 394 |
+
"tokens_per_step": 2.6778401585204756,
|
| 395 |
+
"rounds": 6056,
|
| 396 |
+
"accept_by_position": [
|
| 397 |
+
0.9105019815059445,
|
| 398 |
+
0.5083424011606819,
|
| 399 |
+
0.4716375312165537,
|
| 400 |
+
0.394856278366112
|
| 401 |
+
]
|
| 402 |
+
},
|
| 403 |
+
"within_b1.0": {
|
| 404 |
+
"tokens_per_step": 2.647875816993464,
|
| 405 |
+
"rounds": 6120,
|
| 406 |
+
"accept_by_position": [
|
| 407 |
+
0.9129084967320261,
|
| 408 |
+
0.48720243422230175,
|
| 409 |
+
0.4650991917707568,
|
| 410 |
+
0.4028436018957346
|
| 411 |
+
]
|
| 412 |
+
},
|
| 413 |
+
"cross_b0.25": {
|
| 414 |
+
"tokens_per_step": 2.611057382333978,
|
| 415 |
+
"rounds": 6204,
|
| 416 |
+
"accept_by_position": [
|
| 417 |
+
0.912314635718891,
|
| 418 |
+
0.48939929328621906,
|
| 419 |
+
0.4223826714801444,
|
| 420 |
+
0.33760683760683763
|
| 421 |
+
]
|
| 422 |
+
},
|
| 423 |
+
"cross_b0.5": {
|
| 424 |
+
"tokens_per_step": 2.607436021245775,
|
| 425 |
+
"rounds": 6213,
|
| 426 |
+
"accept_by_position": [
|
| 427 |
+
0.9113149847094801,
|
| 428 |
+
0.489579653832568,
|
| 429 |
+
0.4152236652236652,
|
| 430 |
+
0.3492615117289314
|
| 431 |
+
]
|
| 432 |
+
},
|
| 433 |
+
"cross_b1.0": {
|
| 434 |
+
"tokens_per_step": 2.5840242346938775,
|
| 435 |
+
"rounds": 6272,
|
| 436 |
+
"accept_by_position": [
|
| 437 |
+
0.9100765306122449,
|
| 438 |
+
0.47775052557813596,
|
| 439 |
+
0.40667400073340665,
|
| 440 |
+
0.3525698827772768
|
| 441 |
+
]
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
"replay_docs": 250,
|
| 445 |
+
"partB_seconds": 208.9829232469201,
|
| 446 |
+
"peak_gpu_mib": 5962.24365234375,
|
| 447 |
+
"gpu": "Quadro P6000"
|
| 448 |
+
}
|
results/phase5_dependence_probe/ITRANS.json
ADDED
|
@@ -0,0 +1,448 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "ITRANS",
|
| 3 |
+
"bigram_nnz": 345673,
|
| 4 |
+
"betas": [
|
| 5 |
+
0.25,
|
| 6 |
+
0.5,
|
| 7 |
+
1.0
|
| 8 |
+
],
|
| 9 |
+
"teacher_forced": {
|
| 10 |
+
"marginal": {
|
| 11 |
+
"1": {
|
| 12 |
+
"intra": 0.5803531367943202,
|
| 13 |
+
"bound": 0.17932312579976173,
|
| 14 |
+
"all": 0.4302582903950324,
|
| 15 |
+
"n_intra": 37889,
|
| 16 |
+
"n_bound": 22663
|
| 17 |
+
},
|
| 18 |
+
"2": {
|
| 19 |
+
"intra": 0.2685587207455258,
|
| 20 |
+
"bound": 0.096150450291365,
|
| 21 |
+
"all": 0.20392559247980935,
|
| 22 |
+
"n_intra": 37772,
|
| 23 |
+
"n_bound": 22652
|
| 24 |
+
},
|
| 25 |
+
"3": {
|
| 26 |
+
"intra": 0.16271168445081488,
|
| 27 |
+
"bound": 0.05313411723101406,
|
| 28 |
+
"all": 0.12160010614302773,
|
| 29 |
+
"n_intra": 37674,
|
| 30 |
+
"n_bound": 22622
|
| 31 |
+
},
|
| 32 |
+
"4": {
|
| 33 |
+
"intra": 0.12288496328615515,
|
| 34 |
+
"bound": 0.03113374667847653,
|
| 35 |
+
"all": 0.08845233346629437,
|
| 36 |
+
"n_intra": 37588,
|
| 37 |
+
"n_bound": 22580
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
"oracle_backbone": {
|
| 41 |
+
"1": {
|
| 42 |
+
"intra": 0.40156773733801365,
|
| 43 |
+
"bound": 0.12972686758152055,
|
| 44 |
+
"all": 0.29982494384991415,
|
| 45 |
+
"n_intra": 37889,
|
| 46 |
+
"n_bound": 22663
|
| 47 |
+
},
|
| 48 |
+
"2": {
|
| 49 |
+
"intra": 0.40281160648099124,
|
| 50 |
+
"bound": 0.12978986402966625,
|
| 51 |
+
"all": 0.3004600820865881,
|
| 52 |
+
"n_intra": 37772,
|
| 53 |
+
"n_bound": 22652
|
| 54 |
+
},
|
| 55 |
+
"3": {
|
| 56 |
+
"intra": 0.4037001645697298,
|
| 57 |
+
"bound": 0.12991777915303687,
|
| 58 |
+
"all": 0.3009818230065013,
|
| 59 |
+
"n_intra": 37674,
|
| 60 |
+
"n_bound": 22622
|
| 61 |
+
},
|
| 62 |
+
"4": {
|
| 63 |
+
"intra": 0.4044641906991593,
|
| 64 |
+
"bound": 0.1300708591674048,
|
| 65 |
+
"all": 0.3014891636750432,
|
| 66 |
+
"n_intra": 37588,
|
| 67 |
+
"n_bound": 22580
|
| 68 |
+
}
|
| 69 |
+
},
|
| 70 |
+
"full_b0.25": {
|
| 71 |
+
"1": {
|
| 72 |
+
"intra": 0.5803531367943202,
|
| 73 |
+
"bound": 0.17932312579976173,
|
| 74 |
+
"all": 0.4302582903950324,
|
| 75 |
+
"n_intra": 37889,
|
| 76 |
+
"n_bound": 22663
|
| 77 |
+
},
|
| 78 |
+
"2": {
|
| 79 |
+
"intra": 0.41395742878322567,
|
| 80 |
+
"bound": 0.12758255341691682,
|
| 81 |
+
"all": 0.30660002647954454,
|
| 82 |
+
"n_intra": 37772,
|
| 83 |
+
"n_bound": 22652
|
| 84 |
+
},
|
| 85 |
+
"3": {
|
| 86 |
+
"intra": 0.3083293518076127,
|
| 87 |
+
"bound": 0.10277605870391654,
|
| 88 |
+
"all": 0.23120936712219717,
|
| 89 |
+
"n_intra": 37674,
|
| 90 |
+
"n_bound": 22622
|
| 91 |
+
},
|
| 92 |
+
"4": {
|
| 93 |
+
"intra": 0.2577684367351282,
|
| 94 |
+
"bound": 0.08680248007085917,
|
| 95 |
+
"all": 0.19360789788591942,
|
| 96 |
+
"n_intra": 37588,
|
| 97 |
+
"n_bound": 22580
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"full_b0.5": {
|
| 101 |
+
"1": {
|
| 102 |
+
"intra": 0.5803531367943202,
|
| 103 |
+
"bound": 0.17932312579976173,
|
| 104 |
+
"all": 0.4302582903950324,
|
| 105 |
+
"n_intra": 37889,
|
| 106 |
+
"n_bound": 22663
|
| 107 |
+
},
|
| 108 |
+
"2": {
|
| 109 |
+
"intra": 0.46621836280842954,
|
| 110 |
+
"bound": 0.13861910648066397,
|
| 111 |
+
"all": 0.3434065934065934,
|
| 112 |
+
"n_intra": 37772,
|
| 113 |
+
"n_bound": 22652
|
| 114 |
+
},
|
| 115 |
+
"3": {
|
| 116 |
+
"intra": 0.373865265169613,
|
| 117 |
+
"bound": 0.11838033772433913,
|
| 118 |
+
"all": 0.2780118084118349,
|
| 119 |
+
"n_intra": 37674,
|
| 120 |
+
"n_bound": 22622
|
| 121 |
+
},
|
| 122 |
+
"4": {
|
| 123 |
+
"intra": 0.32691284452484837,
|
| 124 |
+
"bound": 0.10124003542958371,
|
| 125 |
+
"all": 0.2422217790187475,
|
| 126 |
+
"n_intra": 37588,
|
| 127 |
+
"n_bound": 22580
|
| 128 |
+
}
|
| 129 |
+
},
|
| 130 |
+
"full_b1.0": {
|
| 131 |
+
"1": {
|
| 132 |
+
"intra": 0.5803531367943202,
|
| 133 |
+
"bound": 0.17932312579976173,
|
| 134 |
+
"all": 0.4302582903950324,
|
| 135 |
+
"n_intra": 37889,
|
| 136 |
+
"n_bound": 22663
|
| 137 |
+
},
|
| 138 |
+
"2": {
|
| 139 |
+
"intra": 0.4841152176215186,
|
| 140 |
+
"bound": 0.14140031785272825,
|
| 141 |
+
"all": 0.3556368330464716,
|
| 142 |
+
"n_intra": 37772,
|
| 143 |
+
"n_bound": 22652
|
| 144 |
+
},
|
| 145 |
+
"3": {
|
| 146 |
+
"intra": 0.41431756649147955,
|
| 147 |
+
"bound": 0.125850941561312,
|
| 148 |
+
"all": 0.30608995621600105,
|
| 149 |
+
"n_intra": 37674,
|
| 150 |
+
"n_bound": 22622
|
| 151 |
+
},
|
| 152 |
+
"4": {
|
| 153 |
+
"intra": 0.3798818771948494,
|
| 154 |
+
"bound": 0.1120460584588131,
|
| 155 |
+
"all": 0.2793677702433187,
|
| 156 |
+
"n_intra": 37588,
|
| 157 |
+
"n_bound": 22580
|
| 158 |
+
}
|
| 159 |
+
},
|
| 160 |
+
"within_b0.25": {
|
| 161 |
+
"1": {
|
| 162 |
+
"intra": 0.5803531367943202,
|
| 163 |
+
"bound": 0.17932312579976173,
|
| 164 |
+
"all": 0.4302582903950324,
|
| 165 |
+
"n_intra": 37889,
|
| 166 |
+
"n_bound": 22663
|
| 167 |
+
},
|
| 168 |
+
"2": {
|
| 169 |
+
"intra": 0.41371915704754847,
|
| 170 |
+
"bound": 0.1168991700512096,
|
| 171 |
+
"all": 0.30244604792797564,
|
| 172 |
+
"n_intra": 37772,
|
| 173 |
+
"n_bound": 22652
|
| 174 |
+
},
|
| 175 |
+
"3": {
|
| 176 |
+
"intra": 0.30697563306258957,
|
| 177 |
+
"bound": 0.09017770312085581,
|
| 178 |
+
"all": 0.22563685816637918,
|
| 179 |
+
"n_intra": 37674,
|
| 180 |
+
"n_bound": 22622
|
| 181 |
+
},
|
| 182 |
+
"4": {
|
| 183 |
+
"intra": 0.25667766308396295,
|
| 184 |
+
"bound": 0.07586359610274579,
|
| 185 |
+
"all": 0.1888213003589948,
|
| 186 |
+
"n_intra": 37588,
|
| 187 |
+
"n_bound": 22580
|
| 188 |
+
}
|
| 189 |
+
},
|
| 190 |
+
"within_b0.5": {
|
| 191 |
+
"1": {
|
| 192 |
+
"intra": 0.5803531367943202,
|
| 193 |
+
"bound": 0.17932312579976173,
|
| 194 |
+
"all": 0.4302582903950324,
|
| 195 |
+
"n_intra": 37889,
|
| 196 |
+
"n_bound": 22663
|
| 197 |
+
},
|
| 198 |
+
"2": {
|
| 199 |
+
"intra": 0.46714497511384095,
|
| 200 |
+
"bound": 0.11910648066395903,
|
| 201 |
+
"all": 0.3366708592612207,
|
| 202 |
+
"n_intra": 37772,
|
| 203 |
+
"n_bound": 22652
|
| 204 |
+
},
|
| 205 |
+
"3": {
|
| 206 |
+
"intra": 0.37471465732335296,
|
| 207 |
+
"bound": 0.09375828839183097,
|
| 208 |
+
"all": 0.2693047631683694,
|
| 209 |
+
"n_intra": 37674,
|
| 210 |
+
"n_bound": 22622
|
| 211 |
+
},
|
| 212 |
+
"4": {
|
| 213 |
+
"intra": 0.32765776311588807,
|
| 214 |
+
"bound": 0.0774579273693534,
|
| 215 |
+
"all": 0.23376213269512033,
|
| 216 |
+
"n_intra": 37588,
|
| 217 |
+
"n_bound": 22580
|
| 218 |
+
}
|
| 219 |
+
},
|
| 220 |
+
"within_b1.0": {
|
| 221 |
+
"1": {
|
| 222 |
+
"intra": 0.5803531367943202,
|
| 223 |
+
"bound": 0.17932312579976173,
|
| 224 |
+
"all": 0.4302582903950324,
|
| 225 |
+
"n_intra": 37889,
|
| 226 |
+
"n_bound": 22663
|
| 227 |
+
},
|
| 228 |
+
"2": {
|
| 229 |
+
"intra": 0.4874245472837022,
|
| 230 |
+
"bound": 0.11610453823061981,
|
| 231 |
+
"all": 0.34822256057195816,
|
| 232 |
+
"n_intra": 37772,
|
| 233 |
+
"n_bound": 22652
|
| 234 |
+
},
|
| 235 |
+
"3": {
|
| 236 |
+
"intra": 0.41742315655359136,
|
| 237 |
+
"bound": 0.08986826982583326,
|
| 238 |
+
"all": 0.2945303171022953,
|
| 239 |
+
"n_intra": 37674,
|
| 240 |
+
"n_bound": 22622
|
| 241 |
+
},
|
| 242 |
+
"4": {
|
| 243 |
+
"intra": 0.3838459082685964,
|
| 244 |
+
"bound": 0.07280779450841453,
|
| 245 |
+
"all": 0.26711873421087623,
|
| 246 |
+
"n_intra": 37588,
|
| 247 |
+
"n_bound": 22580
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
"cross_b0.25": {
|
| 251 |
+
"1": {
|
| 252 |
+
"intra": 0.5803531367943202,
|
| 253 |
+
"bound": 0.17932312579976173,
|
| 254 |
+
"all": 0.4302582903950324,
|
| 255 |
+
"n_intra": 37889,
|
| 256 |
+
"n_bound": 22663
|
| 257 |
+
},
|
| 258 |
+
"2": {
|
| 259 |
+
"intra": 0.27628931483638675,
|
| 260 |
+
"bound": 0.11738477838601448,
|
| 261 |
+
"all": 0.216718522441414,
|
| 262 |
+
"n_intra": 37772,
|
| 263 |
+
"n_bound": 22652
|
| 264 |
+
},
|
| 265 |
+
"3": {
|
| 266 |
+
"intra": 0.17309019482932528,
|
| 267 |
+
"bound": 0.08093890902661126,
|
| 268 |
+
"all": 0.1385166511874751,
|
| 269 |
+
"n_intra": 37674,
|
| 270 |
+
"n_bound": 22622
|
| 271 |
+
},
|
| 272 |
+
"4": {
|
| 273 |
+
"intra": 0.1357082047461956,
|
| 274 |
+
"bound": 0.06567759078830823,
|
| 275 |
+
"all": 0.1094269379071932,
|
| 276 |
+
"n_intra": 37588,
|
| 277 |
+
"n_bound": 22580
|
| 278 |
+
}
|
| 279 |
+
},
|
| 280 |
+
"cross_b0.5": {
|
| 281 |
+
"1": {
|
| 282 |
+
"intra": 0.5803531367943202,
|
| 283 |
+
"bound": 0.17932312579976173,
|
| 284 |
+
"all": 0.4302582903950324,
|
| 285 |
+
"n_intra": 37889,
|
| 286 |
+
"n_bound": 22663
|
| 287 |
+
},
|
| 288 |
+
"2": {
|
| 289 |
+
"intra": 0.2745419887747538,
|
| 290 |
+
"bound": 0.13676496556595444,
|
| 291 |
+
"all": 0.22289156626506024,
|
| 292 |
+
"n_intra": 37772,
|
| 293 |
+
"n_bound": 22652
|
| 294 |
+
},
|
| 295 |
+
"3": {
|
| 296 |
+
"intra": 0.17163030206508467,
|
| 297 |
+
"bound": 0.10874370082220847,
|
| 298 |
+
"all": 0.14803635398699747,
|
| 299 |
+
"n_intra": 37674,
|
| 300 |
+
"n_bound": 22622
|
| 301 |
+
},
|
| 302 |
+
"4": {
|
| 303 |
+
"intra": 0.1345376183888475,
|
| 304 |
+
"bound": 0.09552701505757308,
|
| 305 |
+
"all": 0.11989761999734078,
|
| 306 |
+
"n_intra": 37588,
|
| 307 |
+
"n_bound": 22580
|
| 308 |
+
}
|
| 309 |
+
},
|
| 310 |
+
"cross_b1.0": {
|
| 311 |
+
"1": {
|
| 312 |
+
"intra": 0.5803531367943202,
|
| 313 |
+
"bound": 0.17932312579976173,
|
| 314 |
+
"all": 0.4302582903950324,
|
| 315 |
+
"n_intra": 37889,
|
| 316 |
+
"n_bound": 22663
|
| 317 |
+
},
|
| 318 |
+
"2": {
|
| 319 |
+
"intra": 0.26789685481308906,
|
| 320 |
+
"bound": 0.14793395726646655,
|
| 321 |
+
"all": 0.22292466569575003,
|
| 322 |
+
"n_intra": 37772,
|
| 323 |
+
"n_bound": 22652
|
| 324 |
+
},
|
| 325 |
+
"3": {
|
| 326 |
+
"intra": 0.16565801348410045,
|
| 327 |
+
"bound": 0.13234904075678544,
|
| 328 |
+
"all": 0.15316107204458007,
|
| 329 |
+
"n_intra": 37674,
|
| 330 |
+
"n_bound": 22622
|
| 331 |
+
},
|
| 332 |
+
"4": {
|
| 333 |
+
"intra": 0.12972225178248378,
|
| 334 |
+
"bound": 0.12028343666961913,
|
| 335 |
+
"all": 0.12618002925142932,
|
| 336 |
+
"n_intra": 37588,
|
| 337 |
+
"n_bound": 22580
|
| 338 |
+
}
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
"partA_seconds": 110.95282806176692,
|
| 342 |
+
"replay": {
|
| 343 |
+
"marginal": {
|
| 344 |
+
"tokens_per_step": 2.3716039907904833,
|
| 345 |
+
"rounds": 6515,
|
| 346 |
+
"accept_by_position": [
|
| 347 |
+
0.8971603990790483,
|
| 348 |
+
0.40684345594525234,
|
| 349 |
+
0.24222035323801513,
|
| 350 |
+
0.2378472222222222
|
| 351 |
+
]
|
| 352 |
+
},
|
| 353 |
+
"full_b0.25": {
|
| 354 |
+
"tokens_per_step": 2.4671451355661884,
|
| 355 |
+
"rounds": 6270,
|
| 356 |
+
"accept_by_position": [
|
| 357 |
+
0.8993620414673046,
|
| 358 |
+
0.442809008689484,
|
| 359 |
+
0.3183820584701642,
|
| 360 |
+
0.3371069182389937
|
| 361 |
+
]
|
| 362 |
+
},
|
| 363 |
+
"full_b0.5": {
|
| 364 |
+
"tokens_per_step": 2.4807630650849632,
|
| 365 |
+
"rounds": 6238,
|
| 366 |
+
"accept_by_position": [
|
| 367 |
+
0.9004488618146842,
|
| 368 |
+
0.44062666904041303,
|
| 369 |
+
0.3333333333333333,
|
| 370 |
+
0.3878787878787879
|
| 371 |
+
]
|
| 372 |
+
},
|
| 373 |
+
"full_b1.0": {
|
| 374 |
+
"tokens_per_step": 2.4584986510077766,
|
| 375 |
+
"rounds": 6301,
|
| 376 |
+
"accept_by_position": [
|
| 377 |
+
0.8990636406919537,
|
| 378 |
+
0.4144748455428067,
|
| 379 |
+
0.3590289608177172,
|
| 380 |
+
0.3962040332147094
|
| 381 |
+
]
|
| 382 |
+
},
|
| 383 |
+
"within_b0.25": {
|
| 384 |
+
"tokens_per_step": 2.4589825119236886,
|
| 385 |
+
"rounds": 6290,
|
| 386 |
+
"accept_by_position": [
|
| 387 |
+
0.8996820349761526,
|
| 388 |
+
0.43983035872062204,
|
| 389 |
+
0.31498593812776216,
|
| 390 |
+
0.3125
|
| 391 |
+
]
|
| 392 |
+
},
|
| 393 |
+
"within_b0.5": {
|
| 394 |
+
"tokens_per_step": 2.473616885193476,
|
| 395 |
+
"rounds": 6254,
|
| 396 |
+
"accept_by_position": [
|
| 397 |
+
0.8997441637352095,
|
| 398 |
+
0.44304247378709793,
|
| 399 |
+
0.3237063778580024,
|
| 400 |
+
0.35811648079306074
|
| 401 |
+
]
|
| 402 |
+
},
|
| 403 |
+
"within_b1.0": {
|
| 404 |
+
"tokens_per_step": 2.452098178939034,
|
| 405 |
+
"rounds": 6315,
|
| 406 |
+
"accept_by_position": [
|
| 407 |
+
0.8989707046714173,
|
| 408 |
+
0.4199401092126123,
|
| 409 |
+
0.34395973154362414,
|
| 410 |
+
0.3524390243902439
|
| 411 |
+
]
|
| 412 |
+
},
|
| 413 |
+
"cross_b0.25": {
|
| 414 |
+
"tokens_per_step": 2.3953200061986673,
|
| 415 |
+
"rounds": 6453,
|
| 416 |
+
"accept_by_position": [
|
| 417 |
+
0.897721989772199,
|
| 418 |
+
0.4160193336785776,
|
| 419 |
+
0.26099585062240666,
|
| 420 |
+
0.27344992050874406
|
| 421 |
+
]
|
| 422 |
+
},
|
| 423 |
+
"cross_b0.5": {
|
| 424 |
+
"tokens_per_step": 2.397952853598015,
|
| 425 |
+
"rounds": 6448,
|
| 426 |
+
"accept_by_position": [
|
| 427 |
+
0.8974875930521092,
|
| 428 |
+
0.41092102989459134,
|
| 429 |
+
0.27460050462573593,
|
| 430 |
+
0.3001531393568147
|
| 431 |
+
]
|
| 432 |
+
},
|
| 433 |
+
"cross_b1.0": {
|
| 434 |
+
"tokens_per_step": 2.3944229279628195,
|
| 435 |
+
"rounds": 6455,
|
| 436 |
+
"accept_by_position": [
|
| 437 |
+
0.8965143299767622,
|
| 438 |
+
0.4069466044582685,
|
| 439 |
+
0.2823779193205945,
|
| 440 |
+
0.29172932330827067
|
| 441 |
+
]
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
"replay_docs": 239,
|
| 445 |
+
"partB_seconds": 93.75601986516267,
|
| 446 |
+
"peak_gpu_mib": 5964.14208984375,
|
| 447 |
+
"gpu": "NVIDIA GeForce GTX 1080 Ti"
|
| 448 |
+
}
|
results/phase5_dependent/eval_Devanagari_seed0.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_Devanagari_seed1.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_Devanagari_seed2.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_English_seed0.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_English_seed1.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_English_seed2.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_IAST_seed0.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_IAST_seed1.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_IAST_seed2.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_ISO_seed0.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_ISO_seed1.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_ISO_seed2.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_ITRANS_seed0.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_ITRANS_seed1.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/eval_ITRANS_seed2.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/phase5_dependent/grouppilot_train_Devanagari_seed0.json
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "Devanagari",
|
| 3 |
+
"seed": 0,
|
| 4 |
+
"arms": [
|
| 5 |
+
"dependent_teacher",
|
| 6 |
+
"dependent_teacher_gs0",
|
| 7 |
+
"dependent_teacher_gs0.25",
|
| 8 |
+
"dependent_teacher_gs3"
|
| 9 |
+
],
|
| 10 |
+
"lookahead_weight": 0.1,
|
| 11 |
+
"done": false,
|
| 12 |
+
"steps": 400,
|
| 13 |
+
"tokens_per_arm": 409600,
|
| 14 |
+
"train_seconds": 1188.3304247930646,
|
| 15 |
+
"tokens_per_second_per_arm": 344.68527562216343,
|
| 16 |
+
"embed_scale": 115.92121124267578,
|
| 17 |
+
"trainable_parameters": {
|
| 18 |
+
"dependent_teacher": 46147584,
|
| 19 |
+
"dependent_teacher_gs0": 46147584,
|
| 20 |
+
"dependent_teacher_gs0.25": 46147584,
|
| 21 |
+
"dependent_teacher_gs3": 46147584
|
| 22 |
+
},
|
| 23 |
+
"gpu": "NVIDIA GeForce GTX 1080 Ti",
|
| 24 |
+
"peak_gpu_mib": 9535.49853515625,
|
| 25 |
+
"note": "acc of *_teacher look-ahead heads is agreement with the backbone choice",
|
| 26 |
+
"checkpoint_dir": "/data/cs769_mtp/scratch/checkpoints/phase5_group_pilot/Devanagari_seed0",
|
| 27 |
+
"command": "scripts/phase5_dependent_train.py --name Devanagari --train-ids /data/cs769_mtp/scratch/data/phase3/L4_train_ids.npy --seed 0 --arms dependent_teacher,dependent_teacher_gs0,dependent_teacher_gs0.25,dependent_teacher_gs3 --scheme Devanagari --max-steps 2245 --save-every 0 --checkpoint-dir /data/cs769_mtp/scratch/checkpoints/phase5_group_pilot --out results/phase5_dependent/grouppilot_train_Devanagari_seed0.json",
|
| 28 |
+
"curve": [
|
| 29 |
+
{
|
| 30 |
+
"step": 200,
|
| 31 |
+
"tokens": 204800,
|
| 32 |
+
"dependent_teacher": {
|
| 33 |
+
"loss": [
|
| 34 |
+
1.8949,
|
| 35 |
+
3.4781,
|
| 36 |
+
3.8762,
|
| 37 |
+
4.1024
|
| 38 |
+
],
|
| 39 |
+
"acc": [
|
| 40 |
+
0.5584,
|
| 41 |
+
0.3332,
|
| 42 |
+
0.2819,
|
| 43 |
+
0.257
|
| 44 |
+
]
|
| 45 |
+
},
|
| 46 |
+
"dependent_teacher_gs0": {
|
| 47 |
+
"loss": [
|
| 48 |
+
1.8956,
|
| 49 |
+
3.9223,
|
| 50 |
+
4.3251,
|
| 51 |
+
4.5877
|
| 52 |
+
],
|
| 53 |
+
"acc": [
|
| 54 |
+
0.5583,
|
| 55 |
+
0.3161,
|
| 56 |
+
0.2642,
|
| 57 |
+
0.2449
|
| 58 |
+
]
|
| 59 |
+
},
|
| 60 |
+
"dependent_teacher_gs0.25": {
|
| 61 |
+
"loss": [
|
| 62 |
+
1.8953,
|
| 63 |
+
3.5701,
|
| 64 |
+
3.9797,
|
| 65 |
+
4.2058
|
| 66 |
+
],
|
| 67 |
+
"acc": [
|
| 68 |
+
0.5583,
|
| 69 |
+
0.3306,
|
| 70 |
+
0.2772,
|
| 71 |
+
0.2551
|
| 72 |
+
]
|
| 73 |
+
},
|
| 74 |
+
"dependent_teacher_gs3": {
|
| 75 |
+
"loss": [
|
| 76 |
+
1.8951,
|
| 77 |
+
3.7157,
|
| 78 |
+
4.0739,
|
| 79 |
+
4.3267
|
| 80 |
+
],
|
| 81 |
+
"acc": [
|
| 82 |
+
0.5581,
|
| 83 |
+
0.3084,
|
| 84 |
+
0.2637,
|
| 85 |
+
0.237
|
| 86 |
+
]
|
| 87 |
+
}
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"step": 400,
|
| 91 |
+
"tokens": 409600,
|
| 92 |
+
"dependent_teacher": {
|
| 93 |
+
"loss": [
|
| 94 |
+
1.8238,
|
| 95 |
+
2.5308,
|
| 96 |
+
2.9733,
|
| 97 |
+
3.1729
|
| 98 |
+
],
|
| 99 |
+
"acc": [
|
| 100 |
+
0.571,
|
| 101 |
+
0.4381,
|
| 102 |
+
0.3657,
|
| 103 |
+
0.3364
|
| 104 |
+
]
|
| 105 |
+
},
|
| 106 |
+
"dependent_teacher_gs0": {
|
| 107 |
+
"loss": [
|
| 108 |
+
1.8242,
|
| 109 |
+
2.8823,
|
| 110 |
+
3.3527,
|
| 111 |
+
3.5709
|
| 112 |
+
],
|
| 113 |
+
"acc": [
|
| 114 |
+
0.571,
|
| 115 |
+
0.4155,
|
| 116 |
+
0.3446,
|
| 117 |
+
0.3196
|
| 118 |
+
]
|
| 119 |
+
},
|
| 120 |
+
"dependent_teacher_gs0.25": {
|
| 121 |
+
"loss": [
|
| 122 |
+
1.824,
|
| 123 |
+
2.5905,
|
| 124 |
+
3.0479,
|
| 125 |
+
3.2471
|
| 126 |
+
],
|
| 127 |
+
"acc": [
|
| 128 |
+
0.5711,
|
| 129 |
+
0.4345,
|
| 130 |
+
0.3618,
|
| 131 |
+
0.3331
|
| 132 |
+
]
|
| 133 |
+
},
|
| 134 |
+
"dependent_teacher_gs3": {
|
| 135 |
+
"loss": [
|
| 136 |
+
1.8239,
|
| 137 |
+
2.6604,
|
| 138 |
+
3.0908,
|
| 139 |
+
3.2919
|
| 140 |
+
],
|
| 141 |
+
"acc": [
|
| 142 |
+
0.5711,
|
| 143 |
+
0.4174,
|
| 144 |
+
0.3486,
|
| 145 |
+
0.3201
|
| 146 |
+
]
|
| 147 |
+
}
|
| 148 |
+
}
|
| 149 |
+
]
|
| 150 |
+
}
|
results/phase5_dependent/grouppilot_train_Devanagari_seed1.json
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "Devanagari",
|
| 3 |
+
"seed": 1,
|
| 4 |
+
"arms": [
|
| 5 |
+
"dependent_teacher",
|
| 6 |
+
"dependent_teacher_gs0",
|
| 7 |
+
"dependent_teacher_gs0.25",
|
| 8 |
+
"dependent_teacher_gs3"
|
| 9 |
+
],
|
| 10 |
+
"lookahead_weight": 0.1,
|
| 11 |
+
"done": false,
|
| 12 |
+
"steps": 400,
|
| 13 |
+
"tokens_per_arm": 409600,
|
| 14 |
+
"train_seconds": 1185.9096724130213,
|
| 15 |
+
"tokens_per_second_per_arm": 345.3888685860613,
|
| 16 |
+
"embed_scale": 115.92121124267578,
|
| 17 |
+
"trainable_parameters": {
|
| 18 |
+
"dependent_teacher": 46147584,
|
| 19 |
+
"dependent_teacher_gs0": 46147584,
|
| 20 |
+
"dependent_teacher_gs0.25": 46147584,
|
| 21 |
+
"dependent_teacher_gs3": 46147584
|
| 22 |
+
},
|
| 23 |
+
"gpu": "NVIDIA GeForce GTX 1080 Ti",
|
| 24 |
+
"peak_gpu_mib": 9535.49853515625,
|
| 25 |
+
"note": "acc of *_teacher look-ahead heads is agreement with the backbone choice",
|
| 26 |
+
"checkpoint_dir": "/data/cs769_mtp/scratch/checkpoints/phase5_group_pilot/Devanagari_seed1",
|
| 27 |
+
"command": "scripts/phase5_dependent_train.py --name Devanagari --train-ids /data/cs769_mtp/scratch/data/phase3/L4_train_ids.npy --seed 1 --arms dependent_teacher,dependent_teacher_gs0,dependent_teacher_gs0.25,dependent_teacher_gs3 --scheme Devanagari --max-steps 2245 --save-every 0 --checkpoint-dir /data/cs769_mtp/scratch/checkpoints/phase5_group_pilot --out results/phase5_dependent/grouppilot_train_Devanagari_seed1.json",
|
| 28 |
+
"curve": [
|
| 29 |
+
{
|
| 30 |
+
"step": 200,
|
| 31 |
+
"tokens": 204800,
|
| 32 |
+
"dependent_teacher": {
|
| 33 |
+
"loss": [
|
| 34 |
+
1.9215,
|
| 35 |
+
3.4943,
|
| 36 |
+
3.9046,
|
| 37 |
+
4.1255
|
| 38 |
+
],
|
| 39 |
+
"acc": [
|
| 40 |
+
0.5539,
|
| 41 |
+
0.3307,
|
| 42 |
+
0.2783,
|
| 43 |
+
0.2554
|
| 44 |
+
]
|
| 45 |
+
},
|
| 46 |
+
"dependent_teacher_gs0": {
|
| 47 |
+
"loss": [
|
| 48 |
+
1.9222,
|
| 49 |
+
3.9294,
|
| 50 |
+
4.3424,
|
| 51 |
+
4.6011
|
| 52 |
+
],
|
| 53 |
+
"acc": [
|
| 54 |
+
0.5541,
|
| 55 |
+
0.3152,
|
| 56 |
+
0.2629,
|
| 57 |
+
0.2439
|
| 58 |
+
]
|
| 59 |
+
},
|
| 60 |
+
"dependent_teacher_gs0.25": {
|
| 61 |
+
"loss": [
|
| 62 |
+
1.922,
|
| 63 |
+
3.5829,
|
| 64 |
+
4.0011,
|
| 65 |
+
4.2241
|
| 66 |
+
],
|
| 67 |
+
"acc": [
|
| 68 |
+
0.5539,
|
| 69 |
+
0.3293,
|
| 70 |
+
0.2752,
|
| 71 |
+
0.254
|
| 72 |
+
]
|
| 73 |
+
},
|
| 74 |
+
"dependent_teacher_gs3": {
|
| 75 |
+
"loss": [
|
| 76 |
+
1.9217,
|
| 77 |
+
3.7473,
|
| 78 |
+
4.1239,
|
| 79 |
+
4.3556
|
| 80 |
+
],
|
| 81 |
+
"acc": [
|
| 82 |
+
0.5539,
|
| 83 |
+
0.3033,
|
| 84 |
+
0.2572,
|
| 85 |
+
0.2335
|
| 86 |
+
]
|
| 87 |
+
}
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"step": 400,
|
| 91 |
+
"tokens": 409600,
|
| 92 |
+
"dependent_teacher": {
|
| 93 |
+
"loss": [
|
| 94 |
+
1.8593,
|
| 95 |
+
2.5584,
|
| 96 |
+
3.006,
|
| 97 |
+
3.2072
|
| 98 |
+
],
|
| 99 |
+
"acc": [
|
| 100 |
+
0.5656,
|
| 101 |
+
0.4345,
|
| 102 |
+
0.3609,
|
| 103 |
+
0.3315
|
| 104 |
+
]
|
| 105 |
+
},
|
| 106 |
+
"dependent_teacher_gs0": {
|
| 107 |
+
"loss": [
|
| 108 |
+
1.8596,
|
| 109 |
+
2.9024,
|
| 110 |
+
3.3807,
|
| 111 |
+
3.6056
|
| 112 |
+
],
|
| 113 |
+
"acc": [
|
| 114 |
+
0.5656,
|
| 115 |
+
0.4137,
|
| 116 |
+
0.3406,
|
| 117 |
+
0.3149
|
| 118 |
+
]
|
| 119 |
+
},
|
| 120 |
+
"dependent_teacher_gs0.25": {
|
| 121 |
+
"loss": [
|
| 122 |
+
1.8594,
|
| 123 |
+
2.6106,
|
| 124 |
+
3.0742,
|
| 125 |
+
3.2775
|
| 126 |
+
],
|
| 127 |
+
"acc": [
|
| 128 |
+
0.5656,
|
| 129 |
+
0.4315,
|
| 130 |
+
0.3579,
|
| 131 |
+
0.3288
|
| 132 |
+
]
|
| 133 |
+
},
|
| 134 |
+
"dependent_teacher_gs3": {
|
| 135 |
+
"loss": [
|
| 136 |
+
1.8593,
|
| 137 |
+
2.6867,
|
| 138 |
+
3.1195,
|
| 139 |
+
3.3201
|
| 140 |
+
],
|
| 141 |
+
"acc": [
|
| 142 |
+
0.5654,
|
| 143 |
+
0.4136,
|
| 144 |
+
0.3446,
|
| 145 |
+
0.3159
|
| 146 |
+
]
|
| 147 |
+
}
|
| 148 |
+
}
|
| 149 |
+
]
|
| 150 |
+
}
|