Papers › FastText.zip: Compressing text classification models

FastText.zip: Compressing text classification models

12 Dec 2016arXiv:1612.03651archive 2025-07-28

Armand Joulin, Edouard Grave, Piotr Bojanowski, Matthijs Douze, Hérve Jégou, Tomas Mikolov

We consider the problem of producing compact architectures for text classification, such that the full model fits in a limited amount of memory. After considering different solutions inspired by the hashing literature, we propose a method built upon product quantization to store word embeddings. While the original technique leads to a loss in accuracy, we adapt this method to circumvent quantization artefacts. Our experiments carried out on several benchmarks show that our approach typically requires two orders of magnitude less memory than fastText while being only slightly inferior with respect to accuracy. As a result, it outperforms the state of the art by a good margin in terms of the compromise between memory usage and accuracy.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1612.03651")

Code

Syntology Ran 3 of 18 code samples harvested from 5 repositories linked to this paper; 15 have no recorded run. Of those that ran: 3 ran · our draft was wrong.

By repository: community (archive-listed): 15 samples from 5 repositories, 1 ran; 3 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

44 repositories listed; official and paper-mentioned ones first.

facebookresearch/fastText officialmentioned in papermentioned on GitHubMIT report
DW-yejing/fasttext4j-jdk6 mentioned on GitHubBSD-3-Clause report
FengJiaChunFromSYSU/fastText mentioned on GitHubMIT report
GitHubSprint/fasttext4j mentioned on GitHubBSD-3-Clause report
Kinetikm/fastTextRelearning mentioned on GitHub report
Kinetikm/fasttextRelearnExperiment mentioned on GitHubNOASSERTION report
M155K4R4/fastText mentioned on GitHubNOASSERTION report
MhYao2014/HyperbolicEmbedding mentioned on GitHubMIT report
Nim-NLP/fastText mentioned on GitHubNOASSERTION report
Omerktn/fastText-iterative mentioned on GitHub report
SarangShaikh201/fastText mentioned on GitHub report
amymariaparker2401/new mentioned on GitHubNOASSERTION report
bung87/fastText mentioned on GitHubNOASSERTION report
code2k13/nlphose mentioned on GitHubApache-2.0 report
code2k13/nlppipe mentioned on GitHubApache-2.0 report
currentsapi/fastlangid mentioned on GitHubApache-2.0 report
divisionai/fastText mentioned on GitHubMIT report
ericxsun/fastText mentioned on GitHubNOASSERTION report
explosion/floret mentioned on GitHubMIT report
hanfeng108/Language-Detection mentioned on GitHubpytorch report
hufscapstone/Fast_text mentioned on GitHubMIT report
indix/whatthelang mentioned on GitHubApache-2.0 report
jen1995/fastText mentioned on GitHubMIT report
kpu/fastertext mentioned on GitHubMIT report
linkfluence/fastText4j mentioned on GitHubBSD-3-Clause report
lmd1993/fastTextBoost mentioned on GitHubNOASSERTION report
luckyPT/jvm-ml mentioned on GitHubtf report
luhuiguo/jfasttext mentioned on GitHubNOASSERTION report
mwydmuch/extremeText mentioned on GitHubtfNOASSERTION report
pommedeterresautee/fastrtext mentioned on GitHubNOASSERTION report
ppke-nlpg/fastText_factored-cbow mentioned on GitHubMIT report
rmenegaux/fastDNA mentioned on GitHubNOASSERTION report
romik9999/fasttext-1925f09ed3 mentioned on GitHubNOASSERTION report
trietnm2/sent2vec4j mentioned on GitHub report
tshev/faster-FastText mentioned on GitHubMIT report
vinhkhuc/JFastText mentioned on GitHubNOASSERTION report
wyfish/fastText mentioned on GitHubnot reachable when probed 2026-09-18 — repositories for recent papers often appear after camera-ready report
xuzhezhaozhao/fastText_reading mentioned on GitHubNOASSERTION report
zafercavdar/fasttext-langdetect mentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 3 ran; 0 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
15unverified

Licence: 12 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 5 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

read_args explosion/floret/python/floret_module/floret/floret.py community (archive-listed) ran · our draft was wrong MIT (permissive) · f697966cbe929024 · report
clean_text currentsapi/fastlangid/fastlangid/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · cc21a5b05edde91f · report
convert2unicode currentsapi/fastlangid/fastlangid/regex_rule.py community (archive-listed) unverified Apache-2.0 (permissive) · a6a95c0a40fa3d1f · report
download_model zafercavdar/fasttext-langdetect/src/ftlangdetect/detect.py community (archive-listed) unverified MIT (permissive) · c0cfe33b609d38fd · report
find_nearest_neighbor FengJiaChunFromSYSU/fastText/python/fastText/util/util.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 5d48a5764718f390 · report
getknn FengJiaChunFromSYSU/fastText/alignment/align.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · f685d8c430dfac70 · report
guess_target_name kpu/fastertext/reduce_model.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · c2a80677a6cb6044 · report
idx FengJiaChunFromSYSU/fastText/alignment/utils.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 831f6e244ecea2bb · report
load_vectors FengJiaChunFromSYSU/fastText/alignment/utils.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 5b38e4065c54800a · report
only_punctuations currentsapi/fastlangid/fastlangid/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 4b17e794d15f700c · report
procrustes FengJiaChunFromSYSU/fastText/alignment/utils.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 6f28ff1eccefb093 · report
rcsls kpu/fastertext/alignment/unsup_multialign.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · d484b37352fc8959 · report
reduce_model explosion/floret/python/floret_module/floret/util/util.py community (archive-listed) unverified MIT (permissive) · 3ab9d330ea24c434 · report
sqrt_eig FengJiaChunFromSYSU/fastText/alignment/unsup_align.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · e4a10d52bc6d1601 · report
test FengJiaChunFromSYSU/fastText/python/fastText/util/util.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 5c3bcf5ae2042c99 · report
create_lookup_tables identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · a16b79c7bc1860e5 · report
preprocess identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · 55d2494d83e5c523 · report
get_batches identical code first harvested elsewhere unverified licence of this copy not recorded · cde234836e3f3978 · report

Tasks

General ClassificationQuantizationText ClassificationWord Embeddings

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

fastText

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections