---
title: "User foundation models for Grab"
description: "Grab built a transformer-based user foundation model that jointly learns from tabular user attributes and time-series clickstream data to produce general-purpose user embeddings, replacing siloed hand-engineered features."
url: "https://swe.quest/articles/user-foundation-models-for-grab-98db1323e8d3fa5a"
canonical: "https://engineering.grab.com/user-foundation-models-for-grab"
source: "Grab Engineering"
published: "2025-09-26"
difficulty: "hard"
kind: "Case study"
reading_minutes: 18
tags: ["recommendation-systems","model-training","machine-learning","ml-platform"]
---

# User foundation models for Grab

A post on [Grab Engineering](https://swe.quest/sources/grab.md), published 2025-09-26, 18 min read, Case study. Original: [https://engineering.grab.com/user-foundation-models-for-grab](https://engineering.grab.com/user-foundation-models-for-grab)

## Summary

Grab built a transformer-based user foundation model that jointly learns from tabular user attributes and time-series clickstream data to produce general-purpose user embeddings, replacing siloed hand-engineered features. A universal key:value tokenisation with custom positional embeddings and attention masks treats tabular columns as an unordered set and events as an ordered sequence. Modality-specific adapters (pre-trained language models for text, embedding layers for IDs, custom encoders for locations and numbers) feed an alignment layer before the transformer. Pre-training is unsupervised, combining masked token reconstruction with next-action prediction across verticals, so the embeddings serve many downstream tasks such as ads, fraud detection and churn prediction, or the model can be fine-tuned directly.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [ML platforms](https://swe.quest/tags/ml-platform.md) (AI & ML)

## Prerequisites

- transformer architecture ([easy posts on System design](https://swe.quest/tags/system-design.md?difficulty=easy))
- embeddings ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))
- masked language modeling
- recommender systems ([easy posts on Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md?difficulty=easy))

## Keywords

Grab, transformer, user embeddings, foundation model, masked language modeling, next action prediction

## Related posts

- [GenRecs Tokenization: Transforming Ads Recommendation at Meta with Stable Model Vocabulary](https://swe.quest/articles/genrecs-tokenization-transforming-ads-recommendation-at-meta-with-stable-model-e3f3b6ea2626a2c2.md): Meta Engineering · 2026-10-19 · Hard · 6 min read · Recommendations & ranking, Ads, LLMs, Machine learning
  Meta's ads recommender replaces per-item IDs with GenRecs Tokenization, a stable semantic vocabulary.
- [Exploring Hierarchical Interest Representation For Meta Ads Deep Funnel Optimization](https://swe.quest/articles/exploring-hierarchical-interest-representation-for-meta-ads-deep-funnel-10b90d80348c21a5.md): Meta Engineering · 2026-07-15 · Hard · 10 min read · Recommendations & ranking, Ads, Machine learning, Model training
  Hierarchical Interest Representation is an upstream representation layer for Meta Ads.
- [Introducing TabFM: A zero-shot foundation model for tabular data](https://swe.quest/articles/introducing-tabfm-a-zero-shot-foundation-model-for-tabular-data-3b60f0bd6faee92a.md): Google Research · 2026-06-30 · Easy · 5 min read · Machine learning, Model training, Analytics & OLAP
  TabFM is a foundation model that treats tabular classification and regression as in-context learning, so it predicts on an unseen table in a single forward pass with no training, hyperparameter tuning or feature engineering.
- [Meta’s Generative Ads Model (GEM): The Central Brain Accelerating Ads Recommendation AI Innovation](https://swe.quest/articles/meta-s-generative-ads-model-gem-the-central-brain-accelerating-ads-5d5a24731a15c0eb.md): Meta Engineering · 2025-11-10 · Hard · 10 min read · Recommendations & ranking, Ads, Model training, ML platforms
  GEM is Meta's LLM-scale foundation model for ads recommendation, trained on thousands of GPUs and used as a teacher to improve hundreds of downstream vertical ranking models; it lifted ad conversions 5% on Instagram and 3% on Facebook Feed.
- [Token Pooling-Aware Training for Multi-Vector Embedding Models](https://swe.quest/articles/token-pooling-aware-training-for-multi-vector-embedding-models-0e5234acf2e85460.md): Hugging Face · 2026-11-11 · Hard · 12 min read · Search, Model training, Machine learning, Python
  Pooling-aware training teaches a multi-vector (ColBERT-style) encoder to keep retrieval-relevant information when document token vectors are merged by Ward hierarchical clustering, improving quality at a fixed storage budget.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
