Andres R Masegosa
· 1 previous affiliation
- Aalborg UniversityCurrent
- Current
- Associate Professor · 2021–2025
Research Overview
Andres R Masegosa focuses on probabilistic machine learning, with a particular emphasis on PAC-Bayes theory, Bayesian inference under model misspecification, and the development of trustworthy uncertainty quantification methods. His work bridges the gap between theoretical statistical learning theory and practical deep learning, exploring how generalization bounds can be used both to analyze and to improve the performance of neural network ensembles and probabilistic models. Currently an Associate Professor at Aalborg University and a member of the ELLIS Society, he leads the Villum Synergy Grant "DK-Future" as Principal Investigator, applying probabilistic frameworks to complex real-world data challenges.
Research Trajectory
The evolution of Masegosa’s research reflects a steady progression from algorithmic refinements in supervised learning toward the foundational theoretical principles of Bayesian inference and generalization. In the early stage of his career (2005–2012), his work was primarily centered on ensemble methods and feature selection. During this period, he investigated how to improve the robustness of classification models, particularly in the presence of noise. This included participation in research on feature elimination for high-dimensional biological data and the development of A Bayesian Random Split to Build Ensembles of Classification Trees, which utilized a Bayesian approach to randomize decision tree construction. This early interest in ensembles laid the groundwork for his later, more theoretical investigations into model diversity and generalization.
By the mid-2010s, Masegosa’s focus shifted toward the intersection of information geometry and probabilistic modeling. A key contribution during this phase was the introduction of Stochastic Discriminative EM, an algorithm that reframed the Expectation-Maximization (EM) process as a stochastic natural gradient descent method. This work engaged with the theme of Efficient Natural Gradients via Dual Parameter Spaces, recognizing that the parameter space of probabilistic models is not "flat" and that standard gradient steps may not account for the underlying geometry of the distribution. During this time, he also contributed to research on variational Bayesian solvers for robust subspace clustering, seeking to mitigate the local minima problems inherent in traditional variational inference.
In the late 2010s, Masegosa began a deep dive into PAC-Bayes theory and the problem of model misspecification. This period marked a significant shift toward establishing rigorous theoretical guarantees for machine learning models. He challenged the conventional wisdom regarding Bayesian optimality in Learning from i.i.d. data under model miss-specification, demonstrating that Bayesian model averaging can be suboptimal when the true data-generating process lies outside the chosen model class. This research utilized second-order PAC-Bayes bounds to provide a more nuanced understanding of how models generalize when they are fundamentally "wrong." This theoretical line of inquiry also explored Differentiable PAC-Bayesian Bounds as Training Objectives, suggesting that generalization bounds should not merely be used for post-hoc analysis but should be integrated directly into the optimization process.
Current Directions
Masegosa’s recent work (2020–2026) focuses on the theoretical foundations of deep learning ensembles and the resolution of empirical paradoxes in Bayesian deep learning. A major theme in his current research is the formalization of "diversity" in neural network ensembles. While diversity has long been recognized as a qualitative benefit for ensemble performance, Masegosa’s work in Diversity and Generalization in Neural Network Ensembles provides a theoretically sound framework for measuring and optimizing this property. This research links ensemble diversity directly to generalization performance, offering a rigorous explanation for why certain ensemble configurations outperform others.
Another significant current focus is the "Cold Posterior Effect" (CPE), a phenomenon in Bayesian deep learning where models perform better when the posterior distribution is artificially "sharpened" (using a temperature $T < 1$). In The Cold Posterior Effect Indicates Underfitting, and Cold Posteriors Represent a Fully Bayesian Method to Mitigate It, Masegosa and his collaborators argue that CPE is not merely a result of prior misspecification, as previously thought, but is a signal of underfitting. This work provides a theoretical justification for using cold posteriors as a legitimate Bayesian tool to improve predictive performance when the model class is insufficiently expressive.
Masegosa is also extending his probabilistic frameworks into the domain of bioinformatics and genomics. His recent development of UncertainGen: Uncertainty-Aware Representations of DNA Sequences for Metagenomic Binning represents a shift toward application-specific uncertainty quantification. By representing DNA fragments as probability distributions in a latent space rather than fixed points, this work addresses the inherent ambiguity in metagenomic data, such as inter-species DNA sharing. This application aligns with his broader interest in Recursive Bayesian Updating for Continual Learning, where models must adapt to evolving data streams while maintaining a calibrated sense of their own uncertainty.
Representative Work
Stochastic Discriminative EM
In Stochastic Discriminative EM, Masegosa introduced an online-EM-type algorithm designed for the discriminative training of generative models within the exponential family. The primary contribution of this work is the formal justification of the algorithm as a stochastic natural gradient descent method. By accounting for the information geometry of the parameter space, the algorithm allows generative models to be trained by minimizing discriminative loss functions, such as negative conditional log-likelihood or Hinge loss. This approach ensures that the resulting models remain generative—defining a joint probability over inputs and labels—while benefiting from the predictive strengths of discriminative training.
Bayesian Random Splits for Ensembles
The paper A Bayesian Random Split to Build Ensembles of Classification Trees presents a method for constructing randomized decision trees using a Bayesian split operator. This work was motivated by the success of Random Forests and sought to provide a more principled mechanism for introducing randomness into the tree-building process. Through a bias-variance error decomposition analysis, Masegosa demonstrated that this Bayesian approach allows for the construction of high-performing ensembles with fewer trees than standard Random Forest methods, as it does not rely on the heuristic selection of a fixed number of features at each split.
Model Misspecification and PAC-Bayes Bounds
In Learning from i.i.d. data under model miss-specification, Masegosa provides a critical analysis of Bayesian model averaging (BMA). The work introduces a new family of second-order PAC-Bayes bounds to evaluate generalization performance when the model is misspecified—a condition nearly universal in practical machine learning. The analysis reveals that BMA is not the optimal strategy for learning predictive models unless the true data-generating distribution is contained within the model class. This paper serves as a foundational theoretical argument for the development of alternative Bayesian methods that are more robust to the discrepancies between models and reality.
Diversity in Neural Network Ensembles
The research presented in Diversity and Generalization in Neural Network Ensembles addresses the long-standing question of how to formally define and measure diversity in machine learning ensembles. Masegosa developed a theoretically sound framework that describes the relationship between diversity and ensemble performance across a wide range of methods. By providing rigorous answers to how diversity should be measured and how it impacts generalization, this work moves the study of ensembles away from heuristic observations and toward a formal statistical understanding, particularly in the context of high-capacity models like neural networks.
The Cold Posterior Effect and Underfitting
In The Cold Posterior Effect Indicates Underfitting, and Cold Posteriors Represent a Fully Bayesian Method to Mitigate It, Masegosa investigates why Bayesian neural networks often perform better when the posterior is "cooled" with a temperature $T < 1$. While the Bayesian posterior is theoretically optimal under perfect specification, the "Cold Posterior Effect" (CPE) has puzzled researchers. Masegosa’s work demonstrates that misspecification leads to CPE specifically when it results in underfitting. By showing that cold posteriors can mitigate this underfitting in a way that remains consistent with Bayesian principles, the paper provides a new perspective on uncertainty quantification in deep learning.
Probabilistic DNA Representations
With UncertainGen: Uncertainty-Aware Representations of DNA Sequences for Metagenomic Binning, Masegosa applied his expertise in probabilistic modeling to the field of metagenomics. This work introduced the first probabilistic embedding framework for DNA sequences, representing fragments as Gaussian distributions in a latent space. This approach explicitly models the uncertainty and ambiguity inherent in DNA fragments that may be shared across different microbial species. The framework outperforms deterministic embedding methods and large language models in metagenomic binning tasks while remaining computationally efficient, demonstrating the practical utility of uncertainty-aware representations in complex biological domains.
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