<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Total clicks (sum of )
Total clicks (%)
Total clicks for multi-label queries
Total clicks for multi-label queries (%)
Unique queries ()
Unique query-category pairs
Single-label queries
Single-label queries (%)
Unique categories (out of</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Extreme Multi-label Query Classification for E-commerce</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Giuseppe Di Fabbrizio</string-name>
          <email>P@K</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Evgeny Stepanov</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Filippo Tessaro</string-name>
        </contrib>
      </contrib-group>
      <volume>4</volume>
      <issue>462</issue>
      <abstract>
        <p>This paper addresses the challenge of extreme multi-label query classification (XMQC) in e-commerce, where short, ambiguous queries must be categorized into a vast label space to improve search relevance. We propose a supervised attention-based neural network framework that leverages clickstream data for automatic multi-label query annotation. Our approach employs a DistilBERT language model fine-tuned with a sparsemax loss function to efectively model the sparse category distribution for each query. Experiments on a real-world e-commerce dataset demonstrate that our model outperforms baseline approaches, achieving 78.96 precision@1, 73.75 recall@1, and 78.21 nDCG@1 overall. The sparsemax loss enables the model to handle label sparsity and ambiguity, with strong performance on head, torso, and tail queries. Qualitative analysis shows the model's robustness to challenges like misspellings and the ability to identify relevant categories for ambiguous queries.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Query classification</kwd>
        <kwd>Query understanding</kwd>
        <kwd>Extreme multi-label text classification</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        E-commerce platforms ofer customers access to catalogs with millions of products categorized
into taxonomies and thousands of hierarchically organized categories. Products are continuously
updated through inventory feeds from partners and suppliers, including images, attributes, and
other metadata utilized to populate the product detail pages. In such a dynamic environment,
product search engines must continuously reindex products and optimize relevance through
users’ behavioral signals when available [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        Both in conventional and semantic product search [
        <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
        ], categorizing product search queries
into single or multiple predefined target categories [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] can aid search engines in boosting
relevance by passing the category to which the query belongs as a ranking signal and mitigating
the cold start scenario when new products are added. Since an e-commerce catalog encompasses
taxonomy trees with several thousand leaves, a query classification (QC) model must classify
typically short and ambiguous text into a large label space [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>This presents several challenges. Firstly, due to the large, unbalanced label set and ambiguity, a
QC model must be framed as an extreme multi-label, multi-class classification problem in which
a query can simultaneously belong to more than one non-mutually exclusive class. The model
loss function must consider the multi-labels’ sparseness and allow the model to return a sparse
posterior probability where some classes can have zero probability while others can represent
a probability distribution among the sparse labels that sum to one.</p>
      <p>Secondly, as we frame the task as a supervised learning problem, a substantial amount
of high-quality annotated data is required. Since manual data annotation is expensive,
time-consuming, and non-scalable for e-commerce trafic volumes, click-stream data that
captures the user’s behavioral signals is the only viable option for annotating data for a supervised
model. However, labels need to be carefully denoised to represent query categories accurately.</p>
      <p>Finally, data partitioning must respect the natural distribution across classes and labels.
Conventional stratified sampling used in single-label classification tasks must be revised to
consider stratified sampling in a multi-label scenario, where the sparse label distribution is
preserved across training, validation, and test data.</p>
      <p>
        To overcome these challenges, we propose a supervised attention-based neural network
framework that leverages clickstream data to automatically annotate query search data using the
user’s behavioral signals in a multi-label fashion. To preserve the correct label distribution, we
adopted a multi-label stratified sampling technique [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] that avoids the issues introduced using
the traditional random distribution where the derived data subset may miss samples for rare
labels, causing evaluation metrics problems. To model the multi-label sparseness, we adopt a
sparsemax loss function [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] that optimizes the model to assign probability zero to most of the
output predicted labels consistently with the users’ clickstream data.
      </p>
      <p>We demonstrate that the above process is significantly better than multiclass models,
reporting robust generalization capabilities for torso and tail data. The resulting sparse category
distribution can also capture ambiguous queries that apply to a broader range of categories and
generic queries that may be better represented by intermediate nodes in the taxonomy tree.</p>
      <p>The rest of the paper is organized as follows. Section 2 provides an overview of query
classification in e-commerce. Section 3 formulates the extreme multi-label query classification
(XMQC) problem. Section 4 discusses multi-label sampling and probability estimation techniques.
Section 5 details the experimental setup, including dataset preprocessing, evaluation metrics,
and model configuration. Section 6 presents the main results, analysis, and discussion. Section 7
reviews related work, and Section 8 concludes the paper and suggests future research directions.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Query classification</title>
      <p>When searching for a particular item on an online retail platform, a user might input a search
query briefly describing the product. Depending on how closely the search results align with
the user’s initial intent, the user may click on a relevant product, modify their query to refine the
results, or leave the site if the displayed products are not accurately related to what was expected.</p>
      <p>
        Manually classifying user queries into product categories is challenging and time-consuming.
This dificulty arises from the complex interpretation of user intentions based on brief query
texts and the large number of categories found in an e-commerce catalog, which can easily reach
several thousand classes [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. However, if a user selects a product immediately after receiving a
list of products in response to their search query, the selected product category can be considered
an accurate but sometimes noisy indication of the category associated with the query [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. In
practical terms, if multiple users use the same search query within a reasonable time frame (e.g.,
30-90 days) and this generates at least several clicks on products with the same category label,
then that selected category can be viewed as a valid label for that particular query.
      </p>
      <p>Using behavioral signals like clicks, adding items to the cart, and completing purchases ofers
a practical method for automatically creating category labels. Annotating query classification
datasets with behavioral signals suggests that a given query might interact with multiple
taxonomy labels (e.g., product categories) to some extent. This interaction with various product
categories could be viewed as a distribution of probabilities over the labels corresponding to
a specific query. Approaching the issue as a standard multi-class problem allows each label to
be treated independently from others, where they cannot coexist and have probabilities of zero
or one in the training dataset. However, this approach fails to accurately represent real-world
data by overlooking crucial insights into the ambiguous nature of search queries that can
simultaneously pertain to multiple taxonomy category labels.</p>
      <p>Figure 1 shows three product search query examples for home improvement and grocery
domains from two large e-commerce organizations. For instance, in the home improvement domain,
the query “number stencils for painting” would have relevant products in the category Stencils at
the third level of the taxonomy tree, under Signs, Letters &amp; Numbers and Hardware. A more realistic
view of the problem should also consider the interaction with other labels in the taxonomy tree.
Figure 1 also shows the categories that are selected less frequently but are still a legitimate category
since number stencils can also be categorized as Craft Supplies under the broader Paint category.</p>
      <p>Similarly, in the grocery domain, the query “chicken broth organic gluten free” may refer to
products that are sharing the top two categories Canned Goods &amp; Soup Stocks / Broth &amp; Bullions
but with relevant products in both leaf nodes Broth &amp; Stocks and Bouillon &amp; Base.</p>
      <p>Yet, simply considering the presence of multiple labels is not suficient to correctly represent a
query classification prediction model. A given query  that has an interaction of 1% with label 
and 99% with label  would be considered in the same way a query ′ that has 99% interaction
with label  and 1% interaction with label , producing a skewed prediction where the minority
label  could take precedence on the more popular usage of the query. This is particularly
important when the predicted query labels are used as input features to optimize (or re-rank)
a search result returning matching products from a catalog. Considering the first example in
Figure 1, a search engine could return a majority of products from the Craft Supplies minority
class rather than boosting results from the Stencils category, compromising the actual result
relevance and potentially missing product conversion opportunities.</p>
      <p>The image in Figure 2 illustrates the potential benefits of integrating query understanding
capabilities, such as query classification, into an e-commerce search engine. By accurately
classifying the intent behind the query “organic bananas”, the search engine can significantly
improve the relevance of the results.</p>
      <p>Without query understanding (left side), the search engine relies primarily on lexical matching,
focusing on the individual terms “organic” and “bananas” independently. This leads to the
retrieval of less relevant items such as organic baby food, tea, and onions, which happen to
contain the word "organic" but are not related to the core intent of the query. The lack of
understanding of the query’s true meaning results in a suboptimal user experience.</p>
      <p>In contrast, when query understanding is integrated (right side), the search engine can classify
the query “organic bananas” as belonging to the category of fruits. This deeper understanding
allows the engine to prioritize and boost categories and products directly related to organic
bananas, such as fresh bananas, plantains, mangoes, and other fruits. By leveraging the query
classification, the search engine can assign higher relevance scores to these categories and
products, pushing them to the top of the search results.</p>
      <p>
        Besides query classification in the e-commerce domain, other domains have similar challenges.
For example, movies can have more than one genre label, and each label can also contribute
a diferent weight to the overall movie genre. Negative online behaviors classification, which
has been recently getting attention to improve social media and online content quality [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], is
also considered a multi-label problem since toxic comments can have diferent labels at the same
time. The main diference with the e-commerce domain is that e-commerce is also considered
an extreme classification task due to the number of labels that often reach several thousand.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Extreme multi-label query classification</title>
      <p>Extreme multi-label query classification (XMQC) tries to find the most relevant subset of class
labels associated with a short query text from an extremely large number of categories.</p>
      <p>
        In the XMQC problem for e-commerce, we are given a set of  queries  = {1,2,...,},
where each query  is represented by a -dimensional feature vector x ∈ R. The feature
vector x can encode various attributes of the query, such as the textual content, user context, etc.
Additionally, we have an extremely large set of  product categories  = {1,2,...,}, where
typically  ≫  and can be in the order of hundreds of thousands or millions in e-commerce
applications [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Each query  is associated with a binary label vector y ∈ {0,1}, where
 = 1 if query  belongs to category  , and  = 0 otherwise. A query can simultaneously
belong to multiple categories, i.e., ∑︀
      </p>
      <p>=1 ≥ 1.</p>
      <p>The objective is to learn a classifier  : R → {0,1} that accurately maps each query feature
vector x to its corresponding label vector y^, i.e.,  (x) = y^ ≈ y.</p>
      <p>However, instead of predicting the binary label vector directly, we aim to predict a sparse
label distribution p ∈ Δ− 1, where Δ− 1 := {p ∈ R|1 p = 1,p ≥ 0} is the − 1 dimensional
simplex. Each entry  represents the probability of query  belonging to category  .</p>
      <p>The − 1 dimensional simplex is a geometric object that represents the set of all probability
distributions over  discrete categories. Using the simplex is necessary for representing sparse
label distributions, capturing label uncertainty, enabling the use of appropriate loss functions,
and facilitating the application of label embedding techniques to handle the extremely large
number of categories in e-commerce applications.</p>
      <p>
        The objective is to learn a classifier  : R → Δ− 1 that maps each query feature vector x
to its corresponding sparse label distribution p^, i.e.,  (x) = p^ ≈ p. This can be achieved by
minimizing a loss function that measures the discrepancy between the predicted label distribution
p^ and the ground truth distribution p, e.g., using KL divergence or sparsemax loss [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>The learned classifier  will predict the relevant categories for a given query , taking
into account the label distribution’s sparsity. The label embedding approach helps reduce the
computational complexity and mitigate the data sparsity issue associated with the extremely
large label space.</p>
      <sec id="sec-3-1">
        <title>3.1. Extreme multi-label learning</title>
        <p>
          To address the challenges of extreme multi-label query classification, we propose a
distillationbased approach using a pre-trained DistilBERT model [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ] as the student model and the
sparsemax loss function [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] for fine-tuning.
        </p>
        <p>
          DistilBERT is a distilled version of BERT [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ] that retains 97% of BERT’s performance while
being 40% smaller and 60% faster at inference time. The key idea is to leverage knowledge
distillation during the pre-training phase to learn a compact model that can be fine-tuned for
downstream tasks. By using the pre-trained DistilBERT model, we can take advantage of the
knowledge already distilled into the model during its pre-training phase.
        </p>
        <p>In our approach, we first fine-tune the pre-trained DistilBERT model on the query-category
pairs using the sparsemax loss function. The sparsemax loss is a sparse alternative to the softmax
loss that encourages the model to predict sparse probability distributions. The sparsemax loss
is defined as:
sparsemax(;) = −  + 12 ∑︁ (2 −  2())+ 21</p>
        <p>∈()
where  is the input vector,  is the target label, () is the support set of sparsemax(z), and
 () is the threshold function given by:
 () =
∑︀≤ ()() − 1</p>
        <p>()
with (1) ≥ (2) ≥ ... ≥ () being the sorted coordinates of , and () = max{ ∈ [] |
1+() &gt; ∑︀≤ ()}.</p>
        <p>
          The sparsemax loss has several desirable properties, including convexity, diferentiability
everywhere, and a connection to the Huber classification loss in the binary case [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]. It can be used
as a loss function for training multi-label linear classifiers and in attention-based neural networks.
        </p>
        <p>During fine-tuning, we minimize the sparsemax loss between the predicted label distribution
and the ground truth sparse label distribution. This allows the model to learn to predict sparse
label distributions that align with the true label sparsity in the XMQC task.</p>
        <p>During inference, we apply the sparsemax transformation to the output logits of the fine-tuned
DistilBERT model to obtain a sparse label distribution over the categories. We then select the
categories with non-zero probabilities as the predicted labels for the query.</p>
        <p>By leveraging the pre-trained DistilBERT model and fine-tuning it with the sparsemax loss,
our approach can efectively handle the extreme multi-label classification problem while being
computationally eficient. The use of a pre-trained model allows us to benefit from the knowledge
already distilled into the model, while the sparsemax loss encourages the prediction of sparse
label distributions, which is crucial for XMQC.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Multi-label sampling and probability estimation</title>
      <p>
        Sechidis et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] discusses two approaches for stratified sampling in multi-label data: a) stratified
sampling based on distinct labelsets, and b) iterative stratification. The latter is particularly
relevant XMQC where the number of distinct label sets is very large compared to the number
of examples.
      </p>
      <p>Iterative stratification aims to ensure that the ratio of positive to negative examples for each
label is approximately maintained in each subset of the data. It does this by greedily assigning
examples to subsets based on the desired number of positive examples for each label in each subset.</p>
      <p>More formally, let  be the full dataset,  = {1,...,} the set of labels, 1,..., the desired
subsets, and 1,..., the desired proportion of examples in each subset. The algorithm calculates
the desired number of examples in each subset  as  = || , and the desired number of
positive examples for each label  in subset  as  = || , where  is the subset of 
containing positive examples of label .</p>
      <p>The algorithm then iteratively assigns examples to subsets. In each iteration, it considers the
label  with the fewest remaining positive examples, and for each example of this label, assigns it
to the subset  that maximizes the current desired number of positive examples for this label  .</p>
      <p>The Labels Distribution (LD) measure is used to evaluate how well the ratio of positive to
negative examples for each label is maintained in each subset compared to the full data. It is defined as:
 = 1 ∑︁⎛⎝ 1 ∑=︁1⃒⃒⃒⃒⃒ |||−||| − |||−||| ⃒⃒⃒⃒⃒ ⎞⎠</p>
      <p>=1
where  is the subset of  containing positive examples of label .</p>
      <p>The paper empirically shows that iterative stratification achieves lower LD (i.e., better label
distribution) compared to stratification based on distinct label sets, especially when the ratio
of distinct label sets to examples is large. This makes it particularly suitable for XMQC problems.</p>
      <sec id="sec-4-1">
        <title>4.1. Estimating Label Probabilities from Click Data</title>
        <p>In the XMQC problem, each query  is associated with a sparse label distribution pi ∈ Δ− 1,
where  represents the probability of query  belonging to category  . To estimate these
probabilities, we leverage the click data associated with each query-category pair.</p>
        <p>Let  be the number of clicks received by category  starting from query , and let
 = ∑︀=1  be the total number of clicks starting from query  across all categories. We
 .
estimate the probability  as:  =</p>
        <p>For example, consider the query  = “wood for crafts” in Table 1. The total number of
clicks for this query is  = 197. The category Outdoors/Outdoor Games &amp; Toys/Kids Tools &amp;
Building Kits/Toy Miniatures received  = 99 clicks, resulting in an estimated probability of
 = 19997 = 0.502538. Similarly, the category Paint/Craft Paint &amp; Supplies/Craft Supplies received
 = 49 clicks, leading to an estimated probability of  = 14997 = 0.248731.</p>
        <p>This approach allows us to obtain a distribution over labels for each query, rather than relying
on one-hot label vectors. The estimated probabilities  capture the strength of association
between query  and category  based on user click behavior.</p>
        <p>To reduce label noise and ensure consistency, we apply a heuristic-based filtering approach.
We remove labels with  &lt; 0.1, as the clicks for these labels are too sparse and may not reliably
represent the query’s intent. Similarly, we remove queries with max  &lt; 0.4, as these queries
lack a consistent category association and may introduce noise into the training process.</p>
        <p>By estimating the label probabilities based on click data and applying noise reduction
techniques, we obtain a sparse label distribution p for each query . This distribution provides
a more informative representation of the query’s category associations compared to binary label
vectors, capturing the uncertainty and multiplicity inherent in the XMQC task.</p>
        <p>The sparse label distributions p serve as the target probabilities for training the DistilBERT
model using the sparsemax loss, as described in the previous section. By learning to predict
these sparse distributions, the model can efectively handle the extreme multi-label nature of
the problem and provide more accurate category recommendations for queries.</p>
        <p>Category</p>
        <sec id="sec-4-1-1">
          <title>Outdoors/Outdoor Games &amp; Toys/Kids Tools &amp; Building Kits/Toy Miniatures Paint/Craft Paint &amp; Supplies/Craft Supplies Building Supplies/Lumber &amp; Composites/Appearance Boards Building Supplies/Decking/Deck Board Samples</title>
          <p>Flooring/Tile &amp; Tile Accessories/Tile
Home Decor/Furniture/Furniture Parts/Table Tops
Home Decor/Wall Art &amp; Decor/Wall Art
Storage &amp; Organization/Shelves &amp; Shelving/Wall Mounted Shelving
Building Supplies/Lumber &amp; Composites/Plywood &amp; Sheathing/Plywood
Moulding &amp; Millwork/Moulding/Crown Moulding</p>
          <p>Moulding &amp; Millwork/Moulding/Window &amp; Door Trim/Window &amp; Door Moulding</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Experimental setup</title>
      <sec id="sec-5-1">
        <title>5.1. Dataset Overview</title>
        <p>The data used for the experiments was collected from the clickstream of an online store of a large
home improvement retail corporation. The dataset consists of query-category pairs, where the
labels are inferred based on the frequency of user clicks on products belonging to specific taxonomy
categories. In total, there are 4,462 categories in the taxonomy tree with diferent levels of nesting.</p>
        <p>Each data instance consists of three elements: 1) the search query typed by the user , 2) the
label referring to the product category related to the query  , and 3) the number of clicks 
associated with the query-category pair in a specific time interval. Since a query can lead to clicks
on products from diferent categories, queries are duplicated per label, and the total number
of clicks for a query  = ∑︀</p>
        <p>=1 is also computed, where  is the number of categories for
the query  (see also example in Table 1).</p>
        <p>
          Following the same approach as described in [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ], the total number of clicks for a query is
used to categorize queries into head, torso, and tail distributions. Queries with a total click count
equal to or higher than 100 are considered head queries, while queries with a click count of one
are considered tail queries. All queries in between are classified as torso queries.
        </p>
        <p>Table 2 provides a description of the dataset in terms of query and label counts, as well as
their distribution among head, torso, and tail queries. When considering the entire dataset, the
majority of unique queries (86.4%) are associated with a single label. However, the distribution
of single-label and multi-label queries varies significantly when examining head, torso, and tail
queries separately.</p>
        <p>In e-commerce data, tail queries often form a long tail distribution. By definition, tail queries
have a click count of 1 and are, therefore, all single-label. For torso queries, the percentage of
single-label queries drops to 66.2%, and for head queries, it further decreases to 8.5%.</p>
        <p>Head queries represent 69% of total trafic, with multi-label head queries accounting for 67.9%.
Combined, multi-label head and torso queries comprise 81.1% of total clicks (112,742,307),
indicating their high relevance for conversion rates. Tail queries, on the other hand, are known to be</p>
        <p>Total Head Torso Tail
138,965,331 96,233,946 33,705,963 9,025,422</p>
        <p>100.0% 69.3% 24.3% 6.5%
112,742,307 94,425,519 18,316,788 0</p>
        <p>81.1% 67.9% 13.2% 0.0%
14,841,471 102,619 5,713,405 9,025,422
18,234,809 647,811 8,559,713 9,025,422
12,818,844 8,748 3,784,674 9,025,422
86.4% 8.5% 66.2% 100%
3,121 3,102 3,115 3,109
2,992 2,057 2,865 2,869
challenging to classify due to their low frequency. Text preprocessing techniques are often applied
to tail queries to reduce their variability and improve classification performance (see Section 5.2.1).</p>
        <p>The query classification model is intended for the classification of unseen data. From Table
2, we observe that only 3,121 out of the total 4,462 categories are represented in the dataset. The
number of well-represented categories, arbitrarily defined as those with more than 50 unique
queries, is even lower. To increase the number of well-represented categories and mitigate data
sparsity, we apply label pruning and aggregate queries on parent categories, as described in the
following sections.</p>
      </sec>
      <sec id="sec-5-2">
        <title>5.2. Data preprocessing, pruning, and partitioning</title>
        <p>5.2.1. Preprocessing
Product search queries often contain various extraneous characters and information that may
not be directly relevant to the classification task. To reduce data noise and space dimensionality,
it is beneficial to apply several preprocessing and normalization steps to the query data. These
steps typically include measurements normalization, punctuation normalization and removal,
non-ASCII characters removal, mixed alphanumeric tokens replacement, numeric tokens
replacement, and lowercasing. The specific preprocessing steps and their order have been
calibrated for the home improvement domain, where measurements, quantities, and specific SKU
numbers are frequently used in search queries. The preprocessing pipeline has been designed
and fine-tuned based on empirical analysis and domain knowledge to ensure optimal results
for this particular domain. After preprocessing, the cleaned and normalized query data is ready
to be used as input to the DistilBERT model for training and inference.
5.2.2. Noise Removal
Search engine queries are not always directly related to product searches, and consequently,
they may not correspond to any specific product category. To remove frequent non-product
queries and improve the quality of the training data, we apply two threshold-based filtering
techniques: label removal threshold and query removal threshold.</p>
        <p>For multi-label queries, such as the example shown in Table 1, we remove all category labels
with an estimated probability  below the label removal threshold (). This step helps to
Bathtub &amp;
Shower
Caddies
Hanging
Shower
Caddies
Bathroom
Bathroom 0
Accessories
&amp; Hardware
Toilet Lid 31
Decals
Pool Alarms</p>
        <p>38
Pool Filtration0
&amp; Skimmer</p>
        <p>Systems
Pool Skimme3r8</p>
        <p>Systems</p>
        <p>Outdoors
Pools</p>
        <p>Pool 68
Maintenance</p>
        <p>Pool 0
Maintenance
Equipment</p>
        <p>Pool 16
Sanitation
Systems</p>
        <p>14
16
Pool Chemical14
Monitoring
Systems
eliminate labels that have a weak association with the query based on user click behavior.</p>
        <p>If none of the remaining category labels for a given query has an estimated probability 
higher than or equal to the query removal threshold (), the entire query is removed from the
dataset. This step helps to filter out queries that lack a strong association with any product
category, even after removing weakly associated labels. The values of the label removal threshold
and query removal threshold were determined through experimental tuning, with  set to 0.1
and  set to 0.4. These thresholds were found to efectively remove non-product queries while
retaining relevant query-category pairs.</p>
        <p>Referring back to the example in Table 1, the noise removal procedure would remove the
last two rows, corresponding to the categories Moulding &amp; Millwork/Moulding/Crown Moulding
and Moulding &amp; Millwork/Moulding/Window &amp; Door Trim/Window &amp; Door Moulding, as their
estimated probabilities  are below the label removal threshold of 0.1. However, the query
“wood for crafts’‘ would be retained in the dataset because it has at least one category label
(Outdoors/Outdoor Games &amp; Toys/Kids Tools &amp; Building Kits/Toy Miniatures) with an estimated
probability above the query removal threshold of 0.4.</p>
        <p>
          The noise removal procedure efectively filters out non-product queries, such as URLs,
frequently asked questions, commands, and chitchat (e.g., "we are," "sign out," "change store’‘ ).
5.2.3. Labels pruning
To reduce data sparsity for the category labels with less frequent clicks, a large catalog taxonomy
tree can be pruned to increase the density of less frequent queries. Labels with less than K-tagged
examples (e.g., K=50) can be merged with the upper taxonomy node and their labels are replaced
with the upper-level taxonomy label (see Figure 3). For each label in the taxonomy tree, the
number of examples per node is tracked to capture the real queries distribution. After applying
the pruning procedure, every leaf in the taxonomy tree will include at least K samples [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ].
        </p>
        <p>In the example illustrated in Figure 3, the taxonomy tree is pruned based on a threshold of K=50
samples per node. The Pool Chemical Monitoring Systems category, which has only 14 samples, is
merged with its parent node Pool Maintenance. The Pool Skimmer Systems category, having 38
samples, is first merged with its sibling node Pool Filtration &amp; Skimmer Systems, which is initially empty
because it is not a leaf of the tree. The combined category now has 38 samples and is further merged</p>
        <p>Total Head Torso Tail
129,130,839 87,715,635 32,395,413 9,019,791</p>
        <p>100.0% 67.9% 25.1% 7.0%
38,198,328 26,511,025 11,687,303 0</p>
        <p>
          29.6% 20.5% 9.1% 0.0%
14,719,934 95,505 5,604,638 9,019,791
16,699,427 133,475 7,546,161 9,019,791
13,030,572 64,234 3,946,547 9,019,791
88.5% 67.3% 70.4% 100%
2,964 2,774 2,964 2,964
2,964 656 2,795 2,869
with the parent node Pool Maintenance. The Pool Sanitation Systems category, which has only 16
samples, is also merged with Pool Maintenance. After these merging steps, the Pool Maintenance
category accumulates a total of 68 samples, surpassing the required threshold of 50 samples per node.
On the other hand, the Toilet Lid Decals category, which has only 31 samples, is merged with its
parent node Bathroom Accessories &amp; Hardware. However, even after merging, the combined category
still does not reach the threshold of 50 samples. As a result, the Toilet Lid Decals category is
eliminated from the pruned taxonomy tree. After applying the pruning procedure, every leaf in the
taxonomy tree will include at least K samples, ensuring a minimum density of examples per category
label. Categories that fail to meet the threshold after merging with their parent nodes are removed
from the tree. This process helps to mitigate the issue of data sparsity for less frequent queries and
enables more efective training and prediction in the extreme multi-label classification setting.
5.2.4. Data split procedure
After preprocessing and pruning, the data is split into training, development, and test folds
using a K-fold stratified partitioning procedure for multi-label data as described in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] where
the number of folds could be, for instance, three with a large training set (95%) and two smaller
testing (2.5%) and development sets (2.5%). The iterative stratified splitting procedure described
in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] has been adapted to accommodate frequency-weighted samples. Query weights can be
derived from the click data associated with each query-category pair as described in Section 4.1.
        </p>
        <p>The adapted procedure allows weights to be used instead of raw query counts to compute
the fold label requirements. Since a query can have multiple labels, each of these is multiplied by
the query weight and added to the total label count. During the data splitting, the query weights
are deducted from the fold label requirement values. The procedure ensures that the queries
with higher weights are distributed first, thus maintaining the distribution of head/torso/tail
queries across the folds. As a result, the data is split such that it keeps the folds disjoint in terms
of samples while maintaining the same label distribution. This approach helps to mitigate
the issue of missing labels or underrepresented classes that can occur when using the more
traditional random sampling process to split data folds by taking into account the importance
of each query-category pair based on user click behavior.</p>
        <p>The data description after the application of the preparation steps is presented in Table 3.
Notable changes include the overall decrease in the number of head queries and a significant
increase in single-label head queries (from 8.6% to 67.3%). There is also a reduction in the number
of multi-label queries and a decrease in the number of categories with 50+ unique queries among
head queries, indicating shifts in category popularity. For the experimentation, the data was
split into training (95%), development (2.5%), and testing (2.5%) folds.</p>
      </sec>
      <sec id="sec-5-3">
        <title>5.3. Evaluation Metrics</title>
        <p>We employ several evaluation metrics to assess the performance of our proposed XMQC approach,
considering various aspects such as precision, recall, and ranking quality1. Let y ∈ {0,1} be
the ground-truth label vector and p^ ∈ R be the predicted score vector for query .</p>
        <p>Precision at K (P@K) measures the proportion of relevant categories among the top K predicted
categories, while Recall at K (R@K) measures the proportion of relevant categories found in
the top K predictions. They are calculated as follows:
1

∑︁

1
∑︁</p>
        <p>∈topK(p^) || ∈top-K(p^)
where top-K(p^) represents the set of top K predicted categories,  is the ground truth label,
and  is the set of true categories for query .</p>
        <p>Normalized Discounted Cumulative Gain (nDCG@K) is a ranking-based metric that considers
the position of relevant categories in the top K recommendations. It is calculated as:
nDCG@K = DCG@K DCG@K = ∑︁ 2 − 1</p>
        <p>IDCG@K =1 log2(+1)
where DCG@K is the Discounted Cumulative Gain at K, and IDCG@K is the Ideal Discounted
Cumulative Gain at K, representing the maximum possible DCG@K score. These metrics provide
a comprehensive evaluation of the proposed XMQC approach, assessing its ability to recommend
relevant categories, considering precision, recall, and ranking quality.</p>
      </sec>
      <sec id="sec-5-4">
        <title>5.4. Model Configuration</title>
        <p>
          We trained our proposed model using the DistilBERT pre-trained language model [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. We
added a multi-layer perceptron (MLP) layer with 512 units, ELU activation function, and L2
regularization, which acts as a pre-classifier. A dropout layer with a dropout rate of 0.4 was also
included to prevent overfitting.
        </p>
        <p>
          The model was trained for 18 epochs using an Adam optimizer with a learning rate of 1e-5 and an
epsilon value of 1e-8. We employed the sparsemax loss function, which is a variation of the softmax
function that encourages sparse output distributions [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. This is particularly suitable for the
XMQC task, where the model needs to predict a small subset of relevant categories for each query.
        </p>
        <p>
          We also trained two baseline models for comparison: a DistilBERT model with the
crossentropy loss function and a fastText model. FastText is a lightweight text classification model
that represents documents as an average of their word embeddings and uses a linear classifier
[
          <xref ref-type="bibr" rid="ref16">16</xref>
          ]. It serves as a simple and eficient baseline for the XMQC task.
1https://en.wikipedia.org/wiki/Evaluation_measures_(information_retrieval)
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Main Results and Examples</title>
      <p>To further analyze our model’s performance, we evaluated it on diferent parts of the query
distribution: head, torso, and tail. Table 5 shows the comparison of metrics for these query
subsets. The model achieves higher precision, recall, and nDCG scores for head queries compared
to torso and tail queries. This is expected, as head queries have better query-category relevance.</p>
      <p>However, our model still performs well on torso and tail queries, despite their lower
query-category relevance due to less customer behavior information for identifying relevant
categories. This can be attributed to the sparsemax loss function, which helps the model to focus
on the most relevant categories for each query, even when the number of relevant categories is
small. By encouraging sparsity in the output distribution, the sparsemax loss enables the model
to handle the ambiguity and uncertainty present in torso and tail queries more efectively than
the cross-entropy loss.</p>
      <p>These results support our initial hypothesis that a sparse label model better addresses the query
classification ambiguity in the head and torso distribution. By inducing sparsity in the label space,
the sparsemax loss allows the model to make more confident predictions for queries with multiple
relevant categories. Furthermore, the model’s ability to focus on the most relevant category for tail
queries, where there is typically only one relevant category per query, highlights the benefits of the
sparse labeling approach in handling the long-tail distribution of queries in e-commerce search.</p>
      <sec id="sec-6-1">
        <title>6.1. Analysis and Discussion</title>
        <p>The multi-label model could also help to identify specific use cases where the predicted posterior
sparse probabilities provide further insights about the user’s intent. For instance, table 6
shows the query “leona silver”, which is a misspelling of the brand “Leonia Silver”. Despite the
Query distribution</p>
        <sec id="sec-6-1-1">
          <title>Head</title>
        </sec>
        <sec id="sec-6-1-2">
          <title>Torso</title>
        </sec>
        <sec id="sec-6-1-3">
          <title>Tail</title>
          <p>Query
leona silver
brrom
616295
lighting for ceiling
spelling error, the model correctly identifies the most relevant categories, such as Flooring/Tile
&amp; Tile Accessories/Tile and Flooring/Tile &amp; Tile Accessories/Tile Samples, with high probabilities.
Similarly, for the misspelled query “brrom”. This demonstrates the robustness of the sparse label
model in handling misspellings and variations in brand names.</p>
          <p>For the user query specified as product SKU number, “616295”, the model assigns relatively
uniform probabilities to multiple categories across the taxonomy, indicating that the SKU number
does not provide enough semantic information to confidently predict a specific category.</p>
          <p>For the query “lighting for ceiling”, the model assigns the highest probabilities to categories
related to ceiling lighting, such asLighting &amp; Ceiling Fans/Ceiling Lights/Flush Mount Lighting
and Lighting &amp; Ceiling Fans/Ceiling Lights/Pendant Lighting.</p>
          <p>These examples showcase the strengths of our proposed approach in handling diverse query
types, including misspellings, SKU numbers, and queries that map to generic taxonomy nodes.
However, there are still opportunities for improvement. For queries lacking clear semantic
information, such as SKU numbers, incorporating additional context from user sessions or
product metadata could potentially enhance the classification performance. Additionally, the
model’s ability to handle extremely rare or unseen queries can be further investigated and
improved through techniques like few-shot learning or data augmentation.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>7. Related work</title>
      <p>
        Recent work on query classification in e-commerce has focused on leveraging hierarchical
category structures to improve representation learning and address challenges such as class imbalance
and query ambiguity. HCL4QC [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] introduces hierarchical loss functions to adjust category
representations and ensure semantic consistency, while [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] presents a framework utilizing enhanced
representation learning and neighborhood-aware sampling to improve classification accuracy.
      </p>
      <p>
        Ahmadvand et al. [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] propose DeepCAT, a deep learning model that learns joint word-category
representations to enhance query understanding, particularly for minority classes and tail
queries in e-commerce search. Their approach incorporates category-category co-occurrences
through a novel loss function.
      </p>
      <p>In contrast, our work emphasizes the multi-label aspect of query classification, recognizing that
a product may belong to multiple categories simultaneously. We employ a sparse label approach
using the sparsemax loss to efectively handle query ambiguity and data sparsity in XMQC.</p>
      <p>
        Although large language models (LLMs) are seen as the future of e-commerce search [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ],
traditional deep learning methods remain crucial for scalability and low latency. While LLMs
excel at leveraging pre-training knowledge, encoding structured data like product catalogs and
taxonomies as natural language text may lead to eficiency and latency challenges at large scales.
Until LLM optimization challenges are fully resolved, traditional deep learning architectures
tailored for query classification and understanding tasks are likely to remain core components
for scalable, low-latency query processing in e-commerce search.
      </p>
    </sec>
    <sec id="sec-8">
      <title>8. Conclusions</title>
      <p>In this paper, we presented a novel approach for extreme multi-label query classification in
ecommerce using an attention-based neural network optimized with a sparsemax loss function. Our
experiments on a large-scale e-commerce dataset validated the efectiveness of modeling queries
as a sparse distribution over product categories. The proposed DistilBERT model with sparsemax
loss outperformed baseline classifiers, demonstrating significant improvements in precision,
recall, and nDCG across diferent query types. The sparsemax loss proved crucial for handling
the sparsity and ambiguity inherent in XMQC, enabling the model to focus on the most relevant
categories for each query. Notably, our approach showed strong performance on both frequent
head queries and less common torso/tail queries, underlining its ability to capture meaningful
category associations even with limited training data. Qualitative analysis highlighted the model’s
robustness to real-world challenges such as misspellings and its capability to identify pertinent
categories for ambiguous or broad queries. These findings underscore the practical value of our
XMQC framework in enhancing query understanding and search relevance in e-commerce. Future
research could explore incorporating additional context, addressing data sparsity through
techniques like few-shot learning, and optimizing inference eficiency for real-time query processing.</p>
    </sec>
    <sec id="sec-9">
      <title>Acknowledgments</title>
      <p>We want to thank Amirhossein Tebbifakhr for the extensive data analysis and contribution to
modeling ideas, Danilo Giulianelli real-time optimizations in the production system, and Federico
Marinelli for an early proof of concept.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Jiang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Kang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Daly</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Yin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zhai</surname>
          </string-name>
          ,
          <article-title>Learning query and document relevance from a web-scale click graph</article-title>
          ,
          <source>in: Proceedings of the 39th International ACM SIGIR Conference on Research and Development in Information Retrieval</source>
          , SIGIR '16,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2016</year>
          , p.
          <fpage>185</fpage>
          -
          <lpage>194</lpage>
          . URL: https://doi.org/10.1145/2911451.2911531. doi:
          <volume>10</volume>
          .1145/2911451.2911531.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J. K.</given-names>
            <surname>Bergum</surname>
          </string-name>
          ,
          <source>Redefining Hybrid Search Possibilities with Vespa</source>
          ,
          <year>2024</year>
          . URL: https://blog.vespa.
          <article-title>ai/redefining-hybrid-search-possibilities-with-vespa/.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>P.</given-names>
            <surname>Nigam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Song</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Mohan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Lakshman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. A.</given-names>
            <surname>Ding</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Shingavi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. H.</given-names>
            <surname>Teo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Gu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Yin</surname>
          </string-name>
          ,
          <article-title>Semantic product search</article-title>
          ,
          <source>in: Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery &amp; Data Mining, KDD '19</source>
          ,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2019</year>
          , p.
          <fpage>2876</fpage>
          -
          <lpage>2885</lpage>
          . URL: https://doi.org/10.1145/3292500.3330759. doi:
          <volume>10</volume>
          .1145/3292500.3330759.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Y.-C.</given-names>
            <surname>Lin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Datta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. Di</given-names>
            <surname>Fabbrizio</surname>
          </string-name>
          ,
          <article-title>E-commerce product query classification using implicit user's feedback from clicks</article-title>
          ,
          <source>in: 2018 IEEE International Conference on Big Data (Big Data)</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>1955</fpage>
          -
          <lpage>1959</lpage>
          . doi:
          <volume>10</volume>
          .1109/BigData.
          <year>2018</year>
          .
          <volume>8622008</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.-W.</given-names>
            <surname>Ha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Pyo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <article-title>Large-scale item categorization in e-commerce using multiple recurrent neural networks</article-title>
          ,
          <source>in: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</source>
          , KDD '16,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2016</year>
          , p.
          <fpage>107</fpage>
          -
          <lpage>115</lpage>
          . URL: https://doi.org/10.1145/2939672.2939678. doi:
          <volume>10</volume>
          .1145/2939672.2939678.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>K.</given-names>
            <surname>Sechidis</surname>
          </string-name>
          , G. Tsoumakas,
          <string-name>
            <surname>I. Vlahavas</surname>
          </string-name>
          ,
          <article-title>On the stratification of multi-label data</article-title>
          , in: D.
          <string-name>
            <surname>Gunopulos</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Hofmann</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Malerba</surname>
          </string-name>
          , M. Vazirgiannis (Eds.),
          <source>Machine Learning and Knowledge Discovery in Databases</source>
          , Springer Berlin Heidelberg, Berlin, Heidelberg,
          <year>2011</year>
          , pp.
          <fpage>145</fpage>
          -
          <lpage>158</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A. F. T.</given-names>
            <surname>Martins</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. F.</given-names>
            <surname>Astudillo</surname>
          </string-name>
          ,
          <article-title>From softmax to sparsemax: a sparse model of attention and multi-label classification</article-title>
          ,
          <source>in: Proceedings of the 33rd International Conference on International Conference on Machine Learning - Volume 48, ICML'16</source>
          , JMLR.org,
          <year>2016</year>
          , p.
          <fpage>1614</fpage>
          -
          <lpage>1623</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>D.</given-names>
            <surname>Shen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <article-title>Product query classification</article-title>
          ,
          <source>in: Proceedings of the 18th ACM Conference on Information and Knowledge Management</source>
          , CIKM '09,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2009</year>
          , p.
          <fpage>741</fpage>
          -
          <lpage>750</lpage>
          . URL: https://doi.org/10.1145/1645953.1646047. doi:
          <volume>10</volume>
          .1145/1645953.1646047.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>K.</given-names>
            <surname>Bi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. H.</given-names>
            <surname>Teo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Dattatreya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Mohan</surname>
          </string-name>
          , W. B.
          <string-name>
            <surname>Croft</surname>
          </string-name>
          ,
          <article-title>Leverage implicit feedback for context-aware product search</article-title>
          , in: J.
          <string-name>
            <surname>Degenhardt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Kallumadi</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          <string-name>
            <surname>Porwal</surname>
            ,
            <given-names>A</given-names>
          </string-name>
          . Trotman (Eds.),
          <source>Proceedings of the SIGIR 2019 Workshop on eCommerce, co-located with the 42st International ACM SIGIR Conference on Research and Development in Information Retrieval, eCom@SIGIR</source>
          <year>2019</year>
          , Paris, France, July
          <volume>25</volume>
          ,
          <year>2019</year>
          , volume
          <volume>2410</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2019</year>
          , p.
          <source>n. pag</source>
          . URL: https://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>2410</volume>
          /paper15.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>B. D.</given-names>
            <surname>Dirting</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. A.</given-names>
            <surname>Chukwudebe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. C.</given-names>
            <surname>Nwokorie</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. I.</surname>
          </string-name>
          <article-title>Ayogu, Multi-label classification of hate speech severity on social media using bert model</article-title>
          ,
          <source>in: 2022 IEEE Nigeria 4th International Conference on Disruptive Technologies for Sustainable Development (NIGERCON)</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>5</lpage>
          . doi:
          <volume>10</volume>
          .1109/NIGERCON54645.
          <year>2022</year>
          .
          <volume>9803164</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>K.</given-names>
            <surname>Bhatia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Dahiya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Jain</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Kar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mittal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Prabhu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Varma</surname>
          </string-name>
          ,
          <article-title>The extreme classification repository: Multi-label datasets</article-title>
          and code,
          <year>2016</year>
          . URL: http://manikvarma.org/downloads/XC/XMLRepository.html.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>V.</given-names>
            <surname>Sanh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Debut</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chaumond</surname>
          </string-name>
          , T. Wolf,
          <article-title>Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter</article-title>
          , ArXiv abs/
          <year>1910</year>
          .01108 (
          <year>2019</year>
          ). URL: https://api.semanticscholar.org/CorpusID:203626972.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          , M.-
          <string-name>
            <given-names>W.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Toutanova</surname>
          </string-name>
          , BERT:
          <article-title>Pre-training of deep bidirectional transformers for language understanding</article-title>
          , in: J.
          <string-name>
            <surname>Burstein</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Doran</surname>
          </string-name>
          , T. Solorio (Eds.),
          <source>Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies</source>
          , Volume
          <volume>1</volume>
          (Long and Short Papers),
          <source>Association for Computational Linguistics</source>
          , Minneapolis, Minnesota,
          <year>2019</year>
          , pp.
          <fpage>4171</fpage>
          -
          <lpage>4186</lpage>
          . URL: https://aclanthology.org/N19-1423. doi:
          <volume>10</volume>
          .18653/v1/
          <fpage>N19</fpage>
          -1423.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>P. J.</given-names>
            <surname>Huber</surname>
          </string-name>
          ,
          <article-title>Robust estimation of a location parameter</article-title>
          ,
          <source>Annals of Mathematical Statistics</source>
          <volume>35</volume>
          (
          <year>1964</year>
          )
          <fpage>492</fpage>
          -
          <lpage>518</lpage>
          . URL: https://api.semanticscholar.org/CorpusID:121252793.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>A.</given-names>
            <surname>Ahmadvand</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kallumadi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Javed</surname>
          </string-name>
          , E. Agichtein,
          <article-title>DeepCAT: Deep Category Representation for Query Understanding in E-commerce Search</article-title>
          , in: S. Kallumadi,
          <string-name>
            <given-names>T. H.</given-names>
            <surname>King</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Malmasi</surname>
          </string-name>
          , M. de Rijke (Eds.),
          <source>Proceedings of the SIGIR 2021 Workshop on eCommerce, co-located with the 42st International ACM SIGIR Conference on Research and Development in Information Retrieval, eCom@SIGIR</source>
          <year>2021</year>
          , Online,
          <year>2021</year>
          , p.
          <source>n. pag.</source>
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>A.</given-names>
            <surname>Joulin</surname>
          </string-name>
          , E. Grave,
          <string-name>
            <given-names>P.</given-names>
            <surname>Bojanowski</surname>
          </string-name>
          , T. Mikolov,
          <article-title>Bag of tricks for eficient text classification</article-title>
          , in: M.
          <string-name>
            <surname>Lapata</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Blunsom</surname>
            ,
            <given-names>A</given-names>
          </string-name>
          . Koller (Eds.),
          <source>Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume</source>
          <volume>2</volume>
          ,
          <string-name>
            <surname>Short</surname>
            <given-names>Papers</given-names>
          </string-name>
          , Association for Computational Linguistics, Valencia, Spain,
          <year>2017</year>
          , pp.
          <fpage>427</fpage>
          -
          <lpage>431</lpage>
          . URL: https://aclanthology.org/E17-2068.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>L.</given-names>
            <surname>Zhu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Wei</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Tang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <article-title>HCL4QC: Incorporating Hierarchical Category Structures Into Contrastive Learning for E-commerce Query Classification</article-title>
          ,
          <source>in: Proceedings of the 32nd ACM International Conference on Information and Knowledge Management</source>
          , CIKM '23,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2023</year>
          , p.
          <fpage>3647</fpage>
          -
          <lpage>3656</lpage>
          . URL: https://doi.org/10.1145/3583780.3614907. doi:
          <volume>10</volume>
          .1145/3583780.3614907.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>B.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Nag</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Cui</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Goutam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <article-title>Hierarchical query classification in e-commerce search</article-title>
          ,
          <year>2024</year>
          . arXiv:
          <volume>2403</volume>
          .
          <fpage>06021</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>H.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Na</surname>
          </string-name>
          ,
          <article-title>Rethink e-commerce search</article-title>
          ,
          <source>in: Proceedings of the Fifteenth ACM International Conference on Web Search and Data Mining</source>
          , WSDM '22,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2022</year>
          , p.
          <fpage>1653</fpage>
          . URL: https://doi.org/10.1145/3488560.3510005. doi:
          <volume>10</volume>
          .1145/3488560.3510005.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>