Kareem Ahmed
· 4 previous affiliations
- University of California, IrvineSince 2024
- Postdoctoral Scholar · Since 2024
- PHD Student · 2017–2025
- PhD student · 2017–2023
- Graduate Teaching Assistant · 2018
- Visiting Researcher · 2016–2017
- Technical University of Munich2014–2017
- Master's degree, Informatics · 2014–2017
- Research Intern · 2014–2016
- German University in Cairo2013–2014
- Robot Multi-agent Systems Researcher · 2013–2014
- Teaching Assistant · 2014
Research Overview
Kareem Ahmed focuses on neuro-symbolic artificial intelligence, probabilistic reasoning, and structured output prediction. His early work developed methods for integrating logical constraints into neural network training through exact probabilistic inference and semantic loss functions. More recently, his research addresses the controllable generation of large language models, leveraging probabilistic circuits and local resampling to enforce complex semantic constraints on autoregressive systems.
Research Trajectory
Ahmed’s early research established techniques for integrating symbolic domain knowledge into deep learning systems, particularly within the area of Logic Constrained Probabilistic Inference. In 2021, he introduced methods to enforce logical constraints during model training without sacrificing the precise meaning of those constraints. This was demonstrated in Leveraging Unlabeled Data for Entity-Relation Extraction through Probabilistic Constraint Satisfaction, where semantic loss was used to maintain a probability distribution over possible states, guiding models toward solutions that minimize constraint violations in low-data regimes. To make these techniques more accessible, he developed Pylon: A PyTorch Framework for Learning with Constraints, which provided a practical software foundation for differentiable logic in neuro-symbolic learning.
Expanding on structured output prediction, Ahmed designed Semantic Probabilistic Layers for Neuro-Symbolic Learning in 2022. This work introduced a predictive layer that guarantees neural network outputs remain consistent with predefined symbolic constraints by combining exact probabilistic inference with logical reasoning. He further explored how to leverage unlabeled data for structured prediction in Neuro-Symbolic Entropy Regularization, contrasting traditional entropy regularization with neuro-symbolic approaches that restrict predictions to valid structures.
By 2023, his focus expanded to scaling these neuro-symbolic methods and addressing the computational bottlenecks of exact probabilistic inference. He synthesized the principles of semantic loss in Semantic Loss Functions for Neuro-Symbolic Structured Prediction, detailing how to steer networks toward satisfying underlying structural dependencies. Recognizing that exact probabilistic objectives are often computationally infeasible, he proposed an iterative approach in Semantic Strengthening of Neuro-Symbolic Learning, which assumes constraints decompose conditioned on learned features to avoid the pitfalls of fuzzy approximations.
During this period, Ahmed also addressed fundamental challenges in discrete sampling and autoregressive modeling. He developed SIMPLE: A Gradient Estimator for $k$-subset Sampling, utilizing exact marginals to achieve lower bias and variance in discrete latent models. Crucially, he extended logical constraints to autoregressive models like Transformers in A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraints. Because computing exact probabilities for constraints in large language models is computationally intractable, this work introduced an efficient approximation that evaluates constraints only within the local neighborhood of a generated sample.
In 2024, Ahmed’s work broadened to encompass systems-level optimizations, graph neural networks, and the fundamental properties of language model tokenization. He contributed to the broader area of Scaling Probabilistic Inference Under Logical Constraints and specifically advanced the research direction of Tractable Probabilistic Circuits for Exact Inference with his collaborative work on Scaling Tractable Probabilistic Circuits: A Systems Perspective. In the domain of graph representation learning, he participated in developing Probabilistically Rewired Message-Passing Neural Networks, contributing to the emerging direction of Decoupled Graph Structure Refinement and Rewiring.
Simultaneously, he investigated the structural assumptions underlying large language models. In Where is the signal in tokenization space?, Ahmed and his collaborators analyzed the computational hardness of finding the most likely tokenization for a given string, advancing research directions such as Marginalizing over Tokenizations for String Level Language Models and Marginalizing over Tokenizations for Character Level Consistency.
Most recently, in 2025, Ahmed has focused on the controllable generation of large language models. He introduced GEN-C in Controllable Generation via Locally Constrained Resampling, a framework that forces language models to follow complex logical constraints—such as solving Sudoku puzzles or avoiding toxic language—by combining local probabilistic approximations with constraint circuits. Building on this, he developed Semantic Probabilistic Control of Language Models, which leverages a verifier's gradient information to steer language model generations toward satisfying subtle, non-lexical constraints like sentiment and politeness, overcoming the limitations of sampling-based estimators for low-probability events.
Current Directions
Recent work investigates the semantic and probabilistic control of large language models. The most recent papers in the evidence address the challenge of steering autoregressive generation to satisfy complex, non-lexical constraints—such as toxicity avoidance, sentiment control, and strict logical adherence. Rather than relying on myopic greedy decoding or inefficient sampling for low-probability events, this current direction focuses on integrating local probabilistic approximations, constraint circuits, and sequence-level verifier gradients directly into the generation process. This ongoing research aims to bridge the gap between the fluid generative capabilities of foundation models and the rigorous reliability required for constrained, structured reasoning tasks.
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