Michal Klein
· 5 previous affiliations
- Apple (United States)Since 2022
- Researcher · Since 2022
- Helmholtz MunichSince 2019
- Working Student · Since 2019
- Technical University of Munich2018–2022
- MS student · 2021–2022
- Master's degree, Computer Science · 2018–2019
- Charles University2017–2019
- Master's degree, Computer Science · 2017–2019
- Comenius University Bratislava2013–2016
- Undergrad student · 2013–2016
Research Overview
Michal Klein focuses on optimal transport, generative modeling, and computational biology. His early work developed scalable frameworks for spatial omics and symbolic regression models for dynamical systems. More recently, he investigates advanced optimal transport formulations for flow matching, conformal prediction, and the targeted steering of large language models.
Research Trajectory
Klein's early research addressed the intersection of machine learning and scientific discovery, particularly in dynamical systems and spatial biology. In 2022, he introduced a Transformer-based sequence-to-sequence model in Discovering ordinary differential equations that govern time-series. By leveraging large-scale pretraining on millions of synthetic examples, this model recovers symbolic differential equations directly from time-series trajectories, bypassing the slow per-instance optimization of traditional methods. This work advanced the broader area of Symbolic Regression as a Translation Task, a methodology he subsequently expanded upon in Efficient Discovery of Dynamical Laws in Symbolic Form.
Concurrently, Klein contributed to foundational computational tools for biological research. He was part of the team that developed Squidpy: a scalable framework for spatial omics analysis, a Python library designed to unify molecular profiles with high-resolution tissue images. This framework enables researchers to analyze spatial patterns and cell-cell communication at scale, contributing to the field of Spatial Graph Neural Networks for Tissue Architecture. He also participated in the broader effort to standardize single-cell omics data analysis through The scverse project provides a computational ecosystem for single-cell omics data analysis.
Moving into 2023 and 2024, Klein's focus shifted heavily toward the mathematical foundations of Optimal Transport (OT). In Learning Costs for Structured Monge Displacements and its subsequent formalization Learning Elastic Costs to Shape Monge Displacements, he investigated how to define efficiency in OT beyond the traditional squared-Euclidean distance. By introducing elastic costs and regularizers, this work demonstrated how to shape the displacements of probability measures to better reflect the underlying structure of complex data.
This expertise in optimal transport naturally bridged back to his work in computational biology. In 2025, he collaborated on Mapping cells through time and space with moscot, applying OT frameworks to the challenge of Reconstructing Cellular Trajectories from Destructive Snapshot Data. Because single-cell measurement typically destroys the cell, this research utilized optimal transport to infer temporal and spatial connections across millions of cells in modern biological atlases, effectively connecting disparate snapshots.
In 2025, Klein also began applying optimal transport and distributional alignment to the training and control of generative AI models. He developed LinEAS (Linear End-to-end Activation Steering), introduced in End-to-end Learning of Sparse Interventions on Activations to Steer Generation and further detailed in LinEAS: End-to-end Learning of Activation Steering with a Distributional Loss. This framework aligns internal activation distributions across network layers to control generative behavior—such as mitigating toxicity or altering image styles—using very few unpaired samples, advancing the research direction of Compositional Steering for Multi-Attribute Control.
His work on generative models extended to flow matching. With collaborators, he helped introduce Semidiscrete Flow Matching in Flow Matching with Semidiscrete Couplings, which leverages global optimal transport maps to straighten the paths between noise and data distributions. He further scaled these concepts in On Fitting Flow Models with Large Sinkhorn Couplings. By scaling the Sinkhorn algorithm to unprecedented sizes and introducing a scale-invariant metric, this work demonstrated that training on massive OT couplings yields straighter generative trajectories and faster inference, contributing significantly to the area of Numerical Stability in Regularized Optimal Transport.
Klein has also investigated the data pipelines underlying large language models. In The Data-Quality Illusion: Rethinking Classifier-Based Quality Filtering for LLM Pretraining and Removing Noise, not Finding Gold: Quality Filtering for Large-Scale Pretraining, he and his co-authors analyzed Classifier-Based Quality Filtering (CQF). They revealed that rather than simply selecting data that resembles high-quality sets, CQF implicitly filters the high-quality distribution itself, favoring data distinct from noisy web crawls to shape optimization-efficient training distributions.
Finally, Klein has expanded the application of optimal transport to uncertainty quantification. In Multivariate Conformal Prediction using Optimal Transport, he addressed a historical limitation of conformal prediction—its reliance on scalar ranking scores—by using OT to enable distribution-free guarantees for high-dimensional vectors.
Current Directions
The most recent papers in the evidence indicate a dual focus on scaling optimal transport for generative modeling and refining the training and control mechanisms of large language models. Klein is actively investigating how massive optimal transport couplings can improve flow matching models, leading to straighter generative trajectories and more efficient inference. Concurrently, his work addresses the alignment and safety of generative models through lightweight, end-to-end activation steering techniques that require minimal unpaired data. He is also exploring the fundamental dynamics of LLM pretraining, particularly how data filtering algorithms shape optimization-efficient training distributions, and extending optimal transport techniques to solve high-dimensional challenges in conformal prediction.
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