Which Label Definitions Can a Zero-Shot Classifier Actually Follow?

Zero-shot text classifiers increasingly receive a written definition of each class instead of training examples. A typical definition reads "a review that is negative and about a kitchen product," or "a post that targets at least two of: race, religion, gender." Methods differ in how the document meets that definition. A dual encoder embeds the document and the definition separately and compares the two vectors. A cross-encoder or prompted language model reads both together in one pass. A generative "noisy-channel" scorer asks how likely the document is given the definition. These methods are usually compared on flat topic or sentiment benchmarks, where the definition is essentially a single concept. Nobody has asked which logical shapes of definition each method can represent at all.

This note proposes that expressivity theory already answers that question, and that its answers can be tested. Two kinds of expressivity theory apply. Circuit complexity bounds say what a fixed-depth Transformer can compute in one forward pass. A rank argument says what a fixed-dimension dot product between two independently computed vectors can represent. Together they predict a ladder. Definitions that are a weighted vote over attributes (conjunctions, negations, "at least k of m") should be within reach of every method. Definitions that need parity-like or exact-count logic should break dual encoders almost immediately. Single-pass readers should hold up at small sizes and degrade as the number of criteria grows. Definitions that refer to other definitions, nested to depth $D$, should degrade with $D$ unless the model gets extra sequential steps, for example by reasoning out loud or by calling a tool repeatedly. We will build a benchmark from existing labeled corpora in which the definition's position on this ladder is controlled, and test whether the failure pattern matches the predictions.

Core Claim

How a classifier lets document and definition interact sets a hard ceiling on which definitions it can honor, and the ceiling is predictable before any experiment.

The dual-encoder ceiling comes from the score $s(x, D) = \langle f(x), g(D) \rangle$, where $f$ embeds the document $x$, $g$ embeds the definition $D$, and both live in $\mathbb{R}^d$. Since $f(x)$ is fixed before $D$ is seen, the classifier can only realize definitions whose truth table over documents is a sign pattern of a rank-$d$ matrix. Two consequences follow. If $f(x)$ linearly encodes $m$ attributes, then any linear-threshold definition over those attributes needs only about $d \geq m+1$ dimensions. A parity-of-criteria definition ("an odd number of these hold") instead needs dimension exponential in $m$, by standard sign-rank lower bounds for inner-product-type functions.

The single-pass reader ceiling comes from the circuit complexity results. Log-precision Transformers are simulable by uniform constant-depth threshold circuits, as shown in The Parallelism Tradeoff. They are also expressible in first-order logic with majority quantifiers, where attention behaves like majority voting, per A Logic for Expressing Log-Precision Transformers. Majority logic counts natively, so threshold definitions should be easy for such readers. Fixed-precision Transformers without positional encodings, characterized in Characterizing the Expressivity of Transformer Language Models, land in a logic that excludes parity. In that paper's experiments they collapse to near chance on parity and Dyck languages at long lengths while reaching 100% inside their class. Hard-attention variants drop further, into a class that cannot count at all, per Formal Language Recognition by Hard Attention Transformers.

The new element is applying these results to the definition rather than to the input string. The relevant length is the number of criteria $m$ or the nesting depth $D$ of the label description, not the number of tokens in the document.

One scope decision matters. We do not claim that the "broken path" errors in hierarchical classification come from a complexity ceiling. Those are cases where a leaf is predicted without its parent, which Hierarchical Verbalizer for Few-Shot Hierarchical Text Classification fixes with a bottom-up constraint chain. When the taxonomy is fixed and shallow, checking a path is a constant-size lookup, and constrained decoding solves it cheaply. The complexity question only becomes real when the taxonomy is supplied in context and its depth can grow. That is the nested rung of our ladder.

Research Program

We will build a benchmark, which we call CompDef, from corpora that already carry several independent gold attributes per document. Using existing labels avoids new annotation, and each definition's truth value is computed exactly from those labels. Three sources supply the documents.

The first is Amazon reviews. Each review has a product category and a star rating, which support definitions such as "negative and not about electronics."

The second is the Ethos hate-speech subsets. Each post has multiple target attributes, which support "targets at least two of race, religion, gender" and "targets exactly one."

The third is concatenated snippet bundles, where we can scale the number of criteria without limit. We concatenate $m$ short AGNews or Yahoo Answers snippets and pose definitions over their topics, such as "at least three snippets concern sports" or "an odd number concern sports," with $m$ ranging from 2 to 32.

On each source the definitions occupy five rungs: single attribute, Boolean combination, threshold, exact-count or parity, and nested reference. For the nested rung we use the DBpedia hierarchy written into the prompt. Each class definition names its parent rather than restating it. We extend depth synthetically with alias chains such as "a Q-type is a kind of R-type; an R-type is …", which lets $D$ go beyond the ontology's native three levels.

Surface form is a known confound. Gen-Z needed roughly twenty paraphrases to stabilize, per Gen-Z. To control for this, rungs are paired with closely matched wording, so that "at least two" and "an odd number" differ by a phrase rather than a sentence structure. Every definition also gets several auxiliary-model paraphrases.

We will evaluate each classifier family on every rung as $m$ and $D$ grow. Theory predicts a specific method-by-rung interaction, and fitting the observed accuracy curves against that pattern is the main analysis.

We will run two smaller studies alongside. The first varies inference precision (fp32, bf16, and 8-bit) on threshold definitions with large $m$ over long documents. Merrill and Sabharwal show that precision below $\log \log n$ cannot represent uniform attention, so counting should degrade at low precision. Because that bound is asymptotic, we treat this as an exploratory check and not a decisive one.

The second is mechanistic. We apply the noising-plus-denoising circuit discovery of Rethinking Circuit Completeness in Language Models to a small cross-encoder. That method was used only on syntactic tasks. Here it tells us whether a conjunctive definition is computed by an AND-like joint dependency or by an additive sum that is then thresholded. The theory predicts the additive form for threshold rungs. Synonym lists inside definitions should show up as the redundant OR paths that path-finding methods miss.

Baselines

The naive reference point is a majority-class predictor plus plain label-name zero-shot prompting with the same language model. This shows how much any method gains from reading the definition at all.

The strongest existing description-based methods are two. The first is Gen-Z, the generative noisy-channel scorer from Gen-Z. It reports 91.7 Macro-F1 on SST-2 with GPT-J 6B against 87.1 for the best discriminative zero-shot baseline, and matches 8-to-16-shot in-context learning. The second is label-description training (LDT) from The Benefits of Label-Description Training. It fine-tunes RoBERTa on definitions and synonyms, reports 17.5% (base) and 18.9% (large) average absolute gains over zero-shot baselines, and beats GPT-3.5 on AGNews and DBPedia. Those last scores were not extracted in our source.

We will first reproduce the Gen-Z SST-2 figure as a faithfulness check before applying either method to CompDef. No reported result was found on Lacuna for any method on compositional or nested label definitions, so all CompDef numbers will be new.

For the hierarchical slice, the reference is HierVerb from Hierarchical Verbalizer for Few-Shot Hierarchical Text Classification. It reports 91.81% Micro-F1 on 1-shot DBpedia and 39.77% path-consistent Micro-F1 on 1-shot Web of Science, where vanilla fine-tuning is near 0%. The zero-shot hierarchical augmentation method HiLA (Label Augmentation for Zero-Shot Hierarchical Text Classification) reports Amazon level-2 Macro-F1 rising from 0.348 to 0.393. We use HiLA's upward score propagation as the external-aggregation reference.

Two further baselines are serious competitors. One is chain-of-thought prompting, where the model writes intermediate reasoning before answering. The other is atomic decomposition: the definition is split into its criteria, each criterion is checked with a separate model call, and an explicit logic program combines the answers. Modeling Tool Use in Transformers via Computation Oracles shows that repeated oracle calls let a fixed-depth Transformer escape its single-pass class. Decomposition is that oracle view put into practice, and we count its calls.

The ablation that isolates the key ingredient holds everything fixed except whether document and definition interact. We train one RoBERTa-large backbone with identical LDT-style definition data, identical tuning budget, and identical seeds, in two forms: as a dual encoder and as a cross-encoder. Any difference on parity versus threshold rungs then comes from the interaction structure, not from pretraining or data.

All methods see the same documents and definitions and the same paraphrase sets. Decomposition and chain-of-thought get their compute reported in forward passes and generated tokens. Beating a baseline means a statistically separated accuracy gain on a rung where theory says the baseline's architecture should hold, or confirming that a predicted failure appears where predicted. Raw leaderboard wins are not the goal.

Why not just…?

Why not just decompose every definition into atomic questions and combine them with logic? This is the real threat, and we expect it to win on accuracy whenever the criteria are written out explicitly. We do not argue around it. The proposal reframes the contribution as a map of when decomposition is necessary and what it costs.

That map comes from three measurements. The first is the end-to-end-minus-decomposed gap per rung, which theory predicts is near zero on threshold rungs and growing with $m$ on parity and nested rungs. The second is the number of calls, which grows linearly in $m$ and $D$. The third is decomposition's failure rate on natural definitions whose criteria are not cleanly separable, as on Ethos. If the gap is uniformly large, including on threshold rungs where single-pass readers should suffice, our capacity explanation is wrong and the result reduces to "decomposition helps."

Why not just use chain-of-thought or a larger model? Chain-of-thought adds sequential steps, which is exactly what the theory says escapes the single-pass ceiling. We therefore predict it fixes parity and nesting. The interesting measurement is whether the number of reasoning tokens it needs scales with $m$ and $D$, as the oracle-call analysis of Sun et al. suggests.

Scale is a weaker answer for the parity rung. Li and Cotterell's failures persist at long lengths regardless of training. We will test scale across two model sizes, holding everything else fixed, to check whether a larger model shifts the breakdown point in $m$ or removes it.

Why not just fine-tune on compositional definitions, as LDT does with simple ones? A model trained on parity definitions at small $m$ may memorize those sizes. Training on $m \leq 8$ and testing up to $m = 32$ separates memorization from capacity. The theory predicts that threshold definitions extrapolate while parity does not, matching the length-generalization split that Li and Cotterell report for formal languages.

Isn't this just prompt brittleness? The paired-wording design and paraphrase ensembles address this directly. If rung effects vanish once wording is matched, the brittleness explanation wins and the expressivity account loses.

Decisive Checks

The central test is the dual encoder on the threshold and parity rungs. We first check, with a linear probe on frozen $f(x)$, that the needed attributes are linearly decodable from the document embedding. If they are, theory says threshold definitions are representable and parity definitions are not. In that case a dual encoder that fails threshold definitions as badly as parity ones is failing in the definition encoder $g$, not in capacity. That outcome would falsify the claim that the rank ceiling is what binds in practice.

The second test is single-pass readers on parity definitions as $m$ grows. They should be near-perfect at $m = 2$, drift toward chance by $m = 32$, and show no such drift on threshold definitions of matched wording. Seeing this asymmetry on real Amazon, Ethos, and AGNews text would make circuit bounds an actionable design rule for zero-shot classification. The rule would say when to embed separately, when to read jointly, and when to pay for extra sequential steps.

The third test is the nested rung. Accuracy should fall with depth $D$ for every single-pass method, and decomposition or chain-of-thought should recover it at a cost linear in $D$. If accuracy stays flat across depth, the in-context taxonomy is not acting as a sequential computation, and the nested part of the claim fails.