Big-tech engineering

Pinterest Engineering

Engineering posts from Pinterest on recommendations, data, and infrastructure.

Pinterest Engineering · 6 stories

Recent stories

Grouped by topic area, with each story's summary and the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

Backend1 story

Rebuilding Guardian: How Pinterest Upgraded Its Real-Time Abuse Platform to Modern Infrastructure…

medium.com · 16 Nov

Backend · Big Data · Software Architecture

Pinterest rebuilt Guardian as Guardian V2, replacing its monolithic abuse platform with modular infrastructure for real-time analytics, continuous action processing, and historical replay.

GSQL V2 preserves a unified query-to-action workflow while translating requests to StarRocks and FlinkSQL. Stream splitting reduces indexed column scale from O(20K) to O(K); StarRocks accelerates investigations, while FlinkSQL, Unified Driver, and Iceberg support scalable live evaluation and replay of up to 30 days of data, improving reliability, maintainability, and compliance alignment.

AI & Machine Learning5 stories

How Pinterest Improved Analytics Agent Compliance with Loop Engineering

medium.com · 12 Nov

Artificial Intelligence · Large Language Models · Machine Learning · Testing · AI Agents

Pinterest improved Analytics Agent compliance by replacing manual prompt revisions with loop engineering: paired required/skip suites and regression tests define success, while fresh sessions use structured handoffs to retain lessons.

Each iteration races small prompt, skill, context, or tool changes, evaluates winners on tuning and validation data, and rejects regressions, overfitting, or net breakage. Case-level analysis exposed model variability; the approach reached 89.3% pooled compliance while preserving skip and regression behavior.

Safe and Efficient Multi-Epoch Embedding Training

medium.com · 6 Nov

Artificial Intelligence · Deep Learning · Machine Learning

Pinterest enabled safe, efficient multi-epoch fine-tuning for Homefeed ranking by decoupling ID embedding-table optimization from the rest of the model.

Unrestricted two-epoch training caused nearly a 6% offline save-metric decline through embedding overfitting. Freezing embeddings initially and enabling adaptation later preserved task-specific learning and improved results. A semi-synchronous pipeline overlapped distributed lookup with computation, while fused lookups and optimizer communication reduced overhead. The production approach delivered a +1.09% online saves gain.

Scaling Model Evaluation at Pinterest with Ray (Part 4)

medium.com · 4 Nov

Artificial Intelligence · Big Data · Machine Learning · Performance · Software Architecture

Pinterest built a Model Evaluation platform that combines Ray and Apache Spark to compute decomposable, holistic, and group-wise metrics at scale.

A ReducibleMetric contract defines preprocessing, batch partials, and reduction; group-wise metrics preserve segments in buckets. Fusing metric computation with Ray inference removes S3 serialization and a separate cluster, overlapping CPU metrics with GPU inference. Benchmarks across 30K–3M rows and up to 300 experiments showed 25–32% lower end-to-end time and approximately linear scaling.

Introducing ModuleLens: Zooming into PyTorch Modules for Human and Agentic Engineering

medium.com · 19 Oct

Machine Learning · Performance · Python · PyTorch · Software Architecture

Pinterest built ModuleLens, a Module-First framework for isolating and reconstructing PyTorch modules from distributed production models.

ModuleTracer captures initialization arguments, inputs, outputs, weights, and metadata with hooks; ModuleRepo stores versioned artifacts in WandB Registry, and consumption tools support Jupyter, IPython, and AI agents. Engineers can run, test, profile, and benchmark modules locally without multi-GPU initialization, shortening feedback loops. Deployments support Training Analyzer, KernelAgent, and scaling ROI analysis, with planned autonomous optimization and autoresearch.

From Activity to Intent: Generating User Journeys with LLMs

medium.com · 9 Oct

Artificial Intelligence · Large Language Models · Machine Learning

Pinterest replaced its multi-stage journey-clustering system with a fine-tuned 4B Qwen3 model that converts up to 360 days of chronological activity into ranked, locale-specific intent names.

It uses frontier-model synthetic data, supervised fine-tuning, and LoRA; the 4B model balances quality and throughput. Production serving with NVIDIA Dynamo, vLLM, and L40S GPUs sustains about 775 requests per second with 1.2-second median latency. Online experiments improved email click-through by 1.1% and push opens by 1.3% versus clustering.

Add Pinterest Engineering to your Snapbyte.dev digest and receive its posts summarized.Build your digest