mlsanityData to 14 Oct 2026

Generating Software Architecture Description from Source Code using Reverse Engineering and Large Language Model

arXiv 2511.05165 ↗First posted 7 Nov 2025cs.SE cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

Software Architecture Descriptions (SADs) are essential for managing the inherent complexity of modern software systems. They enable high-level architectural reasoning, guide design decisions, and facilitate effective communication among diverse stakeholders. However, in practice, SADs are often missing, outdated, or poorly aligned with the system's actual implementation. Consequently, developers are compelled to derive architectural insights directly from source code-a time-intensive process that increases cognitive load, slows new developer onboarding, and contributes to the gradual degradation of clarity over the system's lifetime. To address these issues, we propose a semi-automated generation of SADs from source code by integrating reverse engineering (RE) techniques with a Large Language Model (LLM). Our approach recovers both static and behavioral architectural views by extracting a comprehensive component diagram, filtering architecturally significant elements (core components) via prompt engineering, and generating state machine diagrams to model component behavior based on underlying code logic with few-shots prompting. This resulting views representation offer a scalable and maintainable alternative to traditional manual architectural documentation. This methodology, demonstrated using C++ examples, highlights the potent capability of LLMs to: 1) abstract the component diagram, thereby reducing the reliance on human expert involvement, and 2) accurately represent complex software behaviors, especially when enriched with domain-specific knowledge through few-shot prompting. These findings suggest a viable path toward significantly reducing manual effort while enhancing system understanding and long-term maintainability.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 8 of its 38 references that are in the map. First posted on arXiv 7 Nov 2025.

Builds on

8 of 38 references.

References · 8

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  3. 2024GPT-4o System Cardcited by 4,588
  4. 2024Phi-4 Technical Reportcited by 711
  5. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
  6. 2023Using an LLM to Help With Code Understandingcited by 228
  7. 2023Exploring Code Analysis: Zero-Shot Insights on Syntax and Semantics with LLMscited by 19
  8. 2023Software Architecture Recovery with Information Fusioncited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 5.

5 papers.