Papers › KDSTM: Neural Semi-supervised Topic Modeling with Knowledge Distillation

KDSTM: Neural Semi-supervised Topic Modeling with Knowledge Distillation

4 Jul 2023arXiv:2307.01878archive 2025-07-28

Weijie Xu, Xiaoyu Jiang, Jay Desai, Bin Han, Fuqin Yan, Francis Iannacci

In text classification tasks, fine tuning pretrained language models like BERT and GPT-3 yields competitive accuracy; however, both methods require pretraining on large text datasets. In contrast, general topic modeling methods possess the advantage of analyzing documents to extract meaningful patterns of words without the need of pretraining. To leverage topic modeling's unsupervised insights extraction on text classification tasks, we develop the Knowledge Distillation Semi-supervised Topic Modeling (KDSTM). KDSTM requires no pretrained embeddings, few labeled documents and is efficient to train, making it ideal under resource constrained settings. Across a variety of datasets, our method outperforms existing supervised topic modeling methods in classification accuracy, robustness and efficiency and achieves similar performance compare to state of the art weakly supervised text classification methods.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2307.01878")

Code

Syntology Ran 1 of 8 code samples harvested from 2 repositories linked to this paper; 7 have no recorded run. Of those that ran: 1 ran with no contract checked.

By repository: found in paper text by Syntology: 8 samples from 2 repositories, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yumeng5/WeSTClass found in paper text by SyntologyApache-2.0 report
JoeZJH/Labeled-LDA-Python found in paper text by Syntology report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

8 samples harvested; 1 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran
7unverified

Licence: 0 of the 8 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

NpEncoder JoeZJH/Labeled-LDA-Python/model/labeled_lda.py found in paper text by Syntology ran MIT (permissive) · 89637f53f16ac549 · report
LldaModel JoeZJH/Labeled-LDA-Python/model/labeled_lda.py found in paper text by Syntology unverified MIT (permissive) · f7ee076ad2cb57e4 · report
clean_str yumeng5/WeSTClass/load_data.py found in paper text by Syntology unverified Apache-2.0 (permissive) · aff9156b5262f81c · report
dot_product yumeng5/WeSTClass/model.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 748cc128f5cb04c4 · report
f1 yumeng5/WeSTClass/model.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 02b9090cc2f7dd5e · report
preprocess_doc yumeng5/WeSTClass/load_data.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 390f3d16f6c22e3d · report
read_file yumeng5/WeSTClass/load_data.py found in paper text by Syntology unverified Apache-2.0 (permissive) · d38d5642834c1922 · report
seed_expansion yumeng5/WeSTClass/gen.py found in paper text by Syntology unverified Apache-2.0 (permissive) · a93dc96d10365f5e · report

Tasks

ClassificationKnowledge DistillationText Classificationtext-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBERTBPECosine AnnealingDense ConnectionsDropoutGPT-3Knowledge DistillationLayer NormalizationLinear LayerLinear Warmup With Cosine AnnealingLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections