NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Can Small Language Models Learn, Unlearn, and Retain Noise Patterns?

Nicy Scaria, Silvester John Joseph Kennedy, Deepak N. Subramani · DOI

Abstract

As AI deployment shifts toward edge computing, understanding the robustness of Small Language Models (SLMs) is paramount. This study investigates the "learn-unlearn-retain" cycle in SLMs (1–3B parameters) when exposed to structural and semantic noise, such as word flips, character reversals, and transliteration. Our results demonstrate that while smaller models are more susceptible to adopting noisy patterns, they exhibit a remarkable ability to "unlearn" these behaviors through a final round of clean fine-tuning. We find that pretraining data quality, particularly in models like Phi2, serves as a significant buffer against noise adoption.

Introduction

The transition of AI to edge devices like smartphones and laptops necessitates the use of Small Language Models (SLMs). However, real-world data is often "noisy," containing typos, slang, and contradictory information. While the resilience of large-scale models (LLMs) is well-documented, the behavior of SLMs in the face of such inconsistencies remains under-explored. This research addresses whether SLMs possess sufficient internal logic to resist noise or if they merely mirror the patterns present in their fine-tuning data.

Methodology

The researchers evaluated four prominent SLMs—Olmo 1B, Qwen1.5 1.8B, Gemma1.1 2B, and Phi2 2.7B—using a three-stage experimental framework:

  1. Learning: Models were instruction-tuned on datasets corrupted with structural (word/character flips) and semantic (transliteration, irrelevant, counterfactual) noise.
  2. Unlearning: Noisy models were fine-tuned on high-quality, clean data ($D_{ad\_train}$) to test their recovery potential.
  3. Retention: Cleaned models were prompted with noisy inputs to detect residual corruption.
Visual examples of the structural noise types used in the study, including word and character flipping.

The primary clean dataset consisted of 11,265 entries from AlpaGasus and Databricks Dolly, while the test set comprised 2,017 QA pairs generated by GPT-4o. Evaluation metrics included test accuracy, grammatical correctness, and semantic similarity.

Results and Analysis

Baseline and Noise Adaptation

Baseline performance on clean data showed a significant spread, with Phi2 leading at 95.7% accuracy and Olmo 1B trailing at 72.2%. When exposed to noise, models showed varying degrees of adaptation. Phi2 demonstrated high resistance to character-level noise, essentially "refusing" to learn the pattern (dropping to 0.5% accuracy). In contrast, Olmo 1B was more susceptible, successfully learning to flip characters with a grammatical correctness of 36.5% compared to Phi2's 1.5%.

Performance metrics across various SLMs when trained on different noise-augmented datasets.

The Efficacy of "Unlearning"

A key finding is the effectiveness of the unlearning phase. Even models heavily corrupted by noise (e.g., word-flipping) recovered to 90-93% accuracy after retraining on clean data. Noise retention was remarkably low, typically ranging from 0% to 4%, suggesting that SLMs do not easily "relapse" into bad habits once corrected.

Pretraining and Multilingualism

The quality of pretraining data emerged as a critical factor. Phi2’s "textbook-quality" pretraining likely provided the internal representations necessary to resist gibberish. Similarly, Gemma 2B’s superior performance on transliteration (Hinglish) tasks is attributed to its diverse multilingual pretraining during its initial development by Google.

Conclusion

SLMs are surprisingly resilient to noise. While smaller models like Olmo 1B are more prone to adopting noisy patterns, the "clean-up" process is highly effective across the 1–3B parameter range. Future work should explore the impact of noise in both prompts and responses, the efficacy of parameter-efficient tuning methods like LoRA in the unlearning process, and how these findings scale to larger models in the 7B–14B range.

Summary updated

BibTeX
@misc{scaria2024can,
  author = {Nicy Scaria and Silvester John Joseph Kennedy and Deepak N. Subramani},
  title = {{Can Small Language Models Learn, Unlearn, and Retain Noise Patterns?}},
  year = {2024},
  eprint = {2407.00996},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.00996},
}
Figure