Particle Qwen3.5-2B N-gram adds a learned 277 MB memory module to a frozen Qwen3.5-2B. The table below compares it with the unchanged model and a rank-8 LoRA trained on the same data and teacher targets. All results use thinking and 50 questions per benchmark.
What we learned: memory scored within 2 answers of stock on each benchmark. Its strongest signal was against this LoRA recipe: 14 more strict-math answers and 7 more instruction-following answers. The small differences from stock remain uncertain. This makes targeted correction a useful next experiment; it does not establish a general upgrade over stock.
| Benchmark | Stock 2B | + n-gram | + LoRA | Memory change vs stock |
|---|---|---|---|---|
| Coding (HumanEval) | 25/50 | 25/50 | 23/50 | +0 answers |
| Math (GSM8K strict) | 42/50 | 44/50 | 30/50 | +2 answers |
| Instructions (IFEval) | 42/50 | 44/50 | 37/50 | +2 answers |
| Reasoning (MMLU-Pro) | 30/50 | 28/50 | 29/50 | -2 answers |
Math scoring cross-check — the same answers, two fixed extraction rules:
| Model | Strict (primary) | Flexible (secondary) |
|---|---|---|
| Stock 2B | 42/50 | 46/50 |
| 2B + n-gram | 44/50 | 45/50 |
| 2B + LoRA | 30/50 | 39/50 |
Strict and flexible scores can move in different directions because answer formatting matters. The secondary extractor never replaces the primary score.
How to read this: these are pilot subset scores, not full-benchmark scores. Equal totals can hide different solved problems. The paired counts below show those changes; their uncertainty ranges describe these questions and do not include training or decoding-seed variation.
| Benchmark | Memory vs | Gained | Lost | Net change, percentage points (95% interval) |
|---|---|---|---|---|
| Coding (HumanEval) | Stock 2B | 6 | 6 | +0 (-14 to +14) |
| Coding (HumanEval) | 2B + LoRA | 9 | 7 | +4 (-12 to +20) |
| Math (GSM8K strict) | Stock 2B | 6 | 4 | +4 (-8 to +16) |
| Math (GSM8K strict) | 2B + LoRA | 17 | 3 | +28 (+12 to +44) |
| Instructions (IFEval) | Stock 2B | 3 | 1 | +4 (-4 to +12) |
| Instructions (IFEval) | 2B + LoRA | 8 | 1 | +14 (+4 to +26) |
| Reasoning (MMLU-Pro) | Stock 2B | 4 | 6 | -4 (-16 to +8) |
| Reasoning (MMLU-Pro) | 2B + LoRA | 6 | 7 | -2 (-16 to +12) |
Across all 200 answers per model (four 50-question subsets):
| Model | Finished answers | Hit token cap | Detected loops |
|---|---|---|---|
| Stock 2B | 198/200 | 2 | 2 |
| 2B + n-gram | 197/200 | 2 | 2 |
| 2B + LoRA | 185/200 | 2 | 1 |
Finished means thinking closed and generation ended before the cap. Cap and loop counts can overlap. A cap alone is not a loop; the detector checks exact repeated token cycles and can miss other repetition. Per-benchmark counts are in the detailed results.
The n-gram adapter is 277 MB, versus 34 MB for matched LoRA. Both require the original 2B backbone. This is a matched-data comparison, not a matched-parameter or matched-compute comparison. Adapter size does not establish GPU-memory usage or inference speed; no 2B memory-versus-stock throughput result is claimed here.
Both adapters used 512 updates, about 590k input tokens and 196k assistant targets, with a frozen dense Qwen3.5-4B teacher. Only the adapters were trained. This is general-data adaptation; these results do not establish targeted correction of a specific weakness.
Use the included loader; loading the base model alone does not activate the n-gram.
pip install -r requirements.txt
python load_particle_ngram.py --prompt "Write a Python function that merges overlapping intervals."
The loader downloads the pinned 2B base, enables thinking and uses the tested primary decoding profile with up to 32,768 output tokens. Usage and settings · Training reproduction · Evaluation reproduction · Detailed paired results
Scoring, reproducibility and limitationsThe code and newly trained adapters use Apache-2.0. Base models, source data and evaluation benchmarks retain their respective terms. See attribution and source correspondence.
adapter.safetensors 277 MBcomparison_control/lora.safetensors 34 MBQwen/Qwen3.5-2B