Skip to content

Commit cb20d5f

Browse files
杜一min杜一min
authored andcommitted
Technical report: Deduplicate, Don't Compress
docs/report: LaTeX source, references, figure script reading evidence/, and the built PDF. Three questions: when distinct n-gram rows pay off, what redundancy training leaves in the table, and how to serve it. Also adds evidence/incidence_duplicates_20261113: on the zero-init AG News table, grouping rows by bag incidence and by bytes gives the same 883,125 groups. Links from README, docs index, evidence index and roadmap.
1 parent 7683e4f commit cb20d5f

21 files changed

Lines changed: 724 additions & 6 deletions

‎README.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ model ends up owning a large frozen table that has to be indexed, stored and
1313
queried. NGramStore takes care of that table; training, addressing and
1414
aggregation stay in the model.
1515

16-
The project also asks a research question: when is it worth giving every n-gram
17-
its own row instead of hashing into buckets, and once rows are distinct, how
18-
much of the learned structure can be compressed? The experiments are in
19-
[`evidence/`](evidence/README.md).
16+
The project also asks research questions: when is it worth giving every n-gram
17+
its own row instead of hashing into buckets, what redundancy does training leave
18+
in the table, and how should it be served? The
19+
[technical report](docs/report/ngramstore-report.pdf) answers them; the
20+
experiments behind it are in [`evidence/`](evidence/README.md).
2021

2122
## Components
2223

‎docs/index.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
- [me_fasttext compatibility](guides/legacy_fasttext.md) · [legacy export contract](guides/legacy_merge_contract.md)
2929
- [Citation guide](guides/citation_guide.md)
3030

31+
## Technical report
32+
33+
[Deduplicate, Don't Compress: Storing and Serving Learned N-gram Memory](report/ngramstore-report.pdf)
34+
([source and build](report/README.md))
35+
3136
## Roadmap
3237

3338
- [Engine roadmap, priorities and acceptance gates](roadmap.md)

‎docs/report/.gitignore‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.aux
2+
*.bbl
3+
*.blg
4+
*.fdb_latexmk
5+
*.fls
6+
*.log
7+
*.out
8+
main.pdf

‎docs/report/README.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Technical report
2+
3+
**Deduplicate, Don't Compress: Storing and Serving Learned N-gram Memory**
4+
([PDF](ngramstore-report.pdf))
5+
6+
When are distinct n-gram rows worth storing, what redundancy does training leave
7+
in the table, and how should a frozen table be served? Every number in the report
8+
comes from a directory under [`evidence/`](../../evidence/README.md).
9+
10+
Build:
11+
12+
```bash
13+
python docs/report/make_figures.py # needs matplotlib; reads evidence/
14+
cd docs/report && latexmk -pdf main.tex # needs a TeX distribution with newtx
15+
```

‎docs/report/figures/decode.pdf‎

17.6 KB
Binary file not shown.

‎docs/report/figures/decode.png‎

119 KB
Loading

‎docs/report/figures/identity.pdf‎

18.1 KB
Binary file not shown.

‎docs/report/figures/identity.png‎

119 KB
Loading

‎docs/report/figures/redundancy.pdf‎

17.6 KB
Binary file not shown.

‎docs/report/figures/redundancy.png‎

101 KB
Loading

0 commit comments

Comments
 (0)