Paper · Open models · Version v1
Weighted Intra-Text Coherence as a Measure of Topic Models' Interpretability
First published: arXiv, . Original
Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.
This page holds the text of the paper, converted to HTML; figures may be left out.
We ask which coherence measures identify models and topics that distinguish the subjects in a document. To measure intra-text coherence, we propose averaging association scores for nearby words in training texts, weighting each pair occurrence by the topic's posterior probabilities at both positions. We compared 24 models in each of seven corpora, including our RWGT-2026 collection of Russian Wikipedia articles labeled by subject. We averaged topic-level coherence over each model's 20 domain-specific topics. A large language model annotated 1,300 held-out documents. Word occurrences with the same subject label in a document formed a thematic chain. Eligible chains had at least two occurrences, sufficient vocabulary coverage, and defined topic probabilities. A topic led a chain if it alone had the highest mean posterior probability over the chain's in-vocabulary positions. Keeping that topic fixed, we took its mean in the chain it led and subtracted its highest mean in any other eligible chain of the document. For model consistency with the chain annotations, we averaged all defined differences. For a topic, we averaged those from chains it led. Across corpora, posterior-weighted normalized pointwise mutual information (NPMI) had the highest mean Spearman correlation with model consistency (+0.335). The mean was -0.254 for NPMI based on each topic's ten most probable words. We ranked topics within each model by coherence and consistency, then took the median correlation for each corpus. Cosine SemantiC, which compares the topic profiles of nearby words assigned to the same topic, had the highest mean of the seven medians (+0.241). In 982 of 999 shuffles of subject labels within documents, the mean model-level correlation for weighted NPMI fell below its observed value. For cosine SemantiC, the observed mean of the seven medians lay within the central 95% of the shuffled values.
[ Extension=.otf, UprightFont=*-Regular, ItalicFont=*-Italic, BoldFont=*-Bold, BoldItalicFont=*-BoldItalic ]
Abstract
We often judge a topic’s coherence by its most probable words. When several subjects run through the same document, we also want to know whether a topic model can distinguish them. We propose measuring intra-text coherence by averaging association scores for nearby words in training texts, weighting each pair occurrence by the topic’s posterior probabilities at its two positions. We compared 24 models in each of seven corpora, including RWGT-2026, our published collection of Russian Wikipedia articles labeled by subject. We averaged topic-level coherence over each model’s 20 domain-specific topics, excluding any background topic. A large language model annotated 1,300 held-out documents. Word occurrences assigned the same subject label within a document formed a thematic chain. Eligible chains had at least two occurrences, sufficient vocabulary coverage, and defined topic probabilities. We averaged each of the 20 topics’ probabilities over a chain’s in-vocabulary positions. If a single topic attained the highest mean, it led that chain. When the document contained another eligible chain, we took the leading topic’s mean in its own chain and subtracted its highest mean across the other eligible chains. For model consistency with the chain annotations, we averaged all defined differences. For topic consistency, we averaged those from chains the topic led. Across corpora, Spearman correlations with model consistency averaged for posterior-weighted normalized pointwise mutual information (NPMI) and for NPMI based on each topic’s ten most probable words. The model with the highest weighted NPMI in each corpus came within 2.08 percentage points of the best observed consistency. We correlated topic ranks by coherence and by consistency within each model, then took the median correlation in each corpus. Cosine SemantiC, which compares the topic profiles of nearby words assigned to the same topic, had the highest mean of the seven medians (). Shuffling subject labels within documents usually lowered the mean model-level correlation for weighted NPMI. For cosine SemantiC, the same shuffles could yield a topic-level correlation as high as the original.
1 Introduction
How should we choose a topic model if we want to interpret its topics and trace them through a document? A topic model represents each topic as a probability distribution over words and each document as a mixture of topics. We can use an article’s topic proportions to find related publications [1]. To explain why two articles are similar, we need to identify a topic they share and the words that express it in each.
A common way to judge whether a topic is interpretable is to look at its most probable words, or top words. Newman et al. [2] asked judges to rate each topic on the basis of its top ten words. One indication of coherence was how readily the judges could give the list a short, meaningful label. Their ratings correlated well with coherence scores based on pointwise mutual information (PMI). Here, PMI compares the observed frequency of two words occurring in the same window with the frequency expected under independence. Mimno et al. [3] used co-occurrence within training documents. For each pair of top words, their measure reflects how often documents containing the higher-ranked word also contain the other.
Alekseev et al. [4] measured how much of a text pairs of top words cover. For each topic, they marked both word positions whenever two of its top ten words occurred near each other. Across all topics, they marked of the word positions in the PostNauka corpus and in the Wikipedia sample they analyzed. They proposed measures of intra-text coherence. One measures the thematic similarity of nearby words. Another measures the average length of passages over which a topic persists. These measures cover words outside the top-word list without relying on PMI. Could we extend Newman’s approach by using PMI to score pairs of nearby words throughout the training texts?
In the experiment by Newman et al. [2], the judges saw the same ten words for which the authors computed coherence. The comparison showed how closely the measure reflected the judges’ sense of whether those words belonged together. To test how well a model traces a topic through a document, we need to know which word occurrences in that document refer to the same subject. Alekseev et al. [4] joined passages on known subjects to form new documents. They then tested how well the model recovered the subjects of the original passages.
In naturally occurring text, two subjects can run through the same sentences. A PostNauka lecture description uses the word нанотехнологии (‘nanotechnology’) in a question about cancer treatment and again in a question about diagnosis.1 The repeated word links the two references to technology, while treatment and diagnosis form a medical thread. We call the sequence of word occurrences that refer to the same subject in a document a thematic chain. Do models that distinguish these chains more clearly in new documents also have higher coherence on the training texts? Once we have chosen a model, which coherence measures identify the topics within it that best distinguish the chains? Both questions concern one aspect of interpretability, the ability of a model’s topics to distinguish different subjects within the same document.
- We propose a family of intra-text coherence measures based on weighted averages. In the training texts, we take pairs of distinct words from the model’s vocabulary that occur near each other. For each topic, we average PMI or one of its variants, weighting each occurrence of a pair separately. The more probable the topic is for both word occurrences in that document, the greater the pair’s posterior weight. Following Vorontsov and Potapenko [5], we call topics that describe particular subjects domain-specific topics. Their mean coherence gives the model’s score.
- We developed a way to compare coherence measures using annotated texts. A large language model (LLM) annotated word occurrences in 1,300 held-out documents from seven corpora using predefined subject classes. Occurrences assigned to the same class in a document formed a chain. We compare chains of at least two word occurrences with sufficient coverage by the model’s vocabulary (Section 3.6). For each domain-specific topic, we average its posterior probability over the in-vocabulary word occurrences in a chain. If a single topic attains the highest mean, it leads that chain. If the document has other eligible chains, we subtract the highest of their means for that same topic from its mean in the chain being scored. A model’s consistency with the chain annotations is the average of these differences over all the chains we can score. For an individual topic, we average over the scored chains it leads.
- We compiled and released RuWiki-Good-Thematized-2026 (RWGT-2026), a collection of articles recognized for their quality by the Russian Wikipedia community. We defined 28 subject areas and assigned each of the 17,251 articles one or more of these labels. We mapped Wikipedia’s editorial sections to those areas, using AI-assisted review of article categories and text excerpts for sections that spanned several subjects. We also released preprocessed versions of BBC News, SciNews, WOS-11967, and Watan-2004 that preserve word order and have fixed training, calibration, and held-out sets. For PostNauka, we added the original texts to the existing sequences of normalized words. For 20 Newsgroups, we used the previously published collection. Table 1 links to all seven collections.
- In each corpus, we ranked 24 models by how well they distinguished the annotated chains. We compared this ranking with the rankings by 28 coherence measures and by perplexity, which reflects the probabilities a model assigns to words in held-out documents. Posterior-weighted normalized PMI (NPMI) gave the highest mean Spearman correlation across the seven corpora (). Most random regroupings of the same word occurrences within documents gave a lower seven-corpus mean. Within each model, we took the topics with a consistency score and compared their ranking by consistency with their rankings by each of the 27 topic coherence measures. For each measure, we took the median correlation across the models in each corpus and then averaged the seven medians. Cosine SemantiC [4], which measures the similarity of nearby words’ topic profiles, gave the highest mean of the seven medians (). This mean fell within the central 95% of the corresponding values across random regroupings within documents.
2 Related Work
Newman et al. [2] asked readers to rate how well a topic’s top words fit together. The UCI score correlated well with their ratings. It uses PMI for pairs of top words, estimated from co-occurrences in short windows of Wikipedia text. For UMass, Mimno et al. [3] counted the training documents containing each top word and each pair of top words. Röder et al. [6] built a profile for each top word from its co-occurrences with the words on the list. Their measure compares each profile with the sum of all the profiles using cosine similarity. These measures indicate how closely the top words are related in meaning. A reader may also recognize the topic from other words in a passage.
Lau, Newman, and Baldwin [7] evaluated individual topics and whole models using readers’ judgments of top-word lists. Readers rated a list for coherence or identified a word added from another topic (the word intrusion task). The authors averaged topic scores within each model, then correlated the human and automatic averages across models. For individual topics, they computed correlations across the pooled topics of all models trained on the same corpus. Within each model, we rank topics by how well they distinguish annotated chains within documents and compare that ranking with the one given by each topic coherence measure.
Alekseev, Bulatov, and Vorontsov [4] proposed three measures of intra-text coherence that take word order into account. SemantiC measures the thematic similarity of nearby words. TopLen measures how long a topic persists, and FoCon tracks how the probabilities of the most likely topics change from one word to the next. To test the measures, the authors joined passages from PostNauka articles on different subjects. Each word inherited the subject label of its source passage. Across models, they correlated coherence with two measures of segmentation quality. One used the posterior probability of each word’s source topic. The other counted words whose most probable topic matched that of the source passage. In natural text, words referring to two subjects can be interleaved within a single sentence.
Lund et al. [8] evaluated models’ topic assignments for individual word occurrences. Readers saw a passage with one word underlined. They chose which of five topics, each represented by its top words, best fit that word. The authors combined the readers’ responses into one choice per occurrence and measured, for each model, how often that choice matched the model’s assignment. In each of three English-language corpora, SWITCHP tracked this agreement most closely. It measures local consistency by checking whether adjacent words receive the same topic assignment. In our task, an LLM uses context to assign word occurrences to predefined subject classes. To measure how clearly the leading topic distinguishes a given chain, we compare its mean posterior probability there with its highest mean in any other eligible chain of the same document.
3 Methods
A large language model labeled word occurrences in held-out documents using predefined classes, independently of the topics learned by the models under evaluation. Within a document, all word occurrences that the LLM assigns to the same subject class form a thematic chain in their order of appearance. We compare each topic model’s coherence on the training texts with its ability to distinguish these chains (Figure 1).
Figure 1: Evaluating topic coherence measures. denotes a corpus. The matrix gives the distribution of words for each topic, and gives the distribution of topics for each document. In the experiment of Newman et al. [2] (left), human judges rated the coherence of each topic’s top ten words on a scale from 1 to 3. The authors also computed coherence () for each list. One measure used Wikipedia to estimate the pointwise mutual information (PMI) of word pairs. They calculated Spearman’s rank correlation () between the coherence scores and the judges’ ratings across topics. In our experiment (right), one branch from leads to the topic models (, ). We used the training texts to fit these models and compute coherence. On the other branch, a large language model used descriptions of subject classes (class cards) to annotate word occurrences in held-out documents independently of the learned topics. Within each document, occurrences assigned to the same class form a chain. We use the topic probabilities at the annotated positions to measure how well a model distinguishes chains within the same document. We call this score consistency with the chain annotations (). We calculated Spearman’s rank correlation between the rankings by and by (Eq. (4)) across models within each corpus. For measures that score individual topics, we repeated the comparison across topics within each model using (defined below the equation). On a new corpus, researchers can use a measure selected in the model comparison to rank models, or one selected in the topic comparison to choose topics within a model.
3.1 Probabilistic topic modeling
Let be the probability of word in topic , and let be the proportion of topic in document . Each column of gives the distribution of words for one topic, and each column of gives the distribution of topics for one document. Summing over topics gives the probability of word in document ,
For an occurrence of in , Bayes’ rule gives the posterior probability of topic ,
The topic proportions for the whole document provide the context for the word. We follow Vorontsov and Potapenko [5] in using domain-specific topics for particular subjects and background topics for vocabulary shared across subjects. The denominator in Eq. (1) sums over all the model’s topics, including the background topic when present.
With additive regularization of topic models (ARTM), we add a weighted sum of regularizers to the training log-likelihood and maximize the resulting objective [5]. A decorrelation regularizer, for example, penalizes similarity between the word distributions of two topics. The higher the probability that each topic assigns to the same word, the more that word contributes to the penalty.
3.2 Text collections
We used seven text collections in Russian, English, and Arabic (Table 1). The Russian-language PostNauka collection covers the natural sciences, social sciences, and humanities for a general audience, with articles on subjects such as physics, history, and linguistics. RuWiki-Good-Thematized-2026 (RWGT-2026) contains 17,251 articles that the Russian Wikipedia community has recognized for their quality. Each carries one or more of 28 subject labels, including history and archaeology, music, transport, and earth science.
Table 1: Text collections after preprocessing. is the total number of documents across the training, calibration, and held-out sets, is the size of the training vocabulary after frequency filtering, and is the number of distinct document labels in the collection. Document length counts normalized word occurrences, including repetitions, before filtering by the training vocabulary. The mean, median, and first and third quartiles (, ) summarize document lengths across all three sets combined. Dataset cards for all seven text collections are listed on TopicNet’s Hugging Face page.
| | | | | Document length | | | | |---|---|---|---|---|---|---|---| | Collection | | | | Mean | Median | | | | PostNauka | 3,446 | 14,693 | 32 | 648.14 | 460.5 | 180 | 869.75 | | 20 Newsgroups | 18,253 | 12,269 | 20 | 94.65 | 43 | 22 | 84 | | Watan-2004 | 16,884 | 15,358 | 6 | 429.82 | 306.5 | 188 | 530 | | BBC News | 2,085 | 4,910 | 5 | 212.47 | 184 | 135 | 264 | | SciNews | 41,854 | 28,636 | 9 | 367.5 | 343 | 268 | 438 | | WOS-11967 | 11,965 | 9,150 | 33 | 122.48 | 118 | 92 | 148 | | RWGT-2026 | 17,251 | 88,687 | 28 | 1,895.38 | 1,050 | 596 | 2,264.5 |
The four English-language collections differ in genre and subject matter. 20 Newsgroups (20NG) [9] contains posts from 20 Usenet groups discussing computers, sports, religion, politics, and other subjects. The BBC News collection [10] covers five news sections from 2004–2005, spanning business, entertainment, politics, sport, and technology. SciNews [11] collects news reports on research in medicine, biology, physics, and other fields. Web of Science (WOS-11967) [12] contains research abstracts in fields including computer science, medicine, and psychology. After preprocessing, 11,965 abstracts remained, with 33 original numeric class codes.
Watan-2004 [13, 14] contains articles in Arabic from six sections of the Omani newspaper Alwatan.
Each collection has its own set of document labels. We also defined a set of subject classes for annotating individual word occurrences in each collection. Summing the counts across collections gives 133 document labels and 96 subject classes. For each class, we wrote a class card describing how to recognize its subject from the context of a word occurrence. Appendix F lists the document labels and the subject classes for each collection.
Watan-2004 illustrates how document labels and subject classes can differ. Four of its newspaper sections group articles by subject. The other two, local and international news, group articles by geographic scope. Drawing on articles in those two sections, we added six subject classes, including classes for ecology and tourism. The annotator could use any of the ten classes in any article.
We used the training documents to fit the topic models and compute coherence. For a supplementary analysis, we used the calibration documents to select a subset of the original document labels. We built a dictionary for each selected label and used the dictionaries to annotate chains. On the held-out documents, we evaluated how well the models distinguished chains. The code, collection descriptions, annotation instructions, and full numerical results are available at github.com/Alvant/wintra.
We first randomly sampled 100 held-out documents per collection for annotation. After examining uncertainty in the corpus correlations from these 700 documents, we chose five collections for further annotation. From their remaining held-out documents, we randomly drew 200 from 20NG and 100 each from Watan-2004, BBC News, SciNews, and WOS-11967. These 600 additional documents brought the total to 1,300, with 300 from 20NG, 200 from each of the other four collections in the second sample, and 100 each from PostNauka and RWGT-2026.
For the four English-language collections, we used the WordNet lemmatizer and removed words on NLTK’s English stop-word list. For RWGT-2026, we used pymorphy3 for lemmatization and removed words that appeared on either the spaCy or the NLTK Russian stop-word list. We lemmatized Watan-2004 with CAMeL Tools and retained stop words. For PostNauka, we used the word sequences supplied with the published collection. Each collection’s vocabulary consisted of words that appeared in at least five training documents and in no more than 90% of that collection’s training documents.
3.3 Training the topic models
To test how coherence measures rank models under different forms of regularization, we fitted eight ARTM configurations to each corpus’s training set (Table 2). We fixed the number of domain-specific topics at in every configuration. The models learned these topics independently of the subject classes used to annotate individual word occurrences in held-out documents. Three random seeds (0, 1, and 2) per configuration gave 24 models per corpus and 168 across all seven corpora.
Probabilistic latent semantic analysis (PLSA) [15] estimates and by maximizing the likelihood of the training texts. We also trained a PLSA model with a decorrelation penalty on the topics’ word distributions. Latent Dirichlet allocation (LDA) [16] places a Dirichlet prior on each document’s vector of topic proportions. For our three LDA configurations, we used BigARTM’s absolute smoothing weights, with for topic proportions in and for word probabilities in . Within each configuration, was constant across words. In each of the two symmetric variants, was also constant across topics. We set in one and used the heuristic of Steyvers and Griffiths [17] in the other. In asymmetric LDA, varied by topic, as in the document-topic prior studied by Wallach et al. [18].
Table 2: Topic model configurations. Each model has domain-specific topics. The second column counts additional background topics. Ranges in parentheses give the passes over the training corpus during which each regularizer was active.
| Configuration | Background topics | Parameters and training passes |
|---|---|---|
| PLSA | 0 | Unregularized maximum likelihood |
| Symmetric LDA | 0 | |
| Symmetric LDA (heuristic) | 0 | , |
| Asymmetric LDA | 0 | , , , |
| PLSA with decorrelation | 0 | Decorrelation (1–20) |
| Sparse ARTM | 1 | Smoothing and sparsity regularization (1–20) |
| Combined ARTM (schedule 1) | 1 | Smoothing, sparsity regularization, and decorrelation (1–20) |
| Combined ARTM (schedule 2) | 1 | Smoothing and decorrelation (1–20) |
| Sparsity regularization (11–20) |
In models with a background topic, the relative weights in both and were for smoothing that topic and for sparsity regularization of the domain-specific topics. TopicNet converted these to absolute weights using training corpus statistics and the number of topics to which each regularizer applied. All three configurations with decorrelation used a relative weight of for the domain-specific topics in . With , BigARTM scaled this weight by the same factor for every domain-specific topic.
Three configurations added a background topic for shared vocabulary. In all three, we smoothed the background topic and applied sparsity regularization to the domain-specific topics. This penalty can set small word probabilities in and small topic proportions in to zero. The two combined ARTM configurations also applied a decorrelation penalty to the word distributions of the domain-specific topics.
Vorontsov and Potapenko [5] recommend smoothing the background and decorrelating the domain-specific topics from the start of training. They suggest delaying sparsity regularization until the estimates begin to converge and it becomes clearer which probabilities are close to zero. Early in training, a probability can be set to zero simply because its initial estimate happened to be small. We compared two schedules. Under schedule 1, all three regularizers were active from pass 1. Under schedule 2, we ran ten passes with smoothing and decorrelation, then added sparsity regularization at pass 11 and continued training the same model. We chose this switch point in advance.
We trained all models on a single thread using TopicNet 0.9.0 [19] with BigARTM [20] (the bigartm10 package, version 0.10.1). On each of 20 passes over the training corpus, the model used 10 inner iterations per document to estimate that document’s topic proportions.
3.4 Coherence measures
Alekseev, Bulatov, and Vorontsov [4] proposed measuring coherence using words that occur near each other in a text. Our measures weight each pair by its relevance to the topic. Let be the set of pairs under consideration and the two words in pair . We use co-occurrence counts in the corpus to estimate the association between these words, . We denote the relevance of pair to topic by . The weighted coherence of topic is
The score is defined when the weights sum to a positive value.
For intra-text coherence, let be the normalized word at position in training document after preprocessing. Here identifies two positions in the same document with , so its words are and . Both words must belong to the training vocabulary. Words outside the vocabulary retain their positions when we measure distance. Each eligible position pair counts once, whatever its distance within this range.
To estimate co-occurrence probabilities, we record each of the such position pairs in the training corpus in both directions. Let count the records with first and second. Then , and is the probability of finding at a randomly chosen endpoint. These counts include pairs containing the same word twice. For the topic average in Eq. (2), we include in only position pairs with two distinct words and a defined association score.
For each observed word pair, we take to be its pointwise mutual information (PMI), positive PMI (PPMI), or normalized PMI (NPMI) [21].
\begin{gathered}\mathrm{PMI}(u,v)=\log_{2}\frac{p(u,v)}{p(u)p(v)},\qquad\mathrm{PPMI}(u,v)=\max\{0,\mathrm{PMI}(u,v)\},\qquad\mathrm{NPMI}(u,v)=\frac{\mathrm{PMI}(u,v)}{-\log_{2}p(u,v)}.\end{gathered}
Positive PMI means that the two words occur near each other more often than expected under independence. Negative PMI means they occur together less often than expected.
For all measures that use posterior topic probabilities, we hold the fitted fixed, re-estimate for the training documents, and compute the posteriors from Eq. (1). This requires for the words whose posteriors enter the calculation. In our posterior-weighted measures, the weight for a pair with and is the geometric mean . The same two words have one association score across the corpus, and their posterior weight can vary from document to document. For comparison, we also use , which depends only on the probabilities of the two words in topic .
Combining the two weighting rules with the three association scores gives six measures. In each, both sums in Eq. (2) count every occurrence of an eligible pair across the training corpus. For PPMI, a pair with a score of zero retains its weight in the denominator.
The same equation also describes measures based on a topic’s top words. Rank the vocabulary words by decreasing . Now identifies two words at ranks , and is 1 if both rank among the top words and 0 otherwise. We use lists of 10, 20, 50, and 100 words. With PMI as the association score, Eq. (2) gives the arithmetic mean of pairwise PMI used by Newman et al. [2]. For our UCI and top-word NPMI scores, we slide a window of ten positions along each training document, pairing the first word in each full window with each of the next nine. Each observed pair of distinct top words enters once, regardless of order or frequency. If at least two different pairs are observed, we average their PMI for UCI and their NPMI for top-word NPMI.
For the measure of Mimno et al. [3], contains all pairs of top words, each with unit weight. The pair score is , where counts documents containing both words and counts documents containing the higher-ranked word. The original measure sums the pair scores, so . For , each top word has a co-occurrence profile containing its smoothed NPMI with every word on the list. The topic score is the mean cosine similarity of the individual profiles to their sum.
Two variants of SemantiC compare nearby word occurrences for which the same topic has the highest posterior probability. They represent each word by its row of normalized across topics. The variant measures the Euclidean distance between these topic profiles, and the Cos variant measures their cosine similarity. The Var variant measures the variance of a topic’s posterior probability across words in a window.
The original TopLen (Segment) counts all positions in a segment whose end depends on the topic’s cumulative advantage over its strongest competitor at each position [4]. In the Chain variant from TopicNet, each word is assigned to the topic with the largest component in its -based profile. A chain links nearby occurrences assigned to the same topic, and its length is the number of linked occurrences. FoCon measures how much the posterior probabilities of the leading topics change between adjacent words, yielding one score directly for the whole model. Appendix D gives the calculation for the top-word measures, SemantiC, TopLen, and FoCon.
For measures that score individual topics, we take the arithmetic mean over the model’s 20 domain-specific topics if all 20 scores are defined. In our comparisons, smaller values rank higher for SemantiC , SemantiC Var, and FoCon. For the other coherence measures, larger values rank higher.
3.5 Annotating thematic chains
In a held-out document, word occurrences assigned to the same subject class form a chain in their original order. Words from other classes, or even whole sentences, can separate successive occurrences in a chain. For each collection we prepared class cards with definitions and examples.2 Ideally, several readers would annotate the same texts independently to show which word occurrences they group together. For the main sample from all seven collections, we used the large language model (LLM) gpt-6.1-sol with its reasoning effort set to high.3
The annotator used the original text for context and assigned exactly one label to each supplied position in the sequence of normalized words. If a word occurrence directly expressed a subject defined on one of the class cards, the annotator assigned it to that class. A background use received none. An occurrence that expressed a recognizable subject outside the scope of the cards received other. The annotator used ambiguous when the context left the meaning of the occurrence or the choice of class unresolved.
Only occurrences assigned a subject class entered a chain. The main analysis required at least two occurrences per chain, which could be repetitions of the same word. Within a document, a topic model gives repeated occurrences of the same normalized word the same posterior topic probabilities . The annotator can distinguish these occurrences by their meaning in context. In a lecture on Goffman’s concept of a frame, Mikhail Sokolov suggests that one person may see love as war and another may see war as love.4 The LLM grouped the first occurrence of война (‘war’) with both occurrences of любовь (‘love’) in the “Psychology” chain. It placed the second occurrence of война in the “Politics and government” class. In the context of Sokolov’s sociology lecture, “Psychology” is a debatable label for the first occurrence of ‘war’.
One of the authors manually annotated two documents from each of five collections (PostNauka, 20 Newsgroups, BBC News, SciNews, and WOS-11967). After reviewing difficult cases, we revised individual labels and the definitions on the class cards. We compared three versions of the instructions by having the LLM annotate these same ten documents under each version. We chose the final version for its treatment of established multiword terms. When the annotator confidently recognized such a term, it gave the same class label to every component presented for annotation, including words with a general meaning. When unsure whether an expression was an established term, it assigned that class only to components that themselves expressed the subject in context.
Using the final instructions, the LLM labeled all 2,186 positions in each of three runs. We compared each run with the author’s revised annotations, which reflected an earlier version of the instructions. Of the 879 occurrences the author assigned to a subject class, the LLM identified 673–678 per run as belonging to a subject class. Pooling positions across the ten documents, we obtained a micro-averaged score of 0.756–0.764 for identifying occurrences belonging to any subject class. Requiring the same subject class at the same position gave a micro- of 0.516–0.534 across the subject classes. Across all 2,186 positions, including those labeled none, other, or ambiguous, the LLM and the author agreed on the exact label in 68.7–69.9% of cases.
To assess repeatability, we compared the three LLM runs in pairs. For matches on both position and subject class, micro- ranged from 0.952 to 0.956. Some disagreements with the author recurred in every run. In a BBC report on a soccer match, the author assigned “Sport” to one of four mentions of Angola’s national team and other to the remaining three. All three LLM runs assigned “Sport” to all four mentions. We assessed agreement with the author only on these ten development documents and excluded them from the main sample.
For the 1,300 documents in the main sample, we used the same LLM with the final instructions. We supplied the full document if it contained at most 800 positions to annotate and at most 1,500 words of original text. We split longer documents into blocks of up to 500 positions and supplied up to 80 words of the original text on either side for context. If the final block contained at most 300 positions, we merged it with the preceding block whenever the result contained at most 800 positions to annotate and at most 1,500 words including context. For each request, we retained one response after checking that it gave exactly one allowed label for every requested position. Each position was a target in only one request. We then assembled the chains in document order, so a chain could extend across blocks.
3.6 Consistency with the chain annotations
In the BBC News collection, a story about betting on the next James Bond carries the document label entertainment. In the opening sentence, the LLM assigned James Bond and actor Dougray Scott to the “Entertainment” chain. It assigned Bookmaker William Hill, stopped taking bets, and wagers to the “Business” chain (Figure 2). Both chains continue through the article. Appendix E gives six further examples of annotated passages.
Bookmaker
William
Hill
has stopped taking bets on who will be the next James Bond, following a succession of large wagers on actor Dougray Scott.
Figure 2: Two thematic chains in the opening sentence of “Actor Scott is new Bond favourite” (BBC News collection, document bbc_entertainment_333). The LLM assigned the words with solid underlines to Entertainment and those with dashed underlines to Business.
We evaluated all 24 models of each corpus against the same chain annotations. For each model , we held its trained fixed and estimated the topic proportions for the held-out documents. We used each document’s proportions in Eq. (1) to compute posterior topic probabilities at its annotated positions. A chain is eligible for comparison if it meets the chosen minimum length (two word occurrences in the main analysis), at least 80% of its positions contain words in the model’s vocabulary, and the posterior probabilities are defined at every such position.
Let be the set of eligible chains in document for this model. Within a document, each LLM-annotated chain is identified by its subject class. Let be the set of in-vocabulary positions in the chain and the fraction of these positions occupied by word . For a position drawn uniformly from , the probability of topic is
The first sum runs over distinct words, the second over their individual occurrences, with denoting the word at position in . Among the 20 domain-specific topics, the one with the highest mean probability is the chain’s leading topic, .
To assess how well the leading topic distinguishes chain from the other chains in the document, we compare its mean probability in with its highest mean probability in any other eligible chain. The difference, , is the chain’s contribution to the consistency score.
The contribution is positive if the mean in exceeds every competing mean, zero if it equals the largest competing mean, and negative if a competitor has a higher mean. The contribution is undefined if has no eligible competitor or if the two highest means among the domain-specific topics in differ by at most . A chain with tied leading topics can still serve as a competitor for another chain.
For the BBC example in Figure 2, we scored the chains over the full article. The combined ARTM model trained with sparsity regularization from the first pass (schedule 1, seed 0) assigned the same leading topic, topic-18, to both chains. In the Entertainment chain, 53 of the 66 word occurrences were in the vocabulary. The mean probability of topic-18 at those positions was 0.4732. In the Business chain, the same topic had a mean probability of 0.0958 over the 28 of 32 occurrences that were in the vocabulary. Each chain was the other’s only competitor. Equation (3) therefore gives for Entertainment and for Business.
For model , let contain all document–chain pairs in the annotated sample of its corpus for which the contribution is defined. The model’s consistency with the chain annotations is the mean of these contributions,
Each chain has equal weight, so the two contributions from the James Bond article cancel in the sum for this model. For a domain-specific topic , we average the contributions of the chains in for which is the leading topic. This mean is the topic’s consistency with the chain annotations (), defined whenever the topic leads at least one such chain.
Each model’s score uses all its chains with a defined contribution. Even with the annotations fixed, the set of such chains can vary across models. At the main threshold of two occurrences, the 24 models in each corpus drew contributions from the same documents. In total, 769 of the 1,300 annotated documents contributed (Table 3). Reordering the members of a chain leaves its topic means unchanged. The scores thus measure how well the model distinguishes the groups of word occurrences that the annotator identified within a document.
3.7 Comparing the scores
We ranked the 24 models in each corpus by their consistency with the chain annotations (Eq. (4)). We compared this ranking with the rankings given by 28 coherence measures and by perplexity on held-out documents. The six weighted measures use Eq. (2). Applying each of four top-word measures to lists of 10, 20, 50, and 100 words gave another 16 variants. Appendix D describes these variants and the six remaining intra-text measures. For a measure that scores individual topics, we averaged the scores of the model’s 20 domain-specific topics with equal weights, provided all 20 scores were defined. Smaller values ranked higher for SemantiC , SemantiC Var, and FoCon, and larger values ranked higher for the other coherence measures.
To compute perplexity, we held fixed and estimated each held-out document’s topic proportions from its words. Perplexity is the reciprocal of the geometric mean of the probabilities assigned to in-vocabulary word occurrences across the held-out documents, so lower perplexity ranks higher. For each of the 29 scores, we computed Spearman’s rank correlation between its ranking of the 24 models and their ranking by , then averaged the seven corpus correlations with equal weights.
We also compared two ways of annotating chains. The LLM assigned one set of labels. For the other, we used a class-based variant of term frequency–inverse document frequency (TF-IDF) to build a dictionary of characteristic words for each selected document class. We took the documents that yielded at least one chain with a defined contribution for every model under each method. On these documents we ranked the 24 models in each corpus by consistency, once for each annotation method. We used Spearman’s to compare each ranking with the ranking by posterior-weighted NPMI (Section 4.6) and to compare the two consistency rankings with each other (Appendix B).
To estimate uncertainty due to the choice of documents in the main LLM analysis, we used the Rao–Wu–Yue bootstrap [23]. In each of 9,999 replicates, we drew documents with replacement from the annotated documents in each corpus. We used the annotated fraction of each held-out set, excluding the development documents from the denominator, to adjust the bootstrap weights (Eq. (20) of Beaumont and Émond [24]). All chains from a given document received the same weight across all 24 models. With these weights, we recomputed consistency scores, model ranks, corpus correlations, and their mean. We held the model parameters, coherence scores, perplexities, and annotations fixed.
The 2.5th and 97.5th percentiles of the bootstrap estimates gave the individual 95% intervals. To test for a positive mean correlation, we counted the bootstrap means for which , where is the observed mean. For , the one-sided -value was this count plus one, divided by 10,000. For , we set . We applied Holm’s correction [25] to the 29 tests.
To compare the 29 scores with one another, we constructed simultaneous 95% intervals for all 406 pairwise differences in mean correlation using a single-step max- procedure. Following Romano and Wolf [26], we considered the standardized differences jointly. For each pair, we subtracted the observed difference from its bootstrap value in each replicate and divided by the standard deviation of the bootstrap differences for that pair. We took the largest absolute standardized difference in each replicate. The 95th percentile of these maxima gave the common critical value. Each interval extended that many bootstrap standard deviations on either side of the observed difference.
In each corpus, we asked how close a model selected on the training texts came to the highest consistency score on the held-out annotations. We selected the model with the highest posterior-weighted NPMI and computed for each of the other 23 models. The maximum over all 24 models, including the zero difference for itself, gives the selected model’s gap in consistency. Using the same 9,999 replicates, we constructed simultaneous max- intervals for the 23 differences within each corpus and included for the selected model’s difference from itself. The largest of the 24 lower bounds and the largest of the 24 upper bounds give a 95% confidence interval for this gap.
We next ranked topics within each model by coherence and by their consistency with the chain annotations, . Of the 29 scores, 27 coherence measures apply to individual topics. FoCon and perplexity score the model as a whole. All 27 measures used the same set of topics in model . A topic qualified if all 27 coherence scores were defined and it led at least one chain with a defined contribution. Topics with a mean contribution of zero also qualified. Each topic had equal weight. For each measure, we computed Spearman’s correlation with , reversing the sign of coherence for measures where smaller values rank higher. We assigned average ranks to ties and computed the correlation only when at least three topics qualified and both scores varied across them.
For each measure, we took the median of the within-model correlations in each corpus, then averaged the seven medians with equal weights. In each bootstrap replicate, we recomputed topic consistency scores, topic ranks, corpus medians, and their mean. A document had the same weight across all its chains and across all topics, models, and measures.
For formal comparisons, we fixed the set of models in each corpus to those with all 27 correlations defined in the original sample. We used the first 9,999 replicates in which all 27 correlations were available for those models in all seven corpora. For each measure, we tested for a positive mean of the corpus medians using the same one-sided bootstrap test as for models. We applied Holm’s correction across the 27 tests and constructed simultaneous max- intervals for the 351 pairwise differences. We repeated this analysis at minimum LLM chain lengths of one, two, and three occurrences and for TF-IDF chains on the full held-out sets. For TF-IDF we sampled documents with replacement within each corpus, drawing as many as its held-out set contained. Appendix C varies the minimum chain length and requires at least one, two, or five contributing documents per topic.
To test the role of the semantic grouping of word occurrences, we randomly permuted the LLM’s subject-class labels within each document. We took all positions in chains of at least two word occurrences and shuffled labels separately among in-vocabulary and out-of-vocabulary positions. This preserved each chain’s length and its number of in-vocabulary positions. In each of the 999 permutations, all 24 models in a corpus received the same annotations. For each new grouping, we used the precomputed posterior probabilities to identify leading topics and to find the highest mean probability of each leading topic among the competing chains. We recomputed all defined contributions using Eq. (3), keeping the documents and coherence scores fixed. The permutation comparison used the measure with the highest observed correlation at each level. For posterior-weighted NPMI we recomputed the mean of the seven correlations across models, and for cosine SemantiC the mean of the seven corpus medians of within-model correlations. We kept the two selected measures fixed across permutations and compared each original summary with its 999 shuffled values.
4 Coherence and the ability to distinguish thematic chains
Figure 3 compares the rankings given by each score with rankings by consistency with the chain annotations. A positive correlation means that models or topics with better scores tend to distinguish the annotated chains more clearly. On the left, we rank the 24 models in each corpus by each of 28 coherence measures and by perplexity. Each point gives the mean of the seven Spearman correlations with model consistency. On the right, we rank topics within each model by each of 27 coherence measures and by topic consistency. We take the median of these within-model correlations in each corpus and average the seven medians. Cosine SemantiC has the highest point estimate on the right, where the estimate for posterior-weighted NPMI is just below zero.5
Figure 3: How closely does each score track consistency with the chain annotations? In the held-out documents sampled for annotation, a large language model grouped word occurrences about the same subject into a chain. We required at least two occurrences per chain, at least 80% of them in the training vocabulary, and defined topic probabilities at every in-vocabulary position. For each chain we scored, we found the domain-specific topic with the highest mean posterior probability over the chain’s in-vocabulary word occurrences. The chain’s contribution is this mean minus the highest mean probability of the same topic in any other eligible chain in the document. Model consistency () averages all defined contributions. Topic consistency () averages those from chains in which that topic led. On the left, each point is the mean of seven Spearman correlations, one across the 24 models of each corpus. For measures that score individual topics, model coherence is the mean over the 20 domain-specific topics. On the right, we ranked topics within each model by coherence and by consistency, took the median correlation across models in each corpus, and averaged the seven medians. Horizontal lines show individual 95% confidence intervals from 9,999 bootstrap resamples of documents within corpora. We computed coherence on training texts and perplexity on held-out occurrences of words in the training vocabulary. We reversed the signs of SemantiC , SemantiC Var, FoCon, and perplexity so that better scores rank higher. FoCon and perplexity score whole models only. For FoCon, sums the absolute changes in posterior probability between two adjacent positions, one change for each word’s leading topic. The numbers in the top-word rows give the list lengths. In the Chain variant of TopLen, we follow TopicNet and group nearby word occurrences that the model assigns to the same topic.
For models, posterior-weighted NPMI had the highest observed mean correlation with consistency (, individual 95% interval to ). For NPMI based on a topic’s top ten words, the mean correlation was . The difference was . Its simultaneous 95% interval, to , accounts for all 406 pairwise comparisons among the 29 scores. Posterior-weighted NPMI gives each occurrence of a pair of distinct vocabulary words a weight based on the posterior topic probabilities for both words in that document. For top-word NPMI, each observed pair of words from the top ten enters the average once, with unit weight.
The two measures also use different co-occurrence counts to estimate NPMI. The weighted measure counts all pairs of in-vocabulary positions up to ten positions apart within a document. For top-word NPMI, we slide a window of ten positions along the document and pair the first position in each full window with each of the next nine. The NPMI values can therefore differ even for the same word pair (Appendix D).
We next compared posterior weights with weights on the same pairs of nearby positions in the training texts. With weights, each pair’s weight depends only on the probabilities of its two words in the topic (). The mean correlation for NPMI with these weights was . The difference in favor of posterior weights, calculated before rounding, was . Its simultaneous 95% interval included zero ( to ). With posterior weights, unnormalized PMI gave a mean correlation of . The simultaneous interval for the difference between NPMI and PMI () also included zero ( to ).
Among the other measures based on the top ten words, the mean correlation with model consistency was positive for UMass () and negative for UCI () and (). For held-out perplexity with its sign reversed, the mean correlation was close to zero ().
The correlation between posterior-weighted NPMI and model consistency varied across corpora (Table 3). It was for PostNauka’s popular science texts, for BBC News stories, and for the research abstracts in WOS-11967. The share of annotated documents that contributed to all 24 models also varied. In PostNauka, 92 of the 100 texts yielded at least one chain contribution for every model, compared with 67 of the 300 posts in 20 Newsgroups. Appendix A shows how many documents and chains contributed at each minimum length and how the mean correlation varied across thresholds.
Table 3: Annotation coverage and model selection by posterior-weighted NPMI. At a minimum chain length of two word occurrences, of the annotated documents in each corpus yielded at least one chain contribution for each of its 24 models. Each model’s consistency score averages all its defined chain contributions (Eq. (4)). Spearman’s compares the rankings by training NPMI and by consistency on held-out documents. Rank and gap refer to the model with the highest NPMI. Its gap, in percentage points, is 100 times the difference between the highest consistency score in the corpus and the selected model’s score. Resampling documents gives an individual 95% confidence interval for . The gap bounds come from simultaneous 95% intervals comparing each of the other 23 models with the same selected model.
| Documents | Spearman’s | Rank by | Gap (percentage points) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Corpus | Estimate | Lower | Upper | consistency | Estimate | Lower | Upper | ||
| PostNauka | 100 | 92 | 7 | ||||||
| 20 Newsgroups | 300 | 67 | 2 | ||||||
| Watan-2004 | 200 | 174 | 2 | ||||||
| BBC News | 200 | 75 | 4 | ||||||
| SciNews | 200 | 178 | 1 | ||||||
| WOS-11967 | 200 | 84 | 5 | ||||||
| RWGT-2026 | 100 | 99 | 8 | ||||||
| Total | 1,300 | 769 | — | — | — |
How close did the model with the highest posterior-weighted NPMI on the training texts come to the best consistency score on held-out documents? Each corpus had a unique NPMI winner. By consistency, the selected model ranked first in SciNews, fifth in WOS-11967, and eighth in RWGT-2026. Its gap from the highest consistency score was 0.70 percentage points in WOS-11967 and 1.19 in RWGT-2026. PostNauka had the highest within-corpus correlation, yet its selected model ranked seventh and had the largest observed gap, 2.08 percentage points. In 20 Newsgroups, the observed gap was 0.21 percentage points, and its 95% interval ranged from 0.00 to 7.50 percentage points. In SciNews, all 23 competitors had upper bounds below zero for the difference in consistency (competitor minus selected model). The selected model’s difference from itself is zero, so both bounds on its gap were zero.
Figure 4: Model ranks by coherence on the training texts and by consistency with the chain annotations on held-out documents in RWGT-2026 and WOS-11967. Within each document sampled for annotation, a large language model grouped word occurrences about the same subject into a chain. We required at least two occurrences per chain, at least 80% of them in the training vocabulary, and defined topic probabilities at every in-vocabulary position. For each chain we scored, we found the domain-specific topic with the highest mean posterior probability over the chain’s in-vocabulary positions. From this mean we subtracted the highest mean for that same topic in any other eligible chain of the document. A model’s consistency score averages these differences. Each point represents one model. Spearman’s compares the two rankings of all 24 models in a panel (eight configurations, three random seeds per configuration). Rank 1 denotes the highest score on either axis. The ranks coincide on the diagonal.
In the Russian Wikipedia collection (RWGT-2026) and WOS-11967, the same three of the eight configurations included a background topic (Figure 4). In RWGT-2026, the nine models with a background topic ranked below all 15 models without one on both consistency and posterior-weighted NPMI. This separation accounts for the positive correlation across all 24 models (). Within each group the correlation was weakly negative ( with a background topic and without one). NPMI based on a topic’s top ten words placed the same nine models in the top nine, and its correlation with consistency was negative (). For UMass based on the top ten words, the correlation was close to zero (). Giving each model equal weight, we obtained mean consistency scores of for models with a background topic and for those without one. In both groups, a chain’s leading topic was thus more probable, on average, in the strongest competing chain of the same document than in the chain where it led.
In WOS-11967, models from the two groups were interspersed in the consistency ranking. The models ranked first, second, and 23rd all had a background topic. Mean consistency was 0.0087 higher for the nine models with a background topic than for the 15 without one. Resampling the annotated documents with the fitted models held fixed gave an individual 95% confidence interval of to for this difference, compatible with a higher mean in either group.
4.1 Ranking topics within a model
Using chains of at least two word occurrences, we could compute consistency with the chain annotations for 3,279 of the 3,360 domain-specific topics. For each topic, cosine SemantiC averages the cosine similarities between the topic profiles of nearby word occurrences assigned to that topic in the same training document [4]. Within a model, every occurrence of a word shares the same profile. We obtain it by dividing the probability of the word in each topic by the sum of those probabilities over topics.
Spearman’s correlation between cosine SemantiC and topic consistency was positive in 144 of the 168 models, zero in one, and negative in 23. The median correlation across the 24 models of a corpus ranged from in Watan-2004 to in SciNews (Table 9). The mean of the seven medians was , the highest point estimate among the 27 measures (individual 95% confidence interval to ).
For posterior-weighted NPMI, the mean of the corpus medians was close to zero (, individual 95% interval to ). The difference in favor of cosine SemantiC, calculated before rounding, was . Its simultaneous 95% interval, accounting for all 351 pairwise comparisons of topic measures, was to . SemantiC with Euclidean distance () gave the next highest point estimate, . The simultaneous interval for the difference between the two SemantiC variants was compatible with either ordering.
The right panel of Figure 3 shows the estimates for all 27 topic measures. When we ranked whole models (left panel), the mean within-corpus correlation with model consistency was for cosine SemantiC (individual 95% interval to ) and for posterior-weighted NPMI. The observed difference of favored NPMI, but its simultaneous 95% interval extended from to .
4.2 Shuffling subject labels within documents
Even for a randomly formed chain, we can compare the mean probability of its leading topic in that chain with the highest mean for the same topic in any other eligible chain of the document. How much does the correlation between coherence and consistency depend on which word occurrences the LLM grouped by subject? We selected posterior-weighted NPMI for ranking models and cosine SemantiC for ranking topics within a model. Each had the highest observed correlation for its task when we averaged the results across the seven corpora. Within each document, we shuffled subject labels among positions in chains of at least two word occurrences, preserving each chain’s length and its number of in-vocabulary positions (Section 3.7).
Table 4 compares the original correlations with those from 999 permutations. All 168 models entered both comparisons in every permutation. Under the original labels and in each permutation, 769 of the 1,300 annotated documents yielded at least one chain contribution for each of the 24 models in their corpus. A topic received a consistency score if it led at least one chain with a defined contribution. Of the 3,360 domain-specific topics, 3,279 met this condition under the original labels. After shuffling, the count ranged from 3,185 to 3,270, with a median of 3,227.
Table 4: Spearman correlations between coherence and consistency with the chain annotations. For models, we averaged seven correlations, each across the 24 models of one corpus. For topics, we took the median within-model correlation in each corpus, then averaged the seven medians. The last three columns summarize 999 permutations of the LLM’s subject labels among positions in chains of at least two word occurrences within each document. Each shuffle preserved chain lengths and in-vocabulary counts. We recomputed consistency for each grouping with the documents and coherence scores held fixed.
| Shuffled labels | |||||
|---|---|---|---|---|---|
| Ranked items | Coherence measure | Original | Median | 2.5th percentile | 97.5th percentile |
| Models | Posterior-weighted NPMI | ||||
| Topics within a model | Cosine SemantiC |
For models, the median correlation between posterior-weighted NPMI and consistency was positive even after shuffling (). The observed mean correlation of exceeded the 97.5th percentile after shuffling (). Only 17 of the 999 permutations gave a correlation at least as high as the observed one. Posterior-weighted NPMI can guide the initial choice of models to evaluate on new texts. In six of the seven corpora, at least one other model had higher consistency with the original annotations than the model ranked first by NPMI (Table 3).
For topics within a model, the observed correlation for cosine SemantiC () fell within the central 95% of permutation values ( to , median ). Random groupings could therefore yield a correlation as high as the one observed for the LLM’s chains. The correlation alone leaves open how well cosine SemantiC identifies topics that distinguish one subject from another within a document.
4.3 Two topics in a model trained on 20 Newsgroups
Posterior-weighted NPMI had the highest observed correlation when we ranked models. How does using it in place of UCI or UMass change the ranking of topics within one model? We examined a combined ARTM model trained on 20 Newsgroups with sparsity regularization from the first pass (schedule 1 in Table 2, seed 0). We ranked all 20 domain-specific topics on the training texts. UCI and UMass used each topic’s ten most probable words, while posterior-weighted NPMI used pairs of nearby word occurrences throughout those texts.
To compare these rankings with consistency on held-out documents, we chose examples from topics that led at least one chain with a defined contribution, so that their consistency scores were available. Among topics that ranked higher by posterior-weighted NPMI than by both UCI and UMass, we took the smaller of each topic’s two gains in rank and chose the topic with the largest such gain. Among topics that ranked lower by posterior-weighted NPMI than by both measures, we applied the same rule to the two losses (Table 5). The topics’ mean proportions in the training documents played no part in this choice.
Table 5: Coherence ranks of two topics among the 20 domain-specific topics of a combined ARTM model trained on 20 Newsgroups (schedule 1, seed 0). We named the topics Sports and Christianity from their ten most probable words, shown in descending order of probability within each topic. Rank 1 denotes the highest coherence on the training texts. UCI and UMass use the ten words shown for each topic. Posterior-weighted NPMI uses pairs of nearby word occurrences throughout the training texts.
| Rank by coherence | ||||
|---|---|---|---|---|
| Topic | Ten most probable words | Posterior-weighted NPMI | UCI | UMass |
| Sports | period, pt, win, la, hit, second, play, year, run, power | 1 | 14 | 6 |
| Christianity | god, christian, say, believe, one, people, jesus, bible, church, religion | 17 | 8 | 5 |
Sports ranked first by posterior-weighted NPMI, up 13 places from its UCI rank and five from its UMass rank. Several of its top words, including win, hit, play, and run, occur in descriptions of different sports. In a held-out post about a batter’s stance, the writer suggests that “the open stance gives him a better look at the ball.”6 The LLM included the three italicized words in the Baseball chain. None of the three appears among the top ten words of Sports, the model’s leading topic for the full chain.
The top words god, jesus, and church make the Christianity topic easy to recognize. All 45 pairs among its ten most probable words contributed to its UCI score, each occurring in at least one window in the training texts. Both UCI and UMass ranked Christianity above Sports. Posterior-weighted NPMI includes pairs beyond the top words and weights each occurrence of a pair by the topic’s posterior probabilities at its two positions. It gave Christianity a score of 0.0633 and Sports a score of 0.2245. Consistency with the chain annotations on the held-out texts reversed this order. The mean chain contribution was 0.472 for Christianity (16 chains in 15 documents) and 0.322 for Sports (two chains in two documents).
4.4 Topic prevalence and changes in coherence rank
Do less prevalent topics tend to gain more places when we switch from UCI or UMass to posterior-weighted NPMI? We measured the prevalence of topic by averaging its proportion over the training documents , giving each document equal weight [27].7 We used all 20 domain-specific topics from each of the 168 models across the seven corpora. These 3,360 topics included those that never led an annotated chain with a defined contribution.
Within each model, we assigned rank 1 to the highest coherence score and average ranks to ties. A topic’s gain in rank was its rank by UCI or UMass minus its rank by posterior-weighted NPMI. Christianity in Table 5, for example, dropped nine places relative to UCI (). We computed Spearman’s correlation between prevalence and gain in rank for each model, once for UCI and once for UMass.
Table 6: Spearman correlations between topic prevalence (mean topic proportion across training documents) and gain in rank under posterior-weighted NPMI. We computed each correlation across the 20 domain-specific topics in one model. A positive gain means that the topic ranks higher under posterior-weighted NPMI than under the corresponding top-word measure. Each row gives the median and the first () and third () quartiles of the correlations across the 24 models of one corpus.
| UCI (top ten words) | UMass (top ten words) | |||||
|---|---|---|---|---|---|---|
| Corpus | Median | Median | ||||
| PostNauka | ||||||
| 20 Newsgroups | ||||||
| Watan-2004 | ||||||
| BBC News | ||||||
| SciNews | ||||||
| WOS-11967 | ||||||
| RWGT-2026 |
In six of the seven corpora, less prevalent topics tended to gain more places or lose fewer under posterior-weighted NPMI (Table 6). The median correlation across models was negative for both comparisons in each of these corpora and more negative for UMass than for UCI. In the Russian Wikipedia collection (RWGT-2026), both medians were close to zero, and the first and third quartiles lay on opposite sides of zero in both comparisons. We did not ask readers to rate individual topics, so we cannot tell whether they would find the topics that moved up easier to interpret than those that moved down.
4.5 Ranking model-level scores with fewer annotated documents
We compared the ranking of the 29 scores based on all annotated documents with the rankings obtained from samples of 50 or 100 documents per corpus. In each of 1,000 draws, we sampled annotated documents at random without replacement within each corpus. We used the first 50 for the smaller sample and the first 100 for the larger one. At each sample size, we recomputed each model’s consistency with the chain annotations. Within each corpus, we used Spearman’s correlation to compare the ranking of its 24 models by each score with their ranking by consistency. We averaged the seven correlations for each score, then ranked the 29 scores by these means (Section 3.7). With 50 documents per corpus, the median Spearman correlation between this ranking and the ranking based on all 1,300 annotated documents was (2.5th and 97.5th percentiles, and ). With 100 documents per corpus, the median rose to .
For posterior-weighted NPMI, we also checked how often the mean correlation from a subset was within of the full-sample estimate of . It met this tolerance in 669 of the 1,000 draws with 50 documents per corpus and in 869 with 100. At 50 documents per corpus, the overall ranking was usually close to the full-sample ranking, yet the estimate for this one measure fell outside the tolerance in about a third of the draws.
Each subset was part of the full sample used for comparison. A draw of 100 documents per corpus included every annotated document in PostNauka and RWGT-2026 and only some of those in the other five corpora. To compare rankings based on disjoint sets of documents, we also made 1,000 random splits of the full annotated sample in each corpus into two equal halves. Using chains of at least two word occurrences, as in the main analysis, we ranked the 29 scores separately in each half by their mean correlation across the seven corpora. The median Spearman correlation between the two rankings was (2.5th and 97.5th percentiles, and ). These results describe stability within the available annotations. For a new corpus, the number of documents needed depends on the precision required and on the proportion of documents that yield at least one chain with a defined contribution.
4.6 Comparing models using LLM and TF-IDF annotations
How closely does posterior-weighted NPMI track model consistency when dictionaries supply the chains? We built a TF-IDF dictionary of characteristic words for each selected document class. The LLM can assign different labels to occurrences of the same word. A word that the dictionaries assign to a class receives that label in every context. Of the 1,300 annotated documents, 501 yielded at least one chain with a defined contribution for every model under both methods. Each method kept its own chains and their competitors in those documents. Within each corpus, we ranked its 24 models by posterior-weighted NPMI and compared that ranking with their ranking by consistency under each set of chain annotations. The mean of the seven Spearman correlations was for the LLM chains and for the dictionary-based chains. Appendix B describes the dictionaries and compares the two model rankings by consistency directly (Table 8).
5 Discussion
Why did different measures give the highest correlations for models and for topics within models? Model consistency weights topics by the number of contributing chains they lead. We also gave equal weight to topics with defined consistency, still averaging coherence over all 20 domain-specific topics. Across the seven corpora, the mean Spearman correlation with model consistency fell from to for posterior-weighted NPMI and from to for cosine SemantiC. Model rankings also depend on overall coherence. Raising every topic’s coherence in one model by the same amount raises its mean and preserves its topic ranking.
Within each model, we ranked topics with defined consistency by cosine SemantiC and compared the top and bottom five. Across the seven corpora, a topic’s mean probability in the chains it led was 5.5 percentage points lower on average for the top five. Its highest mean in any other eligible chain of the same document was 12.7 points lower. Subtracting the second mean from the first gave the top five a 7.2-point advantage in mean chain contribution (Table 10). We also correlated SemantiC with consistency across topics within each model. The mean of the seven corpus medians fell within the central 95% of values obtained by shuffling subject labels among the same word occurrences within documents (Section 4.2). How much of the 7.2-point advantage depends on grouping words by subject remains open.
For topics ranked by posterior-weighted NPMI, both probabilities were higher in the top five by about the same amount. We ranked each corpus’s models by mean posterior-weighted NPMI and compared the top and bottom six. In the top six, the leading topic’s mean probability was 4.8 percentage points higher in its own chain and 3.2 points higher in its strongest competitor, giving a 1.6-point advantage in mean contribution. Ranking models by cosine SemantiC gave a difference in mean contribution close to zero.
The topic profiles that each model assigns to words may help explain these differences. Nearby words assigned to one topic may have similar profiles even when they refer to different subjects. Their mean cosine similarity can then be high despite poor separation of the annotated chains. Posterior-weighted NPMI takes into account how much more or less often words occur near each other than expected under independence. A pair carries more weight for a topic when both word occurrences have a high posterior probability of that topic (Eq. (2)). A strongly associated pair can occur in passages about different subjects within one document and receive the same weight for a given topic each time.
Posterior-weighted coherence and consistency with the chain annotations both depend on the fitted topic model. In the training texts, a pair’s weight depends on the posterior probability of the topic at both positions. For a held-out document, we keep the word probabilities in each topic fixed and estimate the document’s topic proportions anew. The resulting posteriors determine which topic leads a chain and the difference between its mean probability there and in its strongest competitor (Eqs. (1) and (3)). The LLM grouped the word occurrences into chains without seeing the models’ topics. To see whether the rankings also agreed among runs of the same configuration, we ranked each corpus’s 24 models by posterior-weighted NPMI on the training texts and by consistency on the chains that contributed in all 24 models. For each score, we subtracted the mean rank of each configuration’s three runs from the rank of each run in that configuration. The Pearson correlation between the two sets of 24 deviations was positive in six of the seven corpora. With three runs per configuration, this comparison describes the agreement between two scores that depend on the same model.
Why was consistency lower for models with a background topic in Russian Wikipedia (RWGT-2026, Figure 4)? The leading topic has the highest mean probability among the domain-specific topics in its own chain. Its mean can be higher still in another chain of the same document. We subtract its mean in the strongest competitor from its mean in the chain it leads (Eq. (3)). We first averaged probabilities over contributing chains within each model, then over models with equal weight in each group. In its own chain the leading topic’s mean probability was in models with a background topic and in those without one. In the competing chain the gap was smaller ( and , respectively), so the mean contribution was lower with a background topic. On the 905 chains that contributed in all 24 models, we kept each model’s original competitor for each chain. All nine models with a background topic still ranked below the other 15. In WOS-11967 the leading topic’s mean was lower with a background topic by 3.5 percentage points in its own chain and by 4.3 in its competitor. The larger gap in the competitor gave models with a background topic a slightly higher mean contribution.
The background topic enters the denominator in Eq. (1), while only the 20 domain-specific topics can lead a chain. Using all contributing chains in each RWGT-2026 model with a background topic, we found a mean background probability of 23.6% in the chain being scored and 12.3% in the competitor selected using the leading domain-specific topic. In WOS-11967 the two means were close, 14.9% and 14.5%, respectively. All three configurations with a background topic also used sparsity regularization for the domain-specific topics (Table 2). Isolating the effect of adding a background topic would require holding that regularization fixed.
In RWGT-2026, models with a background topic occupied the bottom nine places for consistency and the top nine for NPMI based on the ten most probable words of each domain-specific topic. The word время (‘time’) appeared among the top ten words of all nine background topics. Among the domain-specific topics it appeared in 67 of 180 top-ten lists (37%) in models with a background topic and 183 of 300 (61%) in models without one. For each domain-specific topic, we averaged PMI in bits over the same observed pairs of distinct top words used to calculate NPMI. We then averaged over the 20 topics within each model and over models within each group, using equal weights at each step. The ratio compares observed co-occurrence with that expected under independence. Its geometric mean, , was in models with a background topic and in those without one. With a background topic, the top words of domain-specific topics were more strongly associated in the training texts, even though the leading topics distinguished the annotated chains less clearly in held-out documents.
Raising the minimum chain length changes which documents enter the comparison and which chains compete within each document. When the minimum rose from two to five word occurrences, the mean correlation between posterior-weighted NPMI and model consistency fell from to (Table 7). The 95% interval for the mean correlation at five occurrences ranged from to , allowing an association in either direction. The annotation method also mattered. On the 501 held-out documents common to both methods, the mean within-corpus correlation was for the TF-IDF dictionary annotations and for the LLM annotations. The dictionaries give a word the same label wherever it occurs, whereas the LLM uses the context of each occurrence. In some corpora the sets of subject classes also differ. Changing the annotation method can therefore change both which positions receive labels and how the labeled occurrences are grouped into chains.
6 Conclusion
To measure a topic’s coherence, we propose weighting each occurrence of a nearby word pair in training texts by the topic’s posterior probabilities at both positions. In each corpus, we used one set of chain annotations on held-out texts to compare coherence measures for selecting a model and for ranking topics within it.
Posterior-weighted NPMI can help screen topic models for their ability to distinguish LLM-annotated thematic chains in new documents. For chains of at least two word occurrences, we ranked the 24 models in each corpus by this measure and by their consistency with the chain annotations. The Spearman correlations between the two rankings averaged across the seven corpora. The corresponding means were for NPMI based on each topic’s ten most probable words and for posterior-weighted PMI. We kept posterior-weighted NPMI fixed for the permutations because it had the highest mean correlation with model consistency under the original labels. Shuffling subject labels within documents gave a lower mean correlation for this measure in 982 of the 999 permutations. In every corpus, the model with the highest posterior-weighted NPMI on the training texts ranked among the top eight by consistency on the held-out texts. It ranked first only in SciNews. The selected model’s gap from the highest observed consistency in its corpus ranged from 0 to 2.08 percentage points. In 20 Newsgroups, the observed gap was 0.21 percentage points, and the 95% confidence interval from resampling the annotated documents extended to 7.50 percentage points.
In the Russian Wikipedia collection (RWGT-2026), all nine models with a background topic ranked below the 15 models without one on both posterior-weighted NPMI and consistency with the chain annotations. This separation accounts for the positive correlation across all 24 models (). Within each group, the correlation was weakly negative. In WOS-11967, a corpus of research abstracts, the correlation across all 24 models was , and its 95% confidence interval included zero. Across the seven corpora, the mean correlation between posterior-weighted NPMI and model consistency fell as we raised the minimum chain length.
Within models, cosine SemantiC tracked the ranking by topic consistency more closely on average than posterior-weighted NPMI did. A topic received a consistency score if it led at least one chain with a defined contribution. At the minimum length of two word occurrences, we took the median of the within-model Spearman correlations in each corpus. The mean of the seven medians was for cosine SemantiC and for posterior-weighted NPMI. The simultaneous 95% confidence interval for the difference between these means (cosine SemantiC minus posterior-weighted NPMI) ranged from to . For whole models, the corresponding interval included zero. The observed mean of the seven medians for cosine SemantiC fell within the central 95% of the values obtained by shuffling subject labels within documents. Higher cosine SemantiC scores can help identify topics with larger mean contributions from the chains they lead. The permutation results leave open how much of this association reflects a topic’s ability to distinguish one subject from another within a document.
Limitations
We compared eight configurations in the ARTM family, including PLSA and variants of LDA. All models had 20 domain-specific topics, and some configurations included one additional background topic. With a different number of domain-specific topics or a different model architecture, we do not know whether the same coherence measures would agree most closely with the chain-based rankings of models and of topics within models.
One of the authors manually annotated two documents from each of five corpora. RWGT-2026 and Watan-2004 were outside this manual check. We used these ten documents to refine the class cards and the annotation instructions. We compared the LLM’s labels under the final instructions with the author’s labels under an earlier version. In the stricter micro- comparison, a match required the same subject class at the same word position. Two annotations that differ only in the name of a class therefore disagree at every position in that class. Because they group the same occurrences into chains, all defined chain contributions to the model’s consistency score are identical under the two annotations. We assessed agreement with the author only on these ten development documents. Whether readers’ annotations would yield similar rankings on the 1,300 documents in the main sample remains open. For a direct test, several readers could independently annotate the same new documents. Each reader’s annotations would yield rankings of models within each corpus and of topics within each model. We could compare these rankings across readers and with those derived from the LLM’s annotations of the same texts.
The LLM grouped word occurrences into thematic chains using the subject classes specified for each corpus. To assess how well a topic model distinguished these chains, we needed at least two eligible chains in the same document. For each corpus, we counted documents in which each of its 24 models had at least one chain with a defined contribution. At the main threshold of two word occurrences per chain, 769 of the 1,300 annotated documents met this condition (Table 3). For each model, we used its own topic probabilities at the annotated positions to calculate the chain contributions. The model’s consistency score was the mean of all its defined contributions. We did not test how easily readers could understand or name the model’s topics.
When we ranked models, posterior-weighted NPMI had a higher mean correlation with consistency than NPMI based on each topic’s ten most probable words. The two implementations also differ in which pairs they score and how they count co-occurrences, leaving the contribution of the weights to this gain uncertain. On the same pairs of positions, we compared posterior weights with weights, which depend only on the probabilities of the two words in the topic. The difference between the mean correlations across the seven corpora was in favor of posterior weights. Its simultaneous 95% interval ( to ) was compatible with either weighting scheme giving the higher correlation.
In a training document, two nearby occurrences of the same lemma have identical topic profiles. If the model assigns both to the same topic, their cosine similarity of 1 enters the average for that topic’s cosine SemantiC score. An eligible chain in the held-out annotations can likewise consist of two occurrences of one lemma. In that case, each topic’s mean probability in the chain equals its probability at either occurrence. Cosine SemantiC gave the highest point estimate when we averaged the seven corpus medians of the within-model correlations with topic consistency. We did not test whether it would still rank first if we calculated consistency using only chains in which each lemma occurred once.
We obtained the 95% confidence intervals by resampling held-out documents within each of the seven corpora, keeping the fitted models and the labels for individual word occurrences fixed. The intervals reflect variation in which documents were sampled. Uncertainty from retraining the models, repeating the annotation, or choosing different corpora falls outside their scope.
Acknowledgments
Vasiliy Alekseev thanks Victor Bulatov for a stimulating collaboration, from the idea for their first measure of intra-text coherence to the development of the TopicNet library. He also thanks Egor Maximov for the software tools used to prepare and run the experiments.
References
- [1] Anastasia Ianina and Konstantin Vorontsov. Regularized multimodal hierarchical topic model for document-by-document exploratory search. In 2019 25th Conference of Open Innovations Association (FRUCT), pages 131–138, 2019. doi: 10.23919/FRUCT48121.2019.8981493. URL https://www.fruct.org/files/publications/volume-25/fruct25/Ian.pdf.
- [2] David Newman, Jey Han Lau, Karl Grieser, and Timothy Baldwin. Automatic evaluation of topic coherence. In Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics, pages 100–108, Los Angeles, California, 2010. Association for Computational Linguistics. URL https://aclanthology.org/N10-1012/.
- [3] David Mimno, Hanna Wallach, Edmund Talley, Miriam Leenders, and Andrew McCallum. Optimizing semantic coherence in topic models. In Regina Barzilay and Mark Johnson, editors, Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing, pages 262–272, Edinburgh, Scotland, UK, July 2011. Association for Computational Linguistics. URL https://aclanthology.org/D11-1024/.
- [4] Vasiliy Alekseev, Victor Bulatov, and Konstantin Vorontsov. Intra-text coherence as a measure of topic models’ interpretability. In Computational Linguistics and Intellectual Technologies: Proceedings of the International Conference “Dialogue 2018”, pages 1–13, Moscow, 2018. URL https://dialogue-conf.org/media/4281/alekseevva.pdf.
- [5] Konstantin Vorontsov and Anna Potapenko. Additive regularization of topic models. Machine Learning, 101:303–323, 2015. doi: 10.1007/s10994-014-5476-6. URL https://link.springer.com/article/10.1007/s10994-014-5476-6.
- [6] Michael Röder, Andreas Both, and Alexander Hinneburg. Exploring the space of topic coherence measures. In Proceedings of the Eighth ACM International Conference on Web Search and Data Mining, pages 399–408, 2015. doi: 10.1145/2684822.2685324. URL https://doi.org/10.1145/2684822.2685324.
- [7] Jey Han Lau, David Newman, and Timothy Baldwin. Machine reading tea leaves: Automatically evaluating topic coherence and topic model quality. In Proceedings of the 14th Conference of the European Chapter of the Association for Computational Linguistics, pages 530–539, Gothenburg, Sweden, 2014. Association for Computational Linguistics. doi: 10.3115/v1/E14-1056. URL https://aclanthology.org/E14-1056/.
- [8] Jeffrey Lund, Piper Armstrong, Wilson Fearn, Stephen Cowley, Courtni Byun, Jordan Boyd-Graber, and Kevin Seppi. Automatic evaluation of local topic quality. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 788–796, Florence, Italy, 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1076. URL https://aclanthology.org/P19-1076/.
- [9] Tom Mitchell. Twenty Newsgroups [dataset]. UCI Machine Learning Repository, 1997. URL https://doi.org/10.24432/C5C323. Original collection assembled by Ken Lang.
- [10] Derek Greene and Pádraig Cunningham. Practical solutions to the problem of diagonal dominance in kernel document clustering. In Proceedings of the 23rd International Conference on Machine Learning, pages 377–384. ACM, 2006. doi: 10.1145/1143844.1143892. BBC News dataset at https://github.com/derekgreene/bbc-datasets#dataset-bbc.
- [11] Dongqi Liu, Yifan Wang, Jia Loy, and Vera Demberg. SciNews: From scholarly complexities to public narratives – a dataset for scientific news report generation. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024), pages 14429–14444, Torino, Italia, 2024. ELRA and ICCL. URL https://aclanthology.org/2024.lrec-main.1258/.
- [12] Kamran Kowsari, Donald E. Brown, Mojtaba Heidarysafa, Kiana Jafari Meimandi, Matthew S. Gerber, and Laura E. Barnes. HDLTex: Hierarchical deep learning for text classification. In 2017 16th IEEE International Conference on Machine Learning and Applications (ICMLA), pages 364–371. IEEE, 2017. doi: 10.1109/ICMLA.2017.0-134. Web of Science Dataset, version 6, https://data.mendeley.com/datasets/9rw3vkcfy4/6.
- [13] Mourad Abbas. Watan-2004 [dataset]. UTF-8 distribution. SourceForge, 2019. URL https://sites.google.com/site/mouradabbas9/corpora/text-corpora.
- [14] Mourad Abbas, Kamel Smaili, and Daoud Berkani. Evaluation of topic identification methods on Arabic corpora. Journal of Digital Information Management, 9(5):185–192, 2011. URL https://www.dline.info/fpaper/jdim/v9i5/1.pdf.
- [15] Thomas Hofmann. Probabilistic latent semantic analysis. In Proceedings of the Fifteenth Conference on Uncertainty in Artificial Intelligence, pages 289–296. Morgan Kaufmann, 1999. URL https://arxiv.org/abs/1301.6705.
- [16] David M. Blei, Andrew Y. Ng, and Michael I. Jordan. Latent Dirichlet allocation. Journal of Machine Learning Research, 3:993–1022, 2003. URL https://jmlr.org/papers/v3/blei03a.html.
- [17] Mark Steyvers and Tom Griffiths. Probabilistic topic models. In Thomas K. Landauer, Danielle S. McNamara, Simon Dennis, and Walter Kintsch, editors, Handbook of Latent Semantic Analysis, pages 427–448. Lawrence Erlbaum Associates, 2007. doi: 10.4324/9780203936399-29.
- [18] Hanna M. Wallach, David Mimno, and Andrew McCallum. Rethinking LDA: Why priors matter. In Advances in Neural Information Processing Systems, volume 22, pages 1973–1981. Curran Associates, 2009. URL https://proceedings.neurips.cc/paper_files/paper/2009/hash/0d0871f0806eae32d30983b62252da50-Abstract.html.
- [19] Victor Bulatov, Vasiliy Alekseev, Konstantin Vorontsov, Darya Polyudova, Eugenia Veselova, Alexey Goncharov, and Evgeny Egorov. TopicNet: Making additive regularisation for topic modelling accessible. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 6745–6752. European Language Resources Association, 2020. URL https://aclanthology.org/2020.lrec-1.833/.
- [20] Konstantin Vorontsov, Oleksandr Frei, Murat Apishev, Peter Romov, and Marina Dudarenko. BigARTM: Open source library for regularized multimodal topic modeling of large collections. In Analysis of Images, Social Networks and Texts, pages 370–381. Springer International Publishing, 2015. doi: 10.1007/978-3-319-26123-2_36.
- [21] Gerlof Bouma. Normalized (pointwise) mutual information in collocation extraction. In From Form to Meaning: Processing Texts Automatically. Proceedings of the Biennial GSCL Conference 2009, pages 31–40, 2009. URL https://svn.spraakdata.gu.se/repos/gerlof/pub/www/Docs/npmi-pfd.pdf.
- [22] Sergey Vychegzhanin, Anastasia Kotelnikova, Alexander Sergeev, and Evgeny Kotelnikov. From tokens to tales: Semantic similarity in story generation. In Analysis of Images, Social Networks and Texts, pages 164–178, Cham, 2025. Springer Nature Switzerland. ISBN 978-3-031-88036-0. doi: 10.1007/978-3-031-88036-0_9. URL https://doi.org/10.1007/978-3-031-88036-0_9.
- [23] Jon N. K. Rao, Chien-Fu Jeff Wu, and Kim Yue. Some recent work on resampling methods for complex surveys. Survey Methodology, 18(2):209–217, 1992. URL https://www150.statcan.gc.ca/n1/en/catalogue/12-001-X199200214486.
- [24] Jean-François Beaumont and Nelson Émond. A bootstrap variance estimation method for multistage sampling and two-phase sampling when Poisson sampling is used at the second phase. Stats, 5(2):339–357, 2022. doi: 10.3390/stats5020019. URL https://www.mdpi.com/2571-905X/5/2/19.
- [25] Sture Holm. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2):65–70, 1979. URL https://www.jstor.org/stable/4615733.
- [26] Joseph P. Romano and Michael Wolf. Stepwise multiple testing as formalized data snooping. Econometrica, 73(4):1237–1282, 2005. doi: 10.1111/j.1468-0262.2005.00615.x. URL https://doi.org/10.1111/j.1468-0262.2005.00615.x.
- [27] Sachin Muralidhara and Michael J. Paul. #Healthy Selfies: Exploration of health topics on Instagram. JMIR Public Health and Surveillance, 4(2):e10150, 2018. doi: 10.2196/10150. URL https://publichealth.jmir.org/2018/2/e10150/.
- [28] Eugeniia Veselova and Konstantin Vorontsov. Topic balancing with additive regularization of topic models. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop, pages 59–65. Association for Computational Linguistics, 2020. doi: 10.18653/v1/2020.acl-srw.9. URL https://aclanthology.org/2020.acl-srw.9/.
- [29] Alex Gorbulev, Vasiliy Alekseev, and Konstantin Vorontsov. Iterative improvement of an additively regularized topic model. In Analysis of Images, Social Networks and Texts, pages 87–106, Cham, 2025. Springer Nature Switzerland. ISBN 978-3-031-88036-0. doi: 10.1007/978-3-031-88036-0_4. URL https://doi.org/10.1007/978-3-031-88036-0_4.
- [30] Maarten Grootendorst. BERTopic: Neural topic modeling with a class-based TF-IDF procedure. arXiv:2203.05794, 2022. URL https://arxiv.org/abs/2203.05794.
Appendix A Minimum length of a thematic chain
In the main analysis, a thematic chain had to contain at least two annotated word occurrences. We also considered minimum lengths of one, three, five, and ten occurrences. For each model and threshold, we determined which chains had an eligible competitor in the same document and a defined contribution in Eq. (3). At a threshold of two, 769 of the 1,300 annotated documents contained at least one contributing chain for every model in their corpus (Table 3). The number of contributing chains can still vary across models. For example, a chain’s contribution is undefined in a model if two domain-specific topics tie for the highest mean probability in that chain.
Table 7: Minimum chain length, annotation coverage, and the correlation between posterior-weighted NPMI and model consistency. For each model we count chains with a defined contribution and documents containing at least one such chain. For each count, we take the minimum and maximum across the 24 models within each corpus, then sum the seven minima and the seven maxima separately. The mean gives equal weight to the seven within-corpus Spearman correlations. The difference is at the stated threshold minus at two, using the same document resamples for both thresholds. Lower and upper bounds are from individual 95% confidence intervals.
| Mean correlation | Difference in from length 2 | |||||||
|---|---|---|---|---|---|---|---|---|
| Min. chain length | Documents | Chains | Estimate | Lower | Upper | Estimate | Lower | Upper |
| 1 | 808–809 | 3,260–3,305 | ||||||
| 2 | 769 | 3,007–3,022 | — | |||||
| 3 | 721 | 2,694–2,699 | ||||||
| 5 | 653 | 2,296–2,297 | ||||||
| 10 | 523 | 1,705 |
Raising the threshold can exclude a chain because it is too short or because it loses its last eligible competitor. For a chain that still contributes, the mean probability of its leading topic in that chain stays the same. If the strongest competitor drops out, the highest competing mean for that same topic can fall. When it does, we subtract a smaller value in Eq. (3), so increases. For the change from two to ten in 20 Newsgroups, we first dropped the chains that no longer contributed, keeping the other chains’ contributions at their original values. This lowered consistency by on average over the 24 models. Updating the contributions of the retained chains using their remaining competitors raised consistency by , giving a net increase of . In BBC News, the corresponding changes were and , giving a net decrease of .
Both the loss of chains and the revised contributions of the retained chains can affect how the models rank by consistency. At thresholds of five and ten, fewer documents contributed to these rankings than at two (Table 7). The observed mean correlation with posterior-weighted NPMI fell from at a threshold of one to at ten. Allowing chains of a single word occurrence raised the mean correlation by relative to the main threshold of two (individual 95% interval to ). At a threshold of three, the interval for the mean correlation lay above zero, while the interval for its difference from the mean at two included zero. At five and ten, the intervals for the mean correlations included zero, and both differences from the main estimate had intervals entirely below zero. These individual intervals use 9,999 bootstrap resamples of documents within corpora, with the models and annotations held fixed. We made no adjustment for comparisons across thresholds.
Appendix B Sources of thematic chains and document selection for annotation
Dictionary-based chains
BERTopic [30] clusters documents and uses class-based TF-IDF (c-TF-IDF) to identify the words characteristic of each cluster. Our corpora already had document labels, so we applied this weighting to the classes defined by those labels. We built a dictionary for a class if the calibration set contained at least 20 documents with its label and at least 20 without it.
We counted word occurrences in the training documents. A document with several selected labels contributed its words to each corresponding class. From the training vocabulary we excluded special tokens in angle brackets, strings of digits, other tokens containing no letters, stop words, and words found in every selected class of the corpus. Let count the remaining occurrences of word in class , let be their total over all words in that class, and let be the mean of over the selected classes. The weight of in class was
In standard TF-IDF, inverse document frequency depends on how many documents contain the word. Here the logarithmic factor decreases as the total number of occurrences of the word across classes, , increases. Taking the square root of the word’s relative frequency within a class reduces the advantage of that class’s most frequent words.8
For each dictionary we took the 50 words with the highest weights and any others tied with the 50th. In a held-out document, a word had zero weight in any class whose dictionary omitted it. An occurrence received the label of the class with the largest weight if that weight exceeded the next largest by more than . Otherwise we left the occurrence unlabeled. This rule gives a word the same label wherever it occurs. In each document, all occurrences assigned to a class formed one chain in their original order if there were at least two.
The dictionary classes and the subject classes in the LLM instructions can differ. In BBC News both methods used the five news sections. In Watan-2004 the dictionaries corresponded to six newspaper sections, and the LLM could choose among ten subject classes.
In 501 of the 1,300 annotated documents, every model in the corpus had at least one chain with a defined contribution under each method. Within these documents we kept the chains and competitors specific to each method. For each set of chains we computed Spearman’s correlation between posterior-weighted NPMI and the consistency of the 24 models in each corpus. The mean across the seven corpora was for the LLM and for TF-IDF.
We then compared the two rankings by consistency directly on the same documents (Table 8). The rankings agreed most closely in PostNauka (), where 90 of 100 documents qualified. Agreement was weaker in BBC News (). In 20 Newsgroups only 45 of 300 documents qualified, and the correlation was weakly negative (). Even with the documents held fixed, the models could rank differently under the two sets of classes and annotation rules. Assessing the accuracy of the labels themselves would require human judgments.
Table 8: Spearman’s between two rankings of the 24 models in each corpus by their consistency with the chain annotations, one using LLM chains and one using TF-IDF chains. The middle column gives the number of documents used for both rankings out of all documents annotated by the LLM. A document qualified if, under each method, every model had at least one chain of two or more word occurrences with a defined contribution (Eq. (3)).
| Corpus | Documents used / annotated | |
|---|---|---|
| PostNauka | 90 / 100 | |
| 20 Newsgroups | 45 / 300 | |
| Watan-2004 | 70 / 200 | |
| BBC News | 42 / 200 | |
| SciNews | 80 / 200 | |
| WOS-11967 | 82 / 200 | |
| RWGT-2026 | 92 / 100 |
The dictionaries also let us annotate the full held-out sets of all seven corpora. On these sets, UMass computed from each topic’s 20 most probable words had the highest mean correlation with model consistency (, individual 95% confidence interval to ). For posterior-weighted NPMI the mean was ( to ). For these individual intervals we sampled documents with replacement within each corpus, drawing as many documents as its held-out set contained.
Chains from a separate topic model
Would the 20-word or the 100-word version of UMass have a higher correlation with model consistency if we took the chains from a separate topic model? We adapted ITAR [29], an iterative topic model that uses additive regularization to preserve selected topics while searching for new ones. In the original study, coherence determined which topics to retain. Using coherence to select topics here would let the measure influence the chains used to evaluate it. In our variant, Label-ITAR, we selected topics by their association with known document classes.
For each topic, we ranked the calibration documents by the topic’s proportion in the document, in descending order. We measured how closely each class was associated with that topic using average precision (AP), adjusted for the fraction of documents in the class. A class scored highly when documents carrying its label tended to appear near the top of the ranking. To estimate how strong an association could arise by chance, we permuted whole sets of labels among documents. We used either a common threshold for topic selection or a separate threshold for each class.9 We considered a topic for retention only if a single class attained the highest adjusted AP and that score met the applicable threshold.
For each selected topic we calibrated two thresholds for assigning word occurrences to it. One set a minimum posterior probability for the topic, the other a minimum difference between its probability and the second-highest topic probability. For each pair of thresholds we calculated the fraction of assigned occurrences whose documents carried the topic’s class label. Among pairs that met the required level of agreement,10 we chose the one that covered the most occurrences. We dropped the topic if no pair qualified.
For each word occurrence in a held-out document we found the most probable of all the Label-ITAR topics. We assigned that topic to the occurrence if the maximum was unique, the topic had passed calibration, and both thresholds were met. Two or more occurrences assigned to the same topic formed a chain in document order. Different topics associated with the same class could therefore supply competing chains. All 24 models evaluated in the corpus received the same chain positions. At those positions, each model identified its own leading domain-specific topic by mean posterior probability (Section 3.6).
As with the dictionaries, a class qualified for topic selection if at least 20 calibration documents had its label and at least 20 lacked it. In a corpus with such classes, our protocol required at least topics to pass calibration and at least that many classes to be represented among them. Five corpora met both requirements. Under either topic-selection rule, SciNews () retained five topics but covered only four classes, one short of the required five. WOS-11967 () needed at least nine of each and retained eight topics from seven classes.
We used the full held-out sets of the five qualifying corpora. For each source of chains, we computed each model’s consistency from all its defined chain contributions. With TF-IDF chains, the mean of the five correlations between UMass and model consistency was higher for 20 words per topic () than for 100 (). With Label-ITAR chains and a common topic-selection threshold, the order reversed. The mean was for 100 words and for 20. The class-specific thresholds gave the same ordering of the point estimates.
To compare model rankings across all four sources, we again required at least one chain with a defined contribution for every model in each document under every source. Of the 900 LLM-annotated documents in the five corpora, 101 qualified for all four sources (the LLM, TF-IDF, and both Label-ITAR variants), and 339 qualified for the LLM and TF-IDF. In 20 Newsgroups the corresponding counts were two and 45 out of 300. We therefore chose the LLM and TF-IDF for the direct comparison of model rankings in Table 8, for which 501 of the 1,300 documents across all seven corpora qualified.
Selecting documents for annotation
Can the dictionaries help identify documents in which the LLM will find several thematic chains? We tested this retrospectively on all 1,300 documents sampled at random within corpora and already annotated by the LLM. We selected documents containing at least two TF-IDF chains. In the full sample, 864 of 1,300 documents () contained at least two LLM chains of at least two word occurrences each. Of these 864, 769 also yielded a defined chain contribution for every model in their corpus (Table 3). Among the 743 documents selected by TF-IDF, 557 () contained two or more LLM chains of the required length, leaving 307 of the 864 outside the selection. In 20 Newsgroups the proportion rose from to . In Watan-2004 the dictionaries missed 106 of the 176 qualifying documents.
We then drew 50 documents per corpus and ranked the 29 scores by their mean correlation with model consistency under the LLM annotations (Section 4.5). Over 1,000 draws, the median Spearman correlation with the ranking based on all 1,300 documents was when sampling from the documents selected by TF-IDF and when sampling at random from all LLM-annotated documents in each corpus. The dictionaries helped find documents with several LLM chains. Both sampling methods gave rankings similarly close to the full-sample ranking.
In BBC News we also tested whether preliminary Label-ITAR chains could help select documents for LLM annotation. We built these chains before calibrating the thresholds for word occurrences. At each position we found the most probable of all the model’s topics. If the maximum was unique and the topic had been selected under the common-threshold rule, we added the position to the chain for that topic’s class. We selected documents with at least two such chains of at least two word occurrences each. Of the 81 documents selected, 68 () also contained at least two LLM chains of that length. In the full BBC News sample, 126 of 200 documents () met this condition.
For each draw of 50 BBC News documents we ranked the 29 scores by their correlation with the consistency of the 24 models under the LLM annotations. Over 1,000 draws, the median Spearman correlation with the ranking based on all 200 documents was for draws from the Label-ITAR selection and for random draws from the full sample. In this corpus, preliminary Label-ITAR chains helped find documents with several LLM chains. Random draws reproduced the full ranking of the scores more closely.
Appendix C Selecting models and topics by coherence
Table 9 shows how closely cosine SemantiC and posterior-weighted NPMI tracked topic consistency in each corpus. The Topics column counts eligible topics in the original sample, summed over the 24 models in each corpus. When recalculating a within-model correlation in a bootstrap replicate, we included a topic only if the contributing chains it led had positive total weight.
Table 9: Spearman correlations between topic coherence on training texts and consistency with the chain annotations () on held-out documents. We used LLM chains of at least two word occurrences. Each corpus estimate is the median of the correlations computed within its 24 models. The last row gives the equally weighted mean of the seven corpus medians. We recomputed the medians and their mean in each document resample to obtain individual 95% confidence intervals.
| Cosine SemantiC | Posterior-weighted NPMI | ||||||
|---|---|---|---|---|---|---|---|
| Corpus | Topics | Estimate | Lower | Upper | Estimate | Lower | Upper |
| PostNauka | 480 | ||||||
| 20 Newsgroups | 444 | ||||||
| Watan-2004 | 480 | ||||||
| BBC News | 455 | ||||||
| SciNews | 478 | ||||||
| WOS-11967 | 465 | ||||||
| RWGT-2026 | 477 | ||||||
| All corpora | 3,279 |
At the same minimum chain length, requiring contributions from at least two documents per topic left 3,174 topics. The mean of the seven medians was for cosine SemantiC and for posterior-weighted NPMI. Requiring at least five documents left 2,738 topics, with estimates of and , respectively. All 168 models contributed to both comparisons. When we required at least five contributing documents per topic and at least ten word occurrences per chain, none of the 24 models in 20 Newsgroups met our three-topic minimum for computing a correlation. The seven-corpus mean was therefore undefined at that combination of thresholds.
For LLM chains of at least two word occurrences, the posterior-weighted versions of NPMI, PMI, and PPMI gave the three highest mean correlations with model consistency, from to (Figure 3). When one contributing document sufficed for a topic to qualify, the means of the corpus medians for those same three measures ranged from to . The two largest topic-level estimates came from the cosine and variants of SemantiC.
We next examined how the two probabilities in Eq. (3) differed between groups with high and low coherence. A chain’s contribution is , where is the mean posterior probability of the leading topic in that chain. For we take the highest mean probability of that same topic in any other eligible chain of the document. For this descriptive comparison we chose the measure with the highest observed correlation for topics (cosine SemantiC) and the one with the highest for models (posterior-weighted NPMI). We used each measure to rank topics and models separately (Table 10).
For each measure we ranked the topics with defined consistency within each model and selected the top five and the bottom five. For each topic we averaged , , and over the contributing chains it led. For each quantity we subtracted the mean for the bottom five topics from the mean for the top five, then averaged this difference over the 24 models of the corpus.
Within each corpus, we ranked the 24 models by the mean coherence of all 20 domain-specific topics and selected the six highest and six lowest for each measure. For each model we averaged , , and over all its chains with a defined contribution. Each of the six models in a group then had equal weight in the group mean.
We fixed group membership using the full sample. In each document resample (Section 3.7), we used one weight per document for all its chains, across all models, measures, and components of the contribution. In each replicate we recomputed the differences between groups in each corpus, then averaged the seven differences with equal weights. The 2.5th and 97.5th percentiles of the 9,999 usable replicates gave the individual 95% intervals.
Table 10: Differences in mean probabilities and chain contributions between high- and low-coherence groups (high minus low), in percentage points, for LLM chains of at least two word occurrences. We took the top and bottom five topics within each model, or the top and bottom six models within each corpus. For a chain’s leading topic, is its mean probability in that chain and is its highest mean probability in any other eligible chain of the same document. The chain contributes to the consistency score. Each estimate is the equally weighted mean of the seven corpus differences. The lower and upper bounds give its individual 95% confidence interval from document resampling.
| Own chain | Competitor | Contribution | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Level | Ranked by | Estimate | Lower | Upper | Estimate | Lower | Upper | Estimate | Lower | Upper |
| Topics | Cosine SemantiC | |||||||||
| Topics | Posterior-weighted NPMI | |||||||||
| Models | Cosine SemantiC | |||||||||
| Models | Posterior-weighted NPMI |
For topics ranked by cosine SemantiC, the mean difference between the top and bottom five across corpora was percentage points for and for . The top five therefore had a mean chain contribution that was 7.2 points higher (95% interval to ). The observed difference in mean contribution was positive in every corpus, ranging from 3.6 percentage points in PostNauka to 9.2 in BBC News. In PostNauka the individual 95% interval included zero ( to points). For the five topics ranked highest by posterior-weighted NPMI, both probabilities were about five points higher than in the lowest five, and the interval for the difference in contributions included zero.
For models ranked by posterior-weighted NPMI, the top six exceeded the bottom six by 4.8 percentage points for and by 3.2 points for . The mean chain contribution was therefore 1.6 points higher (95% interval to ). Grouping models by cosine SemantiC gave a difference of points, with an interval from to .
We repeated the rank comparison in Table 9 using dictionary-based TF-IDF chains on the full held-out sets. Across the 168 models, 3,348 topics qualified for the within-model correlations between coherence and topic consistency. The mean of the seven corpus medians was for cosine SemantiC (individual 95% interval to ) and for posterior-weighted NPMI ( to ). In each of the 9,999 resamples used for the intervals, a document’s weight was the number of times it was drawn with replacement. We computed estimates for all 27 measures for these TF-IDF chains and at each of the five minimum lengths for LLM chains.
Appendix D Computing top-word and intra-text coherence measures
We compute all frequencies and coherence scores on the training part of each corpus. Positions refer to the normalized word sequence in each document, including the positions of words outside the training vocabulary.
D.1 Top-word measures
For each topic , rank the words by decreasing , breaking ties by row order in . Let be the first words. We use lists of 10, 20, 50, and 100 words.
UCI and top-word NPMI. Slide a window of ten positions along each document, one position at a time. In each full window, pair its first position with each of the next nine, counting a pair if both words are in the vocabulary. A document of ten distinct in-vocabulary words gives just one full window, hence nine position pairs before we select pairs of top words. The weighted measures in Section 3.4 use all 45 position pairs in the same document.
Let be the number of position pairs obtained by the full-window rule across the training corpus. Let count occurrences of among their endpoints. A pair containing twice contributes two to this count. For distinct words , let count pairs containing them in either order. Recording each pair in both directions gives one record with first and second for each of these pairs. The probabilities used in the PMI and NPMI formulas in Section 3.4 are therefore
For UCI, we average PMI over pairs of top words with and . For top-word NPMI, we average NPMI over the same pairs. Each word pair has equal weight regardless of how often it occurs. Both scores require at least two distinct pairs. Newman et al. [2] estimated co-occurrence frequencies from Wikipedia. We count pairs of word occurrences in the training texts of the corpus under study. Röder et al. [6] and the Gensim implementation of these two measures count windows containing the words.
UMass. Let count the documents containing , and let count those containing both words. Following Mimno et al. [3], we compute topic coherence as
where the denominator is the document frequency of the higher-ranked word in the pair. Each such denominator must be positive.
. Following Röder et al. [6], we build a co-occurrence profile for each top word. We use every full window of 110 positions, advancing one position at a time. A document shorter than 110 positions contributes one window. Let be the fraction of all windows in the corpus that contain and the fraction that contain both and . We count the presence of a word once per window, so . The profile of word contains one NPMI value for each word on the list, including itself. With smoothing constant and exponent , each component is a smoothed NPMI. We take the cosine similarity of each profile to the sum of all profiles and average the similarities to obtain topic coherence,
The score requires finite components and a nonzero norm for each vector in the cosines.
D.2 Intra-text measures
The topic profile of a word has components . Every occurrence of the word shares this profile. At position in document , let be the leading topic according to the posterior probabilities in Eq. (1). Normalizing a word profile requires . For the posterior-based measures in this appendix, a zero value of at an in-vocabulary position in the training corpus makes the model’s score undefined. We include the background topic, when present, in the normalization and in topic assignment. For both profile and posterior assignments, we break exact ties by taking the first tied column of .
SemantiC. For topic , take all pairs of in-vocabulary positions in the same document with and . The two positions may contain the same word. The variant averages the Euclidean distance between and over all such pairs in the corpus. The Cos variant averages the cosine similarity of the same vectors.
For the Var variant, compute the variance of for each topic in each full sliding window of ten positions. Use every in-vocabulary word occurrence in the window, regardless of its leading topic. If the window contains such occurrences, divide the sum of squared deviations from the window mean by . The topic score is the average of these variances over all eligible windows in the corpus.
TopLen (Segment). For topic , start a segment at the first position where . Begin with a running total of . Starting with the first word of the segment, add for each occurrence of an in-vocabulary word . For a word outside the vocabulary, subtract . The segment ends at the first position that brings the total below zero or when the document ends. Its length includes that last position. The next segment for topic starts at the first subsequent position assigned to . We average the lengths of all segments for the topic across the corpus.
TopLen (Chain). In this variant from TopicNet [19], assign each word to the topic with the largest component of its profile . Within each document, list the positions assigned to topic in the order in which they occur. Start a chain at the first such position. Add each subsequent position to the current chain if it is at most ten positions from the preceding occurrence assigned to . A greater distance starts a new chain. The chain length is the number of word occurrences it contains. First average the chain lengths for the topic within each document. Then give equal weight to each document containing at least one occurrence assigned to the topic and average these document means.
FoCon. Let and be in-vocabulary words at adjacent positions and of document . For each , let be its leading topic. For the leading topic of each word, take the absolute change in its posterior probability between the two positions. The sum is
If , the change in that topic’s probability counts twice. The published formula sums these quantities over the corpus and applies a minus sign [4]. In our experiment, FoCon is the mean of the expression above over all eligible adjacent pairs in the training corpus. Smaller values indicate less change in the leading topics’ probabilities.
Appendix E Examples of thematic chains
In each excerpt, highlighting marks every word occurrence to which the LLM assigned a subject class. The key above each passage identifies its classes by shading and underline style. Unmarked words include those omitted during preprocessing and those that received no subject class. The two Russian excerpts are followed by English translations. In the BBC News excerpt, we joined two paragraphs for readability. Watan-2004 contributes to the quantitative analysis. We omitted an Arabic excerpt because none of the authors reads Arabic.
PostNauka. Hamlet in Klingon and machine translation
Language and philology
Culture
Technology
На клингонский язык переведено несколько книг, в частности « Гамлет». Кроме того, клингонский стал единственным артлангом, удостоившимся чести попасть в настоящую систему машинного перевода.
English translation. Several books have been translated into Klingon, including Hamlet. Klingon also became the only language invented for artistic purposes to earn a place in a working machine translation system.
Annotation. In the Russian text, the LLM assigned the word for ‘translated’ to Language and philology, Hamlet to Culture, and the words for ‘machine translation system’ to Technology.
Alexander Piperski, PostNauka · 51238.txt
20 Newsgroups. Car tax in Finland
Automobiles
Sale and trade
General politics
Many cars sold here in Finland are * small* and * cheap* cars (at least when compared to other cars — note that we have over 120 % car tax).
20 Newsgroups collection · rec.autos.103438
BBC News. An interactive Christmas tree at Tate Britain
Entertainment
Technology
A Christmas tree that can receive text messages has been unveiled at London's Tate Britain art gallery. The spruce has an antenna which can receive Bluetooth texts sent by visitors to the Tate.
BBC News collection · bbc_entertainment_001
SciNews. Corals move into cooler waters
Earth and environmental science
Biology
Worsening environmental pressures, such as higher sea temperatures, are causing the catastrophic loss of coral cover around the globe. As the waters of the Great Barrier Reef warm, subtropical corals are heading south in search of cooler waters.
Phys.org · scinews_test_000704
WOS-11967. Sensors for detecting falls at home
Computer Science
Civil Engineering
Electrical Engineering
The present paper details the development of a cost-effective Fall- Detection and- Intervention System ( FaDIS) based on Wireless Sensor Network technologies. The system is designed to integrate into existing low-tech homes, to enable Ambient Assisted Living environments, where software and hardware devices attempt to facilitate a safe and proactive independent living.
Automation in Construction · wos11967_005089
RWGT-2026. A miniature sculpture on a soccer trophy
Visual and performing arts
Technology and industry
Sport
« Футболисты» — бронзовая скульптурная композиция советского скульптора Иосифа Чайкова, создана в 1938 году. Известна своим сложным инженерно-математическим решением композиции. Миниатюрная копия скульптуры украшает кубок чемпионата России по футболу.
English translation. The Football Players is a bronze sculpture created in 1938 by the Soviet sculptor Iosif Chaikov. It is known for the intricate engineering and mathematics of its composition. A miniature replica of the sculpture adorns the Russian soccer championship trophy.
Annotation. The title Футболисты (‘The Football Players’) belongs to the arts chain. The final word футболу (‘soccer’) belongs to the sport chain.
Russian Wikipedia, The Football Players (sculpture by Chaikov) · ruwiki/3779711
Appendix F Document labels and subject classes used for annotation
We give the document labels in their original spelling, with an English translation in parentheses after each Russian label. For the subject classes used to annotate word occurrences, we give the English names from the annotator’s class cards. We trained the topic models independently of these cards.
PostNauka
Document labels (32). антропология (anthropology), астрономия (astronomy), астрофизика (astrophysics), биология (biology), вселенная (the universe), ген (gene), генетика (genetics), геном (genome), государство (the state), днк (DNA), история (history), история_россии (history of Russia), клетка (cell), культура (culture), лингвистика (linguistics), математика (mathematics), медицина (medicine), мозг (brain), образование (education), общество (society), политика (politics), психология (psychology), россия (Russia), социология (sociology), технологии (technologies), физика (physics), филология (philology), философия (philosophy), химия (chemistry), эволюция (evolution), экономика (economics), язык (language). The entry Без метки (unlabeled) denotes documents with no assigned label.
Subject classes for word occurrences (21). “Anthropology”, “Astronomy and cosmology”, “Biology”, “Genetics and genomes”, “Politics and government”, “History”, “Cell biology”, “Culture”, “Language and philology”, “Mathematics”, “Medicine”, “Brain and neuroscience”, “Education”, “Society and sociology”, “Psychology”, “Technology”, “Physics”, “Philosophy”, “Chemistry”, “Biological evolution”, “Economics”.
20 Newsgroups
Document labels (20). alt.atheism, comp.graphics, comp.os.ms-windows.misc, comp.sys.ibm.pc.hardware, comp.sys.mac.hardware, comp.windows.x, misc.forsale, rec.autos, rec.motorcycles, rec.sport.baseball, rec.sport.hockey, sci.crypt, sci.electronics, sci.med, sci.space, soc.religion.christian, talk.politics.guns, talk.politics.mideast, talk.politics.misc, talk.religion.misc.
Subject classes for word occurrences (17). “Religion, belief and atheism”, “Computer graphics”, “Microsoft Windows”, “Personal-computer hardware”, “X Window System”, “Sale and trade”, “Automobiles”, “Motorcycles”, “Baseball”, “Ice hockey”, “Cryptography”, “Electronics”, “Medicine and health”, “Space science and exploration”, “Gun politics”, “Middle East politics”, “General politics”.
Watan-2004
Document labels (6). culture, economy, international, local, religion, sports.
Subject classes for word occurrences (10). “Culture”, “Economics”, “Religion”, “Sport”, “Politics, law and security”, “Society and education”, “Medicine and health”, “Science and technology”, “Ecology and conservation”, “Travel and tourism”.
BBC News
Document labels (5). business, entertainment, politics, sport, tech.
Subject classes for word occurrences (5). “Business”, “Entertainment”, “Politics”, “Sport”, “Technology”.
SciNews
Document labels (9). Biology, Chemistry, Computer, Earth, Medicine, Nano, Other, Physics, Space.
Subject classes for word occurrences (8). “Biology”, “Chemistry”, “Computer science”, “Earth and environmental science”, “Medicine”, “Nanoscience and nanotechnology”, “Physics”, “Space and astronomy”.
WOS-11967
Document labels (33). Numeric codes 0–32.
Subject classes for word occurrences (7). “Computer Science”, “Electrical Engineering”, “Psychology”, “Mechanical Engineering”, “Civil Engineering”, “Medical Science”, “Biochemistry”.
RWGT-2026
Subject areas used for both documents and word occurrences (28). Архитектура и сооружения (Architecture and structures), Астрономия и космос (Astronomy and space), Биология (Biology), Военное дело и безопасность (Military affairs and security), География и места (Geography and places), Еда и гастрономия (Food and gastronomy), Игры (Games), Изобразительное и сценическое искусство (Visual and performing arts), История и археология (History and archaeology), Кино, телевидение и анимация (Film, television and animation), Литература (Literature), Математика и статистика (Mathematics and statistics), Медиа и коммуникация (Media and communication), Медицина и здоровье (Medicine and health), Музыка (Music), Науки о Земле (Earth science), Общество и образование (Society and education), Политика и право (Politics and law), Религия и мифология (Religion and mythology), Спорт (Sport), Техника и промышленность (Technology and industry), Транспорт (Transport), Физика (Physics), Философия (Philosophy), Химия (Chemistry), Экология и сельское хозяйство (Environment and agriculture), Экономика и бизнес (Economics and business), Язык и лингвистика (Language and linguistics).
Sergey Rumyantsev, “Nanotechnology in Medicine” (in Russian), PostNauka, 2013. The lecture description is document
12974.txtin the PostNauka collection. ↩In the wintra repository, docs/annotation/ contains the English instructions (intracoh-chain-annotation.en.md), their Russian translation (intracoh-chain-annotation.ru.md), and all seven sets of class cards (cards.md). ↩
Our choice was influenced in part by a presentation on COSMOS at AIST 2024. In preparing a corpus of Russian-language fairy tales, Vychegzhanin et al. [22] asked GPT-4 to describe the main events of each tale in short phrases. ↩
Mikhail Sokolov, “Goffman’s concept of a frame” (in Russian), PostNauka, 2015. The transcript is document
48624.txtin the PostNauka collection. ↩In the repository’s docs/results/ directory, formal.csv and topic-agreement-formal.csv give the Holm-adjusted -values and simultaneous intervals for models and topics, respectively. The frame_documents column in support.csv gives the sampling-frame size for each corpus. ↩
Post
rec.sport.baseball.105062in the test split of the 20 Newsgroups collection. ↩Veselova and Vorontsov [28] define topic capacity as , where is the number of tokens in document . Gorbulev et al. [29] also call this quantity topic size. ↩
The BERTopic documentation describes this option under reduce_frequent_words=True. ↩
The adjusted score was , where is the fraction of calibration documents carrying the class label. For each of 1,000 permutations, we found the maximum adjusted score across all candidate topic–class pairs for the common threshold, or across topics for each class for the class-specific thresholds. In each case the threshold was the 99th percentile of the corresponding maxima. ↩
The one-sided 95% Wilson lower confidence bound for this fraction had to be at least . ↩