Mo Malekpour

Mo Malekpour

ML Software Engineer & Researcher, Databases Internals Enjoyer

MASc in Computer Engineering

Polytechnique Montreal · 08/2023 – 12/2025

  • Nominated for the Best Master's Thesis Award, 2025
  • Courses: Engineering AI Software Systems, Representation Learning, Advanced Concepts of Cloud Computing (GPA 4.0)
  • TA: Files and Databases

BSc in Computer Science, minor in Economics

AmirKabir University of Technology · 09/2017 – 08/2022

  • TA: Fundamentals of Programming, Advanced Programming, Principle of Software Design, Data Science, ML

Graduate Research Assistant

Mila — Quebec Artificial Intelligence Institute · 09/2023 – 12/2025

  • Member of Data & AI Systems lab, focused on agentic AI and data systems, specifically Text-to-SQL, and exploring DB internals.
  • Implemented VortoSQL (NeurIPS'24), an end-to-end Text-to-SQL system via LLM router, reducing pipeline costs by up to 40%.
  • Developed SQLMorph (ICDE'26), a Text-to-SQL eval framework with novel fine-grained metrics and query mutation techniques.

Data Engineer

Divar · 02/2022 – 11/2022

  • Worked within the core Business Insight team for Divar's e-commerce platform with 30M+ monthly active users.
  • Designed and implemented a company-wide KPI system as the single source of truth, with 50+ fine/coarse-grained metrics.
  • Built and maintained 20+ ETL pipelines using Python, SQL, PySpark, Hadoop HDFS, Apache Airflow and Metabase.
  • Delivered many ad-hoc analyses to uncover inefficiencies, identify trends, and produce dashboards and predictive models.

Software Engineer Intern

Segmentino · 06/2020 – 09/2020

  • Worked at Segmentino, an AI-powered marketing automation platform enabling omnichannel engagement and retention.
  • Developed mslib, an internal Python SDK for Node.js microservices, reducing integration time and development overhead.
  • Built enlib, a backend engine for the marketing journey designer, transforming user-created workflows into dynamic DAGs.

Software Engineer Intern

Institute for Research in Fundamental Sciences (IPM) · 06/2019 – 09/2019

  • Improved data infrastructure for monitoring systems in Technical Development Division of the National Observatory.
  • Redesigned the MySQL weather monitoring database and built Flask APIs to streamline environmental data for R&D teams.
  • Built a web server for Robo-DIMM (night-sky telescope) using socket-based communication and modular system design.

SQLMorph: Query Mutation and Fine-Grained Metrics for Text-to-SQL Evaluation

ICDE 2026

SQLMorph is a mutation-based framework for robust, reproducible Text-to-SQL evaluation. It tackles limits of public benchmarks and the cost/instability of private sets by automatically generating/expanding evaluation data via (1) Join Query Expansion (JQE), which systematically adds semantically valid joins to raise structural complexity, and (2) Textual Query Augmentation (TQA), which applies controlled natural-language perturbations to probe linguistic robustness. These create targeted “choke points”: on state-of-the-art models, JQE increases coverage and exposes accuracy decay as join count grows, while TQA surfaces brittleness. Beyond datasets, SQLMorph introduces relaxed execution-level metrics—Execution Precision (EXP), Execution Recall (EXR), and their F1—to capture partial correctness.

Towards Optimizing SQL Generation via LLM Routing

NeurIPS 2024 · TRL

Text-to-SQL enables users to interact with databases through natural language, simplifying access to structured data. Although highly capable large language models (LLMs) achieve strong accuracy for complex queries, they incur unnecessary latency and dollar cost for simpler ones. In this paper, we introduce the first LLM routing approach for Text-to-SQL, which dynamically selects the most cost-effective LLM capable of generating accurate SQL for each query. We present two routing strategies (score- and classification-based) that achieve accuracy comparable to the most capable LLM while reducing costs. We design the routers for ease of training and efficient inference. In our experiments, we highlight a practical and explainable accuracy-cost trade-off on the BIRD dataset.

Machine Learning Predictions for Sustainable Concrete Constructions

JOBE 2024

Concrete design often overuses cement to guarantee 28-day strength, even when many structural elements, like foundations and pavements, reach full load much later. This study uses machine learning to optimize cement content for a 90-day strength target, reducing waste and emissions. Using ANN, deep learning, and regression models trained on 28- and 90-day compressive strength data, we predict optimal cement content with up to 94% accuracy. Elastic Net achieves the best results, showing potential for ~10% reductions in both cement use and carbon footprint.

VortoSQL: Safe NL2SQL Data Agent

Project

A modular NL2SQL system that translates natural language questions into SQL queries, enforces row-level guardrails, executes the SQL against a SQLite database, and returns results in natural language. Built around a composable operator pipeline with five guardrail layers and a generic early-stop mechanism.

DailyDiet

Project

DailyDiet is a full-stack nutrition management platform that helps users plan meals, calculate daily calorie needs, and explore recipes tailored to their goals. I was responsible for leading all backend development — building a scalable RESTful API with Flask and PostgreSQL to handle user authentication, dynamic diet generation, and recipe indexing. The backend features a dynamic-programming–based diet recommendation engine, JWT-secured user accounts, and Elasticsearch integration for semantic and ingredient-based recipe search. I also managed deployment and infrastructure setup on Heroku, and designed the data models for user tracking and admin moderation. The API powers the Vue.js + Nuxt web frontend and the companion iOS app.