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

Aleksander Boruch-Gruszecki

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

Research Overview

Aleksander Boruch-Gruszecki focuses on the intersection of programming language theory, formal verification, and machine learning for software engineering. His work spans the development of advanced type systems for languages like Scala to the creation of reinforcement learning environments for Multilingual and Execution Verified Software Engineering Agents. Currently, his research emphasizes Language Agnostic Representations for Cross Language Portability to improve the reliability and versatility of code-generating models across diverse programming languages, particularly those underrepresented in standard training corpora.

Research Trajectory

The trajectory of Boruch-Gruszecki’s research reflects a transition from foundational programming language theory (PLT) toward the application of these formalisms in the era of large language models (LLMs). Between 2019 and 2023, his work was primarily situated within the Scala ecosystem, focusing on the formalization of type systems and the improvement of compiler reasoning. During this period, he contributed to the development of the DOT (Dependent Object Types) calculus, which serves as the theoretical foundation for Scala 3. His research addressed complex challenges in type inference and safety, specifically regarding Generalized Algebraic Data Types (GADTs) and the tracking of variable "capture" within types. This work aimed to provide a unified way to reason about memory safety, effect handlers, and security capabilities by embedding these properties directly into the type system.

Starting in 2025, Boruch-Gruszecki’s focus shifted toward the challenges of automated code generation and program synthesis. Recognizing that LLMs often excel at high-resource languages like Python but struggle with niche or industrial languages, he began developing methods for Program Synthesis for Low-Resource Domain-Specific Languages. This phase of his work integrates formal methods with machine learning, moving beyond simple supervised fine-tuning toward Execution-Guided Reinforcement Learning for Code Generation. By utilizing execution feedback as a reward signal, this research seeks to ensure that generated code is not only syntactically plausible but also functionally correct and verified.

Current Directions

Boruch-Gruszecki’s current research is centered on three primary pillars: the creation of high-quality datasets for software engineering agents, the development of universal reinforcement learning environments for code synthesis, and the implementation of Functional Correctness via Execution-Based Evaluation.

A significant portion of this work addresses the "Python-first" bias in existing models. By building environments that support a wide array of programming languages, including those used in scientific computing and industrial automation, he aims to democratize the benefits of AI-assisted programming. This involves moving away from traditional metrics like BLEU or ROUGE, which measure textual similarity, toward rigorous execution-based benchmarks. Furthermore, his work explores Group Relative Policy Optimization for Large Reasoning Models to overcome the instabilities and high memory requirements typically associated with training large-scale code models.

Representative Work

Agnostics: Learning to Synthesize Code in Any Programming Language with a Universal Reinforcement Learning Environment As the lead author of this 2026 study, Boruch-Gruszecki addresses the performance gap in LLMs when tasked with "low-resource" languages such as Fortran, Julia, and R. The paper introduces a universal reinforcement learning environment designed to train models across a diverse linguistic spectrum. By moving beyond the overrepresented syntax of Python, the work enables models to develop intuition for specialized languages essential for science and engineering. This approach leverages execution feedback to ground the model's learning process in functional correctness rather than mere pattern matching.

AgentPack: A Dataset of Code Changes, Co-Authored by Agents and Humans In this 2025 paper, Boruch-Gruszecki (serving as second author) explores the evolution of code editing datasets. Traditional datasets mined from public repositories are often noisy, containing commingled edits and terse commit messages. This work introduces AgentPack, a dataset consisting of code changes co-authored by humans and software engineering agents. The research demonstrates that these co-authored changes tend to be more narrowly scoped and are accompanied by more explicit natural-language descriptions of intent, providing a superior signal for fine-tuning LLMs on code editing tasks.

Pure Methods for roDOT Published in 2022, this first-author paper introduces a core calculus, $CC_{<:\square}$, designed to track "captured variables" or capabilities within a type system. The work enables lightweight, polymorphic effect checking by treating effects as object capabilities. A key contribution is the "capture tunneling" mechanism, which allows the system to enforce safety properties—such as ensuring a file handle is not used after closure—without the rigidity of traditional effect systems. This research bridges the gap between theoretical safety and practical language implementation.

Tracking Captured Variables in Types In this 2021 work, Boruch-Gruszecki (first author) presents $\text{CF}_{<:}$, a new calculus that incorporates variable capture directly into the type system. While standard types typically describe what a value is, this calculus describes what a value knows or holds onto. This formalization provides a unified framework for reasoning about various computational properties, including memory safety and security capabilities, within a single type-theoretic structure.

A case for DOT: theoretical foundations for objects with pattern matching and GADT-style reasoning This 2022 publication contributes to the theoretical foundations of the Dependent Object Types (DOT) calculus. The paper explores how DOT can be extended to support complex features like pattern matching and GADT-style reasoning. By providing a rigorous formal basis for these features, the work supports the continued evolution of modern object-oriented languages that incorporate functional programming paradigms, specifically focusing on the soundness and expressivity of the Scala 3 type system.

Towards improved GADT reasoning in Scala This early 2019 work focuses on the practical challenges of implementing Generalized Algebraic Data Types (GADTs) in the Scala compiler. GADTs are a powerful tool for expressing complex invariants in types, but they often present significant difficulties for type inference and exhaustivity checking. Boruch-Gruszecki’s contributions in this area laid the groundwork for more robust GADT support in subsequent versions of the Scala compiler, emphasizing the need for precise reasoning about type constraints during compilation.

Profile updated

See something wrong? Report a mistake