DOI: https://doi.org/10.1145/3807453
تاريخ النشر: 2026-04-07
المؤلف: Dominik Fuchss وآخرون
الموضوع الرئيسي: أبحاث هندسة البرمجيات
نظرة عامة
تناقش هذه القسم أهمية تحديد الكيانات المعمارية ذات الصلة في القطع النصية لاستعادة روابط التتبع (TLR) بين وثائق هندسة البرمجيات (SAD) وشفرة المصدر. يقدم البحث نهجين: استخراج المعمارية (ExArch) وتتبع المعمارية مع مطابقة الكيانات عبر الاستدلال الدلالي (ArTEMiS). يقوم ExArch بأتمتة استخراج أسماء المكونات من SAD وشفرة المصدر، مما يلغي الحاجة إلى نماذج هندسة البرمجيات اليدوية (SAMs). في المقابل، يقوم ArTEMiS بمطابقة الكيانات المعمارية في الوثائق مع تلك الموجودة في SAMs، سواء تم إنشاؤها يدويًا أو تلقائيًا.
تظهر تقييمات هذه النهجين فعاليتهما مقارنةً بالأساليب المتطورة مثل SWATTR وTransArC وArDoCode. ومن الجدير بالذكر أن ExArch يحقق درجة F1 تبلغ 0.86، مقارنةً بـ 0.87 لـ TransArC، بينما يطابق ArTEMiS SWATTR القائم على الاستدلال مع درجة F1 تبلغ 0.81. يتجاوز الجمع بين ExArch وArTEMiS ArDoCode، الذي لا يعتمد على SAMs اليدوية. تشير النتائج إلى أن نماذج اللغة الكبيرة (LLMs) يمكن أن تسهل بنجاح توليد SAM تلقائي وتعزز تتبع المعمارية-الشفرة، مما يجعل العملية أكثر كفاءة وسهولة. ستركز الأعمال المستقبلية على تحسين استخراج SAM القائم على الشفرة، وإثراء المطالبات بسياق المشروع الإضافي، واستكشاف قدرات LLMs في تحديد روابط التتبع.
مقدمة
في مجال تطوير البرمجيات، يمثل إنتاج قطع مختلفة على مستويات تجريدية مختلفة تحديات كبيرة للمعماريين والمطورين، ويرجع ذلك أساسًا إلى العلاقات غير الواضحة بين هذه القطع. تعقد هذه الفجوة في الوضوح الصيانة والاستخدام الفعال، مما يستلزم استخدام تقنيات استعادة روابط التتبع (TLR) لإنشاء وإدارة روابط تتبع صريحة بين القطع. تعتبر الفجوة الدلالية بين أنواع القطع المختلفة قضية حاسمة في هذه العملية، حيث يمكن أن تؤدي إلى سوء التفسير من قبل الأساليب الآلية. للتخفيف من ذلك، تدعو بعض الاستراتيجيات إلى استخدام قطع وسيطة، مثل نماذج هندسة البرمجيات (SAMs)، لتسهيل ربط القطع ذات الصلة، مما يعزز جودة البرمجيات.
يقدم هذا البحث نهجين تكميليين يستفيدان من نماذج اللغة الكبيرة (LLMs) لتمكين TLR من البداية إلى النهاية من وثائق هندسة البرمجيات (SAD) إلى شفرة المصدر دون الاعتماد على SAMs التي تم إنشاؤها يدويًا. يركز النهج الأول، ExArch، على استخراج أسماء المكونات من SAD وشفرة المصدر لسد الفجوة الدلالية ودعم TLR. يستخدم النهج الثاني، ArTEMiS، نماذج LLMs لشكل متخصص من التعرف على الكيانات المسماة مصمم لهندسة البرمجيات، مما يقدم بديلاً حديثًا لأساليب TLR التقليدية القائمة على الاستدلال. يهدف البحث إلى تقييم فعالية هذه النهجين القائمين على LLM في تسهيل TLR وتأثيرهما على الأساليب الحالية مثل الروابط الانتقالية للهندسة المعمارية والشفرة (TransArC). تسعى السؤال البحثي الشامل إلى تقييم مدى قدرة LLMs على استخراج العناصر المعمارية للمساعدة في TLR بين SAD وشفرة المصدر.
الطرق
في قسم الطرق، يحدد المؤلفون إطار التقييم التجريبي الخاص بهم، بدءًا من إعداد التقييم في القسم 5.1، الذي يوضح مجموعة البيانات المستخدمة، ومقاييس التقييم المعتمدة، ونماذج اللغة الكبيرة (LLMs) التي تم اختبارها. يقدم القسم 5.2 النماذج الأساسية التي يتم مقارنة نهجهم المقترح بها. بعد ذلك، يقدم القسم 5.3 تقييمًا تجريبيًا أوليًا لـ ExArch كما أجراه Fuchß وآخرون. يتم توضيح التقييم الشامل لكل من ArTEMiS وExArch في القسم 5.4. أخيرًا، يتناول القسم 5.6 التهديدات المحتملة لصلاحية الدراسة، مما يضمن اعتبارًا شاملاً لصلابة النتائج.
المناقشة
في هذا القسم، يناقش المؤلفون التقدم المحرز في استعادة روابط التتبع (TLR) بين وثائق هندسة البرمجيات (SAD) ونماذج هندسة البرمجيات (SAM) من خلال نهجهم الجديد، ArTEMiS، وExArch الذي تم تقديمه سابقًا. يتناولون سؤالين بحثيين رئيسيين: ما إذا كان ArTEMiS يتفوق على الأساليب المتطورة القائمة على الاستدلال وما إذا كان يعزز أداء إطار TransArC، سواء مع أو بدون ExArch. يبني البحث على الأعمال السابقة من خلال تقديم تقييم أكثر شمولاً لـ ExArch وتقديم ArTEMiS، الذي يستخدم نهج التعرف على الكيانات المسماة (NER) لاستخراج الكيانات المعمارية من SAD وربطها بـ SAMs، مما يلغي الحاجة إلى SAMs التي تم إنشاؤها يدويًا.
تسلط المناقشة الضوء على تحديات TLR الآلي، لا سيما في التعامل مع القطع على مستويات تجريدية متباينة، وإمكانية استخدام نماذج اللغة الكبيرة (LLMs) لسد الفجوات الدلالية في التتبع. يؤكد المؤلفون على أهمية الربط الانتقالي، الذي يستفيد من القطع الوسيطة لتحسين دقة TLR. كما يستعرضون الأدبيات الموجودة حول TLR وNER، مشيرين إلى أنه بينما أظهرت LLMs وعدًا في مهام هندسة البرمجيات المختلفة، لا يزال تطبيقها على تتبع المعمارية غير مستكشف بشكل كافٍ. يختتم المؤلفون بتحديد هيكل الورقة، الذي يتضمن أقسامًا حول الأعمال ذات الصلة، نهج ExArch، التصميم التجريبي، وتقييم نتائجهم، بهدف تعزيز عملية التتبع في هندسة البرمجيات.
DOI: https://doi.org/10.1145/3807453
Publication Date: 2026-04-07
Author(s): Dominik Fuchss et al.
Primary Topic: Software Engineering Research
Overview
This section discusses the significance of identifying architecturally relevant entities in textual artifacts for Traceability Link Recovery (TLR) between Software Architecture Documentation (SAD) and source code. The paper introduces two approaches: Extracting Architecture (ExArch) and Architecture Traceability with Entity Matching via Semantic inference (ArTEMiS). ExArch automates the extraction of component names from SAD and source code, thereby eliminating the need for manual Software Architecture Models (SAMs). In contrast, ArTEMiS matches architectural entities in documentation with those in SAMs, whether generated manually or automatically.
The evaluation of these approaches demonstrates their effectiveness compared to state-of-the-art methods such as SWATTR, TransArC, and ArDoCode. Notably, ExArch achieves an F1 score of 0.86, comparable to TransArC’s 0.87, while ArTEMiS matches the heuristic-based SWATTR with an F1 score of 0.81. The combination of ExArch and ArTEMiS surpasses ArDoCode, which does not rely on manual SAMs. The findings indicate that Large Language Models (LLMs) can successfully facilitate automated SAM generation and enhance architecture-code traceability, making the process more efficient and accessible. Future work will focus on improving code-based SAM extraction, enriching prompts with additional project context, and exploring the capabilities of LLMs in trace link identification.
Introduction
In the realm of software development, the production of various artifacts at different abstraction levels poses significant challenges for architects and developers, primarily due to unclear relationships among these artifacts. This lack of clarity complicates maintenance and effective utilization, necessitating the use of traceability link recovery (TLR) techniques to establish and manage explicit trace links between artifacts. A critical issue in this process is the semantic gap between different artifact types, which can lead to misinterpretation by automated methods. To mitigate this, some strategies advocate for the use of intermediate artifacts, such as Software Architecture Models (SAMs), to facilitate the linking of related artifacts, thereby enhancing software quality.
This paper introduces two complementary approaches leveraging large language models (LLMs) to enable end-to-end TLR from Software Architecture Documentation (SAD) to source code without relying on manually created SAMs. The first approach, ExArch, focuses on extracting component names from SAD and source code to bridge the semantic gap and support TLR. The second approach, ArTEMiS, employs LLMs for a specialized form of Named Entity Recognition tailored for software architecture, offering a modern alternative to traditional heuristic-based TLR methods. The research aims to evaluate the effectiveness of these LLM-based approaches in facilitating TLR and their impact on existing methods like Transitive links for Architecture and Code (TransArC). The overarching research question seeks to assess how well LLMs can extract architectural elements to assist in TLR between SAD and source code.
Methods
In the Methods section, the authors outline their experimental evaluation framework, beginning with the evaluation setup in Section 5.1, which details the dataset utilized, the evaluation metrics employed, and the large language models (LLMs) that were tested. Section 5.2 introduces the baseline models against which their proposed approach is compared. Following this, Section 5.3 presents an initial experimental evaluation of ExArch as conducted by Fuchß et al. [19]. The comprehensive evaluation of both ArTEMiS and ExArch is elaborated in Section 5.4. Finally, Section 5.6 addresses potential threats to the validity of the study, ensuring a thorough consideration of the robustness of the findings.
Discussion
In this section, the authors discuss the advancements made in trace link recovery (TLR) between Software Architecture Documentation (SAD) and Software Architecture Models (SAM) through their novel approach, ArTEMiS, and the previously introduced ExArch. They address two primary research questions: whether ArTEMiS outperforms state-of-the-art heuristic-based TLR methods and whether it enhances the performance of the TransArC framework, both with and without ExArch. The paper builds upon earlier work by providing a more extensive evaluation of ExArch and introducing ArTEMiS, which utilizes a Named Entity Recognition (NER) approach to extract architectural entities from SAD and link them to SAMs, thereby eliminating the need for manually created SAMs.
The discussion highlights the challenges of automated TLR, particularly in handling artifacts at varying abstraction levels, and the potential of using Large Language Models (LLMs) to bridge semantic gaps in traceability. The authors emphasize the importance of transitive linking, which leverages intermediate artifacts to improve TLR accuracy. They also review existing literature on TLR and NER, noting that while LLMs have shown promise in various software engineering tasks, their application to architectural traceability remains underexplored. The authors conclude by outlining the structure of the paper, which includes sections on related work, the ExArch approach, experimental design, and the evaluation of their findings, ultimately aiming to enhance the traceability process in software architecture.
