Exploring Large Language Models for Qualitative Data Analysis
Paper · 2024 · Tim Fischer and Chris Biemann
Summary
Qualitative researchers make decisions at several levels as they work through their material. An interview needs a date and a document tag so it can be found again. A passage within it may need a code because it speaks to a research question. A long answer may be easier to revisit in condensed form. Fischer and Biemann ask how much of this work a language assistant can help with, and how its suggestions can fit into an analysis that the researcher directs. They build their evaluation around the Discourse Analysis Tool Suite, where researchers organize documents, mark passages and record interpretations as the project develops. Their study tests three large language models.
The authors turn activities in the software into tasks with reference answers. They test document tagging on news and film descriptions, metadata extraction on reading comprehension and event records, and passage coding on entity mentions and quotations. For writing assistance, they test the correction of hesitations and repetitions, alongside the production of short summaries. The data cover English and German. Each system receives instructions and an output format, with no training on the benchmark examples. This makes the comparison relevant to an assistant that has to work with categories and fields supplied when a researcher starts a job.
Gemma 2 led most of the comparisons. Its weighted F1, a score that combines precision and recall, was 64.85 on the aggregate for broad document categories and 63.00 on the aggregate for detailed categories. For extractive question answering, where the system selects an answer from a passage, it reached an aggregate F1 of 79.41. Llama 3.1 took the lead when extracting several fields together from an event report and when summarizing news by word overlap. Passage coding was harder. The best systems recovered only part of what the reference annotations marked, and output formatting errors damaged some scores. German results varied by task. Broad news categories worked well on Tagesschau, while detailed tagging, passage coding and text generation generally yielded weaker results on the German data.
The authors used the comparison to select Gemma 2 for an optional assistant in English-language projects. Researchers choose the documents and the fields, tags or codes to consider, can revise the generated instructions, and review the suggestions before applying them. Early feedback also changed when the assistant could be used. Document-level help became available during the project, independent of the import process. The study establishes how the tested systems performed on activities chosen to resemble parts of qualitative analysis. How much review they save, and how their use affects the interpretation of research material, remain open questions.
Deep dive: Exploring Large Language Models for Qualitative Data Analysis
Fischer and Biemann test language assistance for qualitative research, from tagging documents to coding passages and editing text. · about 34 minutes to read
The problem and its context
Analysis begins before the first passage is coded
A qualitative project often requires the researcher to establish what is in the collection before looking for patterns in it. A useful document record might identify the setting, date and people involved. Tags can group documents by an attribute relevant to the study. A researcher can then search or filter the collection, construct a subset for close reading, or compare groups of documents. The effort of entering a field or choosing a tag may be small for a single record. Its practical importance comes from doing the same kind of work throughout a collection and relying on those decisions later.
The authors describe a second level of work within the document. At this level, the researcher identifies passages, assigns codes and writes memos about their significance. A tag associated with an entire interview places it in a document category. A code attached to part of the interview records where an idea, event or other subject relevant to the study occurs. Both activities use categories, but their objects are different. Coding a passage requires a decision about where the relevant material begins and ends as well as a decision about what it represents.
The Discourse Analysis Tool Suite was developed with digital humanities researchers. Its design draws on Grounded Theory, in which researchers develop and connect categories through engagement with their material. The paper describes support for open, selective and axial coding. A researcher can establish a hierarchy of codes as the analysis takes shape and attach notes to documents or passages. That flexibility matters for assistance because the categories encountered by the software can belong to a particular project. A general tool has to take a researcher’s descriptions seriously even when those descriptions differ from a familiar public taxonomy.
The interview scenario in the paper shows how these levels interact. A researcher interviewing company executives might group transcripts by industry and add fields for the date, company size and interview partner. Later, the researcher might develop codes for social consequences and particular kinds of problems. The earlier tags help organize the records used for the later comparisons. The passage codes help locate what an executive actually said. A transcript can also contain repetitions and fillers, so the same project creates a need for assistance with the readability of selected text. In the existing workflow, recordings could already be transcribed using Whisper. Robust Speech Recognition via Large-Scale Weak Supervision
These uses attach different meanings to a successful suggestion. An industry tag has to fit the document as a whole. A company size needs support in the text, and it may be absent from an interview. A passage about a problem must be located in the original material so the researcher can examine it in context. A clean version of a disfluent answer needs to keep the interviewee’s meaning. A single benchmark result would make it hard to tell which of these obligations a system can meet. The paper therefore builds its evaluation around the operations that the researcher would ask the assistant to perform.
What earlier tools and evaluations addressed
The paper situates the study among qualitative analysis platforms with different kinds of support. It describes CATMA as a tool for working with text and images. MAXQDA’s AI Assist offered functions including summarization, paraphrasing and concept explanation. The authors describe NVivo as adding features such as thematic coding and sentiment analysis in a beta version, and Atlas.ti as offering suggestions for codes and several other language functions. Those examples showed that assistance could be integrated into familiar tools, including at the point where a researcher asks to transform or annotate a document.
The authors also identify a deployment concern. In the paid offerings they discuss, data went to third-party providers for the AI features. University researchers may work with material that requires tighter control over where it is processed. The Discourse Analysis Tool Suite was designed to be available as open-source software and capable of running in-house. The benchmark consequently serves a practical decision about which systems to consider for an installation where both access to computing resources and the handling of research documents matter.
The paper treats general language benchmarks as useful for a different question. An evaluation such as SuperGLUE can compare systems across a range of tasks, and MMLU is designed around broad subject coverage. BIG-bench and HELM offer other forms of general evaluation, and MTEB concerns text embeddings. For someone designing qualitative analysis software, the choice of tasks needs a further step. An ability measured on a broad benchmark has to be related to a particular operation, such as extracting a set of fields the researcher defines or locating the words that a code applies to. SuperGLUE and Measuring Massive Multitask Language Understanding
Social science research offered a closer precedent. The authors point to work by Ziems and colleagues that evaluated zero-shot assistance on English tasks in computational social science, including taxonomic labeling and free-form coding. In that setting, a system can be asked whether something belongs to a defined category or can be given more latitude in describing it. Fischer and Biemann take the evidence for using systems as annotators as motivation for testing tasks that map onto their own software. They also include German because both German and English data are important to the projects the platform serves. Can Large Language Models Transform Computational Social Science?
The other closely related study described in the paper comes from software engineering. Rasheed and colleagues used several language agents to carry out different analytical activities with material such as interview transcripts. Fischer and Biemann report that this earlier work found potential for handling more material by accelerating parts of analysis. Their own study breaks the work down into operations with benchmark answers. It asks which system can perform each operation under shared instructions and builds an interface around suggestions that can be inspected and applied separately.
Why these tasks belong in the same study
The document, the passage and the researcher’s record of an interpretation are connected in the platform. Good document organization makes evidence easier to find. Coding helps researchers return to the evidence that supports an idea. A readable paraphrase or a short summary can help someone navigate a lengthy record. The paper’s design follows these connections while evaluating each operation on its own terms. A tool may be strong enough for one part of the workflow and supply weak suggestions in another.
This framing also puts a limit on what the evaluation needs to represent. The authors use public data with established labels or reference text so they can compare outputs repeatedly. Some of these data resemble the material a project might actually collect, especially news articles. Other data reproduce the shape of the task more closely than the kind of research material involved. A marked entity mention, for instance, supplies a place to test whether a system can return a span and its category. The choice of what should count as a theme in a particular interview study is a further analytical step. That gap guides both the benchmark construction and the interpretation of its results.
The method, step by step
Turn actions in the workspace into testable requests
The authors start from work a researcher can already do in the software. They match each action to a task with inputs, a recognizable output and reference answers. Given a document and a list of tags, the system should choose the applicable tag or tags. Given a passage and a question, it should return the words that answer it. Given a list of metadata fields, it should look for material that fills the fields. Given a list of codes, it should locate text to annotate. Fluency correction and summarization each take text as input and ask for a new version subject to a different constraint.
This mapping helps explain why the paper uses several kinds of public data. A document’s news category provides a reference for tagging. A question with a marked answer gives a way to test whether information can be found and copied. Named entities provide text boundaries and category labels, while quotations provide a different kind of span along with an attribution task. A pair of fluent and disfluent utterances gives the evaluator examples of what to retain after editing. A news article and its reference summary serve as a test of condensation. The procedure links a prospective feature to the part of its behavior that can be scored.
From qualitative research activities to evaluated suggestions
The steps in order.
Specify the decision and the form of its answer
For document tagging, the authors distinguish between choosing a single category and choosing several applicable ones. A single-label test can use broad categories or a longer list of more detailed ones. For instance, a document can go into a broad sports category or into a topic corresponding to a particular sport. In the fine-grained experiment, the required output is one category from the detailed inventory. The multi-label film task instead asks the system to return applicable subgenres. The test receives class names along with short descriptions. The authors wrote the descriptions for the news data and used descriptions from IMDb for the genre task. Text classification
Metadata extraction has two versions. In extractive question answering, the input supplies a passage and a specific question. An answer must be copied from the passage. When the passage provides no answer, the format allows the system to say so. A project might use this design to ask when an event took place or where it happened. The explicit abstention response makes the decision about whether an answer exists part of the task alongside the decision about which words to extract. Question answering
Template filling presents several fields together. A field, also called a slot, specifies a kind of information to recover from the same document. The instructions tell the system to use material from the source and leave an empty field when it finds no support. The event benchmark specifies an incident class as well as fields for details associated with the incident. Its field descriptions distinguish, for instance, an individual responsible for the event from a group. The response has to place each piece of evidence in the field it answers. The paper later applies this style of prompt in the assistant because a researcher can describe a set of metadata fields directly. Information extraction
For passage coding, the system receives a categorization scheme and text. It returns category and text pairs. Here the exact span matters because the software needs to associate a code with part of the document. The entity benchmarks ask it to find a reference to a person, organization or other entity type and label the words that express it. The detailed labels subdivide broad ones, so identifying a person supplies only part of what is required when the category inventory calls for a particular kind of person. In the quotation data, the evaluation concentrates on the speaker and the portion of the text that gives direct speech. Named entity recognition
The writing tasks place different demands on the output. For fluency correction, the system should remove disruptions such as false starts and duplicated words while keeping the result close to the source. When a speaker abandons a phrase and restarts it, the prompt calls for a fluent version of the intended utterance. For abstractive summarization, the system can use new phrasing to condense the important information. The prompt supplies an approximate desired length and instructs the system to stay within the facts of the source. The need to preserve meaning therefore applies to both activities, while the amount of rewriting permitted differs. Text summarization
Use the same prompting procedure across candidates
The candidate systems were instruction-tuned versions of Llama 3.1, Gemma 2 and Mistral NeMo, evaluated with 8B, 9B and 12B parameters, respectively. Instruction tuning is prior training intended to help a system respond to directions. In this study the authors use the resulting systems as they are for the benchmark tasks. The evaluated variants run in half precision, identified in the paper as FP16. The candidates are decoder-only systems, which produce a response as a sequence of tokens. Keeping the parameter counts in this range reflected the authors’ interest in fast inference and installations with limited computing resources.
The paper identifies relevant differences among the candidates. Llama 3. After training on a multilingual corpus totaling approximately 15 trillion tokens, 1 has a 128k-token context window. A context window describes how much material, measured in tokens, the system can take into account. Gemma 2 was trained on 8 trillion tokens, primarily in English, with data including web documents, code and mathematics. According to the paper, Mistral NeMo can handle contexts as long as 128k tokens, and its training data includes multilingual text as well as code. These are properties of the candidate systems. The study compares their outputs on the selected datasets rather than testing how far their context windows can be filled during qualitative analysis.
The authors describe the experiments as zero-shot. Each request gives instructions for the task, with no worked examples taken from the benchmark datasets. The templates do include a small illustration of the form a reply should take. An example in a template can show which side of a separator holds a category and which side holds the selected text. Its role is to make the answer interpretable by the software. The actual request then inserts the category inventory, any field descriptions or questions, and the document or passage to be analyzed.
Each request combines a system prompt and a user prompt. The system prompt makes assistance with text analysis the general purpose and stresses the required response format. The user prompt describes the specific action and the constraints that the answer should satisfy. Document tagging and extractive question answering allow room for reasoning in their templates without requiring it. The span and field extraction prompts put particular emphasis on copying text, because a generated substitute could prevent the application from using the output as an annotation or a source-supported value.
The authors use one prompt for a given task, dataset and language and deliberately keep prompt engineering limited. For German datasets, they translate the system and user prompts. Thus the results describe performance when the instructions and the test material are supplied in the corresponding language. The setup connects the comparison to a feasible starting point for the platform. It leaves questions about prompt alternatives, the effect of showing examples from a project and the gains from adapting a system to user data for separate experiments.
Each configuration ran three times on a single A100 GPU. The reported results average the runs. Repetition serves to reduce the influence of fluctuations in responses on the reported comparisons. The paper gives aggregate results by system and task, with dataset-level results in the appendix. When an answer deviates from the required format, the deviation counts as an error. Format adherence therefore enters the scores alongside the substantive quality of the suggestions.
The paper names standard scoring measures and gives its aggregation procedure in words. It reports no new mathematical objective for the benchmark or the assistant. The relevant computation begins with an answer the software can interpret. The evaluator then checks that answer against the appropriate labels or reference text. The authors provide replication code for the benchmark, the Discourse Analysis Tool Suite repository and a live demonstration of the platform.
Put review between a suggestion and a change to the project
The benchmark and the assistant use related prompts, but the assistant adds the decisions needed for a real project. The authors initially envisioned help with document tags and metadata during import. Early testers wanted to request that help at other times too. In response, the team made the assistant independent of preprocessing. A researcher can choose a set of documents in the workspace and start the assistant for the collection at hand.
In the dialog, the researcher first selects the task, then specifies the project’s relevant tags, fields or codes. This focus matters when the project already has a large code system. A particular job can concentrate on the codes the researcher wants to examine at that moment. Based on the choice, the software constructs the system and user instructions. The next view lets the researcher inspect and edit those instructions before starting the job. A change to a category description or an additional task constraint can therefore be made in the interface that issues the request.
The job executes in the background. The dialog shows progress, can be closed while the work runs, and can be reopened later. In the results view, the software places suggestions beside the document’s existing tags, metadata or codes. It also shows the reasoning supplied with suggestions. The researcher decides whether to keep existing work, replace it with a suggestion or combine the two. The interface supports decisions for an individual document and for a batch. Suggestions require explicit approval before becoming part of the project.
Summarization and fluency correction follow the originally envisioned interaction more closely. The paper illustrates them with passages selected from an interview transcript. For instance, a researcher encounters a disfluent passage, asks for a cleaned version and reviews it before approving it. The user can also ask to condense a long answer. These requests act on selected text, whereas the assistant’s document dialog lets the researcher choose a collection and the fields or categories relevant to it.
The implementation uses React for the interface. On the backend, Ollama hosts Gemma 2, FastAPI forms part of the service and Celery runs background jobs. The chosen system reflects Gemma 2’s showing across the benchmark. The choice of template filling for metadata illustrates a separate product decision. An interface that accepts field descriptions can be easier to use even when the strongest extraction scores came from a setup that posed individual questions. The deployed workflow takes both the benchmark results and the form of the researcher’s input into account.
Experiments and results
Document tagging across broad, detailed and multiple categories
The authors evaluate tagging on Tagesschau, BBC news and IMDb film descriptions. They sampled 10.000 documents for each dataset. The Tagesschau material comes from a crawl spanning 2018 – 2023, with 4 broad categories and 20 detailed ones. The BBC data cover 2017 – 2024, with 4 broad categories and 26 detailed ones. These two collections represent news as a common source for projects using the platform. The film descriptions supply a multi-label setting. An IMDb item belongs to one of 16 major genres and to 2-3 of 25 subgenres.
The experimental baselines are the other systems receiving the same task instructions and data. For tagging, the paper reports weighted precision, recall and F1, along with accuracy. Precision asks how frequently a category the system assigns is correct. Recall asks how frequently the system recovers a category that the reference assigns. F1 combines those concerns. Weighting gives categories with more reference examples greater influence in the aggregate. Accuracy reports correct classifications under the scoring for the task. This extra measure is useful when comparing the single-label results within a dataset and when examining how the multi-label results behave under a different scoring requirement.
Gemma 2 led on aggregate F1 for broad categories, with 64.85 against 61.28 for Mistral NeMo and 58.07 for Llama 3.1. The aggregate for the detailed news categories also favored Gemma 2. Its F1 was 63.00, with an accuracy of 62.4. Mistral NeMo and Llama 3.1 recorded lower scores on both of these measures in the detailed setting. These are aggregates over the datasets eligible for the respective tasks. The broad aggregate includes IMDb, while the detailed news aggregate covers Tagesschau and BBC.
Weighted F1 for fine-grained document tagging on Tagesschau and BBC, aggregated
Gemma 2 led the comparison for detailed news categories.
The numbers
| System or setting | weighted F1 |
|---|---|
| Llama 3.1 | 34.00 |
| Mistral NeMo | 55.00 |
| Gemma 2 (this paper) | 63.00 |
At the dataset level, broad news categories were handled better on Tagesschau than on BBC by all three candidates. For Gemma 2, coarse-category F1 was 82.01 on Tagesschau and 74.85 on BBC. The detailed categories reversed that order. Gemma 2 obtained 60.00 F1 on Tagesschau and 66.00 on BBC. The other systems also scored lower on detailed Tagesschau categories than on detailed BBC categories. In addition, the broad IMDb task yielded considerably lower F1 scores than the broad news tasks, with Gemma 2 at 37.70. The aggregate for broad tagging therefore summarizes performance across tasks that differ in domain as well as in their category lists.
Multi-label IMDb classification makes the distinction between precision and coverage visible. Mistral NeMo had the highest weighted precision, at 57.51. Gemma 2 had the highest weighted recall, at 52.23, and the highest weighted F1, at 52.35. Mistral NeMo’s F1 was 51.05 and Llama 3.1’s was 43.95. Gemma 2 and Mistral NeMo both had an IMDb multi-label accuracy of 8.58 in the dataset-level results. The weighted scores give information about the recovery of individual tags, while the low reported accuracy counsels caution about treating a collection of proposed genres as a finished document record.
Extracting a single answer and filling a record
The reading comprehension data consist of the original Stanford Question Answering Dataset, its extension with unanswerable questions, and GermanQuAD. The original English task uses Wikipedia passages and questions with answers marked in the source text. The extension adds questions written to look plausible even though the passage does not answer them. GermanQuAD was constructed on German Wikipedia material corresponding to articles used for the English dataset. These corpora resemble a project’s extraction task when the questions ask about a time, place or quantity. Other questions require reading for information that would rarely be stored in an ordinary metadata field. SQuAD and Know What You Don’t Know
The template-filling benchmark uses MUC-4, a collection of 1700 news articles about terrorist incidents. A report is associated with an incident class and five slots for other information. The appendix identifies fields for an individual perpetrator, a group perpetrator, a victim, a target and a weapon. The scoring measures extraction from the articles. For the qualitative research use case, the pertinent feature of the dataset is the need to fill a structured record from one document, including decisions about fields for which the source offers no value.
The paper reports Exact Match and F1. Exact Match measures agreement with the reference answer under the benchmark scoring. F1 can give credit when the answer overlaps the reference but includes a slightly different selection of words. In template filling, the scores are averaged over the slots. That aggregation tells the reader how the field predictions performed as a group. It supplies a different view from an evaluation of complete records in which every field for one article has to be correct.
Gemma 2 led the aggregate for extractive question answering on both measures. It had 66.53 Exact Match and 79.41 F1. Llama 3.1 obtained 56.04 Exact Match and 70.64 F1. Mistral NeMo obtained 55.21 Exact Match and 72.39 F1. The ordering between Llama 3.1 and Mistral NeMo thus depends on the metric. Matching more answers exactly and finding more of the right material across answers can each be relevant to metadata entry. Even a partly correct date phrase or name can take editing before it is suitable as a structured value.
On the original SQuAD dataset, Gemma 2 scored 75.73 Exact Match and 87.19 F1. On SQuAD 2.0, it scored 63.85 Exact Match and 69.80 F1. Llama 3.1 and Mistral NeMo also had lower scores on the dataset that includes unanswerable questions. GermanQuAD placed between the English datasets in F1 for all three candidates. Gemma 2 reached 81.25 F1 there, Llama 3.1 reached 73.04, and Mistral NeMo reached 73.18. GermanQuAD’s Exact Match scores were below those on the original SQuAD for all three systems. The choice of comparison dataset and metric matters when describing how well extraction held up in German.
The results changed when the system handled several fields in the same response. Llama 3.1 scored 40.62 Exact Match and 40.63 F1 on MUC-4. Gemma 2 had 36.69 Exact Match and 36.70 F1, and Mistral NeMo had 23.86 Exact Match and 23.87 F1. The template-filling scores were lower than the extractive question answering scores for every system. The paired measures on MUC-4 are also much closer to each other than they are in the reading comprehension results. These scores describe extraction in the event domain with its defined fields, a setting that changes the document, target values and response structure together.
Slot-averaged F1 for template filling on MUC-4
Llama 3.1 led when the systems had to fill multiple fields from a news article.
The numbers
| System or setting | F1 |
|---|---|
| Mistral NeMo | 23.87 |
| Gemma 2 | 36.70 |
| Llama 3.1 (this paper) | 40.63 |
Locating and labeling passages
The span experiments use English Wikipedia sentences, German legal material and German news. Few-NERD provides English named entities with 8 broad and 66 detailed categories, annotated in over 180,000 sentences. German LER provides a typology for entities in court decisions with 7 broad and 19 detailed types, annotated in about 66,000 sentences. In the news quotation benchmark, 1000 German WIKINEWS articles were annotated for properties of speech and its attribution. The authors narrow that benchmark to the identification of speakers and direct speech, because studies using the platform had called for annotating utterances. Few-NERD
The weighted precision, recall and F1 scores report how well the systems produced the labeled selections. The reported accuracy includes outside tokens, meaning tokens that do not belong to an annotated span. Correctly handling ordinary text outside a mention contributes to accuracy. The measure can consequently look strong when a system’s ability to find and label an actual mention remains weak. The two measures describe different aspects of the output the researcher would get.
Gemma 2 had the highest aggregate F1 for each span subtask. On broad entity categories its aggregate F1 was 37.98, followed by Mistral NeMo at 21.22 and Llama 3.1 at 7.82. For the detailed entity categories Gemma 2 scored 31.84, Mistral NeMo 15.39 and Llama 3.1 6.78. On the German quotation task, Gemma 2 scored 29.81 F1, ahead of Llama 3.1 at 15.18 and Mistral NeMo at 13.71. The ranking of the two lower-scoring systems changed on quotations, an indication that the different forms of span selection deserve their own evaluation.
The precision and recall for broad entity categories help explain the gap in aggregate F1. Mistral NeMo’s weighted precision of 39.28 was higher than Gemma 2’s 35.19. Gemma 2 had weighted recall of 44.07, while Mistral NeMo recorded 15.38. Llama 3.1’s weighted recall was 4.70 in the same aggregate. The authors observed that Llama 3.1 frequently put the label and extracted words in each other’s positions, which made a response unusable by their parser. Its recall therefore reflects a combination of missed annotations and outputs that the evaluation could not accept in the requested form.
The dataset results put the scores in context. On broad English Few-NERD entities Gemma 2 had 51.15 F1. On broad German LER entities it had 24.82 F1. For detailed categories the scores were 42.31 and 21.37. The same system obtained 90.29 accuracy on quotations in spite of its F1 of 29.81 on that task. For researchers hoping to get candidate highlights from the assistant, the F1 and recall measurements speak more directly to finding the material to review. The higher accuracy includes the system’s decisions about tokens that need no highlight.
Correcting disfluencies and generating summaries
For fluency correction, the authors repurpose Disfl-QA. It was designed to test how disfluencies affect question answering and contains about 12k pairs of fluent questions and their disfluent versions. The paper uses the pairs as editing examples. It also uses the English and German portions of DISCO, a corpus with over 12k pairs across the languages in the full dataset. DISCO draws on interactions between people and an AI agent and includes fillers, repetitions, explicit corrections and false starts. Both collections make fluent versions available for scoring. The circumstances in which their source utterances were produced differ from those of the research interviews used to motivate the workflow.
For summarization, the English data come from CNN and Daily Mail news, and the German data from the Süddeutsche Zeitung portion of MLSUM. CNN/DM has over 300,000 article and summary pairs in the full corpus. Its references are largely human-written highlights or descriptions. MLSUM contains over 1.5 million article and summary pairs across five languages. The paper uses the German portion. These data allow comparison against short references for news, a material type already used in projects on the platform. A news highlight and an interview memo have different purposes, even when both help a researcher find important material. Teaching Machines to Read and Comprehend and MLSUM
The paper reports ROUGE variants, Exact Match, F1 and METEOR for these tasks. ROUGE-1 measures overlap at the level of individual words, and ROUGE-2 looks at consecutive word pairs. The ROUGE-L variants capture agreement in sequences. The multiple measures are relevant because the text is generated and may express the same information using different words. Exact Match sets a stricter standard for reproducing a reference. METEOR provides another comparison with the reference wording. The paper uses these scores to compare the outputs and gives no separate human rating of their usefulness to researchers.
Gemma 2 led on aggregate disfluency correction, with 84.24 ROUGE-1, 73.68 ROUGE-2 and 40.08 Exact Match. Llama 3.1 obtained 79.00 ROUGE-1 and 33.80 Exact Match. Mistral NeMo obtained 78.97 ROUGE-1 and 25.91 Exact Match. The overlap scores indicate that the proposed fluent versions can retain much of the expected wording. Exact Match shows how often the outputs agree more strictly with a single reference. This distinction is especially relevant to short utterances, where keeping most of the words can still leave a filler or change the form of a repair.
Within DISCO, Gemma 2 obtained 92.40 ROUGE-1 for English disfluency correction and 77.03 for German. The same pattern occurred for Llama 3.1, with 91.20 for English and 66.87 for German, and for Mistral NeMo, with 85.44 and 73.25. On the English Disfl-QA data, Gemma 2 obtained 83.28 ROUGE-1. Thus even the English scores vary appreciably with the collection. DISCO’s coverage of both languages is useful for observing a language pattern within one named benchmark, while the different English results show how much a choice of source material can matter.
For abstractive summarization, Llama 3.1 led on the main aggregate ROUGE measures. Its aggregate ROUGE-2 was 9.93, compared with 8.86 for Gemma 2 and 7.86 for Mistral NeMo. The ROUGE-1 comparison is similar. At the dataset level, Llama 3.1 obtained 36.44 ROUGE-1 on English CNN/DM and 21.68 on German MLSUM. Gemma 2 obtained 34.98 and 20.81, respectively, and Mistral NeMo obtained 30.81 and 18.81. The ranking on that measure stayed the same across the datasets. The aggregate summarization Exact Match was 0.00 for each system, which reflects how restrictive matching a full reference is for this kind of output. At the dataset level, the appendix records 0.01 Exact Match for Mistral NeMo on German MLSUM.
ROUGE-1 for news summarization on CNN/DM and German MLSUM, aggregated
Llama 3.1 had the highest word overlap with the reference summaries.
The numbers
| System or setting | ROUGE-1 |
|---|---|
| Mistral NeMo | 24.81 |
| Gemma 2 | 27.89 |
| Llama 3.1 (this paper) | 29.06 |
Selecting a system for the software
Across the full evaluation, the reported rates of parsing issues were 1% for Gemma 2, 2% for Mistral NeMo and 5% for Llama 3.1. These rates summarize format problems across experiments. The span results illustrate how unevenly such problems can fall across tasks. An interface that relies on reading a label and its text from the same response gives little value to a correct category if it cannot recover where to put it. Conversely, obeying the format is only one part of producing a good suggestion. Gemma 2 also had higher F1 in most of the comparisons that the authors considered for a general assistant.
The systems therefore offer different evidence depending on the intended job. Llama 3.1’s strengths on MUC-4 and news summarization are visible in their own scores. Mistral NeMo had some strong individual precision scores even where it did not lead on F1. Gemma 2 offered the broadest combination of leading task results and adherence to the response format and was the one chosen for the platform. The implementation uses it for a workflow with several types of suggestions. The benchmark comparison explains that choice while leaving each task’s achievable quality visible separately.
What the ablations show
The study leaves component ablations untested and instead compares category granularity, extraction settings, datasets, languages, metrics and output formatting behavior. These comparisons help locate the difficulties that appeared during evaluation. Each holds some parts of the setup fixed and changes others, so the amount that can be attributed to any single factor varies by comparison.
Category detail changes the demands on a tagger
The closest comparison within document tagging is between broad and detailed labels for the same news source. In both Tagesschau and BBC, the broad and detailed tasks each require a single category, use the same general prompt structure, and draw their labels from the respective news taxonomy. A detailed category demands a more specific judgment about the article. Finding the general subject still leaves the need to distinguish several related categories, each with its own description. The scores go down when that extra specificity is required.
The dataset-level results clarify the aggregate picture. Gemma 2’s overall F1 for fine tagging is close to its aggregate F1 for broad tagging. Within each news dataset, its scores still decline as the labels become finer. The coarse aggregate includes the film descriptions that had relatively low scores, which affects the comparison between task aggregates. A reader interested in what the label inventory changes gets more direct evidence from the two news datasets individually. Both also show that a granular taxonomy can change the relative strength of the German and English results.
The entity tasks offer a related comparison. Gemma 2’s broad and fine scores decline within Few-NERD and within German LER. Across systems, the picture is more nuanced than a uniform fall for every setting. Llama 3.1’s German LER F1 is 2.78 on broad labels and 3.02 on detailed labels, while its scores are very low at both levels. The aggregate entity F1 does fall with the finer taxonomies for all three systems. For a project involving passage coding, the combination of locating the span and distinguishing the intended label is the relevant difficulty.
The source must answer the question
The comparison between the SQuAD versions shows how results change when the evaluation includes questions that a passage cannot answer. The weaker results on SQuAD 2.0 are consistent with the authors’ account that plausible unanswerable questions make extraction harder. A system has to judge whether the text supports an answer and then either copy that answer or abstain. That decision has an analogue in a metadata form, where leaving a field blank can protect the record from an unsupported value. The comparison provides overall scores for the two versions. An error breakdown separating abstention, answer selection and formatting would be needed to allocate the observed decline among them.
The much lower scores on MUC-4 are consistent with the authors’ suggestion that handling multiple answers at once is more demanding. The change includes a new dataset, news about a particular kind of event, several fields and slot-averaged scoring. It also reorders the systems. It shows that the strongest candidate for individual extractive questions need not lead on a structured record of several fields. An experiment using the same articles and target values in separate questions and in a joint template would be needed to establish how much of the difference comes from asking for the fields together.
Formatting failures are part of the measured system
The authors’ observation about reversed span and label positions gives a concrete account of one source of errors. A span annotation only becomes usable for this evaluation once the software can recognize both parts of it. When a response prints them in reverse positions, the parser can fail even if the category and text were both present. The authors kept the same parsing procedure and instructions for the candidates. That makes the scores relevant to the particular setup they compared and leaves open how well Llama 3.1 would do if a more permissive parser recovered its answers.
This is why the accuracy and F1 results are worth reading together. The former includes decisions on material outside annotated spans. The latter is more sensitive to recovering the spans that are the object of the task. The quotation results show that high overall accuracy can coexist with modest recovery of the annotations a user is seeking. Likewise, the parsing rates describe whether outputs are in a form the benchmark can use. They do not measure whether each suggestion in a properly formatted answer is suitable for the project.
German results depend on the material and operation
The paper compares languages across tasks, and these comparisons vary in how closely they align the data. The broad news tagging scores are higher for Tagesschau, and the detailed news tagging scores are lower there. GermanQuAD falls within the range of the two English reading comprehension benchmarks on F1 for every candidate. German legal entity scores are substantially lower than the English Wikipedia entity scores. This last result is compatible both with greater difficulty handling German and with the challenge of applying a legal taxonomy to court decisions. The authors raise the difference in domain explicitly.
The generation results give a similar lesson. CNN/DM and German MLSUM both use news, but the sources and references differ. The English and German portions of DISCO are a closer comparison because they come from the same multilingual dataset and use the same type of correction task. The candidates still score lower on the German portion. This strengthens the practical case for checking German disfluency correction separately. The study’s task-by-task results are the basis for the platform’s English release decision. A general ranking of what the systems can do in each language would require additional controls.
Limitations
Limits identified by the authors
The authors describe the assistant as a zero-shot tool whose suggestions may miss distinctions important to a specific project. A researcher can provide fields and categories and edit the instructions, but the study leaves adaptation to that project’s examples for future work. This matters when a label takes its meaning from decisions made by the research team. A short category description can convey the main idea, while the difficult decisions may depend on how the team has already coded ambiguous cases. The authors suggest that training on user-specific data could improve the contextual fit of suggestions.
The implementation was limited to English-language projects. The authors link that choice to the gaps observed on several German tasks, and identify comparable support across languages as a subject for more research. The English restriction is a decision about what to release after this evaluation. On the German datasets, the evidence is strongest for particular settings, such as identifying broad news categories or answering reading comprehension questions. Performance across the more detailed and generative tasks gives a less consistent picture.
Dataset selection is another stated limitation. The authors sought data close to likely uses of the platform, but some activities lack a convenient public counterpart. The fluency datasets contain questions or interactions with an agent. The span datasets supply entities and quotations, while coding in a qualitative project can apply substantial passages to categories that express an interpretation. News data fit some projects directly and proxy for others. A benchmark can be reproducible and relevant to a task without fully representing the material and forms of judgment that arise in practice.
The authors also discuss difficulties with complex reasoning, contextual nuance and common sense. They note that biases in training data can affect suggestions. Manual validation is their design response to these limitations. Researchers can inspect the prompt, examine the result alongside the existing record and decide what to apply. These features provide a route for correcting an unsuitable suggestion. How effectively they catch errors or biases in actual projects remains a matter for evaluation.
Limits visible in the experimental setup
The evaluation is a comparison of benchmark outputs and an account of implementation. It leaves the impact on research time, review effort and the quality of final analyses unmeasured. Early user testing informed an interface decision about when the assistant should be available. The score tables measure different outcomes, such as reference overlap or correct labeling. A high score may translate into less review when most suggestions are easy to check. A pattern of subtle errors could instead require careful reading of every proposed change. Neither outcome can be read directly from the task averages.
The document classifiers use predetermined categories and descriptions. This matches the interface’s ability to take a researcher’s list of tags. It offers limited evidence about discovering new categories or developing a hierarchy as the analysis progresses. The span tasks have the same distinction. They test how well a given category can be applied and located. The constructs in the benchmark are mostly named entities or parts of reported speech, so the evidence is narrower than the range of judgments involved in assigning and revising a qualitative code. The capacity to propose new codes appears in the paper as future work.
The language comparisons also have limits of attribution. An English Wikipedia entity benchmark and a German legal one change both language and domain. The news sources use their own category inventories. The English and German summary collections have references written for different publications. Scores across these pairs describe how the systems did on the data chosen for the platform. A causal estimate of language effects would need to control more of the content, label definitions and expected outputs. DISCO supplies evidence for the same task within a multilingual corpus, with its own limits as a proxy for interviews.
The meaning of the extraction and generation scores depends on the reference. An overlapping answer can still omit information required for a metadata field. A well-formed record can have fields that are hard to verify because the source is ambiguous. For corrections, a fluent sentence that shares much of its wording with the reference may still change what the speaker meant. In summarization, word and sequence overlap give evidence about similarity to the news reference. The study leaves claims about preservation of facts and selection of the information that matters to a particular research question to a separate evaluation.
The format errors present another interpretive limit. Shared parsing rules let the authors compare candidates in a consistent workflow. The scores include failures of those rules to recover answers, which is exactly what matters when the same structured output is needed by an application. They leave the content quality of unparsed answers mostly unresolved. The paper gives examples of the form the failure took, but supplies no experiment in which corrected parsing is applied to the same responses. As a result, the extent of the possible recovery is unknown.
Training and deployment are also distinct parts of the argument. Selecting compact variants run in FP16 is consistent with the authors’ interest in accessible, local use. The experiments used an A100 GPU. The paper describes the software and the background job mechanism, while leaving throughput, memory use and interactive delays on other machines unquantified. Its evaluation likewise compares the selected candidates under the shared prompt setup. How the results would change with larger candidates, different prompts or further adaptation is outside the scope of the comparison.
Finally, the assistant can show a system’s stated reasoning and the text or categories it proposes. This lets a researcher inspect an output and decide whether the explanation is supported by the source. The effectiveness of those explanations as a review aid remains unmeasured. The practical safeguard described by the authors is the researcher’s authority over the record, exercised through the ability to keep, replace or merge the existing work. That authority is compatible with a wide range of possible suggestion quality, which is why the benchmark results and the interface design answer different questions.
What came after
The paper’s follow-on work remains untraced through subsequent publications. The concrete continuation it documents is the move from benchmark experiments to the optional assistant in the Discourse Analysis Tool Suite. In the course of that work, early users changed the point at which the assistance could be invoked. A feature initially imagined for import became available whenever a researcher selected documents and requested assistance. The benchmark prompts entered the application with a review step, and generated suggestions became inputs to a decision about how to update the project. This is the extension established within the study itself.
The authors propose adding suggestions for new tags and codes. Their benchmark uses supplied taxonomies, so this extension would move assistance into the period when a project is still developing its categories. Suggesting an existing code for a passage calls for matching the passage to the supplied definition. Suggesting a new code would give the researcher an additional candidate interpretation to consider and would call for evidence suited to that exploratory process.
The authors also propose finding more datasets from domains relevant to digital humanities research. Their examples show why this is a distinct line of work. News references provide an established way to assess summaries, while interview transcripts would better represent the setting that motivated fluency correction. Entity annotations provide clear boundaries and labels, while project-specific codes could test how the assistant handles longer or more interpretive selections. More representative data would bring the benchmark evidence closer to the decisions made at review time.
A further direction is to test prompts that include a small number of worked examples. The authors also identify existing user activities, including document tagging and passage annotation, as potential training data for adaptation to individual projects. The paper reports neither the results of those proposed experiments nor a subsequent deployment based on them. Its documented contribution is the evaluation of shared instructions and the integration of an assistant whose suggestions remain subject to the researcher’s approval. Few-shot learning and Fine-tuning
Cite
Cite as Tim Fischer and Chris Biemann. 2024. Exploring Large Language Models for Qualitative Data Analysis. Proceedings of the 4th International Conference on Natural Language Processing for Digital Humanities.
@inproceedings{fischer2024exploring,
title = {{Exploring Large Language Models for Qualitative Data Analysis}},
author = {Tim Fischer and Chris Biemann},
booktitle = {Proceedings of the 4th International Conference on Natural Language Processing for Digital Humanities},
year = {2024},
doi = {10.18653/v1/2024.nlp4dh-1.41},
url = {https://doi.org/10.18653/v1/2024.nlp4dh-1.41}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/fischer-2024-exploring-large-language-models-qualitative/