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

Matheus Pereira

Microsoft (United States)
7 previous affiliations
    • Researcher · Since 2022
  • Stradigi AI2019–2022
    • Tech Lead, AI Python Developer · 2020–2022
    • AI Python Developer · 2019–2022
  • PyCaxias2014–2019
    • Organizador Voluntário · 2014–2019
  • DevGrid2018–2019
    • Backend Software Engineer · 2018–2019
  • Tchelinux2013–2019
    • Organizador Voluntário · 2013–2019
    • Master's degree, Artificial Intelligence · 2017
  • Universidade de Caxias do Sul2009–2013
    • Bachelor of Science (B.Sc.), Computer Science · 2009–2013
8Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Matheus Pereira focuses on parameter-efficient fine-tuning, prompt optimization, and the application of large language models to software engineering tasks. His early work explored adapter routing and variational inference for stacked language models to improve cross-task generalization and efficiency. More recently, his research investigates codebase-level understanding and synthetic data generation for training software engineering agents.

Research Trajectory

In 2023, Pereira contributed to research on parameter-efficient fine-tuning methods for large language models. With collaborators, he investigated the area of Lightweight Bottleneck Adapters for Foundation Model Specialization through the development of Multi-Head Routing (MHR). Detailed in Multi-Head Adapter Routing for Cross-Task Generalization, this work splits adapters into independent heads to improve how models generalize to unseen tasks. The research demonstrated that routing mechanisms primarily aid models in learning harmoniously across diverse pre-training tasks, thereby addressing challenges in the research direction of Mitigating Task Interference in Multi-Task Learning and intersecting with the broader area of Fine-Grained Expert Granularity in Sparse Mixture Models.

During the same year, Pereira participated in developing Deep Language Networks (DLNs), a framework that conceptualizes large language models as layers within a neural network where natural language prompts function as weights. The resulting paper, Joint Prompt Optimization of Stacked LLMs using Variational Inference, applied variational inference to jointly optimize these prompts across multiple stacked models. This approach allowed smaller models to achieve performance comparable to much larger frontier models. This work contributed to several emerging research areas, including Reasoning as Latent Variable Inference, Optimizing Through Non Differentiable Token Selection, and the broader direction of Training-Free Inference Acceleration via Computational Redundancy.

By 2026, Pereira's collaborative work shifted toward evaluating and improving the software engineering capabilities of language models. He co-authored Gistify: Codebase-Level Understanding via Runtime Execution, which introduced a novel evaluation task requiring models to distill complex codebase functionality into a single, self-contained executable file. The study highlighted that even advanced models struggle with deep structural reasoning when processing long execution traces and extensive repository contexts.

Continuing this focus on software engineering applications, Pereira contributed to BugPilot: Complex Bug Generation for Efficient Learning of SWE Skills. This research addressed the need for high-quality training data for software engineering agents by proposing a synthetic generation method for difficult and diverse bugs. Rather than relying on intentional, local perturbations, the methodology instructed agents to introduce features into a codebase and collected the unintentionally buggy changes caught by test failures, yielding a distribution of bugs that more closely reflects human-authored development patterns.

Current Directions

The most recent papers in the evidence indicate a focus on the intersection of large language models and software engineering. Recent work investigates how to rigorously evaluate models on deep structural reasoning within complex repositories, as well as how to generate realistic, synthetic training data for software engineering agents. This involves moving beyond localized code generation to address repository-scale understanding, runtime execution traces, and the automated curation of complex bug-fixing datasets.

Profile updated

See something wrong? Report a mistake