Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
20
400
source
stringclasses
5 values
subject
stringclasses
66 values
domain
stringclasses
10 values
ground_truth
stringclasses
3 values
id
int64
1
4.8k
What happens during the 'incubation period'?
mmlu
virology
life_sciences
LOW
1
Is there a Non-prime Number that is Divisible only by Numbers Greater than its Square Root?
stackexchange
mathematics
mathematics
HIGH
2
Why does electromagnetic induction actually occur?
stackexchange
physics_chemistry
physics_chemistry
HIGH
3
One reason that older adults may have difficulty in retrieving memories is that
mmlu_pro
health
life_sciences
LOW
4
According to Jaina traditions, what does the term ajiva mean?
mmlu
world_religions
history_culture
LOW
5
A ruby laser is aimed in free space at a target 10,000 Km away. If the laser beam initially is 14 mm in diameter, how large in diameter will the beam be when it hits the target? (\lambda = 694.3 nm)
mmlu_pro
physics
physics_chemistry
MEDIUM
6
Why do we conduct one-way ANOVA instead of jumping right into multiple comparisons if we have a simple, single main effect dataset?
stackexchange
statistics_ml
statistics_ml
MEDIUM
7
How to find which elements are in the bag, using Knapsack Algorithm [and not only the bag's value]?
stackexchange
cs_software
cs_software
MEDIUM
8
Analysis of the Denisovan, Neanderthals, and modern human genomes suggests that:
mmlu
prehistory
history_culture
MEDIUM
9
How to shrink a database in MS SQL Server if the drive is full?
stackexchange
cs_software
cs_software
MEDIUM
10
For which of these two scenarios does the main character (who uses I/me/my) do something clearly morally wrong, according to ordinary moral standards in the US as of 2020? Scenario 1 | I wanted my boyfriend to appreciate me, so I waxed his car. Scenario 2 | I knew there was not enough food to go around, so I insisted o...
mmlu
moral_scenarios
philosophy_ethics
LOW
11
Monk's Mound, at the Mississippian center of Cahokia, served as:
mmlu
prehistory
history_culture
LOW
12
How many bits are required to store one BCD digit ?
mmlu
electrical_engineering
engineering
LOW
13
For what value of c on 0 < x < 1 is the tangent to the graph of f (x) = e^x - x^2 parallel to the secant line on the interval [0,1]?
mmlu
high_school_mathematics
mathematics
MEDIUM
14
One of the events at the circus was Gabriella, the Human Cannonball. On Saturday she did four shows. Her distances measured 7.04 meters, 18.81 meters, 18.39 meters, and 19.94 meters. What was the total distance Gabriella flew that day?
mmlu
elementary_mathematics
mathematics
LOW
15
What is the 'optional; clause' in the ICJ Statute?
mmlu
international_law
history_culture
MEDIUM
16
Consider the reaction I_2 \rightarrow 2I at 1000°K and 1 atm. The fundamental vibration frequency ѵof I_2 is 214.4 cm^-1, and the internuclear distance is 0.2667 nm. Calculate the equilibrium constant K_P for the reaction if the ground state of I is a doublet ^2P_3/2,1/2 With a separation of 7603 cm^-1 . The dissociati...
mmlu_pro
chemistry
physics_chemistry
HIGH
17
Is there a genetic basis for schizophrenia?
mmlu_pro
biology
life_sciences
HIGH
18
Of the two versions of the principle that Singer considers:
mmlu
philosophy
philosophy_ethics
MEDIUM
19
For which of these two scenarios does the main character (who uses I/me/my) do something clearly morally wrong, according to ordinary moral standards in the US as of 2020? Scenario 1 | I turned the radio lower so my neighbor could sleep. Scenario 2 | I wore a short skirt and tank top to the party.
mmlu
moral_scenarios
philosophy_ethics
LOW
20
How do I clear an incorrect red flag on my US visa for overstaying, when in fact my departure date has not been recorded in the database?
stackexchange
cs_software
cs_software
HIGH
21
Can post-selecting on the screen in the Delayed Choice Quantum Eraser experiment be used to predict the quantum-eraser measurement results?
stackexchange
physics_chemistry
physics_chemistry
HIGH
22
For which of these two scenarios does the main character (who uses I/me/my) do something clearly morally wrong, according to ordinary moral standards in the US as of 2020? Scenario 1 | I stopped the bully’s fights Scenario 2 | I am developing a cure based on religious beliefs.
mmlu
moral_scenarios
philosophy_ethics
LOW
23
On Metz's view, what kind of punishment is justified for wrongdoers?
mmlu
moral_disputes
philosophy_ethics
HIGH
24
Suppose that 100 separate firms were tested to determine how many of them "beat the market" using a Jensen-type regression, and it is found that 3 fund managers significantly do so. Does this suggest prima facie evidence for stock market inefficiency?
mmlu
econometrics
social_sciences
HIGH
25
For which of these two scenarios does the main character (who uses I/me/my) do something clearly morally wrong, according to ordinary moral standards in the US as of 2020? Scenario 1 | I took my children to the zoo to see the lions. Scenario 2 | When Karen was resting, I threw water on her.
mmlu
moral_scenarios
philosophy_ethics
MEDIUM
26
Discuss the role of theory in psychology.
mmlu_pro
psychology
social_sciences
HIGH
27
A plane 1-GHz traveling wave in air with peak electric field intensity of 1 v/m is incident normally on a large copper sheet. Find the average power absorbed by the sheet per square meter of area.
mmlu_pro
engineering
engineering
HIGH
28
Globulomaxillary cysts--do they really exist?
pubmedqa
biomedical_research
life_sciences
HIGH
29
According to Sigmund Freud, what is the dominant factor determining our personality traits?
mmlu
high_school_psychology
social_sciences
LOW
30
Which Egyptian gods did Akhenaten make a determined effort to eliminate?
mmlu
world_religions
history_culture
LOW
31
Convert transitive connections of elements into groups in R or SQL
stackexchange
cs_software
cs_software
HIGH
32
5.8-5. If the distribution of $Y$ is $b(n, 0.25)$, give a lower bound for $P(|Y / n-0.25|<0.05)$ when (b) $n=500$.
mmlu_pro
math
mathematics
MEDIUM
33
Marx prided himself on his 'scientific' analysis of capital-ism. Through this analysis, he felt he had proved how the problemsfacing the nineteenth century were intimately re-latedto the capitalist mode of production. Modern radical economistshold the similar view that the problems of modernWestern society are inherent...
mmlu_pro
economics
social_sciences
HIGH
34
How are mass and density treated in general relativity?
stackexchange
physics_chemistry
physics_chemistry
HIGH
35
Can we handle the wave function as if it was a real valued function?
stackexchange
physics_chemistry
physics_chemistry
HIGH
36
how to start writing a very simple programming language
stackexchange
cs_software
cs_software
HIGH
37
The number of solutions to an $n^{th}$ order differential equation.
stackexchange
mathematics
mathematics
LOW
38
How to evaluate the determinant
stackexchange
mathematics
mathematics
LOW
39
Use mental math to solve 8y = 56.
mmlu
elementary_mathematics
mathematics
LOW
40
An electric motor has a label on it that reads: Input: 120V AC, 1.0 Amps, 60 Hz - Efficiency - 75%. At what constant speed can the motor lift up a 6 kg mass?
mmlu
high_school_physics
physics_chemistry
MEDIUM
41
The metal surfaces for electrical resistance welding must be
mmlu
electrical_engineering
engineering
LOW
42
Can we build a secure PRP from a secure PRG?
mmlu
computer_security
cs_software
HIGH
43
What is the difference between linear and non-linear time series?
stackexchange
statistics_ml
statistics_ml
MEDIUM
44
How does "delta"-like three phase power source avoid short circuit?
stackexchange
engineering
engineering
MEDIUM
45
A compound microscope has an objective that produces a lateral magnification of 10x. What focal length ocular will produce an overall magnification of 100x?
mmlu_pro
physics
physics_chemistry
MEDIUM
46
A student eats 3 slices of pizza while studying for his Economics exam. The marginal utility of the first slice of pizza is 10 utils, the second slice is 7 utils, and the third slice is 3 utils. Which of the statements below holds true with the above data?
mmlu
high_school_microeconomics
social_sciences
MEDIUM
47
Are pectins involved in cold acclimation and de-acclimation of winter oil-seed rape plants?
pubmedqa
biomedical_research
life_sciences
HIGH
48
Maximum likelihood estimator and MVUE for a Exp$(1/\theta)$ distribution
stackexchange
statistics_ml
statistics_ml
HIGH
49
Why under joint least squares direction is it possible for some coefficients to decrease in LARS regression?
stackexchange
statistics_ml
statistics_ml
HIGH
50
Are the capacitors highlighted really needed for proper operation of the circuit?
stackexchange
engineering
engineering
MEDIUM
51
Modelling transparent boundary conditions on a quantum graph with Mathematica NDSolve and finite-element method
stackexchange
physics_chemistry
physics_chemistry
HIGH
52
According to "working theory," what is the step that occurs between an individual gaining information and changing behavior?
mmlu
public_relations
social_sciences
LOW
53
Difference between Primary Key and Unique Index in SQL Server
stackexchange
cs_software
cs_software
MEDIUM
54
Is it possible to plot implicit equations using Matplotlib?
stackexchange
hpc
hpc
LOW
55
A 10kVA distribution transformer has a 240V secondary winding. The equivalent internal resistance of this transformer, referred to that winding, is 0.048\Omega. The core lossof this transformer is 75W. At whatkVAload will this transformeroperate at maximum efficiency?
mmlu_pro
engineering
engineering
MEDIUM
56
Lucy is making gift baskets. She puts 3 apples in each gift basket. Which number sentence shows how to find the total number of gift baskets, b, Lucy can make with 24 apples?
mmlu
elementary_mathematics
mathematics
LOW
57
On what grounds does John Finnis reject Hume's conception of practical reason?
mmlu
jurisprudence
philosophy_ethics
HIGH
58
How to automatically write bold commands in a bash script in Latex using listings
stackexchange
hpc
hpc
MEDIUM
59
What is the purpose of baselines under the law of the sea?
mmlu
international_law
history_culture
MEDIUM
60
Can this sql query bypass the authentication process?
stackexchange
cs_software
cs_software
MEDIUM
61
A store manager orders shirts from their warehouse. The shirts are packed into boxes and sentto the store, as described below. 81 shirts are ordered. Each shipping box holds 9 shirts. How many shipping boxes are needed for all of the shirts ordered?
mmlu
elementary_mathematics
mathematics
LOW
62
What is the illumination 5 feet from a 75 candlepower lamp?
mmlu_pro
physics
physics_chemistry
LOW
63
Properties of the solution of the Ordinary Differential Equation $y' = y(y-1)(y-2)$ as per the Initial conditions?
stackexchange
mathematics
mathematics
HIGH
64
In order to help finance his new home, Mr. Hendricks borrowed$5,000 from a bank under a fixed mortgage, agreeingto pay 5% interest yearly, in semiannual installmentswith the mortgage to fall due in twenty years. How much interest is due every six months?
mmlu_pro
business
social_sciences
LOW
65
Will a modern compiler such as GCC perform a tail case optimization in such cases?
stackexchange
cs_software
cs_software
HIGH
66
For which of these two scenarios does the main character (who uses I/me/my) do something clearly morally wrong, according to ordinary moral standards in the US as of 2020? Scenario 1 | I let my dog hump all the dogs in the dog park. Scenario 2 | I put my son's dishes in the dishwasher and started it.
mmlu
moral_scenarios
philosophy_ethics
LOW
67
Mathematica implementation of Zeilberger's algorithm (previously done in Maple)
stackexchange
cs_software
cs_software
HIGH
68
Regression regularization penalty center at w0 instead of 0
stackexchange
statistics_ml
statistics_ml
HIGH
69
Any infinite dimensional vector space has a basis?
stackexchange
mathematics
mathematics
HIGH
70
The conversion of one molecule of glucose to two molecules of pyruvate results in the net formation of:
mmlu
clinical_knowledge
life_sciences
LOW
71
Which of these should an objective NOT be?
mmlu
public_relations
social_sciences
LOW
72
Why might a patient need a tracheostomy?
mmlu
clinical_knowledge
life_sciences
MEDIUM
73
Cholesterol screening in school children: is family history reliable to choose the ones to screen?
pubmedqa
biomedical_research
life_sciences
HIGH
74
For which of these two scenarios does the main character (who uses I/me/my) do something clearly morally wrong, according to ordinary moral standards in the US as of 2020? Scenario 1 | I took a cab home after drinking 3 bottles of wine at the winery. Scenario 2 | I hit on her at the party.
mmlu
moral_scenarios
philosophy_ethics
MEDIUM
75
Why is there such a strong preference for 45 degree angles in PCB routing?
stackexchange
engineering
engineering
MEDIUM
76
Consider a very elementary flow problem. Let the flow be steady andinviscid. Calculate the velocity of the flow in terms of the pressure p given u = u(x), v = w = 0.
mmlu_pro
engineering
engineering
HIGH
77
Fruit and vegetable consumption
mmlu
nutrition
life_sciences
LOW
78
The village of Lynbrook has a capital budget of $125,626.79 for the current year. Through fines and issuing of licenses, the village expects to raise $4,256.30. If the total assessed valuation of the property in Lynbrook is $2,697,112, what is the town's tax rate in dollars per $1,000?
mmlu_pro
business
social_sciences
MEDIUM
79
Mapping quantum states of different (quantum) physical systems to the same Hilbert space
stackexchange
physics_chemistry
physics_chemistry
HIGH
80
Can you find a topology on the set
stackexchange
mathematics
mathematics
MEDIUM
81
Do parents recall and understand children's weight status information after BMI screening?
pubmedqa
biomedical_research
life_sciences
LOW
82
Which potential complication of IV therapy is described thus: 'Leakage of vesicant (irritant) medication or fluid into surrounding tissues, causing tissue damage'?
mmlu
clinical_knowledge
life_sciences
LOW
83
Do not want to display Algorithm number
stackexchange
cs_software
cs_software
LOW
84
Does the use of atypical antipsychotics as adjunctive therapy in depression result in cost savings?
pubmedqa
biomedical_research
life_sciences
LOW
85
Valid alternative to Box Tidwell method for Linear Regression
stackexchange
statistics_ml
statistics_ml
MEDIUM
86
File Attachment Upload - Maximum View State Size limit (135kB)exceeded
stackexchange
mathematics
mathematics
LOW
87
How to avoid log(0) term in regression
stackexchange
statistics_ml
statistics_ml
MEDIUM
88
A balanced three-phase three-wire system supplies two bal-ancedY-connected loads. The first draws 6-kW at 0.8PF laggingwhile the other requires 12kW at 0.833PF leading. If thecurrent in each line is 8Arms, find the current in the: (a)firstload; (b) second load; (c) source phase.
mmlu_pro
engineering
engineering
MEDIUM
89
Self-efficacy (the belief that one has control over one's situation) as it related to job satisfaction was studied. When a group of teachers rated their ability to control their situation and their satisfaction with their job, the two variables had a correlation of 0.30. Which statement follows from this correlation?
mmlu
high_school_statistics
statistics_ml
LOW
90
what's the time complexity of the following program?
stackexchange
cs_software
cs_software
MEDIUM
91
Processing fluency effects: can the content and presentation of participant information sheets influence recruitment and participation for an antenatal intervention?
pubmedqa
biomedical_research
life_sciences
HIGH
92
A low loss transmission line, operating at a frequency of 400MHz, with air as dielectric media, is used for radio transmission. Assuming negligible attenuation and 50\Omega characteristic impedance, calculate: (a) Reflection coefficient \Gamma (b) VSWR and (c) Wavelength of the transmitted signal.
mmlu_pro
engineering
engineering
MEDIUM
93
Can a charged particle interact with its its own electromagnetic field?
stackexchange
physics_chemistry
physics_chemistry
HIGH
94
sse2 multiplication vectors X and Y using multithreaded algorithm in cpp
stackexchange
cs_software
cs_software
HIGH
95
For which of these two scenarios does the main character (who uses I/me/my) do something clearly morally wrong, according to ordinary moral standards in the US as of 2020? Scenario 1 | I make my bunny eat a vegan diet, even though he's getting plump. Scenario 2 | As my parents slept, I played my trumpet.
mmlu
moral_scenarios
philosophy_ethics
LOW
96
According to special relativity, has the future already happened?
stackexchange
physics_chemistry
physics_chemistry
MEDIUM
97
Dodd Co.'s debt securities at December 31 included available-for-sale securities with a cost basis of $24000 and a fair value of $30000. Dodd's income tax rate was 20%. What amount of unrealized gain or loss should Dodd recognize in its income statement at December 31?
mmlu_pro
other
history_culture
MEDIUM
98
A lens is used to project the image of a lantern slide on a screen located 160 ft from the projector. In this position the image on the screen is 100 times larger than the slide. If the screen is moved 100 inches closer, how far must the lantern slide be moved (relative to the lens) to keep the image on the screen in s...
mmlu_pro
physics
physics_chemistry
HIGH
99
Can a linear regression model's r-squared value exceed the sum of the r-squared values of its input variables?
stackexchange
statistics_ml
statistics_ml
HIGH
100
End of preview. Expand in Data Studio

LLM Query Complexity Benchmark

A multi-domain, perfectly balanced dataset of 6,000 labeled queries (4,800 train / 1,200 test) for training and evaluating LLM query complexity classifiers that route queries to the most cost-effective inference tier.

Built for the STREAM project (Smart Tiered Routing Engine for AI Models), which routes queries automatically between local CPU models, institutional HPC GPU clusters, and cloud API tiers.

Dataset Summary

Split Queries LOW MEDIUM HIGH
Train 4,800 1,600 1,600 1,600
Test 1,200 400 400 400
Total 6,000 2,000 2,000 2,000

The dataset is doubly balanced: exactly 200 queries per (domain × class) cell across 10 domains, and exactly equal class counts in both splits.

Domain Coverage

Designed to represent the full breadth of a research university student and researcher population — not just HPC practitioners.

Domain Primary Sources Description
hpc Stack Exchange HPC, SLURM, MPI, CUDA, Globus, parallel computing
mathematics Stack Exchange, MMLU-Pro Pure and applied math, proofs, algorithms
statistics_ml Stack Exchange, MMLU Statistics, ML, data science, probability
physics_chemistry Stack Exchange, MMLU, MMLU-Pro Physics, chemistry, materials science
engineering Stack Exchange, MMLU, MMLU-Pro EE, software engineering, systems
life_sciences Stack Exchange, MMLU, MMLU-Pro, PubMedQA Biology, medicine, biochemistry
cs_software Stack Exchange, MMLU-Pro Programming, systems, databases, compilers
philosophy_ethics MMLU, MMLU-Pro Philosophy, ethics, logic, jurisprudence
social_sciences MMLU, MMLU-Pro Psychology, sociology, economics, law
history_culture MMLU, MMLU-Pro History, world religions, geography

Source Datasets

All queries are derived from the following original datasets. Each is used under its respective license:

Dataset HuggingFace ID License Used for
Stack Exchange Duplicates sentence-transformers/stackexchange-duplicates Apache 2.0 STEM and HPC domains (hpc, mathematics, statistics_ml, physics_chemistry, engineering, life_sciences, cs_software)
MMLU cais/mmlu MIT humanities and supplement for STEM domains (philosophy_ethics, social_sciences, history_culture, plus electrical_engineering, college_physics, etc.)
MMLU-Pro TIGER-Lab/MMLU-Pro MIT Higher-difficulty supplement across all domains; especially important for MEDIUM/HIGH class balance in engineering, life_sciences, cs_software
PubMedQA qiaojin/PubMedQA MIT HIGH-complexity supplement for life_sciences (biomedical research questions requiring expert reasoning)
Synthetic (Claude Sonnet 4.6) Apache 2.0 HIGH-complexity top-up for hpc (114), philosophy_ethics (160), and history_culture (139) — domains where existing sources were exhausted at the HIGH class. Generated and verified by Claude Sonnet 4.6 using domain-specific expert prompts.

How source data was transformed:

  • Stack Exchange: question titles only (not body or answers); filtered for length (25–200 chars), language (≥85% ASCII), and structure (≥4 words, ≥35% alpha); error-message and formula-only titles excluded
  • MMLU: question stem only — answer choices (A/B/C/D) were not included, and questions referencing "the following" without their options were excluded to avoid format confound
  • MMLU-Pro: question stem only; same exclusion criteria as MMLU
  • PubMedQA: question text only (not context passages or answers); all treated as HIGH complexity by design (biomedical research reasoning)
  • Synthetic: for three domains (hpc, philosophy_ethics, history_culture) where existing sources were exhausted before reaching 200 HIGH queries, Claude Sonnet 4.6 was used to generate expert-level HIGH questions using domain-specific prompts emphasizing novel reasoning paths and expert judgment. Each generated question was independently verified by Claude before inclusion (only questions labeled HIGH on re-evaluation were kept).

Complexity Classes

Complexity is defined by reasoning depth, not question format or length. "What is X?" can be LOW, MEDIUM, or HIGH depending on the reasoning required.

Class Definition Example
LOW Single retrievable fact or trivial computation. Answer statable in one sentence, no reasoning chain required. "What is the capital of France?"
MEDIUM Apply an established procedure or assemble 2–4 concepts. The reasoning path is standard (textbook-level). "Explain how quicksort works and analyze its time complexity."
HIGH Construct a novel reasoning path, formal derivation, or expert judgment. No standard procedure — the path must be built. "Is P equal to NP? Present the current state of evidence."

Dataset Fields

Field Type Description
id int Unique query identifier within the split
text string The user query
domain string One of the 10 domains above
source string Original dataset: stackexchange, mmlu, mmlu_pro, pubmedqa, or synthetic_high
subject string MMLU subject name, SE tag, pubmedqa, or {domain}_synthetic
ground_truth string Complexity class: LOW, MEDIUM, or HIGH

Labeling Method

All queries were labeled by Claude Sonnet 4.6 (via the Anthropic API) using a reasoning-depth rubric that explicitly decouples complexity from surface format. Queries are sent in batches of 100; the labeler is stopped once exactly 200 per (domain × class) cell are collected.

This is knowledge distillation via label transfer: Claude pays the API cost once at dataset-construction time; a smaller classifier (ModernBERT-base, 149M parameters) learns to replicate its routing decisions at inference time with no API call, negligible latency, and full data privacy.

Labeling Rubric (abridged)

The following reasoning-depth scale was used:

  • LOW: The answer is a single fact, definition, or trivial computation directly retrievable from memory. No multi-step reasoning. Examples: capitals, dates, unit conversions, simple syntax lookups.
  • MEDIUM: The answer requires applying a known procedure, combining 2–4 standard concepts, or working through a textbook-level derivation. The path is established; the task is to execute it correctly.
  • HIGH: The answer requires constructing a novel reasoning path, synthesizing across disciplines, producing a formal proof, or making expert judgment under ambiguity. No standard procedure applies.

Loading the Dataset

from datasets import load_dataset

ds = load_dataset("anasnassar/llm-query-complexity-benchmark")
print(ds)
# DatasetDict({
#     train: Dataset({features: ['id', 'text', 'domain', 'source', 'subject', 'ground_truth'], num_rows: 4800})
#     test:  Dataset({features: ['id', 'text', 'domain', 'source', 'subject', 'ground_truth'], num_rows: 1200})
# })

# Filter by domain
hpc_train = ds["train"].filter(lambda x: x["domain"] == "hpc")

# Class distribution
from collections import Counter
print(Counter(ds["train"]["ground_truth"]))
# Counter({'LOW': 1600, 'MEDIUM': 1600, 'HIGH': 1600})

Training the Classifier

from datasets import load_dataset
from transformers import AutoTokenizer, AutoModelForSequenceClassification, Trainer, TrainingArguments

ds = load_dataset("anasnassar/llm-query-complexity-benchmark")

label2id = {"LOW": 0, "MEDIUM": 1, "HIGH": 2}
tokenizer = AutoTokenizer.from_pretrained("answerdotai/ModernBERT-base")

def tokenize(batch):
    enc = tokenizer(batch["text"], truncation=True, max_length=128, padding="max_length")
    enc["label"] = [label2id[lb] for lb in batch["ground_truth"]]
    return enc

tokenized = ds.map(tokenize, batched=True)
model = AutoModelForSequenceClassification.from_pretrained(
    "answerdotai/ModernBERT-base", num_labels=3,
    id2label={0: "LOW", 1: "MEDIUM", 2: "HIGH"},
    label2id=label2id,
)

trainer = Trainer(
    model=model,
    args=TrainingArguments(
        output_dir="modernbert-complexity",
        num_train_epochs=5,
        per_device_train_batch_size=32,
        learning_rate=2e-5,
        weight_decay=0.01,
        warmup_ratio=0.1,
        metric_for_best_model="eval_loss",
    ),
    train_dataset=tokenized["train"],
    eval_dataset=tokenized["test"],
)
trainer.train()

Associated Model

The fine-tuned ModernBERT-base classifier trained on this dataset: anasnassar/llm-query-complexity-classifier

Reproducing the Dataset

git clone https://github.com/uicacer/STREAM
cd STREAM
pip install anthropic datasets

# Requires ANTHROPIC_API_KEY (~$3-5 in API cost for 6,000 labels)
python scripts/eval/build_balanced_dataset.py

Citation

If you use this dataset, please cite the STREAM paper and acknowledge the original source datasets:

@inproceedings{nassar2026stream,
  title     = {{STREAM}: Multi-Tier {LLM} Inference Middleware with Dual-Channel {HPC} Token Streaming},
  author    = {Nassar, Anas and Mohr, Steve and Apanasevich, Leonard and Sharma, Himanshu},
  booktitle = {Practice and Experience in Advanced Research Computing (PEARC '26)},
  year      = {2026},
  doi       = {10.1145/3785462.3815847}
}

@misc{nassar2026benchmark,
  author    = {Nassar, Anas},
  title     = {{LLM} Query Complexity Benchmark},
  year      = {2026},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/datasets/anasnassar/llm-query-complexity-benchmark}
}

Original source datasets:

@inproceedings{hendrycks2021mmlu,
  title   = {Measuring Massive Multitask Language Understanding},
  author  = {Hendrycks, Dan and others},
  booktitle = {ICLR},
  year    = {2021},
  url     = {https://huggingface.co/datasets/cais/mmlu}
}

@article{wang2024mmlupro,
  title   = {{MMLU-Pro}: A More Robust and Challenging Multi-Task Language Understanding Benchmark},
  author  = {Wang, Yubo and others},
  journal = {arXiv:2406.01574},
  year    = {2024},
  url     = {https://huggingface.co/datasets/TIGER-Lab/MMLU-Pro}
}

@inproceedings{jin2019pubmedqa,
  title   = {{PubMedQA}: A Biomedical Research Question Answering Dataset},
  author  = {Jin, Qiao and others},
  booktitle = {EMNLP},
  year    = {2019},
  url     = {https://huggingface.co/datasets/qiaojin/PubMedQA}
}

@misc{stackexchange2024duplicates,
  title   = {Stack Exchange Duplicate Questions Dataset},
  author  = {{sentence-transformers}},
  year    = {2024},
  url     = {https://huggingface.co/datasets/sentence-transformers/stackexchange-duplicates}
}

License

Apache 2.0. Original source datasets are used under their respective licenses (Apache 2.0 and MIT). Labels were generated by Claude Sonnet 4.6 (Anthropic) and are released under Apache 2.0.

Downloads last month
42

Paper for anasnassar/llm-query-complexity-benchmark