Planted Themes: Testing Automated Qualitative Coding Against Synthetic Interviewees with Known Ground Truth

Language models can now read thousands of interview transcripts and propose the themes that run through them. That makes qualitative research possible at a scale no team of human coders could reach. Nobody can yet say how often these systems are right. When a pipeline returns a taxonomy of themes, there is usually no answer key. Evaluation falls back on small human-coded corpora or on another language model grading the output, and the authors of HICode name this missing ground truth as an open problem. Two failures matter most and are the hardest to see without an answer key. The first is a pipeline that drops a theme voiced only by a small subgroup of participants. The second is a pipeline that turns one participant's vivid one-off anecdote into a "theme."

We propose to build interview corpora whose themes are known in advance. Simulated interviewees, built from language models, are given a persona and a two-layer memory. The stable layer holds the stances and concerns we plant, at prevalences we choose and spread unevenly across demographic subgroups. The episodic layer holds one-off anecdotes that are deliberately not themes. These interviewees answer a real topic guide in their own words, and every automated coding pipeline is scored against the planted truth. The work stands or falls on one validation: pipeline rankings on planted corpora must agree with rankings on real human-coded corpora better than cheaper evaluation methods do.

Core Claim

Separating what a simulated participant is (enduring stances) from what happened to them (episodes) in a layered memory produces synthetic interview corpora with three properties. Theme prevalence is controlled and known. Themes are expressed indirectly rather than recited. Within-group variation looks like real interviews rather than a stereotype. With those properties, "how well does this pipeline find themes?" stops being an opinion and becomes a measurement. Two numbers come out of it. The first is a pipeline's detection floor: the lowest prevalence at which it reliably recovers a planted theme, broken down by subgroup. The second is its false-theme rate: how often planted one-off anecdotes come back as themes.

The idea differs from its nearest neighbours in what the simulated people are for. SparkMe (seed: SparkMe) already uses about 200 language-model personas as simulated interviewees. They serve there to test an interviewer's topic coverage, and nothing is planted for downstream coding to recover. MicroVerse (seed: MicroVerse) gives agents an immutable "soul file" plus a mutable identity layer, and lets reflection rewrite that identity so that drift can be studied. We reuse the immutable core but forbid self-revision, because here drift corrupts the answer key and must be measured as a threat to validity. Bi-Mem identified the "Spicy Food Paradox": in personalized chat memory, an episodic outlier gets summarized upward into a lasting trait. We turn that failure into a controlled stimulus for qualitative coding, where it has never been measured.

Research Program

The generator. Each simulated participant has a demographic profile, sampled as in PERSONA from census-style records, and a memory with three layers whose division follows LeanMem.

A stance layer, analogous to LeanMem's profile memory, holds planted themes. Each theme is a short abstract proposition, such as distrust that AI tools respect professional judgment. Each is assigned to participants with a chosen prevalence in each subgroup. Some themes are broad, at 40–60% of everyone. Others are rare and concentrated, at 5–15% and only within one subgroup. Each planted theme also gets an expression-strength setting: explicit, hedged, or only implied through an example.

An episode layer, analogous to LeanMem's event memory, holds concrete anecdotes. Most anecdotes illustrate a stance. Some are planted distractors: vivid, emotionally loaded single events that the participant explicitly marks as atypical for them.

A biography layer holds incidental details that make answers specific.

At each interview question, the simulated participant retrieves the relevant stance and episode entries and answers in a register drawn from its profile. It is never shown the theme labels themselves, only paraphrased seeds, so that label wording cannot leak into transcripts.

Interviews are run with a fixed semi-structured topic guide. The main condition uses a fixed scripted interviewer. A secondary condition uses a SparkMe-style adaptive interviewer, to check that conclusions survive adaptive follow-up.

Why the layering matters. The layering is aimed at two failures documented in the identity-conditioning literature. Persona-prompted models collapse toward a group's modal view and underproduce within-group variance (Whose Opinions Do Language Models Reflect?; Are Large Language Models Chameleons?). Explicit prevalence sampling in the stance layer forces variance that the model would not produce on its own. Persona instructions also fade over long dialogs: Measuring and Controlling Persona Drift in Language Model Dialogs reports a roughly 10% drop within 8–16 turns for GPT-3.5-turbo-16k. Per-turn retrieval from a fixed stance layer re-states the identity where it is needed. We verify this directly by checking that each planted stance is still detectable in the final third of every interview.

One caution comes from Can LLMs Faithfully Enact Superforecaster Personas?. That paper found that persona prompting copies surface style but not human reasoning patterns. We do not claim our interviewees reason like people. We claim only that they carry planted content in a form that is as hard to extract as real interview content, and we test that claim empirically below.

What gets scored. The pipelines under test are HICode, the four-stage AI Co-Ethnographer, LLM-in-the-loop thematic analysis, embedding-centroid coding (Using Text Embeddings for Deductive Qualitative Research at Scale in Physics Education) for the deductive setting, and TopicGPT and LLooM, the baselines HICode compared against. Each pipeline is run with several backbones and prompt variants, giving roughly twenty pipeline configurations in total.

Discovered themes are matched to planted themes by a fixed matcher: an LLM judgment plus embedding similarity, calibrated against human matching on a held-out sample. Each configuration is scored on four measures. Theme recall by prevalence traces out the detection floor. Subgroup attribution asks whether the pipeline says who holds the theme. False-theme rate counts how often distractor episodes are promoted to themes. Grounding asks whether cited quotes actually support the theme.

Baselines

The question this proposal answers is "which way of evaluating qualitative coding pipelines tells you the truth?" The baselines are therefore competing evaluation instruments, and each is judged by how well its pipeline ranking matches a human-coded reference ranking.

The reference point is human-coded real data. We use the CVDQuoding and HiAICS interview corpora from the AI Co-Ethnographer study and the Astro Queries and Media Frames sets from HICode, re-scored with fresh human theme matching for all twenty configurations. This reference supplies the ranking every instrument is trying to reproduce. Its known reported numbers set the scale of what pipelines achieve: HICode reports human-evaluated precision of 0.72 and recall of 0.74 on Astro Queries, and the AI Co-Ethnographer reports code-assignment relevance of 0.760 on CVDQuoding and 0.560 on noisier HiAICS transcripts.

The strongest existing competitor is LLM-as-judge rating of each pipeline's taxonomy on the same real corpora. This is the evaluation used by the AI Co-Ethnographer, which reports an overall theoretical-findings quality of 3.49 out of 5 on HiAICS, with insight at 3.29 and grounding at 3.42. It is the strongest competitor because it is cheap, needs no answer key, and is already the field's default. It is run on identical corpora and outputs, with the same judge-model budget as our matcher. Planted corpora beat it if their rank correlation with the human reference is higher, with a bootstrap interval over pipeline configurations that excludes zero difference.

The naive baseline is template planting: theme sentences are inserted nearly verbatim into otherwise generic synthetic answers. This is the "do nothing clever" version of a planted corpus.

The ablation that isolates the key ingredient is a flat-persona corpus. Here a single prompt lists the participant's demographics, themes, and anecdotes, with no layered memory, no prevalence-controlled stance sampling, and no per-turn retrieval. This is essentially how SparkMe-style simulated interviewees are built. It uses the same generator model, topic guide, number of participants, and token budget. If the layered corpus does not beat the flat corpus on rank agreement with the human reference, the layered memory is not doing work, and we would report that.

Why not just…?

Why not just evaluate on existing human-coded corpora? This is the gold standard, and we use it as the validation target. It cannot answer the questions we care about, though. Each real corpus has one codebook from one analytic team, a handful of themes at whatever prevalence happened to occur, and no record of which anecdotes the coders judged atypical. The detection floor for a 5%-prevalence subgroup theme cannot be measured on a corpus that may contain no such theme. The planted instrument is worth building only where it extends real data. The rank-agreement experiment determines whether it can be trusted to do so.

Why not just have an LLM judge grade the themes? The judge and the coder are often the same model family, so they may share blind spots. A judge cannot penalize a missing minority theme it never knew existed. The AI Co-Ethnographer's insight score of 3.29 out of 5 shows judges can register shallowness, but not omission. This alternative is a real threat on ranking agreement for broad themes, where judges may do fine. Our head-to-head comparison on the twenty configurations settles it, and we expect any advantage of planting to come from rare-theme and false-theme behavior.

Why not just prompt a persona with the themes and skip the memory architecture? This is the most serious alternative, and it is exactly the flat-persona ablation. The literature predicts two problems. One is variance collapse (Are Large Language Models Chameleons?), which would make every subgroup member voice the theme the same way. The other is instruction fading over long interviews (Measuring and Controlling Persona Drift in Language Model Dialogs), which would make late-interview answers generic. Either would make recovery artificially easy or artificially hard. Whether these effects are large enough to distort pipeline rankings is an empirical question. If the flat corpus validates as well as the layered one, we drop the architecture and recommend the simpler generator.

Why not just use real participants recruited at scale? Real recruitment cannot set prevalence or plant distractors, and its themes are still unknown until someone codes them. It costs the same as the human reference, which we already include.

Proposed Experiments

Validity. The first experiment builds domain-matched planted corpora for each of the two interview datasets (CVDQuoding and HiAICS) and the SparkMe profession domains, using the same topic guides, about 100 participants per corpus, and three random seeds. All twenty pipeline configurations are scored on both planted and real corpora. The decisive check is Kendall rank correlation with the human reference, compared across four instruments: layered planted corpora, flat-persona corpora, template corpora, and LLM-judge scores. The proposal fails if layered planted corpora do not beat LLM-judge agreement.

Realism. Two checks bound how unrealistic the transcripts are. Qualitative researchers blindly try to tell real from synthetic answers to the same questions. We also compare within-subgroup lexical and stance diversity against the real corpora. We measure label leakage as the overlap between theme seed text and transcripts, and expect template corpora to score worst.

Findings the instrument enables. If the instrument validates, we report detection-floor curves for each pipeline, split by subgroup. This tests whether single-perspective coders systematically miss themes held by groups that language models already represent poorly, such as the older and religious-minority groups that Whose Opinions Do Language Models Reflect? found least aligned. We also report false-theme rates under distractor anecdotes. As one intervention, we add a Bi-Mem-style top-down reconciliation pass to HICode's bottom-up clustering and test whether it lowers false themes without raising the detection floor. This is the experiment that tells practitioners whether bottom-up clustering should be trusted on its own.

Workshop authors to connect with