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

Estimating Unseen Concepts Through an Imperfect Semantic Judge

Many questions about text are really species-counting questions. How many distinct intents appear in a stream of user queries? How many distinct topics does a new document collection need as labels? How spread out are the meanings an LLM produces when asked the same question ten times? Statisticians have strong tools for this: estimators that, from a sample much smaller than the number of possible categories, recover how many categories exist and how probability is spread across them, including categories never observed. Those tools assume every observation carries a clean category ID. In language, "the same category" is decided by an imperfect judge, such as a sentence-embedding similarity threshold or an entailment model. Judges of this kind wrongly split paraphrases more often as texts get longer. Each wrongful split turns a repeated concept into two apparent one-off observations, and one-off observations are exactly the signal these estimators read as evidence of a large hidden tail. The result is that estimates of how many concepts exist inflate sharply.

This note proposes a way around that. We rewrite the sample in a basis where judge errors enter linearly: counts of groups of $j$ samples the judge declares mutually equivalent, instead of counts of how often each cluster appears. We divide out each group size's measured "stay-together" rate, estimated on a small set of known paraphrases. We then feed the corrected statistics to a standard linear-programming estimator of the unseen. The design rule that follows is to run the judge conservatively, accepting many false splits but almost no false merges, and to correct the splits analytically. We expect this to recover concept-level support size and entropy where clustering-then-counting fails. The analysis also predicts where the method must break: when the number of concepts approaches the inverse of the judge's false-merge rate.

Core Claim

The classical theory of symmetric property estimation compresses a sample into its profile, also called the fingerprint: $\mu_i$ is the number of categories seen exactly $i$ times. The profile is a sufficient statistic for any property that ignores category names, such as entropy or support size, as established in Tight Bounds on Profile Redundancy and Distinguishability. Estimators built on it reach sub-linear sample complexity, $n = \Theta(k/\log k)$ for support size $k$. This holds for the linear program of Estimating the Unseen, for profile maximum likelihood (PML, which picks the distribution most likely to have produced the observed profile) in A Unified Maximum Likelihood Approach and The Broad Optimality of Profile Maximum Likelihood, and for Local Moment Matching.

The profile is a highly nonlinear function of the judge's decisions. One false split in a cluster of size five changes $\mu_5$, $\mu_4$ and $\mu_1$ at once, and transitive clustering spreads errors further. An equivalent re-expression behaves much better. Let $C_j$ be the number of $j$-subsets of the $n$ samples that the judge declares pairwise equivalent. With exact labels, $C_j = \sum_i \mu_i \binom{i}{j}$, which is a lossless binomial transform of the profile. With an imperfect judge, let $\gamma_j$ be the probability that $j$ independent renderings of one concept are all judged mutually equivalent. Let $\alpha$ be the pairwise false-merge rate. Then, to first order in $\alpha$,

$$\mathbb{E}[C_j] \approx \binom{n}{j}\Big(\gamma_j \sum_x p_x^j + \alpha_j\Big), \qquad \hat m_j = \frac{C_j/\binom{n}{j} - \hat\alpha_j}{\hat\gamma_j},$$

Here $p_x$ is the probability of concept $x$, $\alpha_j$ is the rate at which $j$ draws from distinct concepts are falsely judged a clique (roughly $\alpha$ for $j=2$ and negligible above it), and $\hat m_j$ is our corrected estimate of the power sum $\sum_x p_x^j$. The corrected moments for $j$ up to about $\log n$, the order used by the moment-matching theory, then constrain a Valiant-style linear program over histograms of probability values. That program returns support size, entropy, or the range of either consistent with the data.

The correction exposes an identifiability limit. The $j=2$ statistic mixes $\sum_x p_x^2 \approx 1/k$ with $\alpha$, so concepts become unresolvable once $k \gtrsim 1/\alpha$. False splits, by contrast, only shrink the signal by a known factor $\gamma_j$. This asymmetry is the reason to run the judge at a strict threshold and correct the splits, rather than tune it to balance both error types.

Research Program

We build the estimator in three parts. The first part is the judge. Following the dual-encoder line of semantic label embedding (the approach of DEPL, which encodes documents and label descriptions separately and compares them by inner product), we use a BERT-class text encoder with a cosine threshold. We also include a bidirectional entailment judge of the kind used by semantic entropy. The second part is calibration. We estimate $\hat\gamma_j$ and $\hat\alpha$ on held-out concepts that each have several known renderings, stratified by rendering length. The length stratification matters because Beyond Semantic Entropy shows cluster counts track generation length (Spearman $\rho = 0.83$). Measuring $\gamma_j$ empirically, rather than assuming $\gamma_j = (1-\beta)^{\binom{j}{2}}$ from independent pairwise errors, avoids a clearly false independence assumption, since paraphrases of one concept fail together. The third part is the estimator: clique counting on the sparse judge graph that the strict threshold produces, followed by the moment-constrained linear program.

On the analysis side, we will derive how the variance of $\hat m_j$ scales with $1/\gamma_j$ and with the error in $\hat\gamma_j$. The aim is to state the effective sample-size penalty the judge imposes and to test the predicted breakdown point $k \approx 1/\alpha$.

Each prior strand plays a distinct role here. Valiant and Valiant, PML, and local moment matching supply the estimation machinery. None of them models a noisy equivalence relation, and all assume exact symbol identities. SNNE in Beyond Semantic Entropy motivates the work: it documents the failure of hard clustering on long text. It responds with a smoothed similarity score, not an estimator of a population quantity, and it says nothing about unobserved meanings. Hierarchical Text Classification vs. XML constrains the design. Its finding that data-driven label clusterings often beat curated taxonomies argues against trusting any single partition of label space, which is one reason we avoid committing to a clustering. The hardness results for high-accuracy universal estimation in On the Competitive Analysis and High Accuracy Optimality of PML also constrain the design: we target support size and entropy at moderate accuracy, not arbitrary Lipschitz properties at $\epsilon \lesssim n^{-1/3}$.

Baselines

The naive reference point clusters samples with the judge and reports the number of clusters for support size, or the plug-in cluster entropy. This is what semantic entropy does, and it is known to be biased downward on the unseen and upward under false splits.

The strongest existing estimator is hard clustering followed by the unseen linear program of Estimating the Unseen. That paper reports it beating Miller-Madow, jackknife, coverage-adjusted and best-upper-bound estimators in almost every synthetic test, and recovering Hamlet's 4,268-word vocabulary from a 10% fragment. No scalar RMSE is given in the file, and no reported result was found on Lacuna for any unseen estimator applied to judged semantic equivalence. We will run this baseline in two versions. The first uses the same judge at its default threshold. The second uses an oracle threshold tuned on the same calibration set our method uses, so that both methods see identical labeled pairs. A PML plug-in on the clustered profile, via the convex-relaxation approach of Charikar et al., will be included where it fits the compute budget. For entropy-ranking tasks, the strongest competitor is WSNNE, which reports an average AUROC of 0.83 against 0.79 for semantic entropy on question answering with Llama-3.1-8B in Beyond Semantic Entropy. We will reuse its sampling budget of 5–10 generations and its judge.

Two ablations isolate the key ingredient. The first uses the same clique statistics without the $\hat\gamma_j$ correction. The second replaces empirical $\hat\gamma_j$ with the independence approximation. An oracle arm runs the unseen LP on true concept IDs and bounds what any judge-based method can reach.

Beating the tuned-threshold baseline means lower median relative error in support size across the length sweep. We will count it as a real win only if the gap grows with rendering length, which is the mechanism we claim.

Why not just…?

Why not just tune the clustering threshold and run the unseen estimator? This is the real threat, and it is a baseline with oracle tuning. Our argument is structural. A single threshold trades false splits against false merges, and clustering transitivity turns both into nonlinear profile distortions that no threshold cancels at every concept frequency. If the tuned baseline matches us across lengths and support sizes, the correction is unnecessary, and we will report that.

Why not just use SNNE? SNNE is a ranking score for hallucination detection. It has no population target, so it cannot report how many meanings exist or how much mass is unobserved. On support-size tasks it is not applicable. On AUROC tasks we compare directly. We expect only modest gains there, because with 10 samples the unseen correction has little room to work.

Why not just use a stronger judge? A better judge raises $\gamma_j$ and lowers $\alpha$, which helps every method. It does not remove length-dependent splitting. We will sweep judges from embedding similarity to entailment models. The claim survives only if the correction still helps with the best judge.

Why not just use Good-Turing on the clusters? Good-Turing estimates the total unseen mass but not the number or shape of unseen concepts, as Estimating the Unseen notes. It also reads false-split singletons as unseen mass. We include it as a secondary reference.

Proposed Experiments

The main testbed is semi-synthetic, with known ground truth. The concepts are real label vocabularies from Wiki10-31K, AmazonCat-13K and EURLex-4K, the XMTC benchmarks used by DEPL. Concept probabilities follow the uniform, Zipf and geometric laws of the synthetic setups in Estimating the Unseen and Hao and Li. Each draw is rendered as a paraphrase of the label's description or DEPL-style pseudo-description, at controlled length. We sweep $n/k$ from well below to above $1/\log k$, and support sizes from a few thousand to 31K. Calibration concepts are disjoint from test concepts.

Metrics are relative error in support size and RMSE in entropy against the true $p$.

A secondary natural test uses the question-answering benchmarks (TriviaQA, SQuAD) from Beyond Semantic Entropy. There we measure hallucination-detection AUROC against the reported WSNNE figure of 0.83.

Three checks decide the question. First, as rendering length grows, the tuned hard-clustering unseen estimator's support error should rise while ours stays near the oracle arm. Second, sweeping the judge threshold at fixed $k$ should show our method improving as the threshold gets stricter, while the baseline worsens. That would confirm the "prefer splits, correct them" rule. Third, a deliberately loose judge should make our estimator break down near $k \approx 1/\hat\alpha$ and not elsewhere. A breakdown at a different point would falsify the error model.