Nikola Milosevic

Publications

2026

The Dually Flat Geometry of Planning as Inference

Nikola Milosevic, Asaki Kataoka, Nicolás Hinrichs, Kenji Doya, Nico Scherf

Geometric Distributional Learning (GDDL) Workshop, NeurIPS 2026

Abstract

We present an alternative characterization of the occupancy measure of reinforcement learning, obtained by embedding the planning criterion into the dynamics through a resetting planning process. Its stationary measure, which we term visitation measure, is the object on which the information geometry of decision making is most naturally expressed. The achievable visitation measures form a dually flat statistical manifold whose two affine charts are the visitation probabilities and the log-policies, dual under the conditional entropy. This structure makes planning-as-inference generalize from linear rewards to nonlinear functionals of the visitation, each iterate solved by one natural-gradient step, and gives the temporal-difference error the interpretation of a marginal-utility estimate. We develop the geometry and its consequences for reinforcement learning and theoretical neuroscience.

Active Inference as a Convex Markov Decision Process

Nikola Milosevic, Nicolás Hinrichs, Nico Scherf

International Workshop on Active Inference (IWAI 2026)

Abstract

Active Inference (AIF) frames adaptive behavior as the minimization of expected free energy (EFE), combining epistemic and pragmatic objectives within a single variational principle. We frame AIF as policy optimization and show that, for closed-loop control policies, EFE minimization can be formulated as a convex Markov decision process (MDP). This perspective reveals that policy-dependent reward prediction errors transmit natural gradients of the expected free energy backwards in time rather than up a hierarchy. Finally, we show that coupling world-model learning with policy optimization gives active inference the structure of performative reinforcement learning. Together this places EFE minimization within modern reinforcement learning and optimization theory and opens a route toward principled algorithms for active inference.

Physical embodiment enables information processing beyond explicit flow sensing in active matter

Diptabrata Paul, Nikola Milosevic, Nico Scherf, Frank Cichos

Science Advances, 12(11), eaec0783

Abstract

We show that physical embodiment in active matter systems enables information processing capabilities that exceed what is possible through explicit flow sensing alone. Using microswimmers as a model system, we demonstrate that the body itself acts as a computational resource, coupling sensory and motor degrees of freedom in ways that simplify the control problem.

Stochastic Decision Horizons for Survival-Based Constrained Reinforcement Learning

Nikola Milosevic, Leonard Franz, Daniel Haeufle, Georg Martius, Nico Scherf, Pavel Kolev

Reinforcement Learning for Experimental Sciences (RL4XS) Workshop, NeurIPS 2026

Abstract

We propose stochastic decision horizons (SDH), a theoretically grounded framework for survival-based constrained reinforcement learning from per-step violation signals. Rather than treating violations as expenditure of a cumulative budget, SDH shortens the effective decision horizon when violations occur, reducing current reward credit and future bootstrapping. We show that this construction represents a geometric-horizon survival constraint and, for a fixed Lagrange multiplier, remains the same SDH problem up to a constant reward offset that acts as an implicit incentive for survival. Using control as inference, we derive two off-policy and replay-compatible, regularized algorithms with post-violation semantics. Absorbing-state ends the decision process, so only surviving decisions pay policy KL, yielding AS-SAC. Virtual termination stops reward credit while the process continues, retaining ordinary discounted KL and yielding VT-MPO. To connect SDH with cumulative-cost CMDPs, we introduce violation-depth profiles. Under exponential-tail single-scale profiles, the SDH statistic determines cumulative cost; departures from this form mark where the connection breaks. Experiments validate both the method and this predicted scope. On the 90-muscle H2190 humanoid in Hyfydy, VT-MPO matches the EWA reference in peak gait realism, with its highest observed gait-match checkpoint at 21M environment steps versus 90M for EWA and markedly more stable training. On Safety Gymnasium, violation-depth profiles predict the regimes in which SDH achieves strong reward-violation trade-offs.

ALPARC: Artificial Languages with Phonological and Acoustic Rhythmicity Controls

Lorenzo Titone, Nikola Milosevic, Lars Meyer

Frontiers in Psychology, 17, 1786300

Abstract

We present ALPARC, an open-source Python toolbox for generating artificial languages with precise control over phonological and acoustic rhythmicity. The toolbox introduces a phonological rhythmicity index to quantify confounding periodicity of phonological features at the transitional-probability rate, and uses a pseudo-random-walk approach to ensure unconfounded stationarity across streams of arbitrary length. ALPARC enables researchers to create controlled stimuli for studying statistical and rhythmic learning, with parametric control over syllable inventories, durations, stress patterns, and transitional probabilities.

The Geometry of Nonlinear Reinforcement Learning

Nikola Milosevic, Nico Scherf

Geometry, Topology, and Machine Learning Workshop (GTML 2025), PMLR 325:215-239

Abstract

We present a unified geometric framework in which reward maximization, safe exploration, and intrinsic motivation emerge as aspects of a single optimization problem over the space of achievable long-term behavior. Classical RL techniques — policy mirror descent, natural policy gradient, trust-region methods — extend naturally to nonlinear utilities and convex constraints under this perspective, subsuming objectives related to robustness, safety, exploration, and diversity.

2025

Embedding Safety into RL: A New Take on Trust Region Methods

Nikola Milosevic, Johannes Müller, Nico Scherf

International Conference on Machine Learning (ICML), PMLR 267:44199-44224

Abstract

Reinforcement Learning (RL) agents can solve diverse tasks but often exhibit unsafe behavior. Constrained Markov Decision Processes (CMDPs) address this by enforcing safety constraints, yet existing methods either sacrifice reward maximization or allow unsafe training. We introduce Constrained Trust Region Policy Optimization (C-TRPO), which reshapes the policy space geometry to ensure trust regions contain only safe policies, guaranteeing constraint satisfaction throughout training. We analyze its theoretical properties and connections to TRPO, Natural Policy Gradient (NPG), and Constrained Policy Optimization (CPO). Experiments show that C-TRPO reduces constraint violations while maintaining competitive returns.

Central Path Proximal Policy Optimization

Nikola Milosevic, Johannes Müller, Nico Scherf

The Exploration in AI Today Workshop at ICML 2025

Abstract

In constrained Markov decision processes, enforcing constraints during training is often thought of as decreasing the final return. Recently, it was shown that constraints can be incorporated directly in the policy geometry, yielding an optimization trajectory close to the central path of a barrier method, which does not compromise final return. Building on this idea, we introduce Central Path Proximal Policy Optimization (C3PO), a simple modification of PPO that produces policy iterates, which stay close to the central path of the constrained optimization problem. Compared to existing on-policy methods, C3PO delivers improved performance with tighter constraint enforcement, suggesting that central path-guided updates offer a promising direction for constrained policy optimization.

2024

Open Problem: Active Representation Learning

Nikola Milosevic, Gesine Müller, Jan Huisken, Nico Scherf

ICML Workshop on Aligning Reinforcement Learning Experimentalists and Theorists (ARLET 2024)

Abstract

In this work, we introduce Active Representation Learning, a class of problems that intertwines exploration and representation learning within partially observable environments. We extend ideas from Active Simultaneous Localization and Mapping (active SLAM), and translate them to scientific discovery problems, exemplified by adaptive microscopy. We explore the need for a framework that derives exploration skills from representations, aiming to enhance the efficiency and effectiveness of data collection and model building in the natural sciences.