Model Details of ecommerce-query-volume-classifier
eCommerce Query Volume Classifier
A fine-tuned
DeBERTa v3 base
model that predicts the search volume class of ecommerce product queries. Trained on 39.6 million unique queries from the
Amazon Shopping Queries
dataset spanning 395.5 million search sessions.
This model classifies ecommerce search queries into five volume tiers based on their expected search popularity:
Label
Class
Occurrences
Description
0
very_high
10,000+
Head terms, major brands (e.g. "airpods", "laptop")
1
high
1,000–9,999
Popular product categories and well-known items
2
medium
100–999
Moderately specific queries
3
low
10–99
Niche or qualified queries
4
very_low
<10
Long-tail, highly specific queries
The model learns semantic signals — brand recognition, category head terms, specificity markers — rather than superficial features like query length. Simple character/word-count heuristics achieve only ~25% accuracy on this task (barely above the 20% random baseline), while this model achieves
72.1% accuracy
.
The model performs best on the extremes (very high and very low volume) and struggles most with the
low
class, which sits in an ambiguous zone between
medium
and
very_low
.
Training Details
Hyperparameters
Parameter
Value
Base model
microsoft/deberta-v3-base
Epochs
20
Batch size
128
Learning rate
3e-5
Max sequence length
32
Warmup ratio
0.1
Weight decay
0.01
Label smoothing
0.1
Scheduler
Linear with warmup
Sampling Strategy
Balanced sampling per epoch with different random seeds:
Class
Samples per epoch
very_low
100,000
low
100,000
medium
100,000
high
30,000
very_high
30,000
Total per epoch:
324,000 train / 36,000 validation
Training Curves
Validation Curves
Hardware
GPU:
NVIDIA GeForce RTX 4090 (24 GB)
RAM:
128 GB
OS:
Windows 11
Training time:
~2 hours 16 minutes
Framework:
PyTorch + Transformers 4.57.1
Dataset
Amazon Shopping Queries (AmazonQAC)
— 395.5 million sessions, 39.6 million unique queries. Volume classes derived from raw occurrence counts across sessions.
Class
Unique Queries
very_high
~18K
high
~30K
medium
~321K
low
~4.6M
very_low
~34.7M
What the Model Learns
The model captures semantic patterns rather than surface-level features like query length:
Brand recognition:
"airpods" → very high, regardless of character count
Category head terms:
"laptop", "headphones", "dog food" → recognized as high-volume entry points
Specificity markers:
Size specs, compatibility constraints, and material callouts signal niche demand
Nonsense detection:
Gibberish queries like "blorf" and "wireless blorf adapter" are correctly classified as very low volume, confirming the model isn't just counting characters
Limitations
Trained exclusively on Amazon product search queries — may not generalize well to Google web search, informational queries, or non-English markets
The
low
volume class is the weakest (F1 ≈ 0.39), reflecting genuine ambiguity in the boundary between medium and very low volume queries
Volume thresholds are based on the Amazon QAC dataset's session counts, which may not map directly to other volume scales (e.g. Google Keyword Planner)
Product trends shift over time; queries that were high volume in the training data may not remain so
Citation
@article{petrovic2026querylength,
title={Is Query Length a Reliable Predictor of Search Volume?},
author={Petrovic, Dan},
year={2026},
month={March},
url={https://dejan.ai/blog/query-length-vs-volume/}
}
ecommerce-query-volume-classifier huggingface.co is an AI model on huggingface.co that provides ecommerce-query-volume-classifier's model effect (), which can be used instantly with this dejanseo ecommerce-query-volume-classifier model. huggingface.co supports a free trial of the ecommerce-query-volume-classifier model, and also provides paid use of the ecommerce-query-volume-classifier. Support call ecommerce-query-volume-classifier model through api, including Node.js, Python, http.
ecommerce-query-volume-classifier huggingface.co is an online trial and call api platform, which integrates ecommerce-query-volume-classifier's modeling effects, including api services, and provides a free online trial of ecommerce-query-volume-classifier, you can try ecommerce-query-volume-classifier online for free by clicking the link below.
dejanseo ecommerce-query-volume-classifier online free url in huggingface.co:
ecommerce-query-volume-classifier is an open source model from GitHub that offers a free installation service, and any user can find ecommerce-query-volume-classifier on GitHub to install. At the same time, huggingface.co provides the effect of ecommerce-query-volume-classifier install, users can directly use ecommerce-query-volume-classifier installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
ecommerce-query-volume-classifier install url in huggingface.co: