From Raw Corpora to Domain Benchmarks: Automated Evaluation of LLM Domain Expertise
Not on the map. Why?
Abstract (arXiv)
Accurate domain-specific benchmarking of LLMs is essential, specifically in domains with direct implications for humans, such as law, healthcare, and education. However, existing benchmarks are documented to be contaminated and are based on multiple-choice questions, which suffer from inherent biases. To measure domain-specific knowledge in LLMs, we present a deterministic pipeline that transforms raw domain corpora into completion-style benchmarks without relying on other LLMs or costly human annotation. Our approach first extracts domain-specific keywords and related target vocabulary from an input corpus. It then constructs prompt-target pairs where domain-specific words serve as prediction targets. By measuring LLMs' ability to complete these prompts, we provide a direct assessment of domain knowledge at low computational cost. Our pipeline avoids benchmark contamination, enables automated updates with new domain data, and facilitates fair comparisons between base and instruction-tuned (chat) models. We validate our approach by showing that model performances on our benchmark significantly correlate with those on an expert-curated benchmark. We then demonstrate how our benchmark provides insights into knowledge acquisition in domain-adaptive, continual, and general pretraining. Finally, we examine the effects of instruction fine-tuning by comparing base and chat models within our unified evaluation framework. In conclusion, our pipeline enables scalable, domain-specific, LLM-independent, and unbiased evaluation of both base and chat models.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 38 of its 51 references that are in the map. First posted on arXiv 9 Jun 2025.
Builds on
38 of 51 references.
References · 38
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,474
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2022Language Models (Mostly) Know What They Knowcited by 1,856
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
26 more
- 2020What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Examscited by 1,356
- 2023A Survey on Evaluation of Large Language Modelscited by 1,242
- 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,184
- 2022Discovering Language Model Behaviors with Model-Written Evaluationscited by 836
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
- 2020How Can We Know When Language Models Know? On the Calibration of Language Models for Question Answeringcited by 445
- 20242 OLMo 2 Furiouscited by 340
- 2023MedAlpaca -- An Open-Source Collection of Medical Conversational AI Models and Training Datacited by 286
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
- 2023Don't Make Your LLM an Evaluation Benchmark Cheatercited by 194
- 2024SaulLM-7B: A pioneering Large Language Model for Lawcited by 142
- 2024When Benchmarks are Targets: Revealing the Sensitivity of Large Language Model Leaderboardscited by 137
- 2021DEMix Layers: Disentangling Domains for Modular Language Modelingcited by 132
- 2022Analyzing Transformers in Embedding Spacecited by 132
- 2021Language Model Evaluation Beyond Perplexitycited by 78
- 2023FinGPT: Democratizing Internet-scale Data for Financial Large Language Modelscited by 67
- 2024Investigating Continual Pretraining in Large Language Models: Insights and Implicationscited by 57
- 2024Changing Answer Order Can Decrease MMLU Accuracycited by 42
- 2023AstroLLaMA: Towards Specialized Foundation Models in Astronomycited by 41
- 2023Interpretable Long-Form Legal Question Answering with Retrieval-Augmented Large Language Modelscited by 35
- 2024Beyond Perplexity: Multi-dimensional Safety Evaluation of LLM Compressioncited by 33
- 2022M2D2: A Massively Multi-domain Language Modeling Datasetcited by 26
- 2023A Glitch in the Matrix? Locating and Detecting Language Model Grounding with Fakepediacited by 24
- 2024Faster and Lighter LLMs: A Survey on Current Challenges and Way Forwardcited by 21
- 2024Adaptation Odyssey in LLMs: Why Does Additional Pretraining Sometimes Fail to Improve?cited by 8
- 2025LLM-Powered Benchmark Factory: Reliable, Generic, and Efficientcited by 7
Built on by
Citing papers per year: 2026: 1.
1 paper.