Portrait of Mohamed Ghanem

Mohamed (Oscar) Ghanem

PhD Researcher · CISPA Helmholtz Center · Technical University of Munich

  • Neuro-symbolic Computing
  • Sequential Decision Making
  • Reinforcement Learning

Better known as “Oscar” 😊

I am a Ph.D. student at Technical University of Munich working at the CISPA Helmholtz Center for Information Security. I am also a member of the TUM Graduate School.

My primary research interest is Machine Learning. More broadly, I am interested in exploring underutilized mathematical frameworks and adapting them to machine learning settings, bridging the gap between abstract theory and practical algorithms. In this direction, my current work engages with Neural ODEs as continuous-depth models for dynamical systems, and Rough Path Theory as a general mathematical tool for sequence modeling.

Selected work

Flowing Through States: Neural ODE Regularization for Reinforcement Learning

Mohamed Ghanem, Bernd Finkbeiner

ICLR 20262026

Abstract

Proposes FlowReg, a neural ODE-based regularization method for reinforcement learning that aligns an agent's latent representation with the underlying environment dynamics by modeling MDP trajectories as ODE flows. Integrated into Actor-Critic algorithms, it improves performance across Atari environments.

Less Effort, Shorter Proofs: Reinforcement Learning for Security Protocol Analysis in Tamarin

Matthias Cosler, Cas Cremers, Bernd Finkbeiner, Mohamed Ghanem, Niklas Medinger

ACM CCS 20262026

Abstract

Presents a reinforcement learning framework for proof search in the Tamarin security protocol verifier, inspired by AlphaZero and AlphaProof. A stateless Tamarin API exposes proof search as a classical RL environment, in which Monte Carlo Tree Search is guided by a neural heuristic that learns from completed subproofs. Across 16 case studies, it finds more proofs automatically than Tamarin's standard search and produces shorter proofs than both the standard and human-engineered heuristics.

The Shape of a Program: Path Signatures for Trace-to-Program Induction

Mohamed Ghanem, Bernd Finkbeiner

NeurIPS 20262026

Abstract

Synthesizing programs from execution traces is a fundamental challenge in algorithmic interpretability and the reverse engineering of complex systems. We bring a rough-path-theoretic perspective to program induction, treating execution traces as high-dimensional rough paths and encoding them with the path signature transform, a tool from stochastic analysis whose expectation provably characterizes the distribution of traces a program induces. On three program-induction domains, Karel, List, and RASP, our log-signature trace encoder outperforms LSTM, Transformer, and Fourier baselines in almost every setting, with its largest margins when training data is scarce. We further observe that the trace-to-program pipeline is naturally contractive: it often produces valid programs that are shorter than the ground truth. We turn this into a bootstrapping procedure that exposes redundancy in the ground-truth supervision without any external oracle, which we demonstrate on redundancy-injected versions of our datasets. Finally, the log-signature encoder induces a markedly more interpretable latent geometry than the baselines, in which the nearest neighbors of every state lie on its own execution trace.

All 10 publications →