Måns Magnusson
· 5 previous affiliations
- Uppsala UniversitySince 2020
- Associate professor · Since 2024
- Current
- Assistant Professor · 2020–2024
- Aalto University2018–2020
- Postdoctoral Researcher · 2018–2020
- Linköping University2012–2018
- Ph.D. student in Statistics · 2012–2018
- Smittskyddsinstitutet2011–2012
- Statistician · 2011–2012
- Stockholm University2000–2012
- Master of Science (MSc), Statistics · 2000–2012
Research Overview
Måns Magnusson focuses on scalable Bayesian inference, probabilistic programming, and the development of robust evaluation frameworks for machine learning. His trajectory spans from massively parallel sampling algorithms for topic models to large-scale datasets for legal artificial intelligence. Most recently, his work centers on standardizing the testing and benchmarking of posterior inference algorithms to improve the reliability of probabilistic programming languages.
Research Trajectory
Magnusson's early work addressed the computational bottlenecks of large-scale probabilistic modeling. In 2019, he collaborated on Pólya Urn Latent Dirichlet Allocation: A Doubly Sparse Massively Parallel Sampler, which tackled the challenges of training topic models on massive corpora in distributed environments. Standard parallel inference approaches for Latent Dirichlet Allocation (LDA) often struggled with convergence guarantees or required prohibitive memory overhead to store large dense matrices. To resolve this, the research introduced a novel sampler utilizing a Pólya-urn-based approximation. This approach achieved both theoretical and empirical speedups over existing Gibbs samplers while maintaining a doubly sparse structure, enabling more efficient distributed computation for natural language processing tasks.
Expanding into domain-specific machine learning applications and dataset curation, Magnusson participated in the development of The Cambridge Law Corpus: A Dataset for Legal AI Research in 2023. This project released a comprehensive collection of over 250,000 UK court cases alongside expert-annotated outcomes. The corpus was designed to facilitate the benchmarking of large language models, such as GPT-4, on complex legal tasks. This effort also intersects with the broader research area of Mitigating Optical Character Recognition Noise in Document Analysis, as large-scale archival datasets frequently require robust processing pipelines to handle historical text degradation and digitization artifacts.
Returning to the core infrastructure of probabilistic machine learning, Magnusson led the 2025 publication of posteriordb: Testing, Benchmarking and Developing Bayesian Inference Algorithms. As probabilistic programming languages like Stan, PyMC, Pyro, and Turing.jl have become foundational tools for statistical modeling, the need to rigorously evaluate new Monte Carlo sampling and variational approximation techniques has grown. The project introduced a comprehensive database of models and datasets that define target densities, complete with reference Monte Carlo draws. This work directly advances the research direction of Standardized Evaluation Protocols for Machine Learning Research by providing best practices for algorithm comparison across a wide range of representative target posteriors. Furthermore, by isolating the evaluation of inference accuracy from the underlying model definitions, the project contributes to the area of Decoupling Model Specification from Inference Procedures.
Current Directions
The most recent papers in the evidence indicate a strong focus on the methodological rigor and evaluation infrastructure of Bayesian statistics and probabilistic programming. Current work addresses the critical need for standardized testing environments where novel inference algorithms can be benchmarked against established reference posteriors. By developing comprehensive databases of target densities and reference draws, this research aims to ensure that as probabilistic programming languages evolve, the underlying Monte Carlo and variational inference algorithms remain robust, accurate, and broadly applicable across diverse modeling scenarios.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake