Klas Wijk

Klas Wijk

KTH Royal Institute of Technology
4 previous affiliations
    • PhD student · 2023–2027
    • Research Assistant · 2022–2023
    • MS student · 2021–2023
    • Teaching Assistant · 2020–2023
    • Student Ambassador · 2019–2021
    • Undergrad student · 2018–2021
    • Master Thesis · 2023
  • Handelsbanken2019–2022
    • Software Engineer Intern · 2019–2022
  • Fresenius Kabi2017–2019
    • Intern · 2017–2019
5Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Klas Wijk focuses on differentiable relaxations, $k$-subset sampling, and gradient estimation for discrete latent variables. His trajectory centers on developing mathematically rigorous estimators that bridge non-differentiable operations with gradient-based optimization. Currently, he investigates scalable top-$k$ operators and score function estimators to improve optimization stability in probabilistic machine learning.

Research Trajectory

Klas Wijk’s published research trajectory, as observed in the evidence from 2024 to 2025, centers on the mathematical and algorithmic challenges of integrating discrete operations into differentiable programming paradigms. His early collaborative work addressed neural feature selection. As a second author on Indirectly Parameterized Concrete Autoencoders (2024), Wijk contributed to resolving stability and redundancy issues in vanilla Concrete Autoencoders by reparameterizing the selection layer through a learnable embedding, which improved training speed and accuracy.

Concurrently, Wijk established a primary research focus in the broader area of Gradient Estimation for Discrete Latent Variables. Moving away from the pathwise gradient estimators commonly used for subset sampling, he explored alternative probabilistic methods. This direction was first formalized in the workshop paper Revisiting Score Function Estimators for $k$-Subset Sampling (2024), where he and his collaborators proposed using score function estimators to handle the non-differentiable nature of $k$-subset distributions.

In 2025, this foundational work matured into the ICLR publication SFESS: Score Function Estimators for $k$-Subset Sampling. In this first-author paper, Wijk demonstrated how to efficiently compute the score function of a $k$-subset distribution using a Discrete Fourier Transform. Crucially, this work intersected with the research direction of Stabilizing Stochastic Gradients with Control Variates and Stein Identities. By applying multi-sample control variates to reduce variance, the SFESS method achieved performance competitive with state-of-the-art pathwise estimators while maintaining the ability to optimize non-differentiable downstream models.

Wijk has also expanded his focus to the theoretical underpinnings of top-$k$ operations. In Differentiable Top-k: From One-Hot to k-Hot (2025), he consolidated existing literature on differentiable top-$k$ mechanisms, linking relaxed operators with $\pi$ps sampling. The paper introduced a scalable "sigmoid top-$k$" relaxation that is fully differentiable and defined for continuous values of $k$, offering a generalized approach to $k$-hot sampling.

Beyond core machine learning methodology, Wijk has participated in applying generative models to complex physical systems. As a middle author on Diff-SPORT: Diffusion-based Sensor Placement Optimization and Reconstruction of Turbulent flows in urban environments (2025), he contributed to a framework combining diffusion models with maximum a posteriori (MAP) inference to reconstruct high-fidelity fluid dynamics and optimize sensor placement in urban settings.

Current Directions

The most recent papers in the evidence indicate a continuing focus on the intersection of discrete sampling and continuous optimization. Recent work investigates how to construct exact discrete samples while preserving unbiased, low-variance gradient estimates for neural network training. This methodological focus aligns with broader themes such as Hybrid Gradient Estimators for Non-Smooth Optimization and Steering Generative Models with Non Differentiable Rewards. By developing tools like the SFESS estimator and continuous top-$k$ relaxations, Wijk’s current research aims to provide robust optimization pathways for models operating in environments where standard differentiable contracts break down, ranging from probabilistic feature selection to applied physics simulations.

Profile updated

See something wrong? Report a mistake