Abstract
Large Language Models (LLMs) have demonstrated remarkable general-purpose reasoning, yet their utility in specialized enterprise environments—characterized by dense jargon, regulatory constraints, and complex data formats—remains insufficiently measured by standard academic benchmarks. This paper presents a rigorous evaluation framework that extends Stanford’s Holistic Evaluation of Language Models (HELM) to include 25 datasets across four critical domains: Finance, Legal, Climate, and Cybersecurity. By testing 13 prominent LLMs, we demonstrate that domain-specific pre-training frequently yields superior performance compared to raw model scaling. Our findings highlight the efficacy of "Small Language Models" (SLMs) for targeted tasks and identify persistent challenges in numerical reasoning and named entity recognition within industry contexts.
Introduction
The rapid adoption of LLMs in the enterprise sector has created an urgent need for evaluation metrics that reflect real-world utility. While benchmarks like MMLU provide a baseline for general knowledge, they fail to capture the nuances of professional domains. For instance, a financial institution requires models capable of parsing SEC filings, while legal firms need precise identification of unfair clauses in complex contracts. Enterprise data is often unstructured, highly technical, and subject to class imbalances that skew standard accuracy metrics. This work addresses these gaps by providing an open-source, systematic framework for domain-specific LLM assessment.
Methodology: Extending the HELM Framework
To create a robust testing environment, we augmented the existing HELM framework. Rather than developing a siloed evaluation tool, we integrated "scenarios" tailored for industry use cases into the HELM ecosystem. This approach ensures that evaluations are reproducible and benefit from HELM’s standardized scoring mechanisms.
Key methodological innovations include:
- Natural Language Prompting: Models are prompted to provide natural language labels (e.g., "Positive") rather than symbolic indices, aligning evaluation with the models' pre-training objectives.
- Translation-Style NER: To overcome the difficulty LLMs face with traditional BIO tagging, we utilize a list-extraction approach where models identify entities as natural language phrases.
- Point-wise Ranking: For complex Question Answering (QA), we employ a point-wise relevance scoring method, allowing models to evaluate candidates individually for improved precision.
- Robust Metrics: We prioritize Weighted F1 for classification and Entity F1 for NER to accurately reflect performance on imbalanced industry datasets.
Domain-Specific Datasets
The benchmark suite comprises 25 publicly available datasets across four critical enterprise domains:
- Finance (10 datasets): Tasks include sentiment analysis of earnings call transcripts, extraction of Key Performance Indicators (KPIs) from EDGAR filings, and multi-turn reasoning over financial tables (ConvFinQA).
- Legal (6 datasets): Focuses on detecting unfair terms of service (UNFAIR-ToS), predicting legal judgments, and summarizing legislative documents (BillSum).
- Climate & Sustainability (3 datasets): Includes sentiment analysis of climate discussions and fact-checking of environmental claims.
- Cybersecurity (6 datasets): Features analysis of 5G protocol specifications and mapping threat intelligence to the MITRE ATT&CK framework.
Results and Comparative Analysis
Our evaluation of 13 models—including the Llama2 family, Mistral, and IBM’s Granite—revealed significant performance variations across domains.
In the financial sector, Granite-13b-instruct-v2 demonstrated exceptional performance in Earnings Call classification, achieving a Weighted F1 of 0.618. For complex numerical reasoning in the ConvFinQA dataset, Granite-13b-chat-v2.1 led the field with 40.7% accuracy. Interestingly, Flan-UL2 emerged as a strong contender for summarization and complex QA, while Llama2-70b-chat excelled in short-text sentiment analysis.
In other domains, Mistral-7b-instruct showed surprising strength in Legal Sentiment (0.727 F1), and Phi-3.5-mini—a significantly smaller model—outperformed larger counterparts in Cybersecurity classification (SPEC5G), highlighting the potential for cost-effective SLMs in specialized "micro-tasks."
Key Insights
- Domain Pre-training vs. Scale: The success of the Granite-13b models suggests that incorporating domain-specific corpora (e.g., FDIC filings, financial textbooks) during pre-training is more impactful than increasing parameter counts.
- The Numerical NER Challenge: LLMs continue to struggle with numerical Named Entity Recognition, particularly when linking specific values (e.g., dollar amounts) to their corresponding entities.
- Task-Specific Specialization: No single "foundation" model dominated all categories, suggesting that enterprise architectures may benefit from a multi-model approach tailored to specific task requirements.
Limitations and Future Work
While this framework provides a significant step forward, several limitations remain. The current evaluation uses static prompts; however, LLMs are highly sensitive to prompt engineering, and model-specific optimizations could yield higher scores. Additionally, the benchmark currently focuses on English-language data and does not yet incorporate Retrieval-Augmented Generation (RAG) or agentic workflows, which are increasingly common in enterprise deployments. Future work will focus on expanding the language scope and integrating these benchmarks more deeply into the Stanford HELM ecosystem.
Summary updated