English

Semantic Smoothing for Language Models via Distribution Estimation and Embeddings

Information Theory 2026-05-11 v1 math.IT

Abstract

We propose semantic smoothing, a smoothing method for language models that uses embeddings to share statistical observations across semantically similar contexts. The starting point is a decomposition of log-perplexity that motivates smoothing as a collection of distribution-estimation problems under Kullback-Leibler (KL) loss. We then show that, under a Lipschitz-logit model for embedding-based language generation, proximity of context embeddings implies proximity of the corresponding next-word distributions in KL divergence. Combining these observations, we formulate semantic smoothing as distribution estimation in KL loss with KL-proximity side information. For nn samples on a dd-symbol alphabet with a side-information distribution at KL distance Δ\Delta, we give an interpolation estimator with worst-case KL risk O(min{Δ,d/n})O(\min\{\Delta,d/n\}), and prove a matching-order lower bound for uniform side information. We extend the estimator to multiple and empirically estimated synonymous distributions. Experiments on synthetic Markov data and WikiText-103 bigram models using Word2Vec, GloVe, and GPT-2 embeddings show that semantic smoothing consistently reduces test perplexity when applied to add-constant and Kneser-Ney estimates.

Keywords

Cite

@article{arxiv.2605.07994,
  title  = {Semantic Smoothing for Language Models via Distribution Estimation and Embeddings},
  author = {Haricharan Balasundaram and Swathi Shree Narashiman and Pranay Mathur and Andrew Thangaraj},
  journal= {arXiv preprint arXiv:2605.07994},
  year   = {2026}
}
R2 v1 2026-07-01T12:58:11.423Z