Automatic Database Optimization with MIT CSAIL Postdoc Geoffrey Yu

Audrey Woods, MIT CSAIL Alliances | November 30, 2026


Large businesses rely on a mosaic of critical databases, each system picked by a different team for different reasons. But it’s not always obvious which commercially available options are best for a company’s needs. MIT CSAIL Postdoctoral Associate Geoffrey Yu—who successfully defended his PhD thesis in the summer of 2026—is working on AI-assisted methods to decide which database systems are best for an organization’s requirements.

“You need a lot of expertise to design your database infrastructure in an optimal fashion,” Yu says. His work automates those design decisions, finding the best performance within a cost budget or the cheapest option that meets a performance target. Dive under-the-hood of database optimization and learn how this CSAIL researcher is offering clearer ways to determine how to design your essential data infrastructure.

 

VIRTUAL DATABASE ENGINES: THE VALUE OF ABSTRACTION 
When Yu joined CSAIL’s Data Systems Group, the group was using machine learning techniques to auto-specialize individual database components to the workload, tailoring database indexes, query optimizers, data layouts, etc. Their techniques offered concrete efficiency gains, but were hard to deploy. “It involves deeply modifying the internals of the database system, which is less likely to be done in practice because of the risks of making these changes.” So the team moved up a level and asked which existing, commercial databases a company should use for maximal efficiency. That choice offers fewer degrees of freedom, but starts from software companies already trust. “Those existing systems are proven to be production-grade systems, so it’s more likely that somebody would be able to use this idea in practice.”

This led Yu to study how best to arrange systems into multi-engine infrastructures. His thesis proposed the idea of data infrastructure virtualization, a framework that helps users map out what they actually require and then use AI to implement those needs based on their restrictions. “Given some performance constraints, you find the data infrastructure that has the cheapest cost. Or the other way around: if you have a cost budget, get the best performance that you can get while staying within the budget.”

One of the key ideas of his work is offering a layer of abstraction—virtual database engines—which helps users clearly conceptualize and communicate the requirements of the database infrastructure they want to optimize for. A virtual engine describes what an application needs, including its query interface, performance expectations, and tables, without naming the physical system behind it. “It’s a nice systematic way to describe all of those application-level constraints, and then that can be passed into an automated planner to make the physical design decisions of selecting which database systems to use.”

Yu describes three choices for companies interested in his work. The first is to use virtual engines alone with no automation. “If you can lift your data infrastructure description to this virtual data infrastructure description, this abstraction itself has a lot of benefits, because it can help isolate the application layer of your data infrastructure from the physical design.” In an organization with multiple internal users requiring different databases for their jobs, all those separate use cases can be abstracted away, giving the company’s data infrastructure team a deeper understanding of what’s necessary. “This separation gives better control for the organization, because they don't necessarily need to involve the other teams who are using the infrastructure while they are making foundational changes to the underlying infrastructure.”

The second level adds the auto-design models in an advisory mode, allowing Yu’s AI system to explore the workload and recommend a design. “This doesn’t actually go and change the infrastructure. It just runs the search and says, ‘We think maybe you should try this design.’ Then you can have the team inside the enterprise review that and say yes or no, or manually make the decision and take into account what the system is recommending.”

The third option is to let the system run autonomously, updating a company’s infrastructure based on the recommended design. Yu believes the first level is most practical to start with, since “this is foundational infrastructure for your company, and you may be worried about just letting [Yu’s system] run free. So having just this abstraction that separates the application use cases from the physical design is still beneficial from an operational perspective.”

 

NEXT STEPS: ABSTRACTIONS & ACCELERATORS 
Seeing how beneficial the abstraction process itself has been for users, Yu is now looking to study “what's the lowest-overhead way to implement this abstraction.” As a practical first step for database optimization, he wants to make it as easy as possible for companies to explore and systematize the entire design space.

Another direction is to more deeply leverage query accelerators. Most general-purpose databases can run any SQL query, but that flexibility costs speed. On the other hand, code written for one query runs far faster, but few organizations will give up a general database to get it. Yu’s work on query accelerators could allow developers to declare what an accelerator computes and the system then swaps an accelerator into a query plan when appropriate.

Down the road, Yu sees LLM agents changing databases in two significant ways. The first is specialization. Custom query systems made sense only when a workload carried enough financial weight to justify a dedicated engineering team, as with Google’s ads systems. “Now some of these trade-offs are going to change, because it’s becoming easier to generate these specialized systems, or specialized code.” However, agentic acceleration introduces the challenge of verifying correctness. “It’s easy to have it write out a ton of code, but you won’t know if that’s correct. So you need some guarantee, or some way to feel more confident the code is correct.”

The second shift is in the workload itself. Agentic applications create databases by the hundreds, often writing a few small tables and never returning, and branching allows agents within a single database to explore several directions at once. Virtual engines could help organize this pattern of work, since hundreds of virtual databases could share one physical system instead of each requiring its own. “This would work well especially if these workloads are very ephemeral, because you don't want to provision separate physical database systems for all of these short-lived databases. Rather, you can have metadata that just lives on one database system, storing this information.”

Yu is glad to be working “at the forefront of what's changing in the world, exploring exciting new ideas and trying to push the frontier of what's possible.” He describes how the central idea in a lot of his work is specialization. “In computer science, you can always do better in terms of performance if you can specialize, but there's this tension between having something very specialized and having something easy enough to use in general. So in some sense, we're trying to build new abstractions that preserve generality while making it easy to specialize.” Most importantly, he enjoys working in an area with real-world applications. “We're not working on something that's highly theoretical. These are real problems that industry faces, so it's interesting to think about how to try to address them.”

 

Learn more about Geoffrey Yu on his website or CSAIL page.