Skip to content
Portrait of Mihir Rana

Machine Learning atMetaNew York, NY

Hi, I’m Mihir.

I help decide what shows up in your feed. (You’re welcome, or I’m sorry?)

I’m a machine learning engineer at Meta, working on the ranking models that decide which Threads posts land in your Instagram and Facebook feeds.

Before that I spent nearly seven years at Tripadvisor, where I built their generative AI travel assistant, led computer vision efforts, and built a lot of recommenders along the way. My favorite part of the job is taking an idea from a research paper all the way to something people actually use.

Experience

Turning research-grade ideas into products people use.

Meta

2026 – Present

New York, NY

  • Machine Learning Engineer

I’m on the Threads Content Relevance team, working on the late-stage ranking models that decide which Threads posts show up in Instagram and Facebook feeds. My work spans modeling, content quality, and new ranking signals.

  • PyTorch
  • C++
  • Hack
  • Lua

Tripadvisor

2019 – 2026

New York, NY

  • Principal Machine Learning Engineer

I built the Tripadvisor AI assistant, an agentic LLM travel companion that uses first-party tools for recommendations, itinerary planning, and Q&A. I also built the trip itinerary builder, which pairs a 20B-parameter LLM with in-house recommenders, geo-spatial entity resolution, and more than a billion user reviews.

Before that, I led computer vision at the company: models for image attractiveness, quality, sorting, moderation, and scene understanding across more than 600 million images.

I also worked on LLM-based recommendation modeling that combined semantic search and BM25 over reviews, forums, and location metadata, personalized models for Experiences, and recommenders for SEO/SEM landing pages.

  • PyTorch
  • LangChain
  • FastAPI
  • Qdrant
  • Ray
  • Kubeflow
  • Snowflake
  • Spark

Education

NYU

2017 – 2019

New York, NY

IIT Roorkee

2013 – 2017

Roorkee, India

B.Tech, Mechanical Engineering · Minor in Computer Science

Selected Projects (04)

Research from my time at NYU.

  1. 2019Visual Embeddings for Reinforcement Learning

    Taught an RL agent to solve sparse-reward mazes by first watching a handful of expert demonstration videos: self-supervised embeddings (trained to predict the time gap between frames) made the rewards denser and initialized the agent’s memory. Advised by Rob Fergus and Ilya Kostrikov.

    Sparse → dense · rewards, learned from a handful of expert videos

    • PyTorch
    • Reinforcement Learning
    • Self-Supervised Learning
    • MiniGrid
    Animation: the trained agent, a red triangle, navigates randomly generated mazes toward a green goal square.
    The trained agent working through randomly generated mazes.
  2. 2018Neural Machine Translation

    Built Vietnamese→English (BLEU 24) and Chinese→English (BLEU 19) translation systems on IWSLT, with a Bi-LSTM / ConvNet encoder-decoder, Luong attention, and beam search.

    Vietnamese → English · 24 BLEU on IWSLT

    • PyTorch
    • Bi-LSTM
    • Attention
    • NLP
  3. 2018Generatively Removing Photobombers

    A pipeline to detect and remove photobombers from images and inpaint the background, using Mask R-CNN (Detectron) for instance segmentation and Deep Image Prior for inpainting.

    Mask R-CNN + Deep Image Prior · Me 1, Photobombers 0

    • PyTorch
    • Mask R-CNN
    • Detectron
    • Computer Vision
  4. 2018Toxic Comment Classification

    Multi-class, multi-label models classifying Wikipedia comments by toxicity, reaching macro-AUC 0.98 with fastText and 0.97 with a self-implemented XGBoost + Naive-Bayes SVM ensemble.

    fastText · 0.98 macro-AUC

    • scikit-learn
    • fastText
    • XGBoost
    • NLP

Toolkit

LanguagesPython · C++ · Java · PHP · SQL · Shell
ML & AIPyTorch · LangChain · Ray / Anyscale · Kubeflow · MLflow · TensorBoard · Weights & Biases · Arize · Seldon · Streamlit · Gradio
Data & InfraSpark · Snowflake · BigQuery · Hive · Qdrant · AWS S3 · Docker · FastAPI

Terminal

Prefer the command line?

Everything on this page, as a tiny shell. Type help to get started, or tap a command below.

visitor@mihir: ~

mihir.sh v1.0: an interactive about-me

Type help to see available commands.

 

Suggestions appear inline; press Tab or Right Arrow to accept.

Playground

Train your own feed.

Every time you open a feed, models predict a dozen things about each post: will you like it, share it, linger on it, hide it? A value model weighs those predictions into one score, and the score sets the order. Choosing the weights is really choosing what the feed is for: if you reward only taps, it will likely fill up with pure clickbait; reward lasting interest and it’ll be worth coming back to.

At Meta, I work on both: building the models that make those predictions and the value models, for the Threads posts in your Instagram and Facebook feeds. To give you a taste, here’s a tiny version: swipe through a few dishes and watch it learn!

    The model learns from everything you do.

    • Double-tap (or tap the heart) to like
    • Swipe up for the next clip, down to go back
    • Lingering counts too; quick skips count against
    • Tap for details