arXiv:2611.03836cs.CLNov 2026

Manuscript Offprint

arXiv:2611.03836

A Conditional Mutual Information Analysis of Response Variety in Language Models

R. I. Cukier

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models provide a variety of responses at inference/generation that conventionally depend on a “temperature” parameter. Using a conditional mutual information approach, a quantitative, entropy-based analysis of response variety is given. Three limiting behaviors are defined: arbiter, independent (conditionally) and neutral/deterministic that span no to maximal mutual information. We give examples of each behavior and suggest their application to: “temperature” analysis, language analysis, prompt compression, and knowledge graphs.

1. Introduction

Large language models (LLMs), with their autoregressive character, dominate text generation. Based on a “temperature” parameter, LLMs in inference/generative mode may provide a variety of responses to a given prompt. This work provides an analysis method of the variety of responses to a given prompt. It is more expressive than simply setting a temperature. The basis is a conditional version of mutual information [Cover]:

I(K1,K2∣Q)=Ep(q)Iq(K1,K2∣Q=q)=Ep(q)Ep(k1,k2∣q)log⁡[p(K1,K2∣Q)p(K1∣Q)p(K2∣Q)]I\left(\mathbf{K}^{1},\mathbf{K}^{2}\mid Q\right)=E_{p(q)}I_{q}\left(\mathbf{K}^{1},\mathbf{K}^{2}\mid Q=q\right)=E_{p(q)}E_{p\left(\mathbf{k}^{1},\mathbf{k}^{2}\mid q\right)}\log\left[\frac{p\left(\mathbf{K}^{1},\mathbf{K}^{2}\mid Q\right)}{p\left(\mathbf{K}^{1}\mid Q\right)p\left(\mathbf{K}^{2}\mid Q\right)}\right]

(1.1.a)

with the operational expression

Iq(K1,K2∣Q=q):=∑k1∑k2p(k1,k2∣q)log⁡[p(k1,k2∣q)p(k1∣q)p(k2∣q)]I_{q}\left(\mathbf{K}^{1},\mathbf{K}^{2}\mid Q=q\right):=\sum_{\mathbf{k}^{1}}\sum_{\mathbf{k}^{2}}p\left(\mathbf{k}^{1},\mathbf{k}^{2}\mid q\right)\log\left[\frac{p\left(\mathbf{k}^{1},\mathbf{k}^{2}\mid q\right)}{p\left(\mathbf{k}^{1}\mid q\right)p\left(\mathbf{k}^{2}\mid q\right)}\right]

(1.1.b)

In Eq. (1.1), K1\mathbf{K}^{1} and K2\mathbf{K}^{2} are phrases that pre- and post-pend QQ; the latter thought of as a query, q∈Qq \in Q.

We shall show that

0≤I(K1,K2∣Q)≤min⁡[H(K1∣Q),H(K2∣Q)]≤H(X)(K1,K2,Q∈X)(1.2)0\leq I\left(\mathbf{K}^{1},\mathbf{K}^{2}\mid Q\right)\leq\min\left[H\left(\mathbf{K}^{1}\mid Q\right),H\left(\mathbf{K}^{2}\mid Q\right)\right]\leq H\left(\mathbf{X}\right)\quad\left(\mathbf{K}^{1},\mathbf{K}^{2},Q\in\mathbf{X}\right) \tag{1.2}

with H(X)H(\mathbf{X}) the entropy of the vocabulary.

Without the conditionality, Eq. (1.1) simplifies to the standard mutual information (MI) between the probability of two correlated random variables (RVs) and their product, independent probabilities. Cover and Thomas' book [Cover] also provides the conditional mutual information (CMI) version in Eq. (1.1) and various rewritings of it are used to obtain Eq. (1.2) and to analyze its limiting behaviors. When the CMI is maximum, one learns the most possible about K2\mathbf{K}^{2} from knowledge of K1\mathbf{K}^{1} (and vice versa), conditional on Q=qQ = q. When zero, no added information about K2\mathbf{K}^{2} due to knowledge of K1\mathbf{K}^{1} (and vice versa), conditional on query Q=qQ = q is obtained. Based on these limits, we define three instructive classes termed: arbiter, independent (conditionally) and neutral/deterministic. Examples of each class and their application to the four topics: 1) "temperature" analysis, 2) language analysis, 3) prompt compression and 4) knowledge graphs are presented.