AIMech AI

Topical n-gram model

Model Families AIMech:TopicalNGramModel DRAFT
Aliases: TNG
A topic-conditioned sequence model that chooses whether each word uses a topic-specific unigram distribution or a topic-and-previous-word bigram distribution, with that choice depending on the preceding word and its topic.
Identity Notes & Concept Scope Scoped to Wang, McCallum and Wei's ICDM2007 TNG model in Figure 1(c). The Bernoulli gate uses the previous token's topic and word; the emission uses the current topic. Consecutive bigram choices form longer phrases, but the local generative law remains first order. This differs from the always-bigram topic model, the topic-independent LDA collocation components and generic tokenization. TNG is the source acronym. Topic assignments need not be identical within an extracted phrase. No normalized candidate identity matched all 442 pinned AIO IDs, labels and scoped synonyms or 432 preceding native IDs, names and aliases. Full-checkout searches included ignored and hidden files in both checkouts; six matching lines per checkout came from three unique file contents containing prior frontier leads, bibliography context and a cached publication-list mention. All candidate-matching excerpts were read; the long cached browser transcript was not reread in full. All 205 semantic label/synonym hits were byte-verified unchanged from prior reading. Eighteen annotated AIO CLASS nodes and outgoing edges comprise 17 verified prior inspections and one fresh reading. Twenty-seven contextual YAMLs comprise 25 unchanged prior readings, one fresh generated AIO reading and one final round102 native record verified against its fully read review inputs. No candidate record is present within this bounded pinned-snapshot and maintained-corpus search.

Claims & Grounded Evidence

2 Claims
Mechanism #topic-conditioned-gate
Each document has a Dirichlet topic vector theta. Each topic has a categorical unigram vector phi, each topic/previous-word pair has a categorical bigram vector sigma, and each previous-topic/previous-word pair has a Bernoulli gate psi with a Beta prior. At position i, x_i is drawn from psi_(z_(i-1),w_(i-1)), z_i from theta, and w_i from phi_z_i if x_i=0 or sigma_(z_i,w_(i-1)) if x_i=1. Initial and other specified boundaries constrain gates to unigrams. Runs of bigram choices induce phrases; the paper labels a phrase by its last word's topic as an output convention. This does not impose a shared latent topic across the phrase.
Mechanism #next-gate-inference-boundary
The generative law makes z_i a parent of the next gate x_(i+1). Consequently a topic update conditioned on the other assignments must account for that outgoing gate as well as the current emission and document mixture. The full joint in Appendix A includes those factors, but the printed joint/topic conditional displays on pp.4 and10 omit the next-gate contribution. A collapsed implementation must remove all affected factors and preserve shared-parameter count corrections before evaluating candidates. A finite integrated example yields a topic conditional of (2/3,1/3), whereas dropping that contribution gives (4/7,3/7). This qualifies the printed inference expression, without asserting that uninspected author software used it.

⚠️ Curated Limitations & Negative Results

Artificial Intelligence Ontology (AIO) Grounding

Mapped AIO Classes
AIO Target Class Mapping Relation Mapping Rationale
AIO:LanguageModel
Language Model
broad_match This source-defined model assigns probabilities to word sequences and is narrower than the pinned LanguageModel class.
AIO:ProbabilisticTopicModel
Probabilistic Topic Model
related_match The model supports probabilistic topic modeling; the pinned target is task-scoped, so related match preserves the model/task distinction.

Evidence Sources & Primary Literature

1 Source
Source ID Publication / Document Type / Access Reference & Checksum
method-source
Xuerui Wang, Andrew McCallum, Xing Wei
primary paper
full_text
sha256:3ed0ce0b6b73…

Curation Provenance

Curator: Codex
Method: ai_assisted
Model: GPT-6
Created: 2026-10-12T00:24:39Z
Updated: 2026-10-12T00:24:39Z
Source File: data/curated/TopicalNGramModel.yaml