Compress and Forget: bitsandbytes Quantization Amplifies Proactive Interference in LLMs
Organizations: Shahid Beheshti University · Shahid Beheshti University, Tehran, Iran
Abstract
Proactive interference (PI) is a documented failure mode in large language models in which retrieval of a repeatedly overwritten value degrades as prior overwrites accumulate, mirroring a classical phenomenon in human working memory. Post-training quantization (PTQ) is now the default deployment path for open-weight models, yet its effect on this failure mode has not been tested. We evaluate three precision levels (FP16, INT8, INT4/NF4, via bitsandbytes) across three architecturally distinct instruction-tuned models (Qwen2.5-7B-Instruct, Mistral-7B-Instruct-v0.3, Phi-3.5-mini-instruct), holding the retrieval task fixed. INT4 quantization significantly reduces accuracy under high interference in every model (e.g., from 81.0% to 68.3% for Qwen), confirmed by paired McNemar's tests () and a mixed-effects regression spanning all interference levels; INT8, often assumed safe, also carries a smaller but real penalty in two of three models. The effect is specific to semantically similar (word-type) distractors and reverses sign under a numeric control condition, and is mechanistically linked to a rise in same-key intrusion errors under INT4 (from 21.5% to 24.6% of trials, ). A follow-up ablation shows the effect originates in the quantized transformer backbone rather than the output projection layer. These results suggest that bitsandbytes 4-bit quantization can impose an additional cost on applications relying on long, updatable, semantically dense contexts, even when aggregate benchmark accuracy appears largely unaffected. We release our code and tokenizer-verified vocabulary construction method at https://github.com/ShayanShahrabi/compress-and-forget
Figures & tables
| Model | FP16 | INT8 | INT4 |
|---|---|---|---|
| Qwen2.5-7B-Instruct | 97.6% | 97.6% | 96.5% |
| Mistral-7B-Instruct-v0.3 | 75.6% | 74.4% | 72.4% |
| Phi-3.5-mini-instruct | 57.2% | 53.0% | 59.5% |
| Model | Level | FP16 | INT4 | / | OR | (McNemar) |
|---|---|---|---|---|---|---|
| Qwen2.5-7B-Instruct | 64 | 81.0% | 68.3% | 40 / 2 | 20.00 | |
| Mistral-7B-Instruct-v0.3 | 16 | 44.0% | 37.4% | 129 / 50 | 2.58 | |
| Phi-3.5-mini-instruct | 8 | 61.8% | 54.0% | 54 / 15 | 3.60 |
| Model | Level | FP16 | INT8 | / | OR | (McNemar) |
|---|---|---|---|---|---|---|
| Qwen2.5-7B-Instruct | 64 | 81.0% | 80.0% | 10 / 7 | 1.43 | |
| Mistral-7B-Instruct-v0.3 | 16 | 44.0% | 42.2% | 46 / 25 | 1.84 | |
| Phi-3.5-mini-instruct | 8 | 61.8% | 57.6% | 35 / 14 | 2.50 |
| Model | Levels tested | FP16 | INT8 | INT4 | INT4 % IES lost |
|---|---|---|---|---|---|
| Qwen2.5-7B-Instruct | 1–64 (7 levels) | 0.975 | 0.972 | 0.957 | 1.82% |
| Mistral-7B-Instruct-v0.3 | 1–32 (6 levels) | 0.698 | 0.680 | 0.662 | 5.09% |
| Phi-3.5-mini-instruct | 1–16 (5 levels) | 0.820 | 0.791 | 0.777 | 5.16% |
| Term | Coef. ( ) | OR | 95% CI | ( ) |
| Word-type attributes (main hypothesis) | ||||
| int8 (main effect) | 0.77 | [0.73, 0.82] | ( ) | |
| int4 (main effect) | 0.87 | [0.81, 0.92] | ( ) | |
| int8 | 1.02 | [1.01, 1.04] | ( ) | |
| int4 | 0.96 | [0.94, 0.97] | ( ) | |
| Numeric attributes (specificity control) | ||||
| Model | Level | INT4 (backbone) | INT4 (+lm_head) | lm_head share of gap | ||
|---|---|---|---|---|---|---|
| Qwen2.5-7B-Instruct | 64 | 300 | 68.3% | 68.0% | 2.5% | |
| Mistral-7B-Instruct-v0.3 | 16 | 1,200 | 37.4% | 37.3% | 1.3% | |
| Phi-3.5-mini-instruct | 8 | 500 | 54.0% | 54.0% | 0.0% |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | mood | favorite color | favorite animal | occupation |
|---|---|---|---|---|
| Qwen2.5-7B-Instruct | 64 | 32 | 32 | 32 |
| Mistral-7B-Instruct-v0.3 | 32 | 16 | 16 | 16 |
| Phi-3.5-mini-instruct | 16 | 16 | 8 | 16 |
| Setting | Value |
|---|---|
| GPU | NVIDIA RTX 3090 (24 GB VRAM) |
| Device map | {"":0} |
| Low CPU memory usage | True |
| INT8 configuration | |
| BitsAndBytes | load_in_8bit=True |
| LLM.int8 outlier threshold | 6.0 (default) |
| Level | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 96 |
|---|---|---|---|---|---|---|---|---|
| Trials | 15 | 15 | 20 | 25 | 60 | 50 | 60 | 60 |
| FP16 | INT8 | INT4 | |
| Accuracy | 37.1% | 30.7% | 35.3% |
| Model | INT8 % IES lost | INT4 % IES lost |
|---|---|---|
| Qwen2.5-7B-Instruct | ||
| Mistral-7B-Instruct-v0.3 | ||
| Phi-3.5-mini-instruct |