id int64 1 6.91k | text stringlengths 16 629 | domain stringclasses 6
values | complexity stringclasses 3
values |
|---|---|---|---|
1 | What is the capital of Japan? | general_knowledge | LOW |
2 | What is the chemical symbol for water? | general_knowledge | LOW |
3 | What is the smallest country in the world by land area? | general_knowledge | LOW |
4 | What is the largest planet in our solar system? | general_knowledge | LOW |
5 | What is the capital of Canada? | general_knowledge | LOW |
6 | What is the smallest country in the world by area? | general_knowledge | LOW |
7 | What is the official language of Mexico? | general_knowledge | LOW |
8 | What is the name of the longest wall ever built by humans? | general_knowledge | LOW |
9 | What is the name of the currency used in Japan? | general_knowledge | LOW |
10 | What is the capital city of Australia? | general_knowledge | LOW |
11 | What is the tallest mountain in the world? | general_knowledge | LOW |
12 | What is the capital of Australia? | general_knowledge | LOW |
13 | What is the longest river in Africa? | general_knowledge | LOW |
14 | What is the official language of France? | general_knowledge | LOW |
15 | What is the capital of Brazil? | general_knowledge | LOW |
16 | What is the national language of Mexico? | general_knowledge | LOW |
17 | What is the chemical symbol for gold? | general_knowledge | LOW |
18 | What is the tallest waterfall in the world? | general_knowledge | LOW |
19 | What is the capital city of Canada? | general_knowledge | LOW |
20 | What is the capital of Argentina? | general_knowledge | LOW |
21 | What is the currency of the United Kingdom? | general_knowledge | LOW |
22 | What is the largest country in the world by land area? | general_knowledge | LOW |
23 | What is the largest ocean on Earth? | general_knowledge | LOW |
24 | What is the tallest mammal on Earth? | general_knowledge | LOW |
25 | True or false: the Amazon River is the longest river in the world. | general_knowledge | LOW |
26 | How many stripes are on the United States flag? | general_knowledge | LOW |
27 | In what year did World War II end? | general_knowledge | LOW |
28 | Is the Nile River located in Africa? | general_knowledge | LOW |
29 | Who was the first person to walk on the Moon? | general_knowledge | LOW |
30 | What country is the Eiffel Tower located in? | general_knowledge | LOW |
31 | Fill in the blank: The currency of the United Kingdom is the ___. | general_knowledge | LOW |
32 | True or false: Mount Everest is the tallest mountain on Earth. | general_knowledge | LOW |
33 | Which planet is known as the Red Planet? | general_knowledge | LOW |
34 | What language is the official language of Brazil? | general_knowledge | LOW |
35 | How many days are in a leap year? | general_knowledge | LOW |
36 | Is the Pacific Ocean the largest ocean on Earth? | general_knowledge | LOW |
37 | Who painted the Mona Lisa? | general_knowledge | LOW |
38 | What continent is Egypt located on? | general_knowledge | LOW |
39 | Name the country that has the largest population in the world. | general_knowledge | LOW |
40 | True or false: Christopher Columbus was born in Spain. | general_knowledge | LOW |
41 | In what city are the headquarters of the United Nations located? | general_knowledge | LOW |
42 | Fill in the blank: The Great Barrier Reef is located off the coast of ___. | general_knowledge | LOW |
43 | How many sides does a hexagon have? | general_knowledge | LOW |
44 | Is the capital of Australia Sydney? | general_knowledge | LOW |
45 | Who wrote the play Hamlet? | general_knowledge | LOW |
46 | What year did the Titanic sink? | general_knowledge | LOW |
47 | True or false: Penguins live in the Arctic. | general_knowledge | LOW |
48 | Which country gifted the Statue of Liberty to the United States? | general_knowledge | LOW |
49 | Fill in the blank: The capital of Canada is ___. | general_knowledge | LOW |
50 | How many bones are in an adult human body? | general_knowledge | LOW |
51 | Is Spanish the most widely spoken language in South America? | general_knowledge | LOW |
52 | Who was the first President of the United States? | general_knowledge | LOW |
53 | Fill in the blank: The currency of the United Kingdom is the ________. | general_knowledge | LOW |
54 | Name the continent that contains the country of Egypt. | general_knowledge | LOW |
55 | Is Mount Everest the tallest mountain on Earth? | general_knowledge | LOW |
56 | What language is spoken in Brazil? | general_knowledge | LOW |
57 | How many years are in a decade? | general_knowledge | LOW |
58 | True or false: The sun rises in the east. | general_knowledge | LOW |
59 | In which city are the headquarters of the United Nations located? | general_knowledge | LOW |
60 | Fill in the blank: The Great Barrier Reef is located off the coast of ________. | general_knowledge | LOW |
61 | Is Antarctica the coldest continent on Earth? | general_knowledge | LOW |
62 | What year did the United States declare independence? | general_knowledge | LOW |
63 | Name the ocean that lies between Europe and North America. | general_knowledge | LOW |
64 | True or false: Dolphins are mammals. | general_knowledge | LOW |
65 | How many colors are in a rainbow? | general_knowledge | LOW |
66 | Who invented the telephone? | general_knowledge | LOW |
67 | Is Russia the largest country in the world by land area? | general_knowledge | LOW |
68 | Fill in the blank: The ancient wonder known as the Colosseum is located in ________, Italy. | general_knowledge | LOW |
69 | What continent is the Sahara Desert on? | general_knowledge | LOW |
70 | True or false: The Great Wall of China was built primarily during the Ming Dynasty. | general_knowledge | LOW |
71 | Is the Sahara the largest desert on Earth? | general_knowledge | LOW |
72 | How many stars are on the flag of the United States? | general_knowledge | LOW |
73 | Is Spanish the official language of Brazil? | general_knowledge | LOW |
74 | Fill in the blank: The Great Wall of China is located in ___. | general_knowledge | LOW |
75 | True or false: The Dead Sea is saltier than the ocean. | general_knowledge | LOW |
76 | In which country is the Eiffel Tower located? | general_knowledge | LOW |
77 | Is the cheetah the fastest land animal? | general_knowledge | LOW |
78 | Name the seven continents — how many are there total? | general_knowledge | LOW |
79 | True or false: Antarctica is a continent. | general_knowledge | LOW |
80 | Fill in the blank: The Roman numeral X represents the number ___. | general_knowledge | LOW |
81 | How many stars are on the United States flag? | general_knowledge | LOW |
82 | What country has the largest population in the world? | general_knowledge | LOW |
83 | Is the Great Barrier Reef located in Australia? | general_knowledge | LOW |
84 | True or false: Spanish is the official language of Brazil. | general_knowledge | LOW |
85 | How many sides does a pentagon have? | general_knowledge | LOW |
86 | Which planet in our solar system is closest to the Sun? | general_knowledge | LOW |
87 | What ocean lies between Europe and North America? | general_knowledge | LOW |
88 | Fill in the blank: The official language of Argentina is ___. | general_knowledge | LOW |
89 | In what year did the Titanic sink? | general_knowledge | LOW |
90 | True or false: Vatican City is the smallest country in the world. | general_knowledge | LOW |
91 | How many zeroes are in one million? | general_knowledge | LOW |
92 | Is Mount Kilimanjaro located in Africa? | general_knowledge | LOW |
93 | True or false: The Great Barrier Reef is located off the coast of Australia. | general_knowledge | LOW |
94 | What country is home to the Eiffel Tower? | general_knowledge | LOW |
95 | True or false: The sun is a star. | general_knowledge | LOW |
96 | Fill in the blank: The currency of Japan is the ___. | general_knowledge | LOW |
97 | Is Brazil the largest country in South America by area? | general_knowledge | LOW |
98 | True or false: Mount Everest is located in Africa. | general_knowledge | LOW |
99 | Name the continent where Egypt is located. | general_knowledge | LOW |
100 | What language is officially spoken in Brazil? | general_knowledge | LOW |
LLM Query Complexity Benchmark
Benchmark dataset for evaluating LLM query routing systems. Contains 6,912 labeled queries across 6 domains and 3 complexity classes, designed to train and evaluate 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, HPC, and cloud inference tiers.
Dataset Structure
Fields
| Field | Type | Description |
|---|---|---|
id |
int | Unique query identifier (1–6912) |
text |
string | The user query |
domain |
string | Subject domain (see below) |
complexity |
string | Complexity class: LOW, MEDIUM, or HIGH |
Complexity Classes
Complexity is defined by reasoning depth, not question format. The same format ("Is X?", "What is X?") appears in all three classes.
| 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." |
Domains
| Domain | Description |
|---|---|
general_knowledge |
Geography, history, culture, world affairs |
science |
Biology, chemistry, physics, astronomy |
mathematics |
Arithmetic, algebra, calculus, proofs |
humanities |
Literature, philosophy, ethics, linguistics |
computer_science |
Algorithms, systems, networks, AI/ML |
research_computing |
HPC, scientific workflows, LLM deployment, Globus, vLLM, SLURM |
Size
| Split | Queries |
|---|---|
| Full dataset | 6,912 |
| Per domain | 1,152 |
| Per domain × complexity cell | 384 |
Loading the Dataset
from datasets import load_dataset
ds = load_dataset("anasnassar/llm-query-complexity-benchmark", data_files="stream_routing_benchmark.jsonl")
print(ds["train"][0])
# {'id': 1, 'text': 'What is the capital of Japan?', 'domain': 'general_knowledge', 'complexity': 'LOW'}
Or load the full JSON (includes metadata and generation provenance):
import json, requests
url = "https://huggingface.co/datasets/anasnassar/llm-query-complexity-benchmark/resolve/main/stream_routing_benchmark.json"
data = requests.get(url).json()
queries = data["queries"]
Generation Method
All queries were generated by Claude Sonnet 4.6 with extended thinking enabled (budget_tokens=10,000), using a reasoning-depth rubric that explicitly decouples complexity from surface format. Cross-model consistency was verified with GPT-4o-mini (Cohen's κ = 0.819, near-perfect agreement, 88% label agreement).
This is LLM-supervised fine-tuning: Claude generates hard labels; a smaller classifier (ModernBERT-base) learns from them. The resulting classifier runs at ~15ms per query with no API dependency.
Format Decoupling
A key design constraint: format is not the complexity signal. Early dataset versions showed 91% of "What is X?" queries labeled LOW — a format-proxy bias that would cause classifiers to route by question format rather than reasoning depth. The current dataset enforces balanced format distribution across all three complexity classes.
| Format | LOW | MEDIUM | HIGH |
|---|---|---|---|
| "What is X?" | ~38% | ~31% | ~31% |
| Yes/No / True-False | ~51% | ~15% | ~34% |
Training and Evaluation
This dataset is designed to train and rigorously evaluate query complexity classifiers. Three evaluation strategies are provided in the STREAM codebase to avoid inflated numbers:
| Strategy | Description |
|---|---|
| Random split | 70/15/15 split. Fast baseline; may be inflated due to LLM-generated near-duplicates. |
| Domain-held-out 6-fold CV | Train on 5 domains, test on 6th. Measures cross-domain generalization. Reported in paper. |
| Similarity-aware split | Semantic deduplication before splitting (cosine sim > 0.90 grouped). Conservative estimate. |
A fourth evaluation on real-world queries (LMSYS Chatbot Arena) is performed separately
using build_realworld_testset.py in the STREAM codebase to test out-of-distribution generalization.
The domain-held-out CV and real-world numbers are the primary reported metrics. The random-split result (~99%) is inflated and should not be cited as a standalone accuracy figure.
Associated Model
The fine-tuned ModernBERT-base classifier trained on this dataset is available at: anasnassar/llm-query-complexity-classifier
Citation
@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}
}
How to Use in Research
Training a new classifier on this dataset:
from datasets import load_dataset
from transformers import AutoTokenizer, AutoModelForSequenceClassification, Trainer, TrainingArguments
ds = load_dataset("anasnassar/llm-query-complexity-benchmark", data_files="stream_routing_benchmark.jsonl")
# Rename 'complexity' to 'label' and encode:
label2id = {"LOW": 0, "MEDIUM": 1, "HIGH": 2}
ds = ds.map(lambda x: {"label": label2id[x["complexity"]]})
Reproducing the STREAM paper results:
git clone https://github.com/uicacer/STREAM
pip install transformers torch datasets scikit-learn accelerate sentence-transformers
python scripts/eval/train_modernbert.py --eval-mode domain-holdout
python scripts/eval/build_realworld_testset.py
python scripts/eval/eval_on_realworld.py
Extending to other classifiers: The dataset is model-agnostic. Any text classifier
(DistilBERT, DeBERTa, SetFit, etc.) can be trained by replacing MODEL_NAME in
train_modernbert.py or loading the JSONL directly.
License
Apache 2.0
- Downloads last month
- 23