# Pinterest

Inventive engineers building the first visual discovery engine, 300 billion ideas and counting. - Medium

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

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

DevFeed: [Rebuilding Guardian: How Pinterest Upgraded Its Real-Time Abuse Platform to Modern Infrastructure...](<https://devfeed.tech/articles/rebuilding-guardian-how-pinterest-upgraded-its-real-time-abuse-platform-to-modern-infrastructure-136560.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/rebuilding-guardian-how-pinterest-upgraded-its-real-time-abuse-platform-to-modern-infrastructure-56e45ee8f471?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-11-16T16:01:03Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [streaming data analytics](<https://devfeed.tech/topics/streaming-data-analytics.md>), [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [Event-Streaming](<https://devfeed.tech/topics/event-streaming.md>)

Tags: [account](<https://devfeed.tech/tags/account.md>), [account-takeover](<https://devfeed.tech/tags/account-takeover.md>), [alignment](<https://devfeed.tech/tags/alignment.md>), [analyze](<https://devfeed.tech/tags/analyze.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [blog](<https://devfeed.tech/tags/blog.md>), [cases](<https://devfeed.tech/tags/cases.md>), [challenges](<https://devfeed.tech/tags/challenges.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [content](<https://devfeed.tech/tags/content.md>), [continuous](<https://devfeed.tech/tags/continuous.md>), [data](<https://devfeed.tech/tags/data.md>), [data-infrastructure](<https://devfeed.tech/tags/data-infrastructure.md>), [detection](<https://devfeed.tech/tags/detection.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [flink](<https://devfeed.tech/tags/flink.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [modern](<https://devfeed.tech/tags/modern.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [platform](<https://devfeed.tech/tags/platform.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [starrocks](<https://devfeed.tech/tags/starrocks.md>), [trust-and-safety](<https://devfeed.tech/tags/trust-and-safety.md>)

### AI overview

Guardian helps Pinterest teams analyze real-time event data and turn identified patterns into signals, policies, and downstream actions for use cases such as spam and fraud response, account takeover detection, risk monitoring, and unsafe content enforcement. As Pinterest scaled, Guardian V1's monolithic design made it increasingly difficult to optimize interactive queries, continuous event-to-action processing, and backfills. Guardian V2 was rebuilt on modern data infrastructure to address scale, reliability, and compliance needs while preserving the fast workflow from investigation to operational response. The excerpt does not provide further architectural details.

### Source excerpt

Rebuilding Guardian: How Pinterest Upgraded Its Real-Time Abuse Platform to Modern Infrastructure at Scale Authors: Sharon Xie, Sr. Staff Software Engineer | Zhenxiao Luo, Sr Staff Software Engineer |Yi Pan, Principal Software Engineer | Vikram Deshpande, Sr. Engineering Manager Guardian helps Pinterest teams turn real-time event data into meaningful insights and operational outcomes. It enables subject matter experts to analyze real-time event streams, identify evolving patterns, and operationalize those learnings through signals, policies, and downstream workflows. Over the years, Guardian has supported a wide range of use cases, including spam and fraud response, account takeover detection, risk monitoring, and unsafe content enforcement. As Pinterest scaled, however, the original Guardian platform began to reach its limits. To meet growing demands around scale, reliability, and compliance, we rebuilt the system as Guardian V2 on top of modern data infrastructure. In this blog series, we'll share our journey in building the next generation of Guardian, or Guardian V2. In this first part, we'll discuss the challenges we faced, the architecture shift, and the foundational decisions that improved the platform's reliability, scalability and compliance alignment. Background & Motivation Guardian's biggest strength was the fast loop it enabled from investigation to operational response. In the asynchronous pipeline, teams could analyze enriched event data, identify suspicious patterns, convert those insights into actions, and trigger downstream actions quickly. Preserving that workflow was a core requirement for Guardian V2. As Pinterest scaled, however, the previous generation of Guardian presented several challenges: Scalability, scalability became a growing issue. Guardian V1 used a monolithic architecture to support interactive querying, continuous event to action processing, and backfill workflows, which made it increasingly difficult to optimize each path indepen

## How Pinterest Improved Analytics Agent Compliance with Loop Engineering

DevFeed: [How Pinterest Improved Analytics Agent Compliance with Loop Engineering](<https://devfeed.tech/articles/how-pinterest-improved-analytics-agent-compliance-with-loop-engineering-131438.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/how-pinterest-improved-analytics-agent-compliance-with-loop-engineering-d3c52d0abaa2?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-11-12T16:01:06Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [Loop Engineering](<https://devfeed.tech/topics/loop-engineering.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [reproducibility](<https://devfeed.tech/topics/reproducibility.md>)

Tags: [ads](<https://devfeed.tech/tags/ads.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-evaluation](<https://devfeed.tech/tags/agent-evaluation.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [dashboards](<https://devfeed.tech/tags/dashboards.md>), [data-discovery](<https://devfeed.tech/tags/data-discovery.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [latency](<https://devfeed.tech/tags/latency.md>), [loop-engineering](<https://devfeed.tech/tags/loop-engineering.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [query](<https://devfeed.tech/tags/query.md>), [question](<https://devfeed.tech/tags/question.md>), [search](<https://devfeed.tech/tags/search.md>), [skill](<https://devfeed.tech/tags/skill.md>)

### AI overview

Pinterest's loop engineering process tunes its Analytics Agent through repeated, measured changes: people define compliance rules and safety boundaries, while the loop proposes and evaluates small edits to prompts, skills, context, or tools. For each rule, paired test suites check both whether the agent follows the rule when needed and skips it when unnecessary; validation, holdout, and broader regression suites help catch overfitting and collateral damage. Each fresh iteration receives a structured handoff of scores, failures, prior changes, and constraints. A change is kept only if it fixes more cases than it breaks, addresses a general pattern, and preserves protected performance. In Pinterest's internal evaluation, the process improved compliance without reducing performance on skip and regression suites; one source-search improvement required a backend change, labeled datasets, 12 loop iterations, and two verification runs. Results are limited: the reported 89.3% pooled pass rate was mostly gained in the first change, and 10.3% of cases changed verdict between runs. The evaluation used one base model and reasoning setting, and answer quality was not directly measured.

### Source excerpt

Skyler Zheng | Software Engineer II; Chris Moradi | Staff Data Scientist; Lu Liu | Staff Software Engineer; Aman Gairola | Manager II; Michael Chau | Manager II The Compliance ProblemCompliance means following the right steps at the right time Pinterest's Analytics Agent helps teams answer questions such as "How did query latency for the ads reporting pipeline change last week?" It searches the company's data ecosystem, analyzes the relevant information, and recommends an answer or course of action. Not every question requires the same steps. We call the agent compliant when it identifies and follows the steps that apply. Improving compliance is intended to make answers more consistent and reduce the risk of incomplete or inaccurate results. Examples include: Read the data-discovery skill when it needs help finding the right tools or sources. Inspect table metadata before writing SQL to learn what the columns mean, which filters are required, and whether the table has important usage notes. Search every relevant source type, including tables, dashboards, and metrics, rather than stopping at the first useful result. These are three examples from a broader set of compliance rules, and whether they apply depends on the question. If a user provides the appropriate table, the agent may not need the data-discovery skill, while an open-ended question may require a broader search. The agent must decide which rules apply and follow them when needed. That flexibility also makes compliance difficult. When the agent skips a required step, it may stop at the first table it finds, miss an important filter in the metadata, or overlook a certified metric with a more authoritative definition. It could then confidently report that "latency is down 4.2%."[1] The answer may sound reasonable while using the wrong definition, pipeline stage, or reporting window. Why manually revising the agent's instructions was not enough Measuring noncompliance showed us where the agent failed, but not

## Safe and Efficient Multi-Epoch Embedding Training

DevFeed: [Safe and Efficient Multi-Epoch Embedding Training](<https://devfeed.tech/articles/safe-and-efficient-multi-epoch-embedding-training-121989.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/safe-and-efficient-multi-epoch-embedding-training-103bec2abc83?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-11-06T16:01:03Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [recommendation systems](<https://devfeed.tech/topics/recommendation-systems.md>), [distributed-training](<https://devfeed.tech/topics/distributed-training.md>), [machine learning overfitting](<https://devfeed.tech/topics/machine-learning-overfitting.md>), [Representation learning](<https://devfeed.tech/topics/representation-learning.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>)

Tags: [communication](<https://devfeed.tech/tags/communication.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [embedding-tables](<https://devfeed.tech/tags/embedding-tables.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [lookup](<https://devfeed.tech/tags/lookup.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [pretraining](<https://devfeed.tech/tags/pretraining.md>), [ranking](<https://devfeed.tech/tags/ranking.md>), [recommendation-system](<https://devfeed.tech/tags/recommendation-system.md>), [recommendation-systems](<https://devfeed.tech/tags/recommendation-systems.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [synchronization](<https://devfeed.tech/tags/synchronization.md>), [training](<https://devfeed.tech/tags/training.md>), [vision-language-models](<https://devfeed.tech/tags/vision-language-models.md>), [vision-language-models-vlms](<https://devfeed.tech/tags/vision-language-models-vlms.md>), [vlms](<https://devfeed.tech/tags/vlms.md>)

### AI overview

Pinterest's Homefeed team enabled multi-epoch fine-tuning of pretrained ID embeddings by delaying their adaptation: train the rest of the model with embeddings frozen for the first epoch, then unfreeze them. Full co-training overfit sharply, with nearly a 6% offline save-metric decline from one to two epochs; delayed updates improved results in experiments and the production approach led to a reported 1.09% increase in online saves. For longer runs, they overlapped next-batch distributed embedding lookups with current-batch computation, accepting a one-update staleness that showed no measured quality loss, and reduced lookup overhead with fused requests and specialized kernels. Gradient isolation also prevented overfitting, but did not outperform fully frozen embeddings. The authors describe these results in the Homefeed setting and leave broader component-specific optimization as an open question.

### Source excerpt

Authors: Shruthi Hariharan | Machine Learning Engineer II; Konish Dutta | Machine Learning Engineer II; Abhinav Naikawadi | Sr. Machine Learning Engineer; Zhihua Zhang | Machine Learning Engineer II; Rakshita Nagalla | Sr. Machine Learning Engineer; Kousik Rajesh* | Machine Learning Engineer II; Matt Lawhon | Staff Machine Learning Engineer Tags: Machine Learning, Infrastructure, Recommendation Systems Content Track: Technical Discussion / Architecture of big components * == work done while at Pinterest Introduction Large ID embedding tables underpin some of the largest modeling advances at Pinterest, including teacher-model scaling and cross-domain pretraining for ranking and retrieval. These tables are first pre-trained to learn broadly useful Pin representations and then fine-tuned as part of the downstream surface-specific ranking model. Here, we'll focus on the Homefeed ranking model. The strength of the embedding tables comes from their enormous capacity to absorb information about billions of Pins and learn rich representations. That power, however, is coupled with fragile training dynamics that have historically constrained fine-tuning to one epoch. That compromise has become increasingly dissatisfactory; single-epoch fine-tuning prevents us from effectively optimizing our models over small, fresh datasets in retraining, and disproportionately harms effective representation learning of certain components of our ranking model which benefit from longer training, like Vision Language Models (VLMs). A one-epoch ceiling forces every component of our model to learn on the schedule of its most training-sensitive component. When trained longer, two problems appear: Model quality degrades sharply. In Homefeed ranking, we saw nearly a 6% decline in our offline save metric when extending training from one epoch to two epochs. GPU waste from communication-bound training accumulates. Distributed embedding lookup and synchronization overhead created large idle periods in

## Scaling Model Evaluation at Pinterest with Ray (Part 4)

DevFeed: [Scaling Model Evaluation at Pinterest with Ray (Part 4)](<https://devfeed.tech/articles/scaling-model-evaluation-at-pinterest-with-ray-part-4-118874.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/scaling-model-evaluation-at-pinterest-with-ray-part-4-4a96cd12cc11?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-11-04T16:01:04Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [Apache Spark](<https://devfeed.tech/topics/spark.md>), [Advanced AI workflows](<https://devfeed.tech/topics/advanced-ai-workflows.md>), [Inference](<https://devfeed.tech/topics/inference.md>), [AI Integration Strategies](<https://devfeed.tech/topics/ai-integration-strategies.md>)

Tags: [distributed-computing](<https://devfeed.tech/tags/distributed-computing.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [model-evaluation](<https://devfeed.tech/tags/model-evaluation.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [ray](<https://devfeed.tech/tags/ray.md>), [scaling](<https://devfeed.tech/tags/scaling.md>)

### AI overview

Pinterest describes applying Ray to model evaluation in feature importance workflows, combining Ray with Apache Spark to compute and aggregate metrics across large inference datasets. Accumulators introduced in its batch inference system support metrics such as ROC-AUC and cross entropy, calculated for each experiment and model head. The post says the platform overlaps metric computation with inference, amortizing the work and reducing added runtime cost; it reports up to a 32% reduction in end-to-end evaluation time while scaling linearly as experiments increase. The supplied text is an excerpt and does not include the implementation details behind these results.

### Source excerpt

Vishnu Arun | Tech Lead, Feature Importance Platform; Anderson Lam | Sr Software Engineer; Andrew Qiu | Machine Learning Engineer I; Helena Xu | Data Scientist I; Tianyou Wang | Data Scientist II Introduction In our multi-part blog series, we have discussed why we chose Ray as a last mile data processing framework, how we integrated Ray into our existing ML Training Infrastructure, and how we enabled efficient Batch Inference at scale. In this blog post, we will discuss how we were able to apply Ray to another critical part of our ML Infrastructure stack: Model Evaluation. In the Ray Batch Inference Blog Post, we ended on a section on accumulators (counters that would allow us to calculate metrics like ROC-AUC and cross entropy). This post is where those accumulators pay off: a model evaluation platform that combines the strengths of Ray and Apache Spark to compute metrics efficiently at scale. Model evaluation may appear to be a relatively straightforward step after inference or training. But as ML workflows scale, evaluation quickly becomes an infrastructure challenge. Systems that run many experiments in parallel, such as feature importance, must efficiently compute and aggregate metrics over large volumes of inference data, as shown in Diagram 1. Later in this post, we'll show how we amortize the metrics compute step, overlapping it with inference for minimal added runtime cost, cutting end-to-end evaluation time by up to 32% while scaling linearly as we run more experiments. Diagram 1: Depicts a feature importance system's architecture. We illustrate a multi-head model with h heads and metrics calculated per head. In this type of workflow, metrics are calculated for each experiment and model head. Note: We omit a batched view of this data found in large scale production ML systems for simplicity. Terminology Feature Importance (FI): A technique for quantifying how much each input feature contributes to a model's predictions. In this post, we will reference a pe

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

DevFeed: [Introducing ModuleLens: Zooming into PyTorch Modules for Human and Agentic Engineering](<https://devfeed.tech/articles/introducing-modulelens-zooming-into-pytorch-modules-for-human-and-agentic-engineering-90259.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/introducing-modulelens-zooming-into-pytorch-modules-for-human-and-agentic-engineering-b7e9be9d29f8?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-10-19T15:01:04Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [Loop Engineering](<https://devfeed.tech/topics/loop-engineering.md>), [Code Modularity](<https://devfeed.tech/topics/code-modularity.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Multi-GPU](<https://devfeed.tech/topics/multi-gpu.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-engineering](<https://devfeed.tech/tags/agentic-engineering.md>), [agents](<https://devfeed.tech/tags/agents.md>), [distributed-training](<https://devfeed.tech/tags/distributed-training.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [gpus](<https://devfeed.tech/tags/gpus.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [infra](<https://devfeed.tech/tags/infra.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [ml](<https://devfeed.tech/tags/ml.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>)

### AI overview

The article introduces ModuleLens, a Pinterest Engineering system for isolating, reconstructing, and profiling PyTorch modules from captured runtime data. It aims to reduce the time and compute needed to test and debug components of large distributed recommendation models, and provides interfaces for engineers and AI agents to inspect, benchmark, and optimize modules.

### Source excerpt

Lida Li, Sr. Staff Software Engineer, Product ML Infra Introduction Modern recommendation systems, including those used for ads ranking and content discovery, have grown substantially in scale and complexity. This growth stems from both increasingly large model architectures. The resulting memory footprint often exceeds the capacity of a single GPU, making it necessary to shard production models across multiple GPUs using distributed training techniques such as Distributed Model Parallelism (DMP). This evolution brings challenges to the everyday engineer work on testing and debugging the model code. The bottleneck includes: Local Machine Hardware Limits: Because production models require multi-GPU setups, initializing a full model locally on a single-gpu workstation is virtually impossible. Input Data Dependencies: When an engineer modifies code inside a specific downstream module, getting realistic input data is a major hurdle. Traditionally, obtaining that input requires initializing the entire multi-GPU pipeline from scratch and executing every preceding module in the network -- wasting immense amounts of time and computation resources. Slow Iteration Feedback Loops: Engineers face prolonged iteration loops when attempting to verify sub-module changes, as every code edit requires re-executing or re-initializing heavy distributed trainer setups. To eliminate these bottlenecks, we build ModuleLens, which pivots from a legacy "Model-First" paradigm to an isolated "Module-First" engineering framework. The following table contrasts these two operational paradigms across key engineering metrics: Under the module-first paradigm, engineers can isolate any given module, avoid multi-GPU model initialization entirely, and reconstruct and profile it locally within seconds. In addition to accelerating developer workflows, this modular foundation offers a fast, structured execution environment that empowers autonomous AI agents to analyze, refactor, and optimize PyTorch code in

## From Activity to Intent: Generating User Journeys with LLMs

DevFeed: [From Activity to Intent: Generating User Journeys with LLMs](<https://devfeed.tech/articles/from-activity-to-intent-generating-user-journeys-with-llms-84247.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/from-activity-to-intent-generating-user-journeys-with-llms-9652b9417626?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-10-09T15:01:02Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [Large Language Model](<https://devfeed.tech/topics/llm.md>), [recommendation systems](<https://devfeed.tech/topics/recommendation-systems.md>), [tgi](<https://devfeed.tech/topics/tgi.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [lora](<https://devfeed.tech/topics/lora.md>), [On-device AI](<https://devfeed.tech/topics/on-device-ai.md>)

Tags: [engineering](<https://devfeed.tech/tags/engineering.md>), [inference](<https://devfeed.tech/tags/inference.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [llms](<https://devfeed.tech/tags/llms.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [recommendations](<https://devfeed.tech/tags/recommendations.md>), [user-experience](<https://devfeed.tech/tags/user-experience.md>)

### AI overview

Pinterest Engineering describes replacing a staged keyword clustering pipeline with a fine-tuned 4B Qwen3 large language model that infers and ranks user journeys from chronological activity logs. It covers synthetic training data and LoRA fine-tuning, production serving with NVIDIA Dynamo and vLLM, safety filters, evaluation, and experiments with semantic IDs and user feedback.

### Source excerpt

Lin Zhu | Sr. Staff Machine Learning Engineer; Manan Kalra | Machine Learning Engineer II; Logan Jeon | Sr. Machine Learning Engineer; Ye Liu | Staff Machine Learning Engineer; Xiangyi Chen | Sr. Machine Learning Engineer; Jaewon Yang | Principal Machine Learning Engineer; Jinwen Xu | Manager II, Machine Learning Engineering; Tingting Zhu | Sr. Manager, Engineering; Sudarshan Lamkhede | Director, Machine Learning Engineering Pinterest is built to get inspired and then turn the inspiration into realization -- a dinner, a renovation, a wedding, a new skill. That only works if we understand more than the Pin a user just clicked. The useful unit of personalization isn't the thing someone just clicked, it's what they're trying to accomplish. Such goals unfold over weeks and months, across dozens of sessions, through hundreds of saves. We call those goals journeys: the intersection of a user's interests, intent, and context at a point in time. A journey is a sequence of interactions, often spanning sessions, centered on one interest and a clear intent. For example, "Summer dresses" are an interest. "Figuring out what's in style for a summer wedding I'm attending in August" is a journey. Someone might be interested in five at once: a kitchen remodel, a vegetable garden, learning sourdough and the mix changes as life does. If we can name those journeys, recommendations and notifications can help someone finish a project instead of bouncing between unrelated interests. This post is about how we infer them in production: a fine-tuned 4-billion-parameter large language model (LLM) that reads a chronological activity log and emits a ranked list of journey names, in the user's locale. We didn't start there. The initial user journey system clustered keywords and attached attributes with separate machine learning models. This post is the follow-up which covers how we formulate journey inference as generation, how we distill frontier-model quality into a 4B student we can actually s

## Metrics Board: Building an Agent-ready Metrics Layer

DevFeed: [Metrics Board: Building an Agent-ready Metrics Layer](<https://devfeed.tech/articles/metrics-board-building-an-agent-ready-metrics-layer-65684.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/metrics-board-building-an-agent-ready-metrics-layer-2c8fefe68756?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-10-06T16:01:02Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [semantic-layer](<https://devfeed.tech/topics/semantic-layer.md>), [product-experimentation](<https://devfeed.tech/topics/product-experimentation.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [building](<https://devfeed.tech/tags/building.md>), [business](<https://devfeed.tech/tags/business.md>), [company](<https://devfeed.tech/tags/company.md>), [data](<https://devfeed.tech/tags/data.md>), [data-governance](<https://devfeed.tech/tags/data-governance.md>), [data-lake](<https://devfeed.tech/tags/data-lake.md>), [data-scientists](<https://devfeed.tech/tags/data-scientists.md>), [delivering-value](<https://devfeed.tech/tags/delivering-value.md>), [design](<https://devfeed.tech/tags/design.md>), [ecosystem](<https://devfeed.tech/tags/ecosystem.md>), [engagement](<https://devfeed.tech/tags/engagement.md>), [engineer](<https://devfeed.tech/tags/engineer.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [executive](<https://devfeed.tech/tags/executive.md>), [layer](<https://devfeed.tech/tags/layer.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [metrics-layer](<https://devfeed.tech/tags/metrics-layer.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>)

### AI overview

Pinterest's Metrics Board turns a metric definition into scheduled computation, quality checks, and publishing across data products, giving people and analytics agents a shared, governed source. Metrics are authored through guided forms and stored as versioned YAML in Git; each generates an isolated Airflow DAG that compiles SQL for SparkSQL or PrestoSQL, waits for upstream data, supports backfills, and resumes after late inputs. Rule-based thresholds and ML anomaly detection produce alerts and per-metric quality reports. Definitions publish metadata to PinCat and Helium at commit time, then fresh data to Superset and StarRocks after runs. Metric certification grades and dashboard tiers signal trust; tiers also govern documentation, retention, and query routing. An MCP server lets LLM tools discover definitions, while Pinterest's Analytics Agent grounds answers in certified metrics and golden queries. The authors report nearly 150 new metrics monthly, over 98% of experimentation metrics using the platform, and substantial time savings, including roughly two engineering-months on one project.

### Source excerpt

Michele Ceccacci; Software Engineer I | Jason Coffman; Sr. Software Engineer | Colm O'Shaughnessy; Software Engineer II | Laura Palmer; Staff Product Manager | Adam Podraza; Manager, Engineering | Surya Karri; Manager, Engineering At Pinterest, reliable and trustworthy metrics are behind every decision: from measuring company-wide business performance to evaluating each feature experiment results. Hundreds of data producers -- analysts, data scientists, and engineers across Pinterest -- create thousands of metrics from our petabyte scale data lake. A metrics ecosystem this size can't be ad hoc; it has to be organized, scalable, and resilient. So we built Metrics Board: an end-to-end platform that automates metric creation, enforces quality and enables agent-driven analytics. In this post we walk through the product experience, architecture, integrations and explain some of the design choices we made to make metrics work at planet scale. Why Metrics Matter at Pinterest Most organizations rely on a familiar set of metrics -- revenue, growth, engagement -- to steer the business. Metrics are how we understand whether Pinterest is delivering value to users and advertisers. Measures related to areas such as revenue, growth, and engagement turn the complexity of user behavior and Pinterest performance into a shared view of what is working, where we are falling short, and what matters most. These metrics drive the decisions our product, finance, and executive leaders make every day, from what to build to how we forecast and steer company strategy. Metrics also power Pinterest's product experimentation practice, which runs at massive scale -- thousands of experiments are active at any given time. Those experiments are used as gates for each new feature launch. For results to be fair, comparable, and statistically significant, metrics must be clearly defined, reliable, and reusable. Beyond common core metrics, individual experiments often need bespoke metrics scoped to a single mo

## Partition Finalization in Pinterest's Next-Generation DB Ingestion Framework

DevFeed: [Partition Finalization in Pinterest's Next-Generation DB Ingestion Framework](<https://devfeed.tech/articles/partition-finalization-in-pinterest-s-next-generation-db-ingestion-framework-60046.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/partition-finalization-in-pinterests-next-generation-db-ingestion-framework-4c7da6e4cc8f?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-09-25T15:01:03Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [Data pipelines](<https://devfeed.tech/topics/data-pipelines.md>), [stream-processing](<https://devfeed.tech/topics/stream-processing.md>), [Apache Flink](<https://devfeed.tech/topics/apache-flink.md>), [Apache Iceberg](<https://devfeed.tech/topics/apache-iceberg.md>), [table-partitioning](<https://devfeed.tech/topics/table-partitioning.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [automated](<https://devfeed.tech/tags/automated.md>), [batch](<https://devfeed.tech/tags/batch.md>), [challenge](<https://devfeed.tech/tags/challenge.md>), [complete](<https://devfeed.tech/tags/complete.md>), [completeness](<https://devfeed.tech/tags/completeness.md>), [consumer](<https://devfeed.tech/tags/consumer.md>), [customers](<https://devfeed.tech/tags/customers.md>), [data](<https://devfeed.tech/tags/data.md>), [data-completeness](<https://devfeed.tech/tags/data-completeness.md>), [database](<https://devfeed.tech/tags/database.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [flink](<https://devfeed.tech/tags/flink.md>), [format](<https://devfeed.tech/tags/format.md>), [framework](<https://devfeed.tech/tags/framework.md>), [generate](<https://devfeed.tech/tags/generate.md>), [generation](<https://devfeed.tech/tags/generation.md>), [hive](<https://devfeed.tech/tags/hive.md>), [icebergs](<https://devfeed.tech/tags/icebergs.md>), [next](<https://devfeed.tech/tags/next.md>), [partition](<https://devfeed.tech/tags/partition.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [spark](<https://devfeed.tech/tags/spark.md>)

### AI overview

Pinterest's streaming ingestion framework restores a reliable "safe to read" signal by deriving partition finalization from event time. The Flink-to-Iceberg sink records per-checkpoint event-time statistics in snapshot metadata, including compact percentile sketches, then computes a watermark from recent commits. Its default uses the minimum event time across a configurable lookback and rounds down to the hour; the watermark never regresses, and late data can trigger an alert. The CDC table stores the watermark as an Iceberg property, which Spark copies to the base table during upserts so downstream jobs can gate processing through metadata sensors. A conservative default favors completeness; tables can use a percentile policy for fresher data while accepting a rare late record. Generic accumulator and commit-processor extensions enable the mechanism in other Flink-to-Iceberg pipelines without extra operators or an external service.

### Source excerpt

Qianrui Zhang | Sr Software Engineer, Logging Platform Kanchi Masalia | Software Engineer II, Stream Processing Platform Liang Mou | Sr Staff Software Engineer, Logging Platform Yi Pan | Principal Engineer, Agent Platform Introduction This is the third post in our series on Pinterest's next-generation database ingestion framework. Part 1 introduced the DB ingestion framework built on Kafka, Flink, Spark, and Iceberg, and Part 2 covered automated schema evolution. This post tackles another challenge in migrating downstream customers to the new ingestion framework: knowing when data is complete enough to read. We'll walk through that data completeness challenge and how we solve it: what "partition finalization" means, why it matters to downstream customers, how we built a unified mechanism to generate partition finalization markers, and how those markers are consumed. We'll also look at how this mechanism generalizes beyond DB ingestion. Background & Motivation Before explaining partition finalization, it helps to define what a partition is and why a downstream consumer cares when one partition is "done." What is a Partition A time partition is a subset of a table whose rows are grouped by a time column, e.g. all rows whose timestamp falls within a given hour. Grouping data this way lets a consumer read just the slice it needs, such as the 1 AM hour, instead of scanning the whole table. How that grouping is physically represented depends on the table format: Hive uses explicit, directory-based partitioning: each partition maps to a physical directory in S3. Iceberg uses hidden partitioning: the partitioning is defined in the metadata layer rather than by directory layout, so consumers don't need to know the physical file layout to query a partition. What Finalization Means Now consider a typical consumer of these tables: a downstream batch job that processes a single hour's partition and runs only once for that hour. The consumer faces the question: when should my job

## Beyond Two Towers: Launching the 3-Tower Engagement Co-Train Model (Part 2)

DevFeed: [Beyond Two Towers: Launching the 3-Tower Engagement Co-Train Model (Part 2)](<https://devfeed.tech/articles/beyond-two-towers-launching-the-3-tower-engagement-co-train-model-part-2-42166.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/beyond-two-towers-launching-the-3-tower-engagement-co-train-model-part-2-0b96167d2c14?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-09-17T15:01:05Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [model architecture](<https://devfeed.tech/topics/model-architecture.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [Inference](<https://devfeed.tech/topics/inference.md>), [model-deployment](<https://devfeed.tech/topics/model-deployment.md>), [Representation learning](<https://devfeed.tech/topics/representation-learning.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [3](<https://devfeed.tech/tags/3.md>), [ads](<https://devfeed.tech/tags/ads.md>), [all](<https://devfeed.tech/tags/all.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [architectures](<https://devfeed.tech/tags/architectures.md>), [attention](<https://devfeed.tech/tags/attention.md>), [building](<https://devfeed.tech/tags/building.md>), [call](<https://devfeed.tech/tags/call.md>), [can](<https://devfeed.tech/tags/can.md>), [candidate](<https://devfeed.tech/tags/candidate.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cross](<https://devfeed.tech/tags/cross.md>), [design](<https://devfeed.tech/tags/design.md>), [dimensions](<https://devfeed.tech/tags/dimensions.md>), [efficiently](<https://devfeed.tech/tags/efficiently.md>), [engagement](<https://devfeed.tech/tags/engagement.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [model](<https://devfeed.tech/tags/model.md>), [monetization](<https://devfeed.tech/tags/monetization.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [recommendation-system](<https://devfeed.tech/tags/recommendation-system.md>), [tower](<https://devfeed.tech/tags/tower.md>), [train](<https://devfeed.tech/tags/train.md>)

### AI overview

Pinterest's three-tower co-train model predicts click, 30-second good-click, and outbound-click probabilities while preserving a fast two-tower score for broad candidate ranking. A cross tower uses candidate features to form query tokens for attention over user activity sequences; an inter module combines those interactions with query and Pin embeddings. To manage latency at candidate volumes above 100K, the system first scores all candidates with the co-trained two-tower head, then applies three-tower scoring to a utility-ranked subset of 40K. Reported optimizations include caching processed Pin features, BF16 inference, delaying user-feature expansion, and pre-layer normalization; together they reduced P99 inference from over 200 ms to about 30 ms. Offline three-tower loss fell around 30% across engagement tasks, while online experiments reported roughly 1% gains in CTR, gCTR30, and oCTR and nearly 1% lower CPC, with modestly higher GPU spend. The excerpt reports a small gCTR30 co-train loss degradation and does not include the detailed offline results table.

### Source excerpt

Authors: Longyu Zhao (Staff Machine Learning Engineer), Gwendolyn Zhao (Staff Machine Learning Engineer), Peng Yan (Senior Machine Learning Engineer), Yuanlu Bai (Senior Machine Learning Engineer), Yuan Wang (Senior Machine Learning Engineer), Yao Cheng (Staff Machine Learning Engineer), Ang Xu (Principal Machine Learning Engineer), Zhaohong Han (Manager II, Ads Lightweight Ranking) Introduction Previously¹, we launched the next-generation serving stack for standard ads, which we call Nexus. Nexus decoupled candidate generation from scoring and moved us beyond the classic two-tower-only world, enabling richer model architectures while still meeting stringent latency and cost constraints. Building on this system, we set out to design the first ads lightweight ranking model that goes beyond two towers. It jointly predicts three probabilities for each candidate ad: pCTR, the probability of a click; pGCTR30, the probability of a good click that lasts at least 30 seconds; and pOCTR, the probability of an outbound click to the advertiser's destination. To support these objectives efficiently, we partition the query and Pin embeddings into task-specific CTR, gCTR30, and oCTR segments. For the CTR task, the fast two-tower prediction uses the first 64 dimensions of the CTR segment, while the three-tower prediction uses the full CTR segment together with richer cross features. For gCTR30 and oCTR tasks, full embeddings are shared between two-tower and three-tower predictions. This lets each task learn dedicated representations while sharing the overall model. In principle, Nexus places very few hard constraints on the architecture we can serve: cross-attention, sequence modeling, and more expressive interaction modules are all on the table. However, in practice we quickly ran into the fundamental reality of ads lightweight ranking at Pinterest scale: for a typical request, we need to score on the order of hundreds of thousands of candidates (P99 post-targeting candidate count

## Evolving Pinterest's Embedding Retrieval Platform

DevFeed: [Evolving Pinterest's Embedding Retrieval Platform](<https://devfeed.tech/articles/evolving-pinterest-s-embedding-retrieval-platform-1230.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/evolving-pinterests-embedding-retrieval-platform-aede4e831e01?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-09-11T15:01:03Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Scalability](<https://devfeed.tech/topics/scalability.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [IO](<https://devfeed.tech/topics/io.md>)

Tags: [ann](<https://devfeed.tech/tags/ann.md>), [cost](<https://devfeed.tech/tags/cost.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [latency](<https://devfeed.tech/tags/latency.md>), [memory](<https://devfeed.tech/tags/memory.md>), [models](<https://devfeed.tech/tags/models.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [platform](<https://devfeed.tech/tags/platform.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [search](<https://devfeed.tech/tags/search.md>)

### AI overview

Pinterest describes evolving its Manas embedding-retrieval platform to address the cost, scale, and flexibility challenges of serving billions of embeddings. The excerpt covers ANN search, vector quantization, and SSD-based serving.

### Source excerpt

Authors: Bowen Zhou | Staff Software Engineer; Shan Gao | Senior Software Engineer; Jingwen Hu | Software Engineer II; Wenjiang Chu | Staff Software Engineer The Billion-Embedding Challenge At Pinterest, the "signal" is our lifeblood. Whether it's a home decor enthusiast finding the perfect rug or a fashion seeker discovering a new aesthetic, our discovery engine relies on understanding deep semantic relationships to help our users find inspirations. Over the last few years, the explosive growth of embedding-based retrieval has fundamentally transformed how we surface these signals -- and at the heart of that transformation is Manas, Pinterest's in-house distributed search platform. Embedding Retrieval is one of the core capabilities of Manas, supporting multiple approximate nearest neighbor search algorithms, hybrid queries with both token and embedding clauses, as well as real-time updates to ensure fresh contents become searchable within seconds. Deployed on over 80 clusters and serving billions of embeddings, Manas embedding retrieval powers all major product surfaces at Pinterest including Home Feed, Search, Related Pins, Ads, and Notifications. However, as our corpus scales toward tens of billions of embeddings and our models capture increasingly complex interactions, we face mounting challenges around cost efficiency, scalability, and flexibility. On the infrastructure side, traditional ANN algorithms like HNSW are notoriously memory-hungry -- they require the entire index to reside in RAM to maintain low query latency, making cost grow linearly with corpus size. On the modeling side, the classic two-tower retrieval paradigm is too restrictive: it reduces each candidate to a single embedding and scores relevance through a simple dot product, leaving little room to express richer, context-dependent notions of similarity. To tackle these challenges, our team has been evolving Manas's embedding retrieval stack across three fronts: Quantization. We reduce the memor

## Building Pinterest's VLM Serving Stack on NVIDIA Dynamo

DevFeed: [Building Pinterest's VLM Serving Stack on NVIDIA Dynamo](<https://devfeed.tech/articles/building-pinterest-s-vlm-serving-stack-on-nvidia-dynamo-1229.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/building-pinterests-vlm-serving-stack-on-nvidia-dynamo-0dce6e93d0f3?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-09-10T23:08:16Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [Dynamo](<https://devfeed.tech/topics/dynamo.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [vllm](<https://devfeed.tech/topics/vllm.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Real-time AI interactions](<https://devfeed.tech/topics/real-time-ai-interactions.md>), [Image](<https://devfeed.tech/topics/image.md>), [Cache](<https://devfeed.tech/topics/cache.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-systems](<https://devfeed.tech/tags/ai-systems.md>), [ai-workloads](<https://devfeed.tech/tags/ai-workloads.md>), [also](<https://devfeed.tech/tags/also.md>), [bandwidth](<https://devfeed.tech/tags/bandwidth.md>), [blackwell](<https://devfeed.tech/tags/blackwell.md>), [building](<https://devfeed.tech/tags/building.md>), [cache](<https://devfeed.tech/tags/cache.md>), [can](<https://devfeed.tech/tags/can.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [challenges](<https://devfeed.tech/tags/challenges.md>), [class](<https://devfeed.tech/tags/class.md>), [compare](<https://devfeed.tech/tags/compare.md>), [dynamo](<https://devfeed.tech/tags/dynamo.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [multimodal-ai](<https://devfeed.tech/tags/multimodal-ai.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [nvidia-dynamo](<https://devfeed.tech/tags/nvidia-dynamo.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [stack](<https://devfeed.tech/tags/stack.md>), [vlm](<https://devfeed.tech/tags/vlm.md>), [vlm-serving](<https://devfeed.tech/tags/vlm-serving.md>)

### AI overview

Pinterest built a multimodal serving platform on NVIDIA B200 GPUs, Dynamo orchestration, and vLLM to handle visual requests whose image preprocessing, costly prefill, long conversations, and large KV caches strain text-oriented serving. The stack uses disaggregated encoder/prefill/decode workers, multimodal KV-aware routing, and LMCache tiers across GPU memory, CPU DRAM, and NVMe. For Pinterest Assistant, PinCLIP projection embeddings let requests reuse precomputed visual representations instead of repeatedly processing raw pixels. Pinterest reports roughly 85x average faster TTFT and 7.3x faster end-to-end latency versus pixel inputs in its benchmarks; results are workload-specific. The shared platform also supports tool calling and other multimodal uses. AIPerf DAG benchmarks model multi-turn, multimodal and agentic traffic with configurable load to assess latency, throughput, and production SLOs.

### Source excerpt

Lei Pan | Senior Software Engineer; Salina Wu | Senior Software Engineer; Cristian Lopez | Software Engineer I; Guangtong Bai | Staff Software Engineer; Soam Acharya | Principal Engineer; Saurabh Vishwas Joshi | Principal Engineer; Chia-Wei Chen | Staff Software Engineer; Ambud Sharma | Principal Engineer Why VLM Serving Matters at Pinterest Pinterest is a visual search and discovery platform, so its AI systems must reason over both language and visual content. Vision-language models (VLMs), which can interpret images, compare visual candidates, and respond naturally to user intent, are becoming the foundation for the next generation of Pinterest experiences: Pinterest Assistant, hybrid search, multimodal reranking, content understanding, signal generation, content safety, and more. This direction also reflects Pinterest's broader strategy to customize open-source models to meet its product & scale needs. Pinterest Assistant is a standout example. This multi-turn conversational experience covers both user language and visual content. Serving it requires low-latency VLM inference over rich multimodal context as well as reworking Qwen3-VL with proprietary multimodal embeddings to cut runtime cost while improving performance. Serving VLMs, however, introduces more challenges compared to text-only LLM workloads. Requests may carry multiple images, require extra vision encoder computation, incur larger and more variable prefill cost, and create higher KV cache pressure. To support this new class of models & product experiences, we built Pinterest's VLM serving stack on top of NVIDIA Blackwell GPUs and NVIDIA Dynamo. Blackwell GPUs incorporate many architectural innovations that are uniquely positioned for today's most demanding AI workloads -- including higher BF16/FP8 compute throughput, increased memory bandwidth, and larger HBM memory capacity -- that enable dramatically higher performance for inference. Dynamo provides a distributed inference orchestration layer that g

## Becoming an AI Team

DevFeed: [Becoming an AI Team](<https://devfeed.tech/articles/becoming-an-ai-team-1228.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/becoming-an-ai-team-866d6b567803?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-09-01T15:01:06Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [AI Strategy](<https://devfeed.tech/topics/ai-strategy.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [AI Integration Strategies](<https://devfeed.tech/topics/ai-integration-strategies.md>), [AIOps](<https://devfeed.tech/topics/aiops.md>), [engineering-leadership](<https://devfeed.tech/topics/engineering-leadership.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [developer-productivity](<https://devfeed.tech/topics/developer-productivity.md>)

Tags: [accessible](<https://devfeed.tech/tags/accessible.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-tools](<https://devfeed.tech/tags/ai-tools.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [artificial-intelligence-ai](<https://devfeed.tech/tags/artificial-intelligence-ai.md>), [automate](<https://devfeed.tech/tags/automate.md>), [capabilities](<https://devfeed.tech/tags/capabilities.md>), [contributors](<https://devfeed.tech/tags/contributors.md>), [cost](<https://devfeed.tech/tags/cost.md>), [data](<https://devfeed.tech/tags/data.md>), [data-analysis](<https://devfeed.tech/tags/data-analysis.md>), [developer](<https://devfeed.tech/tags/developer.md>), [developer-productivity](<https://devfeed.tech/tags/developer-productivity.md>), [development](<https://devfeed.tech/tags/development.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [engineering-culture](<https://devfeed.tech/tags/engineering-culture.md>), [execution](<https://devfeed.tech/tags/execution.md>), [goals](<https://devfeed.tech/tags/goals.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [team](<https://devfeed.tech/tags/team.md>)

### AI overview

The article argues that becoming an AI team requires changing how work is prioritized and managed, not just adding tools. At Pinterest, AI agents help write and validate Spark jobs, triage alerts, investigate database issues, and enable larger infrastructure refactors; the article says this shifts engineers toward roadmap work and strategic problem-solving. Because AI makes more projects feasible, teams still need to choose work for its strategic value. The transition can strain teams that remain fully committed while learning new tools, so managers should set direction, provide time for experimentation, share useful practices, and make it safe to learn from failures. The examples and claims are the author's account of Pinterest teams.

### Source excerpt

John Grass | Sr. Manager, Engineering A Fundamental Transformation An AI team is fundamentally more than just a group whose members incorporate AI tools into their existing workflows. The journey to becoming an AI team necessitates a fundamental and comprehensive paradigm shift in how the team defines ownership, engages in strategic planning, and, most critically, executes on its core goals and objectives. This transformation is not merely an addition of new technology; it is a restructuring of the team's operating model, philosophy, and individual roles. Becoming an AI team requires a holistic shift: team members transition from routine, manual execution to empowered, AI-augmented strategists and problem-solvers. In an AI-centric environment, every single member is significantly empowered, not only through access to cutting-edge AI tools and sophisticated models but through an expanded scope of responsibility and influence. These new capabilities allow individuals to automate routine tasks, accelerate data analysis, and rapidly prototype solutions, freeing up cognitive resources for higher-level, more strategic thinking. The expectation shifts from simply completing tasks to orchestrating intelligent systems and focusing on solving problems that were previously intractable. Consequently, the very nature of the work for both individual contributors and managers will be fundamentally different from anything that has come before. At Pinterest, this isn't theoretical. Our infrastructure teams sit at the core of a product that serves billions of Pins, boards, ads, and real-time signals. That reality has forced us to treat "becoming an AI team" as an operational necessity, not a side project as we cannot keep scaling reliability, cost efficiency, and developer productivity using only traditional playbooks. AI Team Capabilities The advent of accessible Artificial Intelligence (AI) tools has fundamentally raised the performance ceiling for what development teams can accomp

## Scaling Conditional Learned Retrieval for Pinterest Home Feed

DevFeed: [Scaling Conditional Learned Retrieval for Pinterest Home Feed](<https://devfeed.tech/articles/scaling-conditional-learned-retrieval-for-pinterest-home-feed-1233.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/scaling-conditional-learned-retrieval-for-pinterest-home-feed-ecfba7e5a426?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-08-26T14:01:05Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [recommendation systems](<https://devfeed.tech/topics/recommendation-systems.md>), [information retrieval](<https://devfeed.tech/topics/information-retrieval.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [ann](<https://devfeed.tech/topics/ann.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>)

Tags: [approximate-nearest-neighbor-search](<https://devfeed.tech/tags/approximate-nearest-neighbor-search.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [bootstrap](<https://devfeed.tech/tags/bootstrap.md>), [candidate](<https://devfeed.tech/tags/candidate.md>), [condition](<https://devfeed.tech/tags/condition.md>), [conditional](<https://devfeed.tech/tags/conditional.md>), [context](<https://devfeed.tech/tags/context.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [eng-culture](<https://devfeed.tech/tags/eng-culture.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [home](<https://devfeed.tech/tags/home.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [interest](<https://devfeed.tech/tags/interest.md>), [learning](<https://devfeed.tech/tags/learning.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [model](<https://devfeed.tech/tags/model.md>), [multiple](<https://devfeed.tech/tags/multiple.md>), [nearest-neighbor](<https://devfeed.tech/tags/nearest-neighbor.md>), [pin](<https://devfeed.tech/tags/pin.md>), [pinner-experience](<https://devfeed.tech/tags/pinner-experience.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [scaling](<https://devfeed.tech/tags/scaling.md>)

### AI overview

Pinterest's Conditional Learned Retrieval (CLR) extends two-tower User-to-Pin retrieval by conditioning the user representation on interests, Pins, or Boards, letting the home feed retrieve candidates for different aspects of a user's behavior. The system evolved from separate condition-specific models to Unified CLR, with a shared slot architecture for embeddings, identifiers, and condition types. A Conditioned User Sequence Transformer and later PinFM add sequence context; training also uses next-token and contrastive alignment losses. To scale training, the team deduplicates repeated user features and batches conditions over a shared user sequence, reporting 2x training throughput. For serving, it consolidated requests, then moved to GPU inference with NVEmbed. Pinterest reports seven-figure cost savings and an 85% reduction in p90 model latency, from 80 ms to 12 ms. The text says these changes enabled more conditions per user and initiatives including CLR FM and Search CLR; future expansion to other surfaces is planned.

### Source excerpt

Devin Kreuzer | Sr. Machine Learning Engineer; Yichi Wang | Machine Learning Engineer I; Sujan Reddy Ale | Machine Learning Engineer I; Zelun Wang | Sr. Machine Learning Engineer; Hongtao Lin | Sr. Machine Learning Engineer; Piyush Maheshwari | Staff Machine Learning Engineer Pinterest home feed candidate generation is a large-scale User-to-Pin retrieval problem. A common approach is a two-tower model: a user tower encodes the user, an item tower encodes candidate Pins, and approximate nearest neighbor search retrieves Pins close to the user embedding. But Pinterest users often have multiple intentions at once -- planning a renovation, saving recipes, exploring fashion, or organizing travel ideas. A single retrieval embedding can struggle to capture this diversity. Conditional Learned Retrieval, or CLR, extends the two-tower setup by conditioning the user tower on an explicit retrieval context. Instead of producing only one user embedding, CLR can generate condition-aware embeddings that reflect different aspects of a user's interests while still grounding retrieval in the user's overall behavior. Prior Pinterest work studied this formulation in two settings. The RecSys'24 paper: Bootstrapping Conditional Retrieval for User-to-Item Recommendations described how to bootstrap conditional retrieval by constructing training data for (user, condition) -> item retrieval from existing user-item and condition signals, and applied it to interest-based notifications. The KDD'25 paper: Synergizing Implicit and Explicit User Interests: A Multi-Embedding Retrieval Framework at Pinterest placed Conditional Retrieval within a broader multi-embedding retrieval framework for home feed, where explicit interest conditions complement implicit interests extracted from user behavior. In this blog, we describe how CLR evolved from early interest-conditioned retrieval into a broader retrieval system for Pinterest home feed. We focus on three areas: expanding CLR to support more retrieval us

## Pinner Progression: Better Use-Case Representation Driving Weekly Active User Growth at Pinterest

DevFeed: [Pinner Progression: Better Use-Case Representation Driving Weekly Active User Growth at Pinterest](<https://devfeed.tech/articles/pinner-progression-better-use-case-representation-driving-weekly-active-user-growth-at-pinterest-1232.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/pinner-progression-better-use-case-representation-driving-weekly-active-user-growth-at-pinterest-bd2131ab238a?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-07-27T16:01:02Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [recommendation systems](<https://devfeed.tech/topics/recommendation-systems.md>), [Data Science](<https://devfeed.tech/topics/data-science.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [engineering](<https://devfeed.tech/tags/engineering.md>), [growth](<https://devfeed.tech/tags/growth.md>), [interest-exploration](<https://devfeed.tech/tags/interest-exploration.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [personalization](<https://devfeed.tech/tags/personalization.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [recommendation-system](<https://devfeed.tech/tags/recommendation-system.md>), [retention](<https://devfeed.tech/tags/retention.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [understanding-user](<https://devfeed.tech/tags/understanding-user.md>)

### AI overview

Pinterest introduces Pinner Progression, a recommendation-system program that uses persistent User Interest Clusters to improve discovery and make retention a first-class objective alongside engagement.

### Source excerpt

Part 1 of 2 Authors Personalization (Homefeed): Yuke Yan, Chuxi Wang, Andreanne Lemay, Olafur Gudmundsson, Anna Kiyantseva, Krystal Benitez, Jongho Kim, Jiacong He, Rahul Goutam, James Li, Dylan Wang User Understanding: Simin Li, Sufyan Suliman, Yingjian Ding, Hongbo Deng Data Science: Armando Ordorica, Yan Chen, Ellie Zhang, Karim Wahba Introduction Pinterest's mission is to help people discover the inspiration to create a life they love. Our recommendation system serves hundreds of millions of users, surfacing billions of Pins across interests ranging from home renovation to meal planning to wedding decor. The home feed , where much of that discovery happens, is powered by a multi-stage pipeline spanning retrieval, lightweight scoring, ranking, and re-ranking [1][2][3]. Most of our prior work on this pipeline has been optimized for engagement: clicks, saves, downloads, closeups. These are strong signals of immediate relevance, and optimizing for them has driven significant gains across the system [4][5]. The problem is that engagement and retention are different things. A user can save ten sourdough recipes today and churn next month anyway. All we did was feed them more of what they already liked: we never helped them find something new for next time. This post is one of two that introduces Pinner Progression, a program that reframes the home feed recommendation system around retention as a first-class objective. Our core insight is that by augmenting sequential, action-by-action user understanding with holistic, persistent use-case representation, we can reliably anticipate the user's next moves and start to serve recommendations that ignite their serendipitous discovery. In this post, we introduce the key use-case representation signal: User Interest Clusters (UICs) -- and describe its construction, integration into the recommendation stack, and impact on engagement on retention metrics. A follow-up will cover how we predict unseen UICs and conduct systematic us

## Securing Infrastructure at Scale: Introducing Pinterest's Resource Provisioner Pipeline (RPP)

DevFeed: [Securing Infrastructure at Scale: Introducing Pinterest's Resource Provisioner Pipeline (RPP)](<https://devfeed.tech/articles/securing-infrastructure-at-scale-introducing-pinterest-s-resource-provisioner-pipeline-rpp-1234.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/securing-infrastructure-at-scale-introducing-pinterests-resource-provisioner-pipeline-rpp-8283bb12cbe5?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-07-22T16:01:02Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [Infrastructure as code](<https://devfeed.tech/topics/infrastructure-as-code.md>), [Terraform](<https://devfeed.tech/topics/terraform.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [AWS IAM](<https://devfeed.tech/topics/aws-iam.md>), [Security](<https://devfeed.tech/topics/security.md>), [Provisioning](<https://devfeed.tech/topics/provisioning.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Network](<https://devfeed.tech/topics/network.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [cloud-infrastructure](<https://devfeed.tech/tags/cloud-infrastructure.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [iam](<https://devfeed.tech/tags/iam.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [networking](<https://devfeed.tech/tags/networking.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [s3](<https://devfeed.tech/tags/s3.md>), [security](<https://devfeed.tech/tags/security.md>), [terraform](<https://devfeed.tech/tags/terraform.md>)

### AI overview

Pinterest's Resource Provisioner Pipeline (RPP) is a proprietary Terraform execution engine for securely managing infrastructure changes across a distributed, multi-repository environment. The article describes its centralized GitHub Actions workflow, compliance controls, role chaining, and management of AWS infrastructure including IAM, networking, S3, compute, and Kubernetes resources.

### Source excerpt

Ammar Ekbote | Senior Software Engineer Chan Kim | Senior Software Engineer Managing Infrastructure as Code (IaC) across a massive organization comes with a unique set of security and logistical challenges, particularly when operating within a distributed, multi-repository architecture. At Pinterest, we designed the Resource Provisioner Pipeline (RPP), our specialized, proprietary Terraform execution engine to safely manage both critical and non-critical infrastructure changes. In this post, we will look under the hood of the first iteration of the RPP system. We will explore how it established compliance and provides robust security guardrails for our global AWS operations by utilizing dual controls, centralized GitHub Actions execution, and a secure role-chaining mechanism. If your engineering team is looking to add strict guardrails to a GitHub workflow-driven Terraform setup, our architecture might serve as a helpful blueprint. What is RPP? RPP delivers a secure, standardized CI/CD workflow for deploying and managing Pinterest's foundational AWS infrastructure. Today, the system manages hundreds of Terraform workspaces that collectively govern tens of thousands of resources. This includes: Security Policies: Managing critical IAM roles and access policies. Networking Infrastructure: Configuring VPCs, Security Groups, Load Balancers, and DNS. Storage & Compute: Provisioning S3 buckets (including access controls) and Kubernetes clusters. The RPP GitHub WorkflowThe Multi-Repo Challenge Pinterest's Terraform code is currently distributed across multiple repositories, each owned and maintained by a completely different team. While we have an ongoing initiative to consolidate these into a unified mono-repository, RPP acts as a vital bridge that securely supports this legacy multi-repo structure. Centralized Execution Model To maintain absolute control over infrastructure states, RPP enforces a centralized execution model for all code changes: Workflow Invocation: The

## Achieving Near-Linear Training Scalability for Pinterest's Foundation Models

DevFeed: [Achieving Near-Linear Training Scalability for Pinterest's Foundation Models](<https://devfeed.tech/articles/achieving-near-linear-training-scalability-for-pinterest-s-foundation-models-1225.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/achieving-near-linear-training-scalability-for-pinterests-foundation-models-14d4f59fe6f6?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-06-25T16:01:02Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [Training AI Models](<https://devfeed.tech/topics/training-ai-models.md>), [NCCL](<https://devfeed.tech/topics/nccl.md>), [Network](<https://devfeed.tech/topics/network.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [distributed-training](<https://devfeed.tech/tags/distributed-training.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [foundation-models](<https://devfeed.tech/tags/foundation-models.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [nccl](<https://devfeed.tech/tags/nccl.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

Pinterest describes optimizing multi-node distributed training for an embedding-heavy foundation ranking model. The reported improvements raise scaling from 1.13x to 2.0x at two nodes and from 1.21x to 3.9x at four nodes, with 7.5x scaling at eight nodes.

### Source excerpt

Sheng Huang | Software Engineer, AI Platform; Pong Eksombatchai | Machine Learning Engineer, Applied Sciences; Saurabh Vishwas Joshi | Software Engineer, AI Platform; Gaurav Arora | Software Engineer, AI Platform; Karthik Anantha Padmanabhan | Engineering Director, AI Platform At Pinterest, foundation models power recommendations for over 600 million monthly active users. Our latest Foundation Model (ACM RecSys 2025) pre-trains on two years of user activity data and is deployed into Home feed and Related Pins ranking, the platform's two most important recommendation systems. Multi-node distributed training is the key to unlocking the next level of that capacity.¹ But when we first attempted multi-node training, adding a second machine made training 5x slower, producing a scaling factor of roughly 0.2x. Enabling AWS Elastic Fabric Adapter (EFA) for OS-bypass networking fixed the networking layer and recovered a viable baseline, but scaling was still poor: 1.13x at 2 nodes and 1.21x at 4 nodes. Three extra nodes, 3x more GPUs, 3x more cost, yet only 21% more throughput. This post describes how we took 2-node scaling from 1.13x to 2.0x and 4-node scaling from 1.21x to 3.9x (97.5% of ideal), then extended to 8 nodes at 7.5x. The larger models this unlocked have driven significant engagement gains across Pinterest's recommendation surfaces. Figure 1: Training scalability before and after optimization. Left: before EFA and optimization, adding a second node degraded throughput to 0.2x of single-node. Right: after optimization, scaling is near-linear across 2, 4, and 8 nodes, with 8-node reaching 7.5x (93.75% of ideal).Background Training scalability measures whether adding more resources yields proportionally more throughput. Training efficiency measures how much throughput you extract from the same resources. This post focuses on scalability. Our Foundation Ranking Model is embedding-heavy: approximately 99% of parameters reside in embedding tables, with the dense transf

## Automated Schema Evolution in Pinterest's Next-Generation DB Ingestion Framework

DevFeed: [Automated Schema Evolution in Pinterest's Next-Generation DB Ingestion Framework](<https://devfeed.tech/articles/automated-schema-evolution-in-pinterest-s-next-generation-db-ingestion-framework-1227.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/automated-schema-evolution-in-pinterests-next-generation-db-ingestion-framework-36c5c07070de?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-06-24T18:01:01Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [schema-evolution](<https://devfeed.tech/topics/schema-evolution.md>), [Apache Iceberg](<https://devfeed.tech/topics/apache-iceberg.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Database](<https://devfeed.tech/topics/database.md>), [Apache Spark](<https://devfeed.tech/topics/spark.md>), [Apache Kafka](<https://devfeed.tech/topics/apache-kafka.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [Code generation](<https://devfeed.tech/topics/code-generation.md>), [dataset](<https://devfeed.tech/topics/dataset.md>), [monitor](<https://devfeed.tech/topics/monitor.md>), [Provisioning](<https://devfeed.tech/topics/provisioning.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [icebergs](<https://devfeed.tech/tags/icebergs.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [monitor](<https://devfeed.tech/tags/monitor.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [process](<https://devfeed.tech/tags/process.md>), [schema-evolution](<https://devfeed.tech/tags/schema-evolution.md>), [software](<https://devfeed.tech/tags/software.md>), [spark](<https://devfeed.tech/tags/spark.md>), [storage](<https://devfeed.tech/tags/storage.md>)

### AI overview

Pinterest describes an automated schema-evolution framework for its CDC-based database ingestion platform, which uses Kafka, Flink, Spark, and Iceberg. The framework propagates supported schema changes across the stack, uses pull-request-based versioning and auditing, targets SLA-based consistency between online and offline schemas, and provides recovery paths for unsupported or ambiguous changes.

### Source excerpt

Yisheng Zhou | Software Engineer II Liang Mou | Sr Staff Software Engineer Gabriel Raphael Garcia Montoya | Staff Software Engineer Istvan Podor | Staff Software Engineer Introduction In the first post of this series, we introduced Pinterest's next-generation CDC-based ingestion platform built on Kafka, Flink, Spark, and Iceberg. In production, upstream schemas are constantly evolving, and in a distributed CDC pipeline, schema is not just metadata -- it is a cross-system contract spanning ingestion, transformation, storage, and historical backfill. A schema change that is not handled carefully can break Flink jobs, block Spark upserts, or create inconsistencies between online and offline representations. This post walks through how we make schema evolution safe in practice: the onboarding model it builds on, the changes we support and the tradeoffs we accept, how updates propagate across the stack, and how we monitor and recover when things go wrong. We end with where we're heading next -- zero-gap schema evolution. Background & Motivation Schema evolution was particularly challenging in our environment because our ingestion pipeline is composed of multiple tightly related stages, each of which depends on schema in a different way. A single table onboarding flow spans CDC source configuration, Kafka provisioning, Flink and Spark code generation, Iceberg CDC and base table creation, and historical bootstrap -- all driven by the same schema. Once a source schema changes, that change must be reflected across code, metadata, and storage in a controlled and auditable way. Without a unified automation framework, manual updates across these layers increase the risk of drift, failed deployments, and inconsistent datasets. We therefore needed a way to make schema evolution safe, repeatable, and scalable. Our Solution: SLA-Based Automated Schema Evolution To address this problem, we built an automated schema evolution framework on top of our CDC ingestion platform, providing: au

## Making User-Sequence Data More Cost-Efficient, Faster, and Easier to Use

DevFeed: [Making User-Sequence Data More Cost-Efficient, Faster, and Easier to Use](<https://devfeed.tech/articles/making-user-sequence-data-more-cost-efficient-faster-and-easier-to-use-1231.md>)

Original publisher: [Read original article](<https://medium.com/pinterest-engineering/making-user-sequence-data-more-cost-efficient-faster-and-easier-to-use-2a56a928cae1?source=rss----4c5a5f6279b6---4>)

Author: Pinterest Engineering

Published: 2026-05-21T16:01:00Z

Content type: article

Language: en

Sources: [Pinterest](<https://devfeed.tech/sources/pinterest-engineering-blog-medium.md>)

Topics: [data](<https://devfeed.tech/topics/data.md>), [recommendation systems](<https://devfeed.tech/topics/recommendation-systems.md>), [dataset](<https://devfeed.tech/topics/dataset.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Feature Engineering](<https://devfeed.tech/topics/feature-engineering.md>), [Inference](<https://devfeed.tech/topics/inference.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [systems](<https://devfeed.tech/topics/systems.md>)

Tags: [data](<https://devfeed.tech/tags/data.md>), [data-infrastructure](<https://devfeed.tech/tags/data-infrastructure.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [feature-engineering](<https://devfeed.tech/tags/feature-engineering.md>), [inference](<https://devfeed.tech/tags/inference.md>), [latency](<https://devfeed.tech/tags/latency.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [pinterest](<https://devfeed.tech/tags/pinterest.md>), [production](<https://devfeed.tech/tags/production.md>), [recommendation-system](<https://devfeed.tech/tags/recommendation-system.md>), [recommendation-systems](<https://devfeed.tech/tags/recommendation-systems.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [systems](<https://devfeed.tech/tags/systems.md>), [train](<https://devfeed.tech/tags/train.md>), [transformers](<https://devfeed.tech/tags/transformers.md>)

### AI overview

Pinterest describes a redesign of its user-sequence platform for ranking, retrieval, and recommendation workloads. The article explains how enriched event sequences support training datasets, offline analysis, online inference, and latency-sensitive production use cases, with goals of reducing cost, improving extensibility, and simplifying debugging.

### Source excerpt

Authors (listed alphabetically) Ads Feature Engineering Infra team: Ajay Venkatakrishnan, Le Zhang Core ML Infra team: Eric Shang, Pihui Wei ML Data team: Connor Votroubek, Yi He User Understanding team: Camilo Munoz, Simin Li If you work on ranking, retrieval, or recommendation systems, you've probably asked for some version of the same thing: "Give me the last N meaningful actions this user took, with the right enrichments, in a format that's easy to train and serve ML models." On paper, that sounds simple. In practice, "user sequences" often become one of the most expensive and fragile parts of the ML data stack. They end up powering everything from training datasets to offline analysis and online inference, so they need to be fresh and complete at the same time. They must remain consistent as you add new events and enrichments. And they have to do all of this while serving latency-sensitive production workloads. This article walks through how we redesigned our user-sequence platform to make these sequences cheaper to run, faster to extend, and easier to debug, while still supporting demanding production use cases. What We Mean by "User Sequence" In this context, a user sequence is an ordered list of recent, relevant events for a user, along with the enrichments (signals) attached to each event. Here, enrichments mean all the extra signals we attach to raw events, so they're useful for models: embeddings (for example, Pin or query representations), contextual features (such as surface, device, or country), and derived attributes or counters that describe how the user interacted with a piece of content over time. A concrete example helps. Imagine a sequence made up of the last 500 engagements a user had with Pinterest Pins. Each event in that sequence might carry a timestamp, an action type, the surface where the action occurred, and a handful of embedding features or categorical attributes. As a data primitive, user sequences are powerful. They capture temporal b