Better HN
topnewbestaskshowjobs
Log inSign up

schmaett

1 karma · joined Jul 20, 2023 (3y ago) · 5 submissions

Submissions

comment 3y ago · link · parent

My results suggest that the main reason their entire thing works is because they compare substrings between some query text and all texts in the corpus. By precompiling the list of substrings that occur in the corpus, I can get their algorithm to have linear complexity at inference time, instead of quadratic complexity as described in the paper.

comment 3y ago · link · parent

I can match the performance in their paper with lz4, and then by just explicitly comparing character-level n-grams between a query document and all documents belonging to the same topic.

comment 3y ago · link · parent

IMO their results have nothing to do with compression:

When I replace gzip with lz4 (lower compression ratio, just does the "substring replacement" part of gzip), I get the same performance.

When explicitly just comparing the substrings, I still get the same performance.

All experiments were done in their 100-shot setting. Code: https://github.com/mattminder/npc_gzip (for more details, see the readme)