arXiv:2609.09860cs.LGSep 2026

Manuscript Offprint

arXiv:2609.09860

Exact Degeneracy Under Balanced k-Shot Sampling:Consequences for Small-Sample Discriminant Analysis on LLM Embeddings

Lingxiao Qu

Abstract

Balanced kk-shot sampling, drawing exactly kk labeled examples per class, is the standard protocol in few-shot evaluation. We show that it induces an exact, provable degeneracy in a family of small-sample discriminant estimators. Under balanced sampling, the within-class scatter operator of Kernelized Linear Principal Component Discriminant Analysis (KLPCDA) is not merely rank-deficient, the condition classical small-sample discriminant analysis addresses, but is exactly a scaled orthogonal projector. We derive the consequences in closed form: two of KLPCDA's seven variants have every signal eigenvalue exactly equal, so their eigenvector selection criterion is provably indifferent rather than ill-conditioned, and a third has a provably void objective, its operator exactly the zero matrix. These follow from the estimators' construction rather than from any dataset, and we confirm them to float64 precision on frozen sentence embeddings and, separately, on residual-stream activations from a decoder-only generative model. An in-formula tie-break repairs the two repairable variants; how much they recover depends on class count exactly as the mechanism predicts, since the subspace constraint they remain subject to costs 5×5\times more on few-class than on many-class datasets (p=0.000001p=0.000001).

We then evaluate the repaired framework in the regime that motivated it: few-shot text classification on frozen LLM embeddings (n≪dn \ll d, with dd up to 4096), across four datasets, three embedding sizes, and three trained baselines (SetFit, LoRA, in-context learning). A properly cross-validated logistic-regression probe still beats every KLPCDA variant on three of four datasets, at every embedding size. Guidance carried from pixel, vibration-signal, and gene-expression data does not directly generalize to this feature space. We also report a negative result: three independent geometric separability metrics all fail to explain why one high-dimensional decoder-based embedding model underperforms smaller bidirectional encoders in this regime, ruling out embedding anisotropy as the explanation. We then show that underperformance is substantially an estimation-efficiency effect rather than a permanent ceiling: extending the support set from k≤10k \leq 10 to k=30–50k = 30–50 closes more than 80% of its accuracy gap to a comparable bidirectional encoder, on both many-class datasets tested (p=0.00195p = 0.00195 throughout). We report four quantified guidelines for practitioners and release the estimator, evaluation harness, and full experimental log.

1 Introduction

Small-sample-size (SSS) classification, where the number of labeled examples nn is smaller than the feature dimension dd, has a long history in classical discriminant analysis. When n<dn < d, the within-class scatter matrix SwS_w that Fisher's linear discriminant analysis (LDA) needs to invert is rank-deficient (rank(Sw)≤n−L\text{rank}(S_w) \leq n - L

*Corresponding author. Email: lxqull10@outlook.com for LL classes), and naively inverting it is numerically unstable or undefined. Kernelized Linear Principal Component Discriminant Analysis (KLPCDA) [7] addresses this with seven variants that fuse total variance CC, between-class scatter SbS_b, and within-class scatter SwS_w in different combinations, some avoiding SwS_w entirely, and a companion cross-domain study derives guidance for which variant to prefer under which measurable data conditions (rank deficiency, class imbalance, how much class-discriminative signal survives a variance-only projection), validated across hyperspectral imaging, bearing-fault vibration signals, gene-expression panels, and face recognition.

Frozen embeddings from a modern LLM or sentence-transformer, evaluated in a few-shot text-classification setting, sit in the same regime by construction: kk labeled examples per class across LL classes gives n=kLn = kL, and modern embedding dimensions range from d=384d = 384 (small sentence-transformers) to d=4096d = 4096 (billion-parameter decoder-based embedders), routinely giving n≪dn \ll d for realistic few-shot budgets (k≤10k \leq 10). This is the same rank-deficiency regime KLPCDA was designed for, with the feature map supplied by a pretrained encoder rather than a hand-picked kernel. Whether guidance derived from pixels, vibration signals, and gene expression transfers to this quite different feature space, and, if not, exactly where it breaks, is the question this paper sets out to answer.

The first finding does not depend on any particular dataset. The evaluation protocol itself, balanced k-shot sampling, which draws exactly k examples per class, puts the KLPCDA family into an exactly characterizable degenerate state, in which three of its seven variants' selection criteria become provably arbitrary or provably void, and a fourth collapses onto a low-dimensional, structurally meaningful subspace rather than an arbitrary one (Section 3). This is a structural interaction between a standard few-shot protocol and a class of scatter-matrix estimators, not a property of embeddings or of any dataset, and we therefore lead with it and treat the empirical transfer question as the setting that surfaced it. We report the empirical result throughout, including several findings that reverse or complicate earlier, more optimistic readings of our own intermediate results. Concretely, we make four contributions:

  1. An exact, closed-form diagnosis and fix for a previously undocumented failure mode. Under balanced k-shot sampling, KLPCDA's within-class operator is exactly a scaled orthogonal projector; we derive from this that two variants' entire signal subspace shares a single eigenvalue (making eigenvector selection provably arbitrary) and that a third variant's operator is exactly zero (making its objective void). We verify both to floating-point precision, on frozen sentence embeddings and separately on residual-stream activations from a decoder-only generative model, evidence that the mechanism belongs to the estimator rather than to a feature space, and repair the two repairable variants with an in-formula tie-break (Section 3).

  2. A four-dataset, three-embedding-size evaluation (Section 4) comparing all seven KLPCDA variants against a properly cross-validated linear probe, a nearest-centroid baseline, and three trained/adapted baselines (SetFit, LoRA, in-context learning), with the headline result that KLPCDA does not yet beat a fair linear probe on three of four datasets (Section 5).

  3. Four mechanism-backed, quantified guidelines for practitioners, covering class count, layer/pooling choice, the k-regime where in-context learning beats fine-tuned baselines, and how much of a high-dimensional embedder's few-shot disadvantage is recoverable with more labeled examples, each stated with its supporting evidence and, where known, its mechanism (Section 6).

  4. A negative result: three independent geometric separability metrics, of increasing statistical sophistication, all fail to explain why one embedding model underperforms another in this regime, ruling out several natural explanations rather than leaving the question untested (Section 7).

We release the full estimator, evaluation harness, and a step-by-step experimental log recording every dead end alongside every confirmed finding, so that the negative and revised results are as useful to a practitioner deciding whether to try this approach as the positive ones.