D-Models and E-Models: Diversity-Stability Trade-offs in the Sampling Behavior of Large Language Models

Jia Gu, Liang Pang, Huawei Shen, Xueqi Cheng
1/25/2026
cs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

The predictive probability of the next token (P_token) in large language models (LLMs) is inextricably linked to the probability of relevance for the next piece of information, the purchase probability of the next product, and the execution probability of the next action-all of which fall under the scope of the task-level target distribution (P_task). While LLMs are known to generate samples that approximate real-world distributions, whether their fine-grained sampling probabilities faithfully align with task requirements remains an open question. Through controlled distribution-sampling simulations, we uncover a striking dichotomy in LLM behavior, distinguishing two model types: D-models (e.g. Qwen-2.5), whose P_token exhibits large step-to-step variability and poor alignment with P_task; and E-models (e.g. Mistral-Small), whose P_token is more stable and better aligned with P_task. We further evaluate these two model types in downstream tasks such as code generation and recommendation, revealing systematic trade-offs between diversity and stability that shape task outcomes. Finally, we analyze the internal properties of both model families to probe their underlying mechanisms. These findings offer foundational insights into the probabilistic sampling behavior of LLMs and provide practical guidance on when to favor D- versus E-models. For web-scale applications, including recommendation, search, and conversational agents, our results inform model selection and configuration to balance diversity with reliability under real-world uncertainty, providing a better level of interpretation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gu2026dmodels,
  title  = {D-Models and E-Models: Diversity-Stability Trade-offs in the Sampling Behavior of Large Language Models},
  author = {Jia Gu and Liang Pang and Huawei Shen and Xueqi Cheng},
  year   = {2026},
  eprint = {2601.17865},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.17865v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.17865.svg)](https://codeofpaper.com/paper/2601.17865)

Discussion