Predict customer churn from a database table without training

Prompt Engineering builds a TabFM-Auto agent on Neon Postgres that predicts customer churn zero-shot, and shows a leaky column fooling it and a database branch fixing it. Sponsored.

Prompt Engineering · YouTube · published Oct 11, 2026 · Research & Knowledge

Predict customer churn from a database table without training — video by Prompt Engineering▶ Watch on YouTube
Prompt
Using the rows in [customers table] where churn is known, predict churn for the remaining customers. Check first for columns that leak the answer and exclude them.

Sponsored

Advertise here →

Visual breakdown

A tabular foundation model from Google Research (called TabFM in the video) predicts from a table without training: pass in labeled rows plus the rows you want scored, and it infers the answers in one pass. The creator wraps it in an LLM agent working on Postgres in Neon to predict which customers of a synthetic SaaS company will churn.

The problem: Predicting from business tables like transactions or churn still means cleaning data, hand-engineering features and training a new model from scratch for every problem.

Agent-driven churn prediction on a live database

  1. Customer tables in PostgresProfiles, product usage, invoices and support tickets, hosted on Neon
  2. Agent reads the schemaGemini-orchestrated agent uses column names and inline column comments as a data dictionary
  3. Isolated branchEach experiment gets a copy-on-write Neon branch, restored to before the prediction window
    Dropped: Leaky columns filled only after cancellation
  4. Agent builds featuresWrites transformations, tests joins, drops columns, selects context rows
  5. TabFM scores customersLabeled history plus unlabeled rows in one pass, no training, run locally on a DGX Spark
  6. Nightly scheduleA Neon function reruns the saved pipeline and writes scores back to Postgres
  7. At-risk customer listSaved to object storage; most top customers had in fact asked to cancel
DataDatabase plumbingAgent and modelResult

What the agent's back end needs

  1. Semantic grounding: column meanings stored as comments next to the data
  2. A sandbox: its own database branch per experiment, deleted if it fails
  3. Leakage protection: see the data exactly as it was before the prediction

By the numbers

0.60score with zero feature engineering on one table (he calls it not great)
~1 secto spin up a Neon branch

Build the same pattern

TabFM's weights are non-commercial research only and TabFusion Auto's code isn't public, so treat this as a blueprint. He had Opus 5.5 write his own version with Gemini as orchestrator.

  1. Put your data in Postgres and add a comment to each column explaining what it means
  2. Pull the table, feed rows with known labels to the tabular model and ask it to score the rest
  3. Let an LLM agent inspect columns, write transformations and calibrate predictions
  4. Give every agent experiment its own database branch restored to before the prediction window
  5. Save the working pipeline and run it on a schedule that writes scores back to the database

He validated by moving the clock forward a month and checking who actually churned.

Lessons from his tests

  • With no training or feature engineering, the model already beat a tree-based model he had tuned.
  • TabFM never saw column headers during training, so it treats every column as a number. An LLM fills that semantic gap.
  • In half his runs the agent grabbed a leaky column that is only filled after a customer starts cancelling; the 'perfect' model was the worst.
  • Never let an autonomous agent change production data; give it a disposable branch.
  • For tables, your data can just be the prompt; use the LLM to read columns and bring domain knowledge, not to predict.

Distilled from the video’s captions

How to try it

  1. Open TabFM.
  2. Copy the prompt and fill in the [placeholders].
  3. Watch Prompt Engineering's video for the full walkthrough and setup.

Related use cases

Share