Manuscript Offprint

arXiv:2608.30543

Designing an Auditable LLM-Supported Workflow for Qualitative Thematic Analysis

Nadia Jul Jeldtoft, Tariq Yousef

Abstract

Large Language Models (LLMs) offer new possibilities for scaling qualitative analysis, but existing applications often provide limited methodological transparency regarding how qualitative methods are translated into computational procedures. This paper presents an auditable and privacy-preserving computational operationalization of inductive and latent Thematic Analysis (TA). This paper first derives five design principles from the methodological requirements of TA and the conditions introduced by LLM-based inference: preserving interpretative context, maintaining traceable relationships between empirical material and analytical outputs, representing analytical constructs and reasoning explicitly, constraining LLM inference to interpretative tasks, and enabling privacy-preserving local deployment. Second, it presents a proof-of-concept for a two-phase workflow that operationalizes these principles by combining interpretative LLM inference with deterministic procedural control to generate codes, analytical justifications, themes, and theme descriptions while preserving explicit links to the source material. Third, it proposes an evaluation framework combining structural comparison with human-led TA and independent expert assessment of analytical quality. The evaluation is conducted on semi-structured Danish interview transcripts, and the results show that the workflow produces code-level outputs with coverage broadly comparable to human annotations and highly rated analytical justifications, while generating a more compressed thematic structure characterized by fewer and broader themes. The findings demonstrate the feasibility of auditable LLM-supported TA through a modular workflow designed to scale to larger datasets, accommodate different LLMs, and support transfer across research domains, with domain adaptation primarily requiring adjustments to the prompting strategy.

1 Introduction

Large Language Models (LLMs) have expanded the possibilities for analyzing large collections of unstructured textual data. Their ability to process textual context, identify patterns and generate human-interpretable analytical outputs has led to their increasing application in qualitative research (Barros et al., 2025; Davison et al., 2024). However, qualitative analysis is defined not only by its analytical outputs but by the methodological principles through which analytical outputs are generated. Across qualitative research traditions, these principles include contextual interpretation and iterative engagement with empirical material (Kvale and Brinkmann, 2015; Hastrup, 2004; Denzin and Lincoln, 2011).

THEMATIC ANALYSIS (TA) (Braun and Clarke, 2006; Boyatzis, 1998) is a foundational method for the analysis of qualitative data across disciplines. It provides a systematic, yet flexible framework for identifying and interpreting patterns of meaning in diverse research contexts (Kvale and Brinkmann, 2015; Denzin and Lincoln, 2011). TA can be understood as an interpretative process that, in part, resembles unsupervised learning tasks such as pattern detection and clustering in unlabeled text data (Tan et al., 2019). However, unlike purely computational approaches, TA is guided by meaning and depends on the analyst's theoretical and epistemological perspective. In practice, TA involves iteratively assigning codes to meaningful features of the data and grouping these into higher-level themes while maintaining explicit links between empirical data, codes and themes. Consequently, computational operationalizations of TA must support not only code and theme generation, but also contextual interpretation, analytical reasoning and traceable relationships across the analytical process.

Existing LLM-supported approaches to TA pri-marily demonstrate the analytical capabilities of the models themselves, while providing limited methodological accounts of how qualitative analytical methods are operationalized computationally. The challenge is therefore not whether LLMs can generate codes and themes, but how LLM inference can be utilized in computational workflows that preserve the methodological principles of qualitative analysis. Without careful workflow design, the use of LLMs risks obscuring rather than supporting the interpretative analytical process central to qualitative analysis (Beltoft and Galke, 2025; Davison et al., 2024).

This paper presents a proof of concept for an auditable computational operationalization of TA that translates the method into a structured computational workflow using an LLM for analysis. In this context, auditability refers to the ability to systematically document and critically assess how analytical outputs are generated, supported by transparency across intermediate analytical operations and traceability between outputs and their empirical source material (Kroll, 2021; Liao and Vaughan, 2024; Mora-Cantallops et al., 2021).

The workflow separates interpretative inference from deterministic procedural computation. It embeds methodological quality criteria from TA directly into the computational design, and preserves explicit links between data, codes and themes throughout the analytical process in a privacy-preserving manner (Cavoukian and Chibba, 2018). The proposed workflow is evaluated through structural comparison with expert-generated TA and independent expert assessment on a corpus of semi-structured Danish interview transcripts.

This paper makes three contributions: First, it proposes five design principles for the computational operationalization of TA grounded in the methodological principles of qualitative research. Second, it introduces an auditable workflow architecture that combines constrained LLM inference with deterministic programmatic procedures to preserve analytical transparency, traceability, and privacy throughout the analytical process. Third, it proposes an evaluation framework for assessing whether computational operationalizations of TA preserve central methodological quality criteria through complementary structural comparison and expert assessment.