Graph Neural Networks Just Solved Enterprise AI?

Jure Leskovec introduces Relational Foundation Models (RFMs), a new class of models based on graph neural networks that learn directly from raw, multi-table enterprise data. This approach bypasses manual feature engineering, leading to more accurate, faster-to-deploy, and easier-to-maintain predictive models for tasks like churn prediction, fraud detection, and recommendation systems.

4 min read
Graph Neural Networks Just Solved Enterprise AI?
source: https://www.youtube.com/watch?v=Tq613N0dyI0

The world of AI has been revolutionized by models that learn from raw data, as seen in computer vision with pixels and in NLP with text tokens. However, predictive modeling for enterprise use cases has remained stuck in the past, relying on laborious and brittle feature engineering from structured, tabular data. This traditional approach is slow, expensive, and difficult to maintain.

The Problem with Traditional Predictive Modeling

Predictive models for tasks like churn prediction, fraud detection, or recommendation systems are foundational to business operations. The current methodology involves:

  1. Identifying relevant data across multiple relational tables (e.g., users, products, orders, web clicks).
  2. Manually joining these tables and engineering features through arbitrary aggregations and statistics (e.g., “number of transactions in the last 7 days,” “amount spent between 6-9 AM”).
  3. Training a model on this single, featurized table.

This process is fraught with challenges:

  • Time-Consuming: It can take months to develop a single production-ready model.
  • High Maintenance: Industry statistics suggest it takes approximately two full-time employees to maintain one model in production, dealing with feature pipelines, data staleness, and “time travel” issues. 30% of a model’s cost is just maintenance.
  • Sub-optimal Performance: Manually defined features are a bottleneck. A human engineer cannot possibly discover all the complex, nuanced, and sometimes counter-intuitive signals hidden within the raw data’s relational structure.

Introducing Relational Deep Learning

A new approach, Relational Deep Learning, allows models to learn directly from the raw, multi-table relational database. This is achieved by representing the entire database schema as a graph and applying a specialized Relational Graph Transformer architecture.

Instead of attending over a sequence of tokens like a standard transformer, this model attends over the tables and relationships in the database schema. It learns how to combine information from across the entire data structure to extract the most predictive signals, much like a computer vision model learns to combine pixels. This completely sidesteps the manual feature engineering process.

The benefits are twofold:

  1. Speed and Efficiency: Model development time is drastically reduced. Data scientists can focus on framing the business problem and understanding the data, rather than being “feature engineering machines.”
  2. Higher Accuracy: The neural network can uncover subtle, second-order correlations that humans would never encode into features. It learns the optimal way to combine data for a given predictive task, leading to significant performance gains.

This is fundamentally different from AutoML, which often brute-forces feature creation by running countless SQL queries. Relational Deep Learning uses a single, elegant neural network architecture to learn from the data’s inherent structure.

Relational Foundation Models (RFMs)

This technology enables the creation of Relational Foundation Models (RFMs)—large, pre-trained models for structured data. Just as biology needs specialized foundation models for DNA and proteins, structured business data requires its own class of foundation models. Simply “textifying” a database and feeding it to an LLM does not work for these predictive tasks.

An RFM can operate in two modes:

  1. Pre-trained (Zero-Shot): Users can prompt the model with a “predictive query” (a domain-specific language similar to SQL for future events) and receive an accurate prediction in half a second, without any task-specific training. This is ideal for ad-hoc analysis and exploration.
  2. Fine-tuned: For high-value, mission-critical tasks like fraud detection, the model can be fine-tuned on a specific database and task. This specialization leads to “superhuman” performance, significantly outperforming heavily optimized, manually engineered models.

These models are surprisingly efficient. A high-performing model might only have 50-100 million parameters, making them cheap to train (in hours, on a single GPU) and inexpensive to run in production, unlike massive LLMs.

Real-World Impact and Scale

This approach has been proven at a massive scale:

  • DoorDash: For a “try something new” restaurant recommendation task, a relational model delivered a 30% increase in accuracy over the existing, highly-tuned production model. This translated into hundreds of millions of dollars in additional orders.
  • Reddit: In advertising click-through rate prediction, where every fraction of a percent matters, this method achieved an improvement in one month that would typically take five years of iterative, year-over-year model enhancements.

The MLOps lifecycle is also simplified. Putting a model in production means simply pointing it at the refreshed raw data. There are no complex feature pipelines to babysit. When business logic or user behavior changes, a simple retrain allows the model to automatically discover the new patterns.

The Future: Predictive Tools for AI Agents

Predictions are the basis for decision-making. As we move towards a future with autonomous AI agents, these agents will need to make data-driven decisions, not just operate on the “common sense” provided by LLMs. An agent tasked with reducing customer churn needs to answer two predictive questions:

  1. Which customers are most likely to churn?
  2. What is the best retention offer to give each specific customer?

RFMs can serve as a critical tool for these agents, allowing them to query for predictions on the fly and take optimal, data-rooted actions. This unlocks the next level of automation, where agents can execute complex business workflows end-to-end.

Share post

Stay In The Loop! Subscribe to Our Newsletter.

Get updates straight to your inbox. No spam, just useful content.

Recommended for You

How to Make AI Forget

How to Make AI Forget

Ben Luria, CEO of Hirundo, discusses the critical need for machine unlearning, framing it as a form of "AI neuro-surgery" for enterprise AI. He explains how this technique directly modifies model weights to remove unwanted data and behaviors, addressing core risks that superficial solutions like guardrails cannot solve.

Ben Horowitz on Investing in AI: AI Bubbles, Economic Impact, and VC Acceleration

Ben Horowitz on Investing in AI: AI Bubbles, Economic Impact, and VC Acceleration

Ben Horowitz of Andreessen Horowitz discusses how AI is reshaping venture capital, detailing the firm's strategy for managing partners, verticalizing teams, and evaluating investments in real-time. He breaks down the current AI cycle, arguing that application design and model orchestration are key, and explains why the current market's growth is driven by real demand, not just hype.