Skip to content

marekhorst/MVTopicModel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MVTopicModel: Probabilistic Multi View Topic Modelling engine

Omiros Metaxas

General Notes

Non-parametric Multi-View Topic Model (MV-HDP) that extends well-established Hierarchical Dirichlet Process (HDP) incorporating a novel Interacting Pólya Urn scheme (IUM) to model per-document topic distribution. This way, MV-HDP combines interaction and reinforcement addressing the following major challenges:

  1. multi-view modeling leveraging statistical strength among different views,
  2. estimation and adaptation to the extent of correlation between the different views that is automatically inferred during inference and
  3. scalable inference on massive, real world datasets. The latter is achieved through a parallel Gibbs sampling scheme that utilizes efficient F+Tree data structure.

We consider that estimating the right number of topics is not our primary goal especially in collections of that size. So, we have implemented a truncated version of the proposed model where the goal is to better estimate priors and model parameters given a maximum number of topics.

Although initially we extended MALLET’s efficient parallel topic model with Sparse LDA sampling, we end up implementing a very different parallel implementation based on F+Trees that:

  • it is more readable and extensible,
  • it is usually faster in real world big datasets especially in multi-view settings
  • shares model related data structures across threads (contrary to MALLET where each thread retains each own model copy) We update the model using background threads based on a lock free, queue based scheme minimizing staleness. Our implementation can scale to massive datasets (over one million documents with meta-data and links) on a single computer.

Related classes in package cc.mallet.topics:

  • FastQMVWVParallelTopicModel: Main class
  • FastQMVWVUpdaterRunnable: Model updating
  • FastQMVWVWorkerRunnable: Gibbs Sampling
  • FastQMVWVTopicModelDiagnostics: Related diagnostics
  • PTMFlow, PTMExperiment: Example of how we can load data from postrgres or SQLite DBs, run MV-Topic Models, calc similarities etc

Example results (multi view topics on Full ACM & OpenAccess PubMed corpora):

https://1drv.ms/f/s!Aul4avjcWIHpg-Ara0PZzqHeOkyGIw

Running from Command line

Topic modeling: java -Xms2G -Xmx28G -cp "MVTopicModel-1.0-SNAPSHOT.jar;lib/" org.madgik.MVTopicModel.PTMFlow Semantic Annotation: java -Xms2G -Xmx28G -cp "MVTopicModel-1.0-SNAPSHOT.jar;lib/" org.madgik.dbpediaspotlightclient.DBpediaAnnotator

About

Multi View Topic Model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%