Yanjun Wang
· 1 previous affiliation
- Amazon (United States)Since 2022
- Researcher · Since 2022
1 other author named Yanjun Wang: Yanjun Wang (Apple (United States) · 11 papers)
Research Overview
Yanjun Wang focuses on program synthesis, formal methods, and the intersection of large language models (LLMs) with structural code analysis. Their work addresses the challenges of automated program generation, the development of decidable logics for complex data structures, and the optimization of domain-specific tasks such as network design and code retrieval. Recently, Wang has explored methods for The Fluency Control Tradeoff in Language Model Steering by integrating formal constraints with autoregressive decoding strategies.
Research Trajectory
Wang’s early research, spanning approximately 2018 to 2020, was primarily concerned with the foundational mechanics of syntax-guided synthesis (SyGuS). During this period, the work focused on the tension between enumerative search—which explores the space of possible programs one by one—and symbolic search, which uses logical solvers to prune the search space. By developing hybrid "concolic" solvers, Wang sought to overcome the scalability limits of traditional synthesis tools. This phase also involved deep theoretical work on the formal logic of tree data structures, establishing a rigorous basis for reasoning about recursive programs.
Between 2021 and 2023, the research trajectory shifted toward the application of synthesis techniques to specialized domains, particularly network engineering and software maintenance. Wang investigated how program synthesis could be used to learn network design objectives, moving away from purely manual configuration toward automated, query-based optimization. This period also saw an increased focus on user-assisted tools, where synthesis was employed to optimize code queries and assist developers in navigating large-scale codebases.
Since 2024, Wang’s work has increasingly engaged with the capabilities and limitations of large language models. This current phase focuses on bridging the gap between the intuitive but imprecise nature of natural language and the rigid requirements of formal systems. This includes developing novel decoding strategies that allow LLMs to adhere to complex structural or logical constraints without sacrificing the fluency of the generated text. A significant component of this recent work involves Backtracking for Autoregressive Generation, repurposing techniques from speculative decoding to steer model outputs away from errors or hallucinations in real-time.
Current Directions
A primary focus of Wang’s current research is the refinement of structural code search. While LLMs are proficient at understanding natural language, their direct application to code retrieval often suffers from token inefficiency and a lack of precision regarding the underlying structure of the code. Wang’s recent work addresses this by using LLMs as translators that convert natural language queries into formal domain-specific languages (DSLs). This approach combines the flexibility of Retrieval-Augmented Generation (RAG) with the precision of structural search engines, significantly improving the efficiency of code discovery in large repositories.
Additionally, Wang is investigating the "Goldilocks zone" of constrained decoding. Traditional methods for forcing LLMs to follow specific rules—such as rigid rejection sampling or greedy constrained decoding—often result in either prohibitive computational costs or degraded text quality. Wang’s research into approximately aligned decoding seeks a middle ground, utilizing backtracking algorithms to maintain statistical consistency with the model’s learned distribution while ensuring the output satisfies external constraints. This work is particularly relevant for applications requiring high-reliability text generation, such as automated documentation or safety-critical code synthesis.
Representative Work
In Reconciling Enumerative and Symbolic Search in Syntax-Guided Synthesis, Wang served as the senior researcher on the development of ConcSolver, a concolic synthesis framework. The research addressed the efficiency bottleneck in SyGuS by representing programs as decision trees and identifying specific decidable fragments of logic. This approach allowed the solver to merge the strengths of enumerative and symbolic search, achieving state-of-the-art performance on standard benchmarks and demonstrating that hybrid search strategies can solve a broader class of synthesis problems than specialized solvers.
Wang’s work on Learning Network Design Objectives Using A Program Synthesis Approach applied formal synthesis to the domain of network configuration. This research explored how high-level design objectives could be automatically inferred and implemented, reducing the reliance on manual, error-prone network engineering. This was further extended in Comparative Synthesis: Learning Near-Optimal Network Designs by Query, where Wang developed a method for learning network designs through iterative user queries. This comparative approach allows the system to converge on near-optimal configurations by analyzing user preferences, effectively treating network design as a synthesis problem guided by human feedback.
In the area of program reasoning, Wang developed techniques for Reasoning about recursive tree traversals. This work provided a formal framework for analyzing programs that operate on hierarchical data structures, a common but challenging task in software verification. By establishing decidable logics for these traversals, the research contributed to the ability of automated tools to verify the correctness of recursive algorithms.
More recently, Wang contributed to the development of Structural Code Search using Natural Language Queries. This research addresses the gap between intuitive English queries and the structural precision required for effective code retrieval. By leveraging LLMs to translate natural language into DSLs like Semgrep and GQL, the system achieves high-precision retrieval. The study demonstrated that this method is significantly more token-efficient than using LLMs for direct search, providing a scalable solution for navigating complex software systems.
Wang also participated in the research of Approximately Aligned Decoding, a novel strategy for steering LLM outputs. This work adapts the mathematical foundations of speculative decoding to create a backtracking mechanism that ensures generated text follows complex constraints. The research identifies a balance between the high computational cost of traditional rejection sampling and the potential for "gibberish" outputs in rigid constrained decoding, offering a more robust path for deploying LLMs in environments where both fluency and adherence to rules are critical.
Profile updated
| Title | Venue | Year |
|---|---|---|
| Structural Code Search using Natural Language Queries | arXiv | 2025 |
| Approximately Aligned Decoding | NeurIPS | 2025 |
| User-assisted code query customization and optimization | Int. J. Softw. Tools Technol. Transf | 2024 |
| User-Assisted Code Query Optimization | Soap@pldi | 2023 |
| Comparative Synthesis: Learning Near-Optimal Network Designs by Query | Proc. ACM Program. Lang | 2023 |
| Reasoning about recursive tree traversals | Ppopp | 2021 |
| Reconciling enumerative and deductive program synthesis | Pldi | 2020 |
| A Decidable Logic for Tree Data-Structures with Measurements | Vmcai | 2019 |
| Learning Network Design Objectives Using A Program Synthesis Approach | Hotnets | 2019 |
| Reconciling Enumerative and Symbolic Search in Syntax-Guided Synthesis | arXiv | 2018 |
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