通过LLM蒸馏实现多标签主题分配:生成式与判别式学生模型的对比分析

arXiv cs.LG 论文

摘要

该论文比较了经LLM蒸馏的生成式与判别式学生模型在多标签主题分类任务上的表现,发现数据类型决定了架构选择:判别式模型在结构化评论上更优,而即使最小的1B生成式模型在多轮对话数据上也能超越判别式基线,并在大规模长尾标签下保持稳健,最终成功部署于eBay生产环境。

arXiv:2610.09063v1 Announce Type: new Abstract: Multi-label topic assignment for user-generated content (UGC) -- including product reviews and buyer-seller conversations -- poses unique scalability challenges in large-scale e-commerce due to informal language, extreme label sparsity, and rapidly evolving taxonomies. While utilizing Large Language Models (LLMs) as labeling oracles to distill ground-truth data has emerged as an industry standard to bypass prohibitive manual annotation costs, determining the optimal, low-latency architecture for the resulting student models remains an open challenge. To address this, we conduct a comprehensive evaluation across Small Language Model (SLM) parameter scales (1B, 4B, and 8B) and architectural paradigms (causal generative versus bidirectional discriminative). Comparing generative text-to-label classifiers against discriminative baselines (DeBERTa-V3 and ModernBERT), our analysis reveals a crucial data-dependent trade-off: while discriminative models outperform ultra-lightweight generative models on structured product reviews, even the smallest 1B generative model surpasses discriminative baselines on complex, multi-turn conversational data. Furthermore, generative models maintain robust performance under massive label-set expansion (up to 112 topics) and severe long-tail distributions, whereas discriminative baselines suffer a 35% drop in Macro-F1 at scale. Finally, we detail the successful production deployment of these optimized models across both product review and conversational domains, demonstrating strict latency compliance and tangible business impact at a global marketplace scale.
查看原文
查看缓存全文

缓存时间: 2026/10/08 12:52

# Multi-Label Topic Assignment via LLM Distillation: A Comparative Analysis of Generative vs. Discriminative Student Models
Source: [https://arxiv.org/html/2610.09063](https://arxiv.org/html/2610.09063)
###### Abstract

Multi\-label topic assignment for user\-generated content \(UGC\)—including product reviews and buyer\-seller conversations—poses unique scalability challenges in large\-scale e\-commerce due to informal language, extreme label sparsity, and rapidly evolving taxonomies\. While utilizing Large Language Models \(LLMs\) as labeling oracles to distill ground\-truth data has emerged as an industry standard to bypass prohibitive manual annotation costs, determining the optimal, low\-latency architecture for the resulting student models remains an open challenge\. To address this, we conduct a comprehensive evaluation across Small Language Model \(SLM\) parameter scales \(1B, 4B, and 8B\) and architectural paradigms \(causal generative versus bidirectional discriminative\)\. Comparing generative text\-to\-label classifiers against discriminative baselines \(DeBERTa\-V3 and ModernBERT\), our analysis reveals a crucial data\-dependent trade\-off: while discriminative models outperform ultra\-lightweight generative models on structured product reviews, even the smallest 1B generative model surpasses discriminative baselines on complex, multi\-turn conversational data\. Furthermore, generative models maintain robust performance under massive label\-set expansion \(up to 112 topics\) and severe long\-tail distributions, whereas discriminative baselines suffer a 35% drop in Macro\-F1 at scale\. Finally, we detail the successful production deployment of these optimized models across both product review and conversational domains, demonstrating strict latency compliance and tangible business impact at a global marketplace scale\.

1eBay Inc\., Bellevue, WA

2eBay Inc\., Portland, OR

sokasliwal@ebay\.com, shubhrasingh@ebay\.com

## 1Introduction

At a global e\-commerce marketplace, the ability to categorize and derive insights from user\-generated content \(UGC\) is essential for maintaining platform health and buyer trust\. With millions of active listings across thousands of categories—from automotive parts to collectible electronics—topic assignment is a critical driver for numerous business functions\. These range from identifying risk, fraudulent activity, or user intent in buyer\-seller messaging to generating structured review summaries that help buyers navigate complex purchasing decisions\.

However, textual user\-generated content in a marketplace ecosystem is uniquely challenging\. Unlike standardized product descriptions, buyer\-seller conversations and product reviews are often characterized by extreme linguistic variety, platform\-specific jargon, and informal syntax\. Traditional multi\-label classification methods often struggle with the noise and sparsity inherent in this data\([Ma et al\. 2025](https://arxiv.org/html/2610.09063#bib.bib3)\)\. Furthermore, the sheer scale of the dataset makes manual labeling for every new niche or category extremely inefficient and cost\-prohibitive\. Recently, leveraging high\-capacity Large Language Models \(LLMs\) as labeling oracles to synthesize training data for smaller “student” models has become a standard industry practice to reduce these manual annotation costs\([Jung 2023](https://arxiv.org/html/2610.09063#bib.bib2)\)\([Ma et al\. 2025](https://arxiv.org/html/2610.09063#bib.bib3)\)\.

While LLM powered distillation solves the data bottleneck, determining the optimal architecture and parameter scale for the resulting student models remains an open engineering challenge\. Production systems must balance inference latency against classification fidelity\. Furthermore, it is unclear whether traditional discriminative boundaries or modern autoregressive generative decoding are better suited for the varying linguistic complexities of marketplace text—such as the difference between single\-author product reviews and multi\-turn, multi\-author dialogues\.

To address this, we present a comprehensive comparative analysis of multi\-label classification architectures within a production Teacher\-Student distillation framework\. This paper makes the following core contributions:

- •Empirical Comparison of Architectures and Scales:We conduct a rigorous evaluation comparing traditional discriminative classifiers DeBERTa\-V3\([He et al\. 2021](https://arxiv.org/html/2610.09063#bib.bib5)\)and ModernBERT\([Warner et al\. 2024](https://arxiv.org/html/2610.09063#bib.bib6)\)against generative text\-to\-label Small Language Models \(SLMs\) across varying parameter scales \(1B, 4B, and 8B\), assessing their fidelity to distilled oracle labels\.
- •Discovery of Data\-Dependent Trade\-offs & Taxonomy Robustness:We reveal a critical performance divergence based on data complexity: while discriminative models outperform ultra\-lightweight generative models on structured product reviews, even the smallest 1B generative model surpasses discriminative baselines on multi\-turn conversational data\. Additionally, we demonstrate that generative models maintain performance under massive label\-set expansion \(up to 112 topics\), whereas discriminative baselines suffer a severe 35% performance collapse\.
- •Production Deployment and Business Impact:Grounded in our comparative findings, we detail the production deployment of optimized generative multi\-label models across multiple domains, demonstrating latency compliance and tangible business impact at scale\.

The remainder of this paper is organized as follows: Section[2](https://arxiv.org/html/2610.09063#S2)discusses our methodology including the Teacher\-Student framework, discriminative vs\. generative architectures, and the prompt engineering template for LLM\-based annotation\. Section[3](https://arxiv.org/html/2610.09063#S3)details dataset creation and topic classification challenges across multiple types of datasets\(product reviews and buyer\-seller conversations\)\. Section[4](https://arxiv.org/html/2610.09063#S4)presents the experimental results and comparative analysis\. Section[5](https://arxiv.org/html/2610.09063#S5)details the production integration and its impact on review quality, followed by Section[6](https://arxiv.org/html/2610.09063#S6), which outlines future directions\.

## 2Methodology: Scalable Multi\-Label Classification

The task of topic assignment within the marketplace ecosystem is modeled as a large\-scale multi\-label classification problem\. Our proposed methodology for constructing these models is illustrated in Figure[1](https://arxiv.org/html/2610.09063#S2.F1)\.

![Refer to caption](https://arxiv.org/html/2610.09063v1/Methodology_Multilabel.png)Figure 1:Overview of the Scalable Multi\-Label Classification Methodology\.To overcome the significant bottleneck of manual data labeling, we employ a knowledge distillation framework using a Teacher\-Student architecture\. In this setup, a high\-capacity Large Language Model \(LLM\) acts as a labeling oracle, generating ground truth annotations for a corpus of unlabeled user\-generated content \(UGC\)\. The oracle is conditioned on a structured taxonomy consisting of class definitions and disambiguation criteria\. By leveraging LLMs to synthesize ground truth, we overcome the labeling bottlenecks typical of niche e\-commerce categories—a strategy that has shown significant promise in scaling extreme multi\-label classification tasks\([Jung 2023](https://arxiv.org/html/2610.09063#bib.bib2)\)\. We subsequently train smaller, latency\-optimized “student” models on this distilled ground truth to satisfy the requirements of high\-traffic production infrastructure\.

### 2\.1Student Model Architectures

To evaluate the most effective architecture for production topic assignment, we compare two distinct modeling paradigms:

#### Discriminative Architecture \(DeBERTa\-V3\)

Traditionally, classification pipelines for user\-generated text have relied on discriminative architectures\. In this approach, we treat multi\-label classification as a series ofNNindependent binary tasks\. The model processes input text and passes the final hidden state through a linear layer with a Sigmoid activation function for each potential topic\. We formulate this mathematically by optimizing the Binary Cross\-Entropy \(BCE\) loss:

ℒB​C​E=\\displaystyle\\mathcal\{L\}\_\{BCE\}=∑i=1N\[yilog\(σ\(WiTh\)\)\\displaystyle\\sum\_\{i=1\}^\{N\}\\Big\[y\_\{i\}\\log\(\\sigma\(W\_\{i\}^\{T\}h\)\)\(1\)\+\(1−yi\)log\(1−σ\(WiTh\)\)\]\\displaystyle\+\(1\-y\_\{i\}\)\\log\(1\-\\sigma\(W\_\{i\}^\{T\}h\)\)\\Big\]wherehhis the final hidden state representation,WiW\_\{i\}represents the topic\-specific weights, andyi∈\{0,1\}y\_\{i\}\\in\\\{0,1\\\}is the ground truth label\. Systems like Text2Topic have demonstrated the efficacy of such discriminative approaches in transforming millions of unstructured reviews into structured business insights\([Wang et al\. 2023](https://arxiv.org/html/2610.09063#bib.bib1)\)\. However, by treating each label as an isolated boundary, this architecture often fails to capture the semantic interplay between co\-occurring topics\.

#### Generative Architecture \(Fine\-tuned SLMs\)

In contrast, our generative approach leverages the autoregressive nature of Small Language Models \(SLMs\)\. Instead of predicting a fixed set of logits, the model is fine\-tuned to sequentially generate tokens representing the relevant topics\. The generative approach models topic assignment as a sequence\-to\-sequence autoregressive decoding task, conditioned on the input textXXand Low\-Rank Adaptation \(LoRA\) weights\([Hu et al\. 2021](https://arxiv.org/html/2610.09063#bib.bib4)\)θL​o​R​A\\theta\_\{LoRA\}:

P⁡\(Y\|X\)=∏t=1TP⁡\(yt\|y<t,X,θL​o​R​A\)P\(Y\|X\)=\\prod\_\{t=1\}^\{T\}P\(y\_\{t\}\|y\_\{<t\},X,\\theta\_\{LoRA\}\)\(2\)whereYYis the generated sequence of topic tokens\. While traditional classifiers treat labels as independent targets, generative models can better reason through the label space by capturing semantic relationships between topics as they are decoded\([Ma et al\. 2025](https://arxiv.org/html/2610.09063#bib.bib3)\)\. Furthermore, the generative architecture is independent of the total number of labels; this flexibility allows the system to adapt to evolving taxonomies without requiring a full retraining of the output head every time a new class is introduced\.

Architectural Trade\-offs:In summary, discriminative baselines offer lower inference latency and are highly optimized for fixedNN\-way binary classification\. However, their reliance on independent sigmoid heads prevents them from capturing semantic co\-occurrence and makes taxonomy expansion rigid, as new classes require retraining the output head\. Conversely, while generative SLMs incur higher inference latency, their sequence\-to\-sequence autoregressive decoding natively captures label dependencies and provides high taxonomy flexibility without architectural modifications\.

### 2\.2LLM\-Based Ground Truth Generation

In a large\-scale marketplace, user\-generated content often results in vast repositories of unlabeled historical data\. To address the prohibitive cost of manual annotation, we utilize an external LLM \(GPT\-4o\) as a labeling oracle to generate high\-fidelity synthetic ground truth\.

#### Generalized Prompt Template

To ensure consistency across domains, we developed a generalized template instantiated with domain\-specific taxonomies and exemplars\. The core prompt structure is outlined below:

> SYSTEM ROLE: You are an AI assistant specialized in analyzing \[DOMAIN\] and identifying relevant topics from a predefined taxonomy\. Your task is to classify the given text and return all applicable topic labels\. INSTRUCTIONS: 1\. Analyze the input text carefully 2\. Identify ALL relevant topics from the taxonomy below 3\. A single input can have multiple topics 4\. Only select topics that clearly apply 5\. Return your response in valid JSON format TOPIC TAXONOMY: \- Topic\-1: \[Clear definition of what this topic represents, including criteria for assignment, distinguishing features and edge conditions\.\] \- Topic\-N: \[Complete taxonomy of all possible labels\] OUTPUT FORMAT: Return a JSON object with this exact structure: \{ "reasoning": "Brief explanation of why these topics apply", "labels": \["Topic\-1", "Topic\-2"\] \} FEW\-SHOT EXAMPLES: Input: \[Example text 1\] Output: \{"reasoning": "Explanation", "labels": \["Topic\-1"\]\} INPUT TEXT: \{input\_text\}

This prompt requires a structured taxonomy…

#### Prompt Tuning for Quality Assurance

A critical limitation of this methodology is that the accuracy of the fine\-tuned student model is constrained by the quality of the ground truth provided by the oracle\. Consequently, generating high\-fidelity labels is an iterative process requiring multiple rounds of prompt tuning and validation exercises to minimize hallucinations and ensure taxonomic alignment\. Each cycle involved manual audits by domain experts to verify that the distilled signal was robust across both head and long\-tail categories, ensuring the student model inherited a high\-quality training signal suitable for production\.

## 3Experimental Setup and Use Cases

We validate our proposed methodology across two distinct use cases representing different facets of textual user\-generated content at a global marketplace\. All experiments were conducted using an internal data orchestration and AutoML pipeline, which provides an integrated platform for data fetching, LLM\-based data annotation, and model training\.

### 3\.1Use Case 1: Buyer\-Seller Conversational Topic Extraction

Buyer\-seller conversations contain critical e\-commerce signals related to price negotiations, shipping inquiries, item questions, and returns\. The objective of this use case is to automatically identify these signals in multi\-turn dialogues to power downstream automation systems\.

To capture the vast semantic range of the end\-to\-end buyer\-seller journey, we define a comprehensive taxonomy of 112 distinct conversational topics\. Instead of relying on broad categorizations, this schema enables fine\-grained, multi\-label understanding by spanning top\-level domains such as Pricing & Offers, Shipping & Delivery, Returns & Refunds, Payments, and Item Issues\.

The initial dataset comprises raw, individual chat logs\. To reconstruct the multi\-turn conversational flow, these isolated messages were chronologically aggregated using unique thread identifiers\. Furthermore, because the raw logs do not explicitly label participant roles, we deterministically resolved buyer and seller identities by explicitly adding them in the conversation\. To capture the evolving nature of conversations, we employed a progressive context strategy: for a conversation withNNmessages, we generateNNtraining examples where eachii\-th turn is classified conditioned on the precedingi−1i\-1turns as conversational context\.

> Example: Progressive Context Generation Turn 1 Input:\[Buyer\] “Can I pick it up locally?” Turn 1 Label:Pickup\-Availability Turn 2 Input:\[Buyer\] “Can I pick it up locally?”→\\rightarrow\[Seller\] “Yes, pickup is available\! Where are you located?” Turn 2 Label:Pickup\-Availability\-Confirmation, Pickup\-Location

Because e\-commerce intents naturally exhibit extreme class imbalance, many specialized topics appear infrequently\. To address this long\-tail data scarcity, we leveraged embedding\-based similarity—using dense retrieval against a small set of example queries—to source an additional 10,000 conversations from historical logs specifically rich in rare topics\. The final distilled dataset comprises of about 25,000 training conversations \( 135K messages\) and a held\-out test set of 7,600 conversations \( 40K messages\)

### 3\.2Use Case 2: Product Review Topic Classification

Product reviews are a critical trust signal for buyers, but generic reviews often fail to address category\-specific concerns, limiting their utility for complex purchasing decisions\. To improve review comprehensiveness, we developed a topic identification system that provides real\-time, category\-specific cues as users compose a feedback\. For this study, we focus on a subset of five distinct product categories: Tires, Parts & Accessories, Lipstick, Vacuum Cleaners, and Juicers\. Rather than capturing generic sentiment, the taxonomy isolates category\-specific evaluation dimensions\. For example, for Tires category the topics consists of Tread Wear, Traction; Yield and Cleanup for Juicers; and Pigment and Transfer for Lipstick\. We have about 4\-5 topics for a category\(total 21 categories\)\.

A core engineering challenge here is scalability: building a single model that generalizes across thousands of product categories—without requiring isolated per\-category classification heads—while maintaining strict real\-time inference latency\. We model this as an extreme multi\-label classification task over a large taxonomy\. The dataset consists of historical user\-generated product reviews collected from listings across these categories\. Reviews were strictly filtered to retain only those with substantial textual content \(a minimum of 100 characters\)\. Following LLM\-based ground\-truth distillation, the final review dataset consists of approximately 39,000 training examples and 6,800 test examples aggregated across the target categories\. For ground truth, we instantiated our generalized prompt template with taxonomy specific to a category, to ensure the student models inherited a high\-fidelity training signal\.

Table 1:Master Performance and Latency Comparison Across ArchitecturesTable 2:Macro\-F1 performance metrics on Conversational dataset across different training support levels\.Table 3:Macro\-F1 performance metrics on Product Review dataset across different training support levels\.
### 3\.3Model Configurations

We evaluated two distinct architectural paradigms on the distilled datasets:

##### Discriminative Models \(DeBERTa\-V3 and ModernBERT\)

We fine\-tuned DeBERTa\-V3\-base\([He et al\. 2021](https://arxiv.org/html/2610.09063#bib.bib5)\)and ModernBERT\([Warner et al\. 2024](https://arxiv.org/html/2610.09063#bib.bib6)\)using a multi\-label classification head with independent sigmoid activations for each topic\. Models were trained for 25 epochs with a batch size of 16, using the AdamW optimizer with a learning rate of 5e\-5, 1,000 warmup steps, and a weight decay of 0\.01\. We used the default values for all other hyperparameters\.

##### Generative Models \(SLM\-1B, SLM\-4B, SLM\-8B\)

The generative models consists of a family of decoder\-only Small Language Models\(SLMs\) with 1 billion, 4 billion, and 8 billion parameters\. All three models share a common transformer architecture utilizing grouped\-query attention \(GQA\), RoPE positional embeddings, SwiGLU activations, untied input/output embeddings, and a shared 130k\-token vocabulary\. The model scales are configured as follows:

- •SLM\-1B:28 layers, hidden size 1,536, 12 attention heads \(2 GQA groups\), and a 32k\-token context window\.
- •SLM\-4B:36 layers, hidden size 3,072, 24 attention heads \(8 GQA groups\), and an 8k\-token context window\.
- •SLM\-8B:32 layers, hidden size 4,096, 32 attention heads \(8 GQA groups\), and a 32k\-token context window\.

These models were parameter\-efficiently fine\-tuned for sequence\-to\-sequence topic generation using a distributed multi\-LoRA \(Low\-Rank Adaptation\) infrastructure\. LoRA was applied to all projection layers with a rank of 64 and an alpha of 128\. The SLMs were trained for 3 epochs with a learning rate of 1e\-4 using a linear schedule, a dropout of 0\.05, and a maximum token length of 4,096\.

Both model families were subsequently evaluated on held\-out test sets to measure Macro\-F1 fidelity, inference latency, and scalability characteristics\.

## 4Results and Discussion

Table 4:F1 Macro performance change with label expansion\.We evaluate the performance of our generative multi\-label models \(SLM\-1B, SLM\-4B, SLM\-8B\) against two discriminative baselines \(DeBERTa\-V3 and ModernBERT\) across four critical dimensions: dataset complexity, training support, label scale, and inference latency\. Following established best practices for skewed multi\-label distributions, we prioritize the Macro\-F1 score to ensure the model’s ability to handle long\-tail, infrequent labels is accurately captured\.

At peak parameter scale \(SLM\-8B\), the generative architecture outperformed all discriminative baselines across both datasets\. Between the two discriminative candidates, DeBERTa\-V3 consistently demonstrated superior performance compared to ModernBERT\. To maintain clarity, we subsequently refer to DeBERTa\-V3 as the primary baseline\. Similarly, to streamline our taxonomy expansion and scalability analyses, we benchmark this primary baseline specifically against our highest\-performing generative model \(SLM\-8B\) in those subsequent sections\.

### 4\.1Dataset Complexity \(The Data\-Dependent Trade\-off\)

The first dimension evaluates how model architectures handle different linguistic structures\. As detailed in Table[1](https://arxiv.org/html/2610.09063#S3.T1), we observed a critical performance divergence based on the target data\.

For structured, single\-author Product Reviews, the discriminative DeBERTa\-V3 model \(0\.7047\) outperforms the ultra\-lightweight generative SLM\-1B \(0\.6502\)\. This indicates that when intents are concentrated, traditional classification boundaries are highly efficient\. However, scaling the generative model unlocks superior semantic reasoning, allowing SLM\-8B to dominate the category \(0\.8031\)\.

Conversely, in the fluid, informal, and overlapping intents of multi\-turn conversational data, the gap is substantially wider\. In this noisy environment, even the smallest 1B\-parameter generative model \(0\.4501\) surpasses the discriminative baseline \(0\.4062\)\. The autoregressive nature of SLMs allows them to better navigate the context shifts typical of member dialogues\.

### 4\.2Training Support \(Handling Data Scarcity\)

In e\-commerce, rare labels \(the “long tail”\) often lack sufficient training data\. We tested model performance as the minimum number of training examples per label \(Support\) varied Table[2](https://arxiv.org/html/2610.09063#S3.T2)and Table[3](https://arxiv.org/html/2610.09063#S3.T3)\.

At the lowest data density \(Support≥\\geq1\), the generative SLM\-8B model outperforms the best discriminative baseline by over 12\.00 percentage across both datasets\. The generative model leverages its vast pre\-training to handle rare labels where task\-specific data is missing\. It understands the semantic meaning of a topic rather than just seeing it as a statistical class index, resulting in a significantly higher baseline performance and data efficiency\. In contrast, discriminative models show a much steeper climb, requiring a massive increase in label volume to approach the performance of the generative models\.

### 4\.3Label Scale \(Robustness to Taxonomy Growth\)

This dimension measures how performance degrades as we increase the number of labels the model must identify simultaneously, simulating the real\-world scenario of expanding category coverage\.

As shown in Table[4](https://arxiv.org/html/2610.09063#S4.T4), the discriminative model suffered a catastrophic collapse \(\-35\.53% Macro\-F1\) in the conversational dataset as the label space expanded\. Because discriminative models treat multi\-labeling as isolated binary tasks, the model struggles to define distinct boundaries as the label space crowds\. Conversely, the generative model demonstrated extreme robustness \(\-0\.23% drop\), maintaining its performance even as the target taxonomy scaled to 112 concurrent topics\.

Table 5:Macro\-F1 performance with varying label configurations on Conversational dataset\.Table 6:Macro\-F1 performance with varying category combinations on Product Review dataset\.
### 4\.4Inference Latency and Production Feasibility

While SLM\-8B achieves the highest theoretical accuracy across all dimensions, its 241ms P95 latency is significantly heavier than traditional encoder\-only discriminative models\. However, our scaling analysis proves that practitioners facing strict hardware constraints do not have to abandon generative reasoning\. By deploying SLM\-1B, engineering teams can achieve a 32% reduction in latency \(163ms\) compared to the 8B model while still maintaining superior classification fidelity over discriminative baselines on complex, unstructured conversational data\.

Table 7:Inference latency comparison between discriminative and generative model families
### 4\.5Out\-of\-Vocabulary Labels

Table[8](https://arxiv.org/html/2610.09063#S4.T8)summarizes the tendency of generative models to generate labels outside the fixed training label set\. Overall, OOV generation is rare at the sample level: even the largest 8B model produces OOV labels for only 100 out of 39,172 evaluation examples, corresponding to just 0\.26% of the test set\.

However, the diversity of these OOV labels is non\-negligible\. The 1B, 4B, and 8B models generate 22, 17, and 29 unique OOV labels, respectively\. This suggests that larger generative models do not necessarily become more constrained to the observed label space; instead, the 8B model produces the largest number of distinct OOV labels\.

A qualitative inspection reveals that most OOV labels are semantically plausible rather than arbitrary strings\. For example, frequent OOV predictions such asshipping\-issue,shipping\-label, andreturn\-issueresemble valid intent labels, combining known domain concepts with reasonable modifiers\. This behavior indicates that the models are leveraging their generative capacity to synthesize label\-like outputs, especially in high\-frequency domains like shipping and returns\.

While this semantic flexibility is impressive, it is undesirable for closed\-set classification because such outputs cannot be directly mapped to the predefined taxonomy\. To mitigate this in our production deployment, we apply a lightweight post\-processing normalization step that either maps these high\-frequency OOV variants to their nearest taxonomic equivalent via semantic similarity, or safely discards them to strictly enforce the schema constraint\.

Table 8:Out\-of\-vocabulary \(OOV\) labels produced by generative models\. The OOV label rate is computed against the 112 labels observed during training, while the sample rate measures the fraction of evaluation samples for which the model generated an OOV label\.

## 5Impact and Production Deployment

While our offline evaluation demonstrated the architectural advantages of generative models across both structured and unstructured domains, deploying LLMs to live marketplace traffic introduces significant engineering constraints\. We successfully deployed the optimized SLM\-8B model for both primary use cases to production\. For the conversational topic classification system \(Section 3\.1\), processing a throughput of approximately 250 requests per second required a cluster of 9 H100 GPUs to maintain a P99 latency of under 500 milliseconds\. For the Product Review domain \(Section 3\.2\), the model was launched for the Tires and Automotive Parts & Accessories categories, also utilizing H100 GPU infrastructure\. Across both applications, the generative deployments successfully achieved a P95 latency of less than 400 milliseconds\. Crucially, for the product review deployment, integrating this model into the user\-facing "Suggested Topic" interface allowed us to provide real\-time, category\-specific writing cues to buyers\. An online A/B test conducted during a 20% traffic ramp\-up demonstrated that this offline generative reasoning directly translates to platform health, yielding a 60% increase in the volume of product reviews meeting the platform’s strict quality thresholds for approval\.

## 6Conclusion and Future Directions

This paper presented a comprehensive architectural comparison for large\-scale multi\-label topic assignment, evaluating both discriminative baselines and generative Small Language Models \(SLMs\) within a production Teacher\-Student distillation framework\. To overcome the manual annotation bottleneck, we leveraged high\-capacity LLMs as labeling oracles to synthesize high\-fidelity training data across multiple e\-commerce domains\. Our empirical analysis revealed a critical, data\-dependent architectural trade\-off\. While optimized discriminative models \(DeBERTa\-V3\) maintain an efficiency edge for structured, single\-author text like product reviews, generative sequence\-to\-sequence classification offers vastly superior reasoning for complex, unstructured data\. In noisy, multi\-turn conversational environments, generative SLMs surpassed discriminative baselines by a massive relative margin\. Furthermore, generative models demonstrated near\-total immunity to taxonomy expansion, maintaining robust F1 scores where traditional classification boundaries suffered a severe 35\.53% collapse\. By successfully deploying these optimized models on GPU infrastructure and achieving strict sub\-400ms P95 latencies, we demonstrated that offline generative reasoning translates directly to platform health, yielding a 60% increase in approved review volume during live A/B testing\. Moving forward, our research will focus on dynamic taxonomy expansion\. We aim to explore whether fine\-tuned generative SLMs can consistently identify new, unseen topics via semantic prompt descriptions in a completely “zero\-shot” manner, thereby bypassing the need for task\-specific retraining as marketplace categories continuously evolve\.

## References

- Heet al\.\(2021\)P\. He, J\. Gao, and W\. ChenDeBERTaV3: improving deberta using electra\-style pre\-training with gradient\-disentangled embedding sharing\.CoRRabs/2111\.09543\.External Links:[Link](https://arxiv.org/abs/2111.09543),2111\.09543Cited by:[1st item](https://arxiv.org/html/2610.09063#S1.I1.i1.p1.1),[§3\.3](https://arxiv.org/html/2610.09063#S3.SS3.SSS0.Px1.p1.1)\.
- Huet al\.\(2021\)E\. J\. Hu, Y\. Shen, P\. Wallis, Z\. Allen\-Zhu, Y\. Li, S\. Wang, L\. Wang, and W\. ChenLoRA: low\-rank adaptation of large language models\.External Links:2106\.09685,[Link](https://arxiv.org/abs/2106.09685)Cited by:[§2\.1](https://arxiv.org/html/2610.09063#S2.SS1.SSSx2.p1.1)\.
- Jung \(2023\)T\. JungUsing generative ai to improve extreme multilabel classification\.Amazon Science Blog\.External Links:[Link](https://www.amazon.science/blog/using-generative-ai-to-improve-extreme-multilabel-classification)Cited by:[§1](https://arxiv.org/html/2610.09063#S1.p2.1),[§2](https://arxiv.org/html/2610.09063#S2.p2.1)\.
- Maet al\.\(2025\)M\. Ma, G\. Chochlakis, N\. Maruthu Pandiyan, J\. Thomason, and S\. NarayananLarge language models do multi\-label classification differently\.arXiv preprint arXiv:2505\.17510\.External Links:[Link](https://arxiv.org/abs/2505.17510)Cited by:[§1](https://arxiv.org/html/2610.09063#S1.p2.1),[§2\.1](https://arxiv.org/html/2610.09063#S2.SS1.SSSx2.p1.2)\.
- Wanget al\.\(2023\)F\. Wang, M\. Beladev, O\. Kleinfeld, E\. Frayerman, T\. Shachar, E\. Fainman, and K\. Lastmann AssarafText2Topic: multi\-label text classification system for efficient topic detection in user generated content with zero\-shot capabilities\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: Industry Track,pp\. 93–103\.External Links:[Link](https://arxiv.org/abs/2310.14817)Cited by:[§2\.1](https://arxiv.org/html/2610.09063#S2.SS1.SSSx1.p1.3)\.
- Warneret al\.\(2024\)B\. Warner, A\. Chaffin, B\. Clavié, O\. Weller, O\. Hallström, S\. Taghadouini, A\. Gallagher, R\. Biswas, F\. Ladhak, T\. Aarsen, N\. Cooper, G\. Adams, J\. Howard, and I\. PoliSmarter, better, faster, longer: a modern bidirectional encoder for fast, memory efficient, and long context finetuning and inference\.External Links:2412\.13663,[Link](https://arxiv.org/abs/2412.13663)Cited by:[1st item](https://arxiv.org/html/2610.09063#S1.I1.i1.p1.1),[§3\.3](https://arxiv.org/html/2610.09063#S3.SS3.SSS0.Px1.p1.1)\.

相似文章

表格数据上的类型化决策模型

arXiv cs.CL

该论文研究了在表格数据上使用“类型化决策模型”(返回每个固定选项的概率而非生成文本的语言模型),并在行分类、事实验证和异常检测任务上将其与三个大语言模型进行对比:决策模型成本更低,且在21种等义改写下更鲁棒,但所有模型对表格组织方式的改变都不鲁棒。

使用大型语言模型标注实体匹配的训练数据

arXiv cs.CL

本文研究使用大型语言模型作为教师模型来标注实体匹配的训练数据,结果表明,在机器标注数据上训练的学生模型与在人工标注基准上训练的模型性能相当,并且具有显著的成本和速度优势。

我把一个 LLM 蒸馏成了两个 287M 编码器(GLiNER + 选择题模型)用于文档信息抽取,但始终比不上教师模型。我做错了什么吗?

Reddit r/LocalLLaMA

一位从业者介绍了他将 LLM 的文档抽取标注(实体、动作、数值)蒸馏到两个 287M 参数编码器中的流程——一个 GLiNER 风格的片段标注器,外加一个用于实体消歧的选择题模型——以处理约 500 万份法院判决书,并请人反馈为什么效果不及教师模型。