Contextualized Topic Models with Commonsense Knowledge
CPSC 532G - Final Project Presentation
Felipe González-Pizarro, Raymond Li
Corpus-Level Analysis
Latent Dirichlet Allocation (LDA)
Generative Process of a Document
[1] Blei, D. M., Ng, A. Y., & Jordan, M. I. (2003). Latent dirichlet allocation. Journal of machine Learning research, 3(Jan), 993-1022.
Neural Topic Models (NTM)
Variational Autoencoder
Variational Autoencoder as a Topic Model
[1] Akash Srivastava and Charles Sutton. 2017. Autoencoding variational inference for topic models, ICLR,2017
Contextualized Topic Models (CTM)
Contextualized Embeddings (e.g, SBERT)
[1] Bianchi, F., Terragni, S., Hovy, D., Nozza, D., & Fersini, E. (2021, April). Cross-lingual Contextualized Topic Models with Zero-shot Learning. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume (pp. 1676-1683).
Clustering-Based Topic Models
[1] Zihan Zhang, Meng Fang, Ling Chen, and Mohammad Reza Namazi Rad. 2022. Is Neural Topic Modelling Better than Clustering? An Empirical Study on Clustering with Contextual Embeddings for Topics. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 3886–3893, Seattle, United States. Association for Computational Linguistics.
Topic modeling: poor quality of topics
[1] Harrando, I., & Troncy, R. (2021, December). Discovering Interpretable Topics by Leveraging Common Sense Knowledge. In Proceedings of the 11th on Knowledge Capture Conference (pp. 265-268).
[2]Smith, A., Kumar, V., Boyd-Graber, J., Seppi, K., & Findlater, L. (2018, March). Closing the loop: User-centered design and evaluation of a human-in-the-loop topic modeling system. In 23rd International Conference on Intelligent User Interfaces (pp. 293-304). ACM.
[3] Wang, J., Zhao, C., Xiang, J., & Uchino, K. (2019). Interactive Topic Model with Enhanced Interpretability. In IUI Workshops.
Topic modeling and Commonsense
[1] Firth, J. R. (1957). A synopsis of linguistic theory, 1930-1955. Studies in linguistic analysis
[2] Ismail Harrando and Raphaël Troncy. 2021. Discovering Interpretable Topics by Leveraging Common Sense Knowledge. In Proceedings of the 11th on Knowledge Capture Conference (K-CAP '21). Association for Computing Machinery, New York, NY, USA, 265–268. DOI:https://doi.org/10.1145/3460210.3493586
Why do NLP Models Need Commonsense?
Natural language is ...
* Based on slides from Vered Shwartz’s Talk: Incorporating Commonsense Reasoning into NLP Models (July, 2022)
Ambiguous
Under-Specified
Social
What is Commonsense?
*Based on Introductory Tutorial on Commonsense Reasoning. Maarten Sap, Vered Shwartz, Antoine Bosselut, Dan Roth, and Yejin Choi. ACL 2020.
The basic level of practical knowledge and reasoning concerning everyday situations and events that are commonly shared among most people.
Explore Techniques to integrate Commonsense Knowledge into Neural Topic Models
Motivation
Explore Techniques to integrate Commonsense Knowledge
into Neural Topic Models
Explore Techniques to integrate Commonsense Knowledge into Neural Topic Models
To the best of our knowledge, there have been no attempts on integrating relational knowledge into neural topic models.
Motivation
Explore Techniques to integrate Commonsense Knowledge
into Neural Topic Models
Project Plan
[1] Bianchi, F., Terragni, S., & Hovy, D. (2021, August). Pre-training is a Hot Topic: Contextualized Document Embeddings Improve Topic Coherence. In 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) (pp. 759-766).
[2] Srivastava, A., & Sutton, C. (2016). Autoencoding Variational Inference For Topic Models, ICLR 2017
Chicago
Settings
Knowledge Incorporation Approaches
ConceptNet Numberbatch
[1] Speer, R., Chin, J., & Havasi, C. (2017, February). Conceptnet 5.5: An open multilingual graph of general knowledge. In Thirty-first AAAI conference on artificial intelligence.
COMET
[1] Bosselut, A., Rashkin, H., Sap, M., Malaviya, C., elikyilmaz, A., & Choi, Y. (2019, July). COMET: Commonsense Transformers for Automatic Knowledge Graph Construction. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (pp. 4762-4779).
Incorporate Commonsense into CTM
Contextualized Embeddings
New Document representations
SBERT
NumberBatch
SBERT
COMET
Reimers, N., & Gurevych, I. (2019, November). Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) (pp. 3982-3992).
Clustering-Based Approach with Commonsense Knowledge
[1] Becker, Maria, Katharina Korfhage, and Anette Frank. "COCO-EX: A tool for linking concepts from texts to ConceptNet." Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: System Demonstrations. 2021.
Evaluation metrics
[1] Jey Han Lau, David Newman, and Timothy Baldwin. 2014. 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.
[2] Ran Ding, Ramesh Nallapati, and Bing Xiang. 2018. Coherence-aware neural topic modeling. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 830–836, Brussels, Belgium. Association for Computational Linguistics.
[3] Adji B Dieng, Francisco JR Ruiz, and David M Blei. 2020. Topic modeling in embedding spaces. Transactions of the Association for Computational Linguistics, 8:439–453
[4] Federico Bianchi, Silvia Terragni, and Dirk Hovy. 2021a. Pre-training is a hot topic: Contextualized document embeddings improve topic coherence. In 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), pages 759–766, Online. Association for Computational Linguistics
[5] Röder, M., Both, A., & Hinneburg, A. (2015, February). Exploring the space of topic coherence measures. In Proceedings of the eighth ACM international conference on Web search and data mining (pp. 399-408).
Final Results
Neural Topic Model: CTM
Clustering
NTMs vs Clustering
Ablation study
Embeddings
Ablation study
Exploring other configurations
Visualizations
Sievert, C., & Shirley, K. (2014, June). LDAvis: A method for visualizing and interpreting topics. In Proceedings of the workshop on interactive language learning, visualization, and interfaces (pp. 63-70).
We used an interactive topic modeling visualization tool to interpret topics and analyze the quality of our intermediate results.
Visualizations
Sievert, C., & Shirley, K. (2014, June). LDAvis: A method for visualizing and interpreting topics. In Proceedings of the workshop on interactive language learning, visualization, and interfaces (pp. 63-70).
20 NewsGroups - SBERT
20 NewsGroups - CTM+ConceptNet
Lessons learned
Reflections
Was the project successful?
Strengths:
Weakness:
Contributions and Takeaways
Future Work
Future Work
Future Work
Appendix
Questions?
Contextualized Topic Models with Commonsense Knowledge
CPSC 532G - Final Project Presentation
Felipe González-Pizarro, Raymond Li
Expected Outcomes
Computational Cost of Posterior
[1] Blei, D. M., Ng, A. Y., & Jordan, M. I. (2003). Latent dirichlet allocation. Journal of machine Learning research, 3(Jan), 993-1022.
Topic Keywords Coverage (20Newsgroup)