---
title: "AI debugging at Meta with HawkEye"
description: "HawkEye is Meta's internal toolkit for monitoring and debugging production ML workflows behind recommendation and ranking models, structured as a guided decision tree that has cut debugging time by an order of magnitude."
url: "https://swe.quest/articles/ai-debugging-at-meta-with-hawkeye-ac064241de32ab52"
canonical: "https://engineering.fb.com/2023/12/19/data-infrastructure/hawkeye-ai-debugging-meta/"
source: "Meta Engineering"
published: "2023-12-19"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["ml-platform","observability","debugging","recommendation-systems"]
---

# AI debugging at Meta with HawkEye

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-12-19, 7 min read, Case study. Original: [https://engineering.fb.com/2023/12/19/data-infrastructure/hawkeye-ai-debugging-meta/](https://engineering.fb.com/2023/12/19/data-infrastructure/hawkeye-ai-debugging-meta/)

## Summary

HawkEye is Meta's internal toolkit for monitoring and debugging production ML workflows behind recommendation and ranking models, structured as a guided decision tree that has cut debugging time by an order of magnitude. It isolates top-line metric anomalies to specific models and snapshot rollouts. It then localizes prediction anomalies to features using real-time correlation of sampled inputs and outputs plus slower feature-ablation importance analysis, and traces feature problems upstream through data lineage graphs. For model-side issues it compares snapshot weights against stable predecessors, walks the model graph from NaN or extreme activations back to input features, and inspects training data partitions for label drift or imbalance, with mitigations such as pausing bad pipelines.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [ML platforms](https://swe.quest/tags/ml-platform.md) (AI & ML)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)

## Prerequisites

- ML model training and serving ([easy posts on Machine learning](https://swe.quest/tags/machine-learning.md?difficulty=easy))
- feature pipelines
- A/B experimentation

## Keywords

HawkEye, Meta, feature ablation, data lineage, Prediction Robustness

## Related posts

- [Meta’s approach to machine learning prediction robustness](https://swe.quest/articles/meta-s-approach-to-machine-learning-prediction-robustness-f22ac7dca205dca9.md): Meta Engineering · 2024-07-10 · Easy · 7 min read · ML platforms, Recommendations & ranking, Ads, Observability
  Meta keeps its ads recommendation models reliable with a prediction robustness framework built from three parts: prevention guardrails, root-cause understanding and intrinsic model hardening.
- [Leveraging AI for efficient incident response](https://swe.quest/articles/leveraging-ai-for-efficient-incident-response-c0ed9d554ec34552.md): Meta Engineering · 2024-06-24 · Medium · 5 min read · Incidents & postmortems, LLMs, Model training, Debugging
  Meta's AI-assisted root cause analysis system narrows suspect code changes in its web monorepo by combining a heuristic retriever with a fine-tuned Llama 2 (7B) ranker.
- [DrP: Meta’s Root Cause Analysis Platform at Scale](https://swe.quest/articles/drp-meta-s-root-cause-analysis-platform-at-scale-0643de72e5c8817c.md): Meta Engineering · 2025-12-19 · Easy · 5 min read · Incidents & postmortems, SRE, Observability, Developer tools
  DrP is Meta's root cause analysis platform that lets engineers codify incident investigation playbooks as "analyzers" using an SDK with helpers for anomaly detection, event isolation, time series correlation and dimension analysis.
- [How we detect frontier model misalignment](https://swe.quest/articles/how-we-detect-frontier-model-misalignment-98ddf97507c137b5.md): OpenAI · 2026-10-29 · Medium · 15 min read · AI safety, AI agents, Threat detection, Evaluation, Sandboxing & isolation
  OpenAI monitors frontier agents across training, evaluation, internal use and some external deployment with a four-layer pipeline: high-recall activation probes (L0), a model-based reviewer of the agent's context window (L1), security and alignment investigative agents that can run code and read full transcripts (L2), and cross-case analysis against network logs and telemetry (L3).
- [Improving Meta’s SLO workflows with data annotations](https://swe.quest/articles/improving-meta-s-slo-workflows-with-data-annotations-47cfa543b4be414b.md): Meta Engineering · 2022-08-29 · Medium · 8 min read · SRE, Observability, Incidents & postmortems
  Meta extended its SLICK SLO platform with schematized annotations so on-call engineers record structured root causes for every SLO violation, turning freeform notes into data that reveals the most common failure patterns.

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)
