Length Budgets & Extractive vs Abstractive: What DistilBART Actually Changes
News summarizers trained on CNN/DailyMail compete directly against the simplest baseline in
NLP: Lead-3 (copying the first three sentences verbatim). Run
Xenova/distilbart-cnn-12-6 (362.31 MB WASM q8, Apache-2.0) across
Tight, Balanced, and Expandedmin_length / max_length regimes and measure novel bigrams,
ROUGE-L overlap, and word-level diffs against Lead-3.
1. Lead-3 Baseline & Length-Budget Sweep
Pick a multi-sentence news/technical story or edit the text:
Lead-3 copies the opening 3 sentences verbatim; compare how DistilBART paraphrases under Tight vs Expanded budgets.
Total sweep latency–
Lead-3 words–
Balanced novel bigrams–
NaN check–
Deterministic Baseline · Lead-3 Extractive (0 ms)
Extractive
Awaiting sweep
Initialise DistilBART CNN 12-6 above to compare Tight, Balanced, and Expanded abstractive budgets against Lead-3.
2. Word-Level Diff: Lead-3 Extractive vs DistilBART Abstractive
Green insertions show words or phrasing synthesized by DistilBART; red deletions show opening-sentence
details omitted or compressed relative to Lead-3.
Tight, Balanced, and Expanded DistilBART runs compared against Lead-3
Budget Regime
Word Diff vs Lead-3
ROUGE-L vs Lead-3
Novel Bigrams
Compression
Latency
Run the 3-budget sweep above to inspect word diffs and novel n-gram rates.
3. Inspect Lead-3, ROUGE-L & Novelty Code
Show the code — worker.js handleCompareLengths() sequential sweepShow the code — distilbart-core.mjs computeExtractiveOverlap() novel n-gram math