NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Daniel Melcer

Northeastern University
3 previous affiliations
11Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Daniel Melcer focuses on the intersection of formal methods, reinforcement learning, and large language models (LLMs). His work emphasizes the development of safety guarantees and structural constraints in autonomous systems, ranging from decentralized multi-agent environments to the generation of syntactically correct code. Currently, his research investigates the mechanisms of automatic prompt optimization and the efficiency of constrained decoding techniques to ensure that probabilistic model outputs align with deterministic requirements.

Research Trajectory

Melcer’s research trajectory began with a focus on enhancing decision-making in environments with sparse rewards. Between 2020 and 2021, his work centered on Monte-Carlo Tree Search (MCTS) and the integration of formal specifications to guide agent behavior. During this period, he participated in research that utilized automata to represent high-level goals, providing a framework for dynamic reward shaping. This approach addressed the limitations of traditional MCTS when rewards are infrequent, using formal methods to bridge the gap between high-level objectives and low-level reinforcement learning policies.

Starting in 2022, Melcer shifted his focus toward safety in multi-agent reinforcement learning (MARL). A primary challenge in this domain is ensuring that agents adhere to safety constraints without relying on centralized controllers or full observability of the environment. His work introduced methods for "shielding"—a technique that intercepts and corrects unsafe actions—specifically tailored for decentralized settings. This evolution involved moving from centralized safety models to decomposed shields that allow individual agents to maintain safety guarantees in communication-free and partially observable environments.

In 2024 and 2025, Melcer’s work expanded significantly into the domain of Large Language Models, specifically addressing the challenges of Enforcing Structural Constraints on Language Model Outputs. This research addresses the inherent tension between the probabilistic nature of LLMs and the rigid requirements of formal languages like Python or C++. His recent contributions include developing efficient parsing techniques for real-time code generation and critically evaluating the metaphors used in automatic prompt optimization. This work contributes to the broader theme of Semantic Alignment for Machine Verifiable Logic, ensuring that model outputs are not only fluent but also functionally and structurally sound.

Current Directions

Melcer’s current research focuses on two primary areas: the refinement of decoding algorithms for LLMs and the critical analysis of prompt engineering methodologies. In the realm of decoding, he is developing methods to balance the trade-off between computational efficiency and the preservation of the model's original output distribution. This is particularly relevant for tasks requiring adherence to complex constraints where standard rejection sampling is computationally prohibitive.

Additionally, Melcer is investigating the underlying mechanics of Automatic Prompt Optimization (APO). His recent work challenges the prevailing "textual gradient" metaphor, suggesting that the success of these methods may stem from meta-instruction discovery rather than a directional optimization process analogous to traditional gradient descent. This critical perspective aims to inform the development of more robust and theoretically grounded prompt optimization strategies.

Representative Work

In Verification-Guided Tree Search, Melcer contributed to a method for shaping rewards within MCTS by incorporating verification-guided functions. This work addressed the performance degradation of MCTS in sparse-reward environments by using formal verification techniques to provide a more informative signal to the search algorithm, thereby improving convergence in complex planning tasks.

Melcer’s work on Shield Decentralization for Safe Multi-Agent Reinforcement Learning addressed the problem of maintaining safety in MARL without the need for centralized coordination. He proposed an algorithm for the decomposition of a centralized safety shield into decentralized components. This allows agents to operate safely in environments where they cannot communicate or fully observe the state of other agents, a significant step toward deploying MARL in real-world, safety-critical systems.

In Shield Decomposition for Safe Reinforcement Learning in General Partially Observable Multi-Agent Environments, Melcer extended the theoretical foundations of multi-agent shielding. This research developed a shielding method effective in environments characterized by general partial observability, where agents have different and incomplete information about the world. The resulting method allows agents to solve tasks successfully while strictly adhering to safety specifications, even under information asymmetry.

Addressing the limitations of current LLM steering methods, Approximately Aligned Decoding introduces a method to balance distributional distortion with computational speed. By repurposing techniques from speculative decoding, the approach allows for the generation of long sequences under difficult constraints. This method reduces the amplification of low-probability tokens—a common issue in rigid constrained decoding—while remaining more efficient than exact rejection sampling.

In Constrained Decoding for Code Language Models via Efficient Left and Right Quotienting of Context-Sensitive Grammars, Melcer developed an incremental parser designed for program synthesis. The parser utilizes Earley-style operations over left and right quotients of context-free grammars, extended to handle context-sensitive features common in programming languages. This allows for the early rejection of syntactically incorrect tokens and facilitates efficient "fill-in-the-middle" tasks, ensuring that LLM-generated code remains syntactically valid.

Melcer’s critical analysis in Textual Gradients are a Flawed Metaphor for Automatic Prompt Optimization examines the conceptual foundations of APO. Through a series of experiments, the paper demonstrates that the "textual gradient" analogy—treating natural language feedback as a mathematical gradient—does not accurately describe how these optimization methods function. The findings suggest that APO methods often succeed by discovering meta-instructions that are independent of the specific "gradient" feedback provided, suggesting a need for new frameworks to understand prompt evolution.

Profile updated

See something wrong? Report a mistake