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

Kanghee Park

University of California San Diego
2 previous affiliations
8Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Kanghee Park focuses on scaling formal reasoning through modularization and abstraction, with specific applications in program analysis, program synthesis, and the reliable generation of structured data from Large Language Models (LLMs). Park’s work addresses the fundamental tension between the probabilistic nature of generative models and the deterministic requirements of formal languages, developing methods for Enforcing Structural Constraints on Language Model Outputs. By integrating techniques from automated reasoning and programming languages into the decoding process of LLMs, Park aims to ensure that generated outputs—such as source code, mathematical proofs, or structured data—adhere to strict syntactic and semantic constraints.

Research Trajectory

Park’s early research, beginning around 2023, centered on the challenges of program and specification synthesis. This work was motivated by the observation that while writing functional code is difficult, formalizing the specifications that describe intended behavior is often more taxing for developers. Park investigated methods to automate this process, focusing on the synthesis of "best" properties within domain-specific languages. A significant theme during this period was the scalability of synthesis tools. In Modular System Synthesis, Park explored how modularization could be used to decompose large synthesis problems into smaller, manageable sub-problems with similar search space characteristics, thereby extending the capabilities of existing synthesis frameworks.

In 2024, Park’s focus expanded to include the synthesis of specifications for nondeterministic programs. This involved reasoning about complex program behaviors, including "angelic" (where a property holds for some execution) and "demonic" (where a property holds for all executions) scenarios. This work culminated in the development of frameworks for synthesizing both over-approximate and under-approximate specifications, which are critical for identifying bugs in concurrent code and synthesizing strategies for game-theoretic problems.

Concurrently, Park began addressing the reliability of LLMs in generating structured output. This transition marked a shift toward Distribution Preserving Constrained Decoding for Language Models. Park identified that standard grammar-constrained decoding (GCD) techniques, while effective at enforcing syntax, often distort the underlying probability distribution of the model. This distortion can lead to outputs that, while syntactically correct, are statistically unlikely or unrepresentative of the model's learned knowledge. Park’s work in this area sought to reconcile the rigid guardrails of formal grammars with the probabilistic sampling required for high-quality LLM output.

By 2025, Park’s research moved toward optimizing the efficiency and flexibility of these constrained decoding methods. A primary challenge in this domain is Reconciling Sub-word Tokenization with Structural Constraints. Because LLMs process text as sub-word fragments rather than logical units, aligning a context-free grammar with a model's tokenizer is computationally expensive. Park developed new algorithms to accelerate the preprocessing of these grammars, significantly reducing the time required to prepare a model for constrained generation. Additionally, Park participated in research exploring Markov Chain Monte Carlo (MCMC) methods as a means of treating constrained decoding as a sampling problem, which has shown utility in Solving the Cold Start Problem in Software Fuzzing by improving the diversity and accuracy of generated test inputs.

Representative Work

Specification and System Synthesis

In Synthesizing Specifications, Park addresses the difficulty of manual specification authoring by proposing a framework for automatic synthesis. The approach is guided by two user-provided inputs: a query regarding function definitions and a domain-specific language (DSL) for the desired properties. Park demonstrates a method for extracting "best" properties—those for which no other property in the DSL is strictly more precise—and ensures the synthesized set is exhaustive. This work provides a foundation for more reliable program verification and repair by lowering the barrier to formalizing code behavior.

Park further addresses the scalability of these methods in Modular System Synthesis. The paper introduces a technique for synthesizing large programs by composing smaller, modular components. The core contribution is a method to ensure that each sub-problem in the synthesis hierarchy maintains a consistent search space character. This modular approach allows synthesis tools to handle more complex systems than monolithic search methods, suggesting new directions for how synthesis applications can exploit modular design principles.

The synthesis of specifications for nondeterministic programs is explored in LOUD: Synthesizing Strongest and Weakest Specifications. Park introduces a logical framework that generates both over-approximations (strongest specifications) and under-approximations (weakest specifications). By integrating a quantifier instantiation algorithm into the synthesis loop, the resulting tool, ASPIRE, can reason about concurrent code and nondeterministic execution paths. This work is particularly relevant for identifying subtle bugs in multi-threaded environments and for synthesizing strategies in competitive, two-player game scenarios.

Constrained Decoding and LLM Reliability

In Grammar-Aligned Decoding, Park investigates the impact of grammar-constrained decoding (GCD) on the output distributions of LLMs. While GCD is typically used to mask tokens that violate a grammar, Park demonstrates that this greedy restriction can distort the model's likelihoods. The paper argues that outputs generated under these constraints may not be proportional to the original model's distribution, potentially compromising the quality or relevance of the generated code or data. This work highlights the need for decoding strategies that maintain statistical integrity while enforcing formal rules.

Park addresses the computational overhead of GCD in Flexible and Efficient Grammar-Constrained Decoding. The paper introduces GREATGRAMMA, a system designed to bridge the gap between sub-word tokenization and formal grammar terminals. The technical core of this work is the "inverse token spanner table," a precomputed structure that allows for rapid alignment between the tokenizer and the grammar. Park reports a 17.7x speedup in offline preprocessing compared to prior state-of-the-art methods, while maintaining low latency during online token generation. This efficiency is critical for making constrained decoding practical for real-time applications.

Park also contributed to the development of alternative sampling frameworks in Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective. As a middle author, Park participated in research that reframes constrained decoding as a Markov Chain Monte Carlo (MCMC) sampling problem. This approach moves beyond simple token masking to ensure that the model follows structural rules without losing its underlying logic. The framework demonstrated significant improvements in the diversity of generated outputs, which Park and the research team applied to software fuzzing, resulting in a 17% increase in the discovery of unique code paths.

Current Directions

Park’s current work continues to focus on the intersection of formal methods and machine learning, specifically targeting the efficiency and correctness of code generation. This includes ongoing efforts to refine the alignment between complex context-free grammars and the idiosyncratic tokenization schemes of modern LLMs. By reducing the preprocessing burden and ensuring distribution-preserving sampling, Park’s research seeks to make formal guarantees a standard component of AI-assisted software engineering. The broader goal remains the creation of tools that allow for the high-speed generation of software that is provably compliant with syntactic and semantic specifications.

Profile updated

TitleVenueYear
Constrained Sampling for Language Models Should Be Easy: An MCMC PerspectiveNeurIPS2025
Flexible and Efficient Grammar-Constrained DecodingICML2025
Grammar-Aligned DecodingGitHub resourceNeurIPS2024
LOUD: Synthesizing Strongest and Weakest SpecificationsProc. ACM Program. Lang2024
Modular System SynthesisarXiv2023
Synthesizing SpecificationsProc. ACM Program. Lang2023
<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="italic">E</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mi mathvariant="italic">g</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math>model of superconducting<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="normal">UPt</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math>Physical1996
Photoemission and tunneling as tests for fluctuating superconductivity above<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="italic">T</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="italic">c</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math>in high-<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="italic">T</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="italic">c</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math>superconductorsPhysical1993

See something wrong? Report a mistake