[KongchangAI]
Conceptn-gram匹配

n-gram

A technique that splits text into segments of n consecutive tokens, used to detect near-duplicate content and commonly applied in data contamination detection.

Core Facts

Timeline (last 90 days)

Oct 31

Under the 512-byte constraint, a language model cannot contain any neural network with a practical vocabulary; the more likely forms are a minimal n-gram lookup table, a hard-coded finite state machine, or a tiny probabilistic model.

Unverified50%
Oct 31

An n-gram model does not require a neural network; its parameters are just a frequency table, so it can be compressed to an extreme degree.

Unverified50%
Oct 13

Contamination detection is performed on each instruction set using two checks: the problem text is normalized by taking the first 80 characters of the HumanEval docstring and compared; the reference answer, after removing comments and docstrings, is checked for whether more than half of the 13-token n-grams match.

Unverified50%
Oct 13

The choice of n in n-gram matching is a trade-off: too small an n (such as 3) produces many false positives due to common phrases; too large an n (such as 50) is overly sensitive to reasonable code rewrites and prone to missed detections; 13 is an empirically折中 choice in code scenarios.

Unverified50%
Sep 15

The model places n-gram lookup tables at layers 1 and 14, with 24 hashes each indexing approximately 16 million rows, totaling 196 billion parameters, exceeding one-third of the model's weights.

Unverified50%
Sep 15

Approximately 200 GB of n-gram tables are stored in regular system memory rather than on the GPU, with background transfer prefetching the rows about to be used.

Unverified50%
Sep 15

A Qwen Flash model released by Alibaba at the end of August also places 51 billion n-gram parameters in system memory for execution.

Verified65%
Sep 15

Blindly chasing n-gram overlap drags entailment precision down from 0.522 to 0.266.

Unverified50%

All Facts (8)

Verified

A Qwen Flash model released by Alibaba at the end of August also places 51 billion n-gram parameters in system memory for execution.

65%
Unverified

An n-gram model does not require a neural network; its parameters are just a frequency table, so it can be compressed to an extreme degree.

50%
Unverified

Under the 512-byte constraint, a language model cannot contain any neural network with a practical vocabulary; the more likely forms are a minimal n-gram lookup table, a hard-coded finite state machine, or a tiny probabilistic model.

50%
Unverified

Contamination detection is performed on each instruction set using two checks: the problem text is normalized by taking the first 80 characters of the HumanEval docstring and compared; the reference answer, after removing comments and docstrings, is checked for whether more than half of the 13-token n-grams match.

50%
Unverified

The choice of n in n-gram matching is a trade-off: too small an n (such as 3) produces many false positives due to common phrases; too large an n (such as 50) is overly sensitive to reasonable code rewrites and prone to missed detections; 13 is an empirically折中 choice in code scenarios.

50%
Unverified

The model places n-gram lookup tables at layers 1 and 14, with 24 hashes each indexing approximately 16 million rows, totaling 196 billion parameters, exceeding one-third of the model's weights.

50%
Unverified

Approximately 200 GB of n-gram tables are stored in regular system memory rather than on the GPU, with background transfer prefetching the rows about to be used.

50%
Unverified

Blindly chasing n-gram overlap drags entailment precision down from 0.522 to 0.266.

50%

Source Articles