Topic model explained
In statistics and natural language processing, a topic model is a type of statistical model for discovering the abstract "topics" that occur in a collection of documents. Topic modeling is a frequently used text-mining tool for discovery of hidden semantic structures in a text body. Intuitively, given that a document is about a particular topic, one would expect particular words to appear in the document more or less frequently: "dog" and "bone" will appear more often in documents about dogs, "cat" and "meow" will appear in documents about cats, and "the" and "is" will appear approximately equally in both. A document typically concerns multiple topics in different proportions; thus, in a document that is 10% about cats and 90% about dogs, there would probably be about 9 times more dog words than cat words. The "topics" produced by topic modeling techniques are clusters of similar words. A topic model captures this intuition in a mathematical framework, which allows examining a set of documents and discovering, based on the statistics of the words in each, what the topics might be and what each document's balance of topics is.
Topic models are also referred to as probabilistic topic models, which refers to statistical algorithms for discovering the latent semantic structures of an extensive text body. In the age of information, the amount of the written material we encounter each day is simply beyond our processing capacity. Topic models can help to organize and offer insights for us to understand large collections of unstructured text bodies. Originally developed as a text-mining tool, topic models have been used to detect instructive structures in data such as genetic information, images, and networks. They also have applications in other fields such as bioinformatics[1] and computer vision.[2]
History
An early topic model was described by Papadimitriou, Raghavan, Tamaki and Vempala in 1998.[3] Another one, called probabilistic latent semantic analysis (PLSA), was created by Thomas Hofmann in 1999.[4] Latent Dirichlet allocation (LDA), perhaps the most common topic model currently in use, is a generalization of PLSA. Developed by David Blei, Andrew Ng, and Michael I. Jordan in 2002, LDA introduces sparse Dirichlet prior distributions over document-topic and topic-word distributions, encoding the intuition that documents cover a small number of topics and that topics often use a small number of words.[5] Other topic models are generally extensions on LDA, such as Pachinko allocation, which improves on LDA by modeling correlations between topics in addition to the word correlations which constitute topics. Hierarchical latent tree analysis (HLTA) is an alternative to LDA, which models word co-occurrence using a tree of latent variables and the states of the latent variables, which correspond to soft clusters of documents, are interpreted as topics.
Topic models for context information
Approaches for temporal information include Block and Newman's determination of the temporal dynamics of topics in the Pennsylvania Gazette during 1728–1800. Griffiths & Steyvers used topic modeling on abstracts from the journal PNAS to identify topics that rose or fell in popularity from 1991 to 2001 whereas Lamba & Madhusushan [6] used topic modeling on full-text research articles retrieved from DJLIT journal from 1981 to 2018. In the field of library and information science, Lamba & Madhusudhan [6] [7] [8] [9] applied topic modeling on different Indian resources like journal articles and electronic theses and resources (ETDs). Nelson [10] has been analyzing change in topics over time in the Richmond Times-Dispatch to understand social and political changes and continuities in Richmond during the American Civil War. Yang, Torget and Mihalcea applied topic modeling methods to newspapers from 1829 to 2008. Mimno used topic modelling with 24 journals on classical philology and archaeology spanning 150 years to look at how topics in the journals change over time and how the journals become more different or similar over time.
Yin et al.[11] introduced a topic model for geographically distributed documents, where document positions are explained by latent regions which are detected during inference.
Chang and Blei[12] included network information between linked documents in the relational topic model, to model the links between websites.
The author-topic model by Rosen-Zvi et al.[13] models the topics associated with authors of documents to improve the topic detection for documents with authorship information.
HLTA was applied to a collection of recent research papers published at major AI and Machine Learning venues. The resulting model is called The AI Tree. The resulting topics are used to index the papers at aipano.cse.ust.hk to help researchers track research trends and identify papers to read, and help conference organizers and journal editors identify reviewers for submissions.
To improve the qualitative aspects and coherency of generated topics, some researchers have explored the efficacy of "coherence scores", or otherwise how computer-extracted clusters (i.e. topics) align with a human benchmark.[14] [15] Coherence scores are metrics for optimising the number of topics to extract from a document corpus.[16]
Algorithms
In practice, researchers attempt to fit appropriate model parameters to the data corpus using one of several heuristics for maximum likelihood fit. A survey by D. Blei describes this suite of algorithms.[17] Several groups of researchers starting with Papadimitriou et al. have attempted to design algorithms with provable guarantees. Assuming that the data were actually generated by the model in question, they try to design algorithms that probably find the model that was used to create the data. Techniques used here include singular value decomposition (SVD) and the method of moments. In 2012 an algorithm based upon non-negative matrix factorization (NMF) was introduced that also generalizes to topic models with correlations among topics.[18]
In 2017, neural network has been leveraged in topic modeling to make it faster in inference,[19] which has been extended weakly supervised version.[20]
In 2018 a new approach to topic models was proposed: it is based on stochastic block model.[21]
Because of the recent development of LLM, topic modeling has leveraged LLM through contextual embedding[22] and fine tuning.[23]
Applications of topic models
To quantitative biomedicine
Topic models are being used also in other contexts. For examples uses of topic models in biology and bioinformatics research emerged.[24] Recently topic models has been used to extract information from dataset of cancers' genomic samples.[25] In this case topics are biological latent variables to be inferred.
To analysis of music and creativity
Topic models can be used for analysis of continuous signals like music. For instance, they were used to quantify how musical styles change in time, and identify the influence of specific artists on later music creation.[26]
See also
Further reading
- Book: Mark . Steyvers . Tom . Griffiths . Probabilistic Topic Models . http://psiexp.ss.uci.edu/research/papers/SteyversGriffithsLSABookFormatted.pdf . PDF . T. . Landauer . D . McNamara . S. . Dennis . W. . 3 . Kintsch . Handbook of Latent Semantic Analysis . Psychology Press . 2007 . 978-0-8058-5418-3 . dead . https://web.archive.org/web/20130624013706/http://www.psypress.com/books/details/9780805854183/ . 2013-06-24 .
- Web site: Blei. D.M.. Lafferty. J.D.. Topic Models. 2009.
- Blei . D. . Lafferty . J. . A correlated topic model of Science . Annals of Applied Statistics . 1 . 1 . 17–35 . 2007 . 10.1214/07-AOAS114 . 0708.3601 . 8872108 .
- Mimno . D. . Computational Historiography: Data Mining in a Century of Classics Journals . Journal on Computing and Cultural Heritage . 5 . 1 . 1–19 . April 2012 . 10.1145/2160165.2160168 . 12153151 .
- Book: Marwick . Ben . 2013. Discovery of Emergent Issues and Controversies in Anthropology Using Text Mining, Topic Modeling, and Social Network Analysis of Microblog Content . Yanchang . Zhao . Yonghua . Cen . Data Mining Applications with R . Elsevier . 63–93 . https://www.academia.edu/5508141.
- Jockers, M. 2010 Who's your DH Blog Mate: Match-Making the Day of DH Bloggers with Topic Modeling Matthew L. Jockers, posted 19 March 2010
- Drouin, J. 2011 Foray Into Topic Modeling Ecclesiastical Proust Archive. posted 17 March 2011
- Templeton, C. 2011 Topic Modeling in the Humanities: An Overview Maryland Institute for Technology in the Humanities Blog. posted 1 August 2011
- Griffiths . T. . Steyvers . M. . Finding scientific topics . Proceedings of the National Academy of Sciences . 101 . Suppl 1 . 5228–35 . 2004 . 10.1073/pnas.0307752101 . 14872004 . 387300. 2004PNAS..101.5228G . free .
- Yang, T., A Torget and R. Mihalcea (2011) Topic Modeling on Historical Newspapers. Proceedings of the 5th ACL-HLT Workshop on Language Technology for Cultural Heritage, Social Sciences, and Humanities. The Association for Computational Linguistics, Madison, WI. pages 96–104.
- Block . S. . Doing More with Digitization: An introduction to topic modeling of early American sources . Common-place the Interactive Journal of Early American Life . 6 . 2 . January 2006 .
- Newman . D. . S. . Block . Probabilistic Topic Decomposition of an Eighteenth-Century Newspaper . Journal of the American Society for Information Science and Technology . 57 . 5 . 753–767 . March 2006 . 10.1002/asi.20342 . 1484286 .
External links
Notes and References
- Blei. David. Probabilistic Topic Models. Communications of the ACM. April 2012. 55. 4. 77–84. 10.1145/2133806.2133826. 753304.
- Cao, Liangliang, and Li Fei-Fei. "Spatially coherent latent topic model for concurrent segmentation and classification of objects and scenes." 2007 IEEE 11th International Conference on Computer Vision. IEEE, 2007.
- Book: Papadimitriou . Christos . Raghavan . Prabhakar . Tamaki . Hisao . Vempala . Santosh . Proceedings of the seventeenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems - PODS '98 . Latent semantic indexing . 159–168 . 1998 . http://www.cs.berkeley.edu/~christos/ir.ps . Postscript . 10.1145/275487.275505 . 978-0897919968 . 1479546 . 2012-04-17 . 2013-05-09 . https://web.archive.org/web/20130509130907/http://www.cs.berkeley.edu/%7Echristos/ir.ps . dead.
- Hofmann . Thomas . Probabilistic Latent Semantic Indexing . Proceedings of the Twenty-Second Annual International SIGIR Conference on Research and Development in Information Retrieval . 1999 . dead . https://web.archive.org/web/20101214074049/http://www.cs.brown.edu/~th/papers/Hofmann-SIGIR99.pdf . 2010-12-14.
- Blei . David M. . Ng . Andrew Y. . Jordan . Michael I . Michael I. Jordan . Latent Dirichlet allocation . . January 2003 . 3 . 993–1022 . 10.1162/jmlr.2003.3.4-5.993 . Lafferty . John.
- Lamba. Manika jun. 2019. Mapping of topics in DESIDOC Journal of Library and Information Technology, India: a study. Scientometrics. 120. 2. 477–505. 10.1007/s11192-019-03137-5. 174802673. 0138-9130.
- Lamba. Manika jun. 2019. Metadata Tagging and Prediction Modeling: Case Study of DESIDOC Journal of Library and Information Technology (2008-2017). World Digital Libraries. 12. 33–89. 10.18329/09757597/2019/12103. 0975-7597. 31 January 2024.
- Lamba. Manika may. 2019. Author-Topic Modeling of DESIDOC Journal of Library and Information Technology (2008-2017), India. Library Philosophy and Practice.
- Lamba. Manika sep. 2018. Metadata Tagging of Library and Information Science Theses: Shodhganga (2013-2017). ETD2018:Beyond the boundaries of Rims and Oceans. Taiwan, Taipei.
- Web site: Nelson . Rob . Mining the Dispatch . Mining the Dispatch . Digital Scholarship Lab, University of Richmond . 26 March 2021.
- Book: Yin, Zhijun. Proceedings of the 20th international conference on World wide web . Geographical topic discovery and comparison . 2011. 247–256. 10.1145/1963405.1963443. 9781450306324. 17883132.
- Chang. Jonathan. 2009. Relational Topic Models for Document Networks. Aistats. 9. 81–88.
- Michal Rosen-Zvi. Rosen-Zvi. Michal. 2004. The author-topic model for authors and documents. Proceedings of the 20th Conference on Uncertainty in Artificial Intelligence. 487–494. 1207.4169.
- Sergey I. Nikolenko. Nikolenko. Sergey. 2017. Topic modelling for qualitative studies. Journal of Information Science. 43 . 88–102. 10.1177/0165551515617393 . 30657489 .
- Honours thesis. Reverter-Rambaldi. Marcel. 2022. Topic Modelling in Spontaneous Speech Data. Australian National University. 10.25911/M1YF-ZF55.
- Newman. David. 2010. Automatic evaluation of topic coherence. Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics. 100–108.
- Blei . David M. . Introduction to Probabilistic Topic Models . Comm. ACM . April 2012 . PDF . 55 . 4 . 77–84 . 10.1145/2133806.2133826 . 753304 .
- Sanjeev Arora . Rong Ge . Ankur Moitra. Learning Topic Models—Going beyond SVD . 1204.1956. April 2012. cs.LG .
- Miao . Yishu . Grefenstette . Edward . Blunsom . Phil . 2017 . Discovering Discrete Latent Topics with Neural Variational Inference . Proceedings of the 34th International Conference on Machine Learning . en . PMLR . 2410–2419.
- Xu . Weijie . Jiang . Xiaoyu . Sengamedu Hanumantha Rao . Srinivasan . Iannacci . Francis . Zhao . Jinjin . 2023 . vONTSS: vMF based semi-supervised neural topic modeling with optimal transport . Findings of the Association for Computational Linguistics: ACL 2023 . 4433–4457 . Stroudsburg, PA, USA . Association for Computational Linguistics . 10.18653/v1/2023.findings-acl.271. 2307.01226 .
- Martin Gerlach . Tiago Pexioto . Eduardo Altmann. A network approach to topic models . eaaq1360. Science Advances. 2018 . 10.1126/sciadv.aaq1360 . 4 . 7. 30035215 . 6051742 . 1708.01677 . 2018SciA....4.1360G .
- Book: Bianchi . Federico . Terragni . Silvia . Hovy . Dirk . Pre-training is a Hot Topic: Contextualized Document Embeddings Improve Topic Coherence . 2021 . 759–766 . Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers) . http://dx.doi.org/10.18653/v1/2021.acl-short.96 . Stroudsburg, PA, USA . Association for Computational Linguistics . 10.18653/v1/2021.acl-short.96.
- Xu . Weijie . Hu . Wenxiang . Wu . Fanyou . Sengamedu . Srinivasan . 2023 . DeTiME: Diffusion-Enhanced Topic Modeling using Encoder-decoder based LLM . Findings of the Association for Computational Linguistics: EMNLP 2023 . 9040–9057 . Stroudsburg, PA, USA . Association for Computational Linguistics . 10.18653/v1/2023.findings-emnlp.606. 2310.15296 .
- Liu, L. . Tang, L. . etal. An overview of topic modeling and its current applications in bioinformatics. SpringerPlus . 5 . 1608 . 2016 . 1 . 10.1186/s40064-016-3252-8. 27652181 . 16712827. 5028368. free .
- Valle, F. . Osella, M. . Caselle, M.. A Topic Modeling Analysis of TCGA Breast and Lung Cancer Transcriptomic Data. Cancers . 12 . 3799. 2020 . 12 . 10.3390/cancers12123799 . 33339347 . 7766023 . 229325007 . free .
- Shalit . Uri . Weinshall . Daphna . Chechik . Gal . 2013-05-13 . Modeling Musical Influence with Topic Models . Proceedings of the 30th International Conference on Machine Learning . en . PMLR . 244–252.