Mahdyar Mostashar

I use machine learning to understand how people make economic decisions, and how the systems we build change them.

Final-year Computer Engineering at Sharif University of Technology, minor in Economics. Driver incentives at Snapp!, ML-for-finance research, head TA for ML and probability.

▸ A builder who never stopped asking why people decide the way they do.

Portrait of Mahdyar Mostashar under brick arches at Sharif University
Tehran · Sharif University of Technology

There are people behind the data.

A metric going up isn't enough. I want to understand the decisions behind it. These four questions connect most of what I do.

  1. Q1

    When a system makes decisions, how do people respond?

    An incentive can get a driver to do more rides today. Does it help them, or just buy short-term behavior? I care what happens after the metric moves.

  2. Q2

    Can AI help people decide better, not just predict better?

    AI is judged by accuracy. The real test is whether people make better calls with it. Next for Driver Voice: from flagging problems to helping teams decide what to fix.

  3. Q3

    Can a model learn markets from markets that never existed?

    Financial data is short, noisy, and keeps shifting. If we pretrain only on simulated markets, which synthetic worlds teach something real?

  4. Q4

    What do economic shocks do to the choices families make?

    Inflation shows up in prices, and in whether a child stays in school. I trace macro shocks down to individual choices.

Research

Applied machine learning · data-driven decision making · computational economics

Aug 2026 – now with Dr. Ali Habibnia
Virginia Tech

Synthetic pre-training for financial time-series foundation models

Zero-shot volatility forecasting with time-series foundation models pretrained only on synthetic data. I compare synthetic-data priors under fixed model architectures and compute budgets.

generic
volatility
regime & tail
mixed
compact TSFMfixed arch & compute
realized volatilityunseen real markets

Live samples from each prior; click to resample.

Nov 2026 – now with Prof. Horst Treiblmaier
and Dr. Javad Vasheghani Farahani

Physics-informed graph learning for Bitcoin mining optimization

A physics-informed GNN that decides where to place Bitcoin miners, how much capacity to build, and when to run them, under electricity-grid constraints. Evaluated on economic performance, grid feasibility, and compute cost against conventional optimization.

Jul – Sep 2026 with Prof. Erik Cambria
NTU · SenticNet

Explainable AI in finance

An early-stage project on explainable AI for financial decision support. My main work was fine-tuning a language model with QLoRA; the project wasn't taken to completion.

empirical economics code ↗

Inflation and school non-attendance in Iran

190,933 child records linked to 3,348 province-month inflation observations. Survey-weighted fixed effects, clustered errors, robustness checks. Fully reproducible.

Industry

Most of my research questions started at work.

Sep 2025 – now Snapp!
Iran's largest ride-hailing platform

Associate Data Product Manager

  • Personalized incentives: contextual bandits for driver incentives and goal-setting.
  • Incentive fatigue: showed aggressive incentives can drive burnout; defined metrics for dependency, earnings predictability, and post-incentive activity.
  • Driver Voice: merges Telegram, call-center, ticket, and bug-report data; classifies recurring issues and routes them to the right team.
  • Notification forensics: traced notification flows in SQL to separate automated from manual incentive messages.
Dec 2024 – Apr 2025 Divar
Iran's largest classifieds platform

Junior Software Engineer

Built an LLM-based HR assistant that answers most employee questions automatically.

Teaching

Students told us the practical homework wasn't interesting. So I designed a new project from scratch, where they compete against each other.

Curiosity is what keeps me learning, so I design for it: real data, real stakes, a leaderboard, and problems where the wrong intuition fails loudly.

14TA roles
4as head TA
6courses
2universities

Roles by course and semester

TA head TA

Hover a cell for details.

Full list
  • Fall 26 Head TA · Machine Learning · Dr. Mahdi Jafari Siavoshani
  • Fall 26 Head TA · Machine Learning (Practical) · Dr. Mahdieh Soleymani
  • Fall 26 Head TA · Probability & Statistics (Practical) · Dr. Abolfazl Motahari
  • Fall 26 TA · Scientific & Technical Presentation · Dr. Laleh Arshadi
  • Fall 26 TA · Artificial Intelligence · Behnam Yousefimehr (Amirkabir)
  • Spr 26 Head TA · Probability & Statistics (Project) · Dr. Mahdi Jafari Siavoshani
  • Spr 26 TA · Machine Learning · Dr. Abolfazl Motahari
  • Spr 26 TA · Artificial Intelligence · Arash Maryoriyad
  • Spr 26 TA · Computer Structure & Language · Dr. Laleh Arshadi
  • Spr 26 TA · Probability & Statistics · Dr. Amir Najafi
  • Fall 25 TA · Probability & Statistics · Dr. Mahdi Jafari Siavoshani
  • Fall 25 TA · Computer Structure & Language · Dr. Hossein Asadi
  • Fall 25 TA · Probability & Statistics · Dr. Amir Najafi
  • Spr 25 TA · Advanced Programming · Dr. Mohammad Amin Fazli

Designed for my students

Machine Learning (Practical) · Fall 2026

Divar price prediction

Predict real apartment prices from Divar listings. Train on 2024, test on today, so inflation matters. One self-built network or tree, no boosting. Ranked on a hidden leaderboard.

Probability & Statistics · Fall 2026 · in design

The probabilistic casino

120 agents, hidden payoff distributions. Estimate them from history, then build an agent that also predicts the crowd. It inspired read the crowd.

Service

Most of what makes a department good happens outside the classroom. I've spent a lot of my time there.

2024 – 2026 · ssc.ce.sharif.ir ↗

Central Council, Students' Scientific Chapter

The council organizes the department's events and all of its extracurricular scientific activities. I was active in as many of them as I could.

  • Electedby every CE student, BSc to PhD
  • 2 yearson the council

2024 – now · wss-sharif.com ↗

Winter Seminar Series

Sharif CE's annual two-day event on advanced topics in computer science: research talks, round tables, and poster sessions, run by about 70 student volunteers.

  1. 2024Executive staff
  2. 2025Executive Head
  3. 2026Vice President
  4. 2027Scientific staff
  • 2024
    Rayan AI Contest · Head of Executive & Human Resources for an international AI competition hosted by Sharif CE
  • 2026
    ASM Masters · Scientific staff
  • 2024
    Introduction to CE Major · Head of Marketing
  • 2023
    ICPC Asia Regional, Tehran site · Deputy Head of Media
  • New Year Celebration · Chief Organizer

Projects

If something is repetitive or bugging me, it becomes a project.

On the workbench

  • designing
    Driver Voice, layer 2. From detecting recurring driver issues to tracing their cause and suggesting fixes.
nlp · finance

FinFormer ↗

Transformer built from scratch, plus fine-tuned FinBERT, for sentiment on earnings calls and financial news.

PyTorch · HF Transformers
decision model · private

FPL Decision Model

Picks my Fantasy Premier League squad, transfers, lineup, and captain from fixtures, form, and head-to-head history.

Python · optimization
agent · private

Personal Operations Assistant

Always-on Telegram assistant over my email and calendars: briefings, reminders, conflict detection, confirmation-gated events.

LLMs · Docker · Telegram
infra

GPU Resource Monitor ↗

Monitoring and alerts for shared GPUs, with API, web, desktop, and terminal clients.

FastAPI · Prometheus · Grafana
hardware

MIPS CPU ↗

Single-cycle and pipelined MIPS CPUs with forwarding and hazard handling.

Verilog · Logisim
systems

Neo Git ↗

Git-like version control in C: init, tracking, commits, branches.

C · Linux

also: real-time area measurement with OpenCV · JusticeFlow (Django + React) · Gwent-inspired card game (team project) · everything on GitHub ↗

Playground

Small, playable versions of things I think about. All in your browser.

Can you beat a Thompson-sampling agent?

Four hypothetical incentives with hidden success rates. 30 pulls each, and you both start knowing nothing.

left30
you0
agent0

About

Trading since high school got me into economics. Over time my question moved from the market to the people in it: why they decide the way they do.

I don't learn things to pass exams; I learn them to use them. So I keep one foot in research, one in industry, and both in the classroom.

Off the clock: rock and metal, football (hence the FPL model), and slowly, German.

Education

B.Sc. Computer Engineering, Sharif University of Technology · 2023–
Minor in Economics · GPA 18.71/20, major 19.36/20

Honors

Ranked 120 of 144,000+ in Iran's national university entrance exam (top 0.09%) · Top 30, International Kangaroo Math Contest

Languages

Persian (native) · English (professional) · German (elementary)

Let's talk.

Applying to Master's programs and research internships. If you work on incentives, human–AI decisions, or ML for economics, I'd love to talk.

mahdyar@sharif: ~