[Paper Review] Large Language Models as Software Components: A Taxonomy for LLM-Integrated Applications
This paper presents a taxonomy for describing LLM-integrated applications by decomposing them into LLM components and outlining 13 dimensions to characterize each component, then demonstrates and evaluates the taxonomy on real-world-inspired cases.
Large Language Models (LLMs) have become widely adopted recently. Research explores their use both as autonomous agents and as tools for software engineering. LLM-integrated applications, on the other hand, are software systems that leverage an LLM to perform tasks that would otherwise be impossible or require significant coding effort. While LLM-integrated application engineering is emerging as new discipline, its terminology, concepts and methods need to be established. This study provides a taxonomy for LLM-integrated applications, offering a framework for analyzing and describing these systems. It also demonstrates various ways to utilize LLMs in applications, as well as options for implementing such integrations. Following established methods, we analyze a sample of recent LLM-integrated applications to identify relevant dimensions. We evaluate the taxonomy by applying it to additional cases. This review shows that applications integrate LLMs in numerous ways for various purposes. Frequently, they comprise multiple LLM integrations, which we term ``LLM components''. To gain a clear understanding of an application's architecture, we examine each LLM component separately. We identify thirteen dimensions along which to characterize an LLM component, including the LLM skills leveraged, the format of the output, and more. LLM-integrated applications are described as combinations of their LLM components. We suggest a concise representation using feature vectors for visualization. The taxonomy is effective for describing LLM-integrated applications. It can contribute to theory building in the nascent field of LLM-integrated application engineering and aid in developing such systems. Researchers and practitioners explore numerous creative ways to leverage LLMs in applications. Though challenges persist, integrating LLMs may revolutionize the way software systems are built.
Motivation & Objective
- Define an architectural taxonomy for LLM-integrated applications from an integration viewpoint.
- Identify dimensions useful for categorizing how LLMs are embedded as software components.
- Provide a visual, vector-based representation to aid understanding and communication of LLM-driven architectures.
- Support theory-building and practical design guidance for engineers deploying LLM components in software.
Proposed method
- Developed the taxonomy through an iterative, design-science approach guided by established taxonomy methods.
- Constructed an initial taxonomy from conversational assistant architectures and refined it through empirical application to real-world-inspired instances.
- Applied the taxonomy to a sample of six LLM-integrated applications (bearing eleven distinct LLM components) and validated its coverage on additional cases.
- Introduced a visual representation using feature vectors to concisely describe LLM components and their integration.
Experimental results
Research questions
- RQ1What dimensions best describe how LLMs are integrated as software components within applications?
- RQ2How can LLM components be characterized and compared across different LLM-integrated applications?
- RQ3Can a concise, visual representation (feature vectors) effectively communicate an application's LLM-based architecture?
Key findings
- There are multiple ways to integrate LLMs into applications, often via multiple LLM components within an application.
- Analyzing each LLM component separately provides a clearer understanding of an application's architecture.
- The taxonomy comprises 13 dimensions grouped into five metadimensions to describe an LLM component, with some dimensions mutually exclusive and others not.
- The study demonstrates the taxonomy on several real-world-inspired applications and shows it can describe diverse architectures.
- A concise, vector-based visualization supports compact representation of LLM components and their combination within an application.
- The sample demonstrates that LLM components cover a range of skills, outputs, prompts, data interactions, and task handling, with several components often co-existing within a single application.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.