Skip to main navigation Skip to search Skip to main content

A Comparative Study of Large and Small Language Models for Domain Model Extraction

  • Utrecht University

Research output: Chapter in Book/Report/Conference proceeding › Chapter › Academic › peer-review

Abstract

[Context and Motivation] Large language models can derive conceptual models from textual requirements, offering an off-the-shelf alternative to traditional rule-based and machine-learning-based methods. [Question/Problem] Comparative evidence on the validity and completeness of different large and smaller language models for the domain model derivation task remains limited. [Principal ideas/Results] We compare GPT-o1, Llama3-8B, and Qwen-14B with the rule-based Visual Narrator using nine datasets containing user stories and corresponding domain models. Each language model was prompted with structured templates and evaluated on class and association extraction through precision, recall, and F-scores. GPT-o1 outperformed the smaller language models and matched or exceeded Visual Narrator in most tasks. Small language models produced competitive but less consistent results, revealing efficiency–accuracy trade-offs. [Contribution] We provide a systematic comparison of large language models, small language models, and rule-based modeling approaches and offer an updated evaluation framework to guide future research on the balance between scale, performance, and interpretability of the automated techniques for domain model extraction.
Original languageEnglish
Title of host publicationInternational Working Conference on Requirements Engineering
Subtitle of host publicationFoundation for Software Quality
EditorsR. Guizzardi, J. Araújo
PublisherSpringer
Pages336-351
Number of pages16
ISBN (Electronic)978-3-032-21423-2
ISBN (Print)978-3-032-21422-5
DOIs
Publication statusPublished - Mar 2026

Bibliographical note

Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2026.

Keywords

  • Narratolarge language models
  • Visual Narrator
  • domain modeling
  • ser stories
  • small language models

Fingerprint

Dive into the research topics of 'A Comparative Study of Large and Small Language Models for Domain Model Extraction'. Together they form a unique fingerprint.

Cite this