面向能源意识的需求依赖分类:知识图谱与向量检索增强推理的SLM
Towards Energy-aware Requirements Dependency Classification: Knowledge-Graph vs. Vector-Retrieval Augmented Inference with SLMs
AI总结:
本文研究了在SLM中通过知识图谱与向量检索增强推理以提高需求冲突检测的效率和可持续性,评估了不同方法在能耗、延迟和碳排放方面的表现。
摘要:
系统规范的持续演变需要频繁评估冲突需求,这一过程传统上耗费大量人力。尽管大语言模型(LLMs)在自动化检测方面表现出色,但其巨大的计算需求导致能源浪费。因此,转向小型语言模型(SLMs)和能源意识架构对于可持续的需求工程至关重要。本文提出并评估了一个能源意识框架,比较了基于知识图谱的检索(KGR)与基于向量的语义检索(VSR)以增强SLM推理能力。通过利用结构化图遍历和高维语义映射,我们提取候选需求,并通过推理引擎将其分类为冲突或中性。我们评估了这些检索增强策略在零样本、少样本和思维链提示方法中的表现。使用包含能耗(Wh)、延迟(s)和碳排放(gCO2eq)的三支柱可持续性框架以及标准准确性指标(F1 Score),本研究提供了首次系统性的实证评估和性能与环境影响之间的权衡分析。我们的发现突显了结构化检索与语义检索在检测需求冲突方面的有效性,提供了一种可重复、可持续的架构以实现高效的需求数学工程。
英文摘要:
The continuous evolution of system specifications necessitates frequent evaluation of conflicting requirements, a process that is traditionally labour intensive. Although large language models (LLMs) have demonstrated significant potential for automating this detection, their massive computational requirements often result in excessive energy waste. Consequently, there is a growing need to transition toward Small Language Models (SLMs) and energy aware architectures for sustainable Requirements Engineering. This study proposes and empirically evaluates an energy aware framework that compares Knowledge Graph-based Retrieval (KGR) with Vector-based Semantic Retrieval (VSR) to enhance SLM-based inference at the 7B to 8B parameter scale. By leveraging structured graph traversal and high dimensional semantic mapping, we extract candidate requirements, which are then classified as conflicting or neutral by an inference engine. We evaluate these retrieval enhanced strategies across Zero-Shot, Few-Shot, and Chain of Thoughts prompting methods. Using a three-pillar sustainability framework measuring energy consumption (Wh), latency (s), and carbon emissions (gCO2eq) alongside standard accuracy metrics (F1 Score), this research provides a first systematic empirical evaluation and trade off analysis between predictive performance and environmental impact. Our findings highlight the effectiveness of structured versus semantic retrieval in detecting requirement conflicts, offering a reproducible, sustainability aware architecture for energy efficient requirement engineering.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。