Worst-Voice Theme Prototypes: Geodesically Convex Theme Synthesis for Thematic Analysis

Thematic analysis is the qualitative method of reading interview or survey text, tagging passages with short labels ("codes"), and grouping codes into higher-level "themes" that describe what participants experienced. Language-model pipelines now automate much of this work. Their weakest step is synthesis, where many codes are merged into a few themes. Today that merging is done by repeated prompting, so it changes from run to run, gives no account of which participants a theme actually represents, and tends to let the most talkative participants dominate. We propose replacing that step with a small, well-posed geometric problem. Codes are placed in hyperbolic space, a curved space whose volume grows fast enough to hold tree-like concept hierarchies without squashing branches together. Each theme is then represented by the point that minimizes a smoothed worst-case distance to every participant's codes. This objective is geodesically convex, meaning convex along the shortest paths of the curved space. As a result the theme center is unique, reproducible to numerical precision, and comes with a certificate of how well the least-served participant is covered.

Geodesic acceleration, which extends Nesterov-style momentum to curved spaces, is how we make this cheap enough to use. It lets us solve the theme problem thousands of times: once per researcher edit in an interactive session, and once per bootstrap resample of participants, which yields confidence regions for themes. The contribution is therefore not "faster topic models." It is an auditable synthesis step whose outputs can be traced back to verbatim quotes and to the specific participants a theme under-represents.

Core Claim

Once codes have been embedded, turning them into themes can be written as a strongly geodesically convex problem on a bounded region of hyperbolic space. Solving that problem gives three things that heuristic LLM editing loops do not. The first is determinism: given the same embeddings, the same theme centers come out. The second is a tunable coverage guarantee for the participant each theme serves worst. The third is a per-participant weight that flags where a theme should be split.

Let $z_i$ be the hyperbolic embedding of code $i$ and $P$ the set of participants contributing codes to a candidate theme. Let $D_p(x)$ be the mean squared hyperbolic distance from a candidate center $x$ to participant $p$'s codes, and let $\tau>0$ be a temperature. The theme center solves

$$\min_{x \in B_R}\; \max_{w \in \Delta_P}\; \sum_{p \in P} w_p D_p(x) \;-\; \tau \sum_{p\in P} w_p \log w_p \;=\; \min_{x\in B_R}\; \tau \log \sum_{p \in P} \exp\!\big(D_p(x)/\tau\big),$$

where $\Delta_P$ is the set of weightings over participants and $B_R$ is a hyperbolic ball of radius $R$.

The two limits of $\tau$ bracket the design space. As $\tau\to\infty$ the solution is the ordinary Fréchet mean, the curved-space average in which every code counts equally. As $\tau\to 0$ it becomes the center that minimizes the worst participant's distance. On a space of non-positive curvature each $D_p$ is strongly geodesically convex, and so is the log-sum-exp of such functions. The optimal weights $w^\star$ are a softmax of the $D_p$, and they name the participants the theme strains to cover.

Research Program

The pipeline has four stages. First, a locally hosted open-weight LLM produces initial codes per excerpt. Running locally avoids the privacy problem of sending transcripts to proprietary APIs, which LLM-in-the-loop raises. Second, the codes are embedded in the Poincaré ball. This follows HyperMiner, which places generic concepts near the origin and specific ones near the boundary and adds a parent–child contrastive loss. We reuse that embedding recipe, but apply it to inductive codes rather than news-topic words, and we do not rely on WordNet structure. Third, an LLM or a researcher proposes a provisional grouping of codes into themes, and each theme center is computed with the objective above. Fourth, each center is linked back to evidence by retrieving the verbatim excerpts nearest to it. This addresses the gap flagged for curved-space models such as Fréchet Geodesic Boosting, which uses geodesic residuals and Fréchet-mean leaves for regression on manifold-valued targets but needs metric-space SHAP to become interpretable. Here interpretability comes from nearest-quote retrieval and from the weights $w^\star$. Sub-themes are handled by applying the same problem recursively inside each theme, which gives a hierarchy of nested centers.

For the solver we use Riemannian accelerated gradient methods from Zhang et al. and Liu et al.. These replace linear momentum with exponential and logarithm maps and achieve a square-root dependence on the condition number for strongly geodesically convex problems.

These methods have a known weakness. The guarantees assume iterates stay in a region where curvature penalties are bounded. Ahn et al. show that discretizing accelerated flows on curved spaces distorts distances. RAMMA handles this with metric projection onto a compact set. We restrict iterates to $B_R$ by metric projection, following RAMMA. This restriction also has a qualitative reading: a theme center pushed toward the boundary is an over-specific "theme" that is really a single code. As a curvature-free alternative, the silver step-size method VTRGD transports gradients to a fixed base point, here the ball's origin, and uses a non-constant step schedule. It needs no curvature upper bound, though its proven rate is slower than Nesterov's.

The entropic adversary above has a closed form, so the problem reduces to plain minimization. The min-max machinery matters when the adversary is constrained. A qualitative researcher may want, for example, to cap the total weight any single demographic group can receive, so that one outlier group cannot dictate the theme. That case has no closed form. It is a strongly-convex/strongly-concave saddle problem of the kind RAMMA solves with separate smoothness constants and inexact proximal steps. RAMMA's analysis is stated for pairs of Hadamard manifolds. Checking that it carries over to our flat, constrained weight simplex is part of the work.

Baselines

The naive reference point is the flat pipeline. The same local LLM codes are embedded with a sentence encoder, grouped by agglomerative clustering, and each cluster is summarized by its Euclidean centroid and nearest quotes. This is the method a practitioner would use by default. We give it the same code set, embedding model, and hyperparameter search over the number of clusters as the proposal. It is beaten if our themes score higher on worst-participant coverage and run-to-run stability without losing agreement with human codebooks.

The strongest existing method is the multi-agent pipeline of SFT-TA. It codes, aggregates, generates, and refines themes over up to three LLM editing rounds with agents fine-tuned on expert pairs. On the AAOCA clinical interviews it reports expert Coverage of 5.0/5.0, a +1.48 Actionability gain, and +15.3% cosine similarity to reference themes relative to a GPT-4o baseline. Because its Coverage is already at ceiling, we do not claim to beat it on mean Coverage. Our target is equal Coverage and Actionability with lower run-to-run variance, measured over ten seeds, and better coverage of the least-represented participants.

For fair comparison we swap only the aggregation and refinement agents for our solver and keep its coding agents. For codebook application we also compare against LLM-in-the-loop. That work reports Cohen's κ of 0.81 on Password Manager, against a human–human benchmark of 0.77, and 0.87 on Music Shuffle. Beating it means matching those κ values when our codebook is applied by the same machine coder.

Three ablations isolate our ingredients. Setting $\tau\to\infty$, which gives the plain hyperbolic Fréchet mean, isolates the worst-voice objective. Running the identical objective in Euclidean space isolates curvature. Solving with unaccelerated Riemannian gradient descent at matched tolerance isolates acceleration.

Why not just…?

Why not just let the LLM agents merge and split themes, as SFT-TA does? The SFT-TA authors themselves name dependability as a limitation. Their editing loop is stochastic and has no notion of which participants a theme represents. Our run-to-run stability metric and minority-injection test measure this directly. If SFT-TA's themes turn out to be stable across seeds and already cover planted minority groups, the case for our method narrows to auditability alone, and we will report that.

Why not just cluster sentence embeddings in Euclidean space? HyHTM documents the crowding problem. It embeds words in the Poincaré ball inside a factorization model and shows that flat spaces squeeze sub-branches of a hierarchy together. However, the codebooks in thematic analysis are shallow, often two or three levels, so this advantage may shrink. The Euclidean ablation of the same robust objective tells us whether curvature is worth its cost. If it is not, the worst-voice objective still stands in flat space, and we would recommend that version.

Why not just use plain Riemannian gradient descent, since the datasets are tiny? This is a real threat. With 35 to 280 responses, a single solve takes milliseconds either way. Acceleration only earns its place when solves are repeated at scale, for example 1,000 bootstrap resamples times the number of themes times every researcher edit, or when the problem is conditioned badly at small $\tau$, which is where VTRGD found constant-step methods slow down. We measure gradient calls to a fixed tolerance as a function of $\tau$. If the speedup is negligible in the regime researchers actually use, we will say that plain gradient descent suffices. The core contribution, convexity and the coverage certificate, does not depend on acceleration.

Proposed Experiments

We will use Music Shuffle and Password Manager from LLM-in-the-loop, and the AAOCA interviews from SFT-TA if access is granted. No public reported results were found on Lacuna for hyperbolic or robust theme centers on any of these datasets.

The metrics are Cohen's κ for codebook application; cosine similarity and METEOR against reference themes; expert Coverage and Actionability ratings; and cross-seed theme stability, measured as the adjusted Rand index between theme assignments. We also report worst-participant distance, and nearest-quote fidelity, meaning expert judgment of whether the retrieved quotes support the theme label.

Four checks are decisive. The first is a minority-injection test. We plant a small, coherent participant subgroup and ask whether small $\tau$ recovers a theme covering it, where the Fréchet mean and SFT-TA absorb it. The second tests whether the weights $w^\star$ predict where expert analysts independently choose to split a theme; we score this with AUROC against their split decisions. The third measures, as a function of $\tau$ and bootstrap size, whether accelerated and projected solvers reduce gradient calls relative to plain gradient descent. It also checks whether removing projection causes the drift and inflated curvature penalties that Ahn et al. predict. The fourth runs the demographic-cap variant with a RAMMA-style solver and tests whether it changes themes relative to the entropic closed form enough to justify the min-max machinery.