Senior Software Engineer / Applied AI & ML

Yash Bafna.

I build AI systems people can use. I built Routiq to reduce the cost of LLM calls, and trained the vision model behind Snap the Grub, an app that recognizes food from photos. I’m also a little obsessed with neuroscience, especially how the brain learns and adapts.

Portrait of Yash Bafna
Second portrait of Yash Bafna

Experience

View experience

Software Engineer II

Distributed Systems · AI/ML

  • Built several LLM agents for internal engineering workflows. One reduced a recurring task from about two hours to two minutes, saving time for engineers across the team.
  • Contributed to a core face recognition algorithm, applying computer vision techniques for liveness detection during identity verification.
  • Added fraud-signal filtering upstream in document and face-scan verification pipelines, reducing paid vendor calls.
  • Built asynchronous Kafka pipelines to decouple services and reduce p99 latency on critical request paths.
50M+
authentication events per month
$1M
annual vendor savings from earlier fraud-signal filtering
30–40%
improvement in p99 latency with asynchronous processing

Articles

Latest 3 articles

  1. Mathematics for AI

    Why Low-Rank Matrices Matter in LoRA

    Explore the mathematics behind Low-Rank Adaptation and understand how matrix factorization enables parameter-efficient fine-tuning of large language models.

  2. Mathematics for AI

    How Linear Algebra Powers Neural Networks

    Follow three numbers through a tiny neural network and see what vectors, matrices, and activations do at each step.

  3. Hashnode

    Building Routiq: a local-first LLM gateway that proves its savings

    The architecture behind Routiq, including semantic caching, model routing, durable cost recording, and what changed after a security review.

View all 7 articles

Selected
projects

Project details

Local-first LLM gateway

Routiq

A self-hosted gateway that reuses semantically similar responses, routes requests by complexity, and records model spend. Security work includes API-key checks, provider URL validation, and keeping prompt text out of logs.

Up to 88%
cost savings
84%
cache hit rate
9 ms
p50 gateway overhead
Routiq request stages from alias resolution and caching through routing, provider response, and cost recording.
Request pipeline

Food recognition mobile app

Snap the Grub

A Flutter app that identifies food from a photo and returns nutrition information. I collected and curated a custom food-image dataset, trained the recognition model, integrated an API, and built the mobile app.

Original Snap the Grub app logo featuring a burger inside a camera frame.
Original app identity

Research

Published research · Springer · 2018

Automated Boundary Detection of Breast Cancer in Ultrasound Images using Watershed Algorithm

This published computer vision study uses the watershed algorithm to segment breast ultrasound images and trace tumor boundaries.

  • Computer vision
  • Image segmentation
  • Medical imaging
Read the publication

Technical toolkit

Languages

  • Java
  • Python
  • TypeScript

Frontend & Mobile

  • React
  • Next.js
  • Tailwind CSS
  • Flutter

Backend & Data

  • Spring Boot
  • Apache Kafka
  • Redis
  • SQLite

AI & ML

  • LLM routing
  • Semantic caching
  • Computer vision

Cloud & Observability

  • Google Cloud
  • Datadog

Education & achievements

National Institute of Technology, Raipur

B.Tech. in Information Technology

2014–2018 · 8.66 CGPA · Honors

First place at NIT Raipur’s National Science Exhibition for an Android health application.

AI & computer vision training

  • Machine Learning SpecializationDeepLearning.AI · Jun 2026
    • Supervised Machine Learning: Regression and ClassificationMay 2026
    • Advanced Learning AlgorithmsJun 2026
  • Neural Networks and Deep LearningDeepLearning.AI · 2018
  • PyImageSearch Gurus — Complete Computer Vision CoursePyImageSearch · 2017
  • Introduction to Computer Vision with OpenCV 3 in PythonUdemy · 2016

Cloud & data infrastructure training

  • Master Redis – From Beginner to AdvancedUdemy · Apr 2023
  • Apache KafkaUdemy · Apr 2023
  • Azure Fundamentals (AZ-900)Microsoft · May 2021
See credentials on LinkedIn

Contact