AI Engineer NYC 2026 Online Talks

Judge a Transaction by the Company It Keeps — Somya Rai & MD Sharique, EXL

Loading slides…

Read the talk

Judge a Transaction by the Company It Keeps

Somya Rai and MD Sharique explain how EXL adds graph embeddings to XGBoost for fraud detection—and why preserving transaction neighborhoods, preventing leakage and keeping graph work off the request path matter as much as the model.

From a talk by Somya Rai and MD Sharique

At a glance

Ideas worth remembering

  • Graph embeddings add neighborhood information to XGBoost. The reported 27–33% relative detection gains compare the combined system with a tuned tabular baseline at matched alert rates.

  • Sampling must preserve useful connectivity: retain selected users’ histories, keep legitimate transactions from fraud-associated users as hard negatives, and balance training batches downstream.

  • Monthly graph separation, earlier-timestamp aggregation, target exclusion and training-only preprocessing address different leakage routes.

  • Mean, maximum and standard deviation preserve different neighborhood signals; maximum pooling keeps a single suspicious neighbor from disappearing into an average.

  • Caching removes graph-sized work from each request, but memory and freshness remain constraints. User-and-merchant embeddings reduce the stated cache from 60 GB to 2–3 GB; the final reported latency is 3.1 milliseconds at P99.

The same purchase, two very different scores

An online purchase scores 0.04 when the model sees its amount, merchant, merchant category code, device, time of day and the rest of its 198 engineered features. Give the model access to the transaction’s neighborhood, without changing the feature row, and the score becomes 0.91. Somya Rai opens EXL’s example with this discrepancy: links to recently flagged fraud change how an otherwise ordinary purchase looks. The comparison asks a concrete question: what information becomes visible when the model can inspect connections between transactions?

The transaction scores 0.04 alone; with three of its four graph neighbors flagged for fraud, the score shown is 0.91.Open full source frame
The transaction scores 0.04 alone; with three of its four graph neighbors flagged for fraud, the score shown is 0.91.

The answer depends on the portfolio. Physical point-of-sale transactions have a reported natural fraud rate of roughly 0.05%, or one in 2,000, with much of the signal in the card’s own transaction velocity. Online transactions have a 0.6% fraud rate—12 times higher—and more signal in merchants and neighboring activity. Those different base rates and patterns lead to separate models for the two portfolios.

Both models face the same operational constraint: analysts can review only the highest-scoring 0.5% to 1.5% of transactions. Ranking more real fraud into that fixed slice matters more than improving an overall discrimination score alone. At a fixed number of alerts, catching more fraud also makes the analyst queue more precise. The model must do that without increasing scoring latency.

0:040:34
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

0:04 · section reference included

Add neighborhood information to the existing classifier

More tabular engineering had already produced diminishing returns. For point-of-sale transactions, expanding 40 raw attributes to 87 engineered features moved true positive rate from 35.5% to 36.6% after feature selection and leakage checks. Nearly 200 engineered features produced about a one-point improvement online. Rai interprets this as an information ceiling in their existing pipeline: transformations of a row and its card history keep reusing the same underlying evidence.

A merchant that became suspicious 40 minutes ago or a velocity chain spanning cards introduces a different input: relationships between rows. A graph neural network gathers neighboring hidden states, reduces a variable-size neighbor set to a fixed-width vector, and combines that vector with the node’s own state through learned weights. Stacking two layers lets a transaction’s representation incorporate both immediate neighbors and neighbors two steps away.

The deployment keeps XGBoost as the classifier. The GNN supplies embeddings that become additional inputs to the gradient-boosted model: “We did not replace XGBoost. We fed it.” The reported comparison is therefore XGBoost alone against XGBoost with graph embeddings, at matched alert rates and evaluation windows, with the same underlying features available to both.

Making that addition useful requires decisions before and after training. Sampling must raise the representation of rare fraud without deleting the neighborhoods that explain it. Graph construction must prevent future information and labels from entering the inputs. Explanations must connect a score to evidence an analyst can investigate. Serving must fit a millisecond budget. Rai also reports a post-launch improvement from rolling-window training and edge time decay, without quantifying that iteration’s separate contribution.

2:042:34
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

2:04 · section reference included

Sample users without hollowing out their histories

MD Sharique begins the implementation with soft fraud-rate targets: 0.5% for the point-of-sale portfolio and 6% online, about ten times each portfolio’s natural rate. The targets are soft because enforcing a precise class ratio by deleting individual legitimate transactions would also delete their edges. The sampled graph could retain the fraud labels while losing the context needed to learn from them.

The preservation rule works at the user level: selected users retain their complete transaction histories. A user associated with fraud keeps legitimate transactions too, providing hard negatives that help the model distinguish suspicious behavior from ordinary behavior by the same person. Fraud users remain uncapped. Balanced batch sampling inside the trainer addresses the remaining class imbalance.

Neighborhood size is the practical check on whether this sampling has changed the learning problem. Sharique reports an average training-time user degree of roughly 11.5 to almost 14 in the point-of-sale portfolio, matching inference-time neighborhoods. Across the 12 tested months, the reported stability matters because a model trained on artificially sparse histories would learn from a different neighborhood structure than the one it encounters when scoring real transactions.

6:276:57
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

6:27 · section reference included

Make time and entity history part of graph construction

Each calendar month becomes a disjoint graph. A transaction connects to its user and merchant, with a five-hop follows chain back through its recent transaction history. No edge crosses a month boundary. This separates monthly data partitions structurally; timestamp restrictions then determine which information a transaction may aggregate within its graph.

The leakage controls address four different routes by which an evaluation could become too easy:

  • Future information: a transaction aggregates only neighbors with earlier timestamps.
  • Split contamination: disjoint monthly graphs prevent graph paths from crossing training, validation and test partitions.
  • Target information: the fraud flag remains the prediction target; it is never a feature or an edge.
  • Preprocessing information: scalers and vocabularies are fitted on training-month data, then frozen for later use.

The model uses 202 features across three node types: 73 user features, 109 transaction features and 20 merchant features. Of the transaction features, 32 are derived fraud features. These provide behavioral context alongside the graph’s relational context:

  • Entity history—10 features: past transaction count, days since last activity, and statistics such as the mean, standard deviation and maximum of the last five amounts establish a user or merchant baseline.
  • Risk aggregates—8 features: an amount Z-score against that history, recent-versus-past ratios and transactions per day describe departures from the entity’s own behavior.
  • Velocity and time—14 features: counts and amounts over five-minute, one-hour and 24-hour windows, distinct counterparties over the last day, seconds since the previous transaction and country-change rate capture bursts or implausible movement.

The combination answers two separate questions. Edges identify whom a transaction connects to. Historical and temporal features describe how those entities are behaving relative to their own normal activity. A connection to a merchant and an unusual burst of activity at that merchant carry complementary information.

8:298:59
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

8:29 · section reference included

Keep the suspicious neighbor from disappearing into the mean

GraphSAGE samples a fixed, recency-biased set of neighbors at each hop, preventing a very large merchant neighborhood from dominating the messages. It aggregates those neighbors, combines the result with the node’s own vector and produces an embedding over two layers. The learned object is the aggregation function rather than a separate fixed embedding for every known node, allowing new users and merchants to receive representations without retraining.

Why concatenate mean, maximum and standard deviation instead of averaging alone? Sharique’s example gives a transaction four neighbors: three with scores around 0.1 and one linked to a fraud ring at 0.92. The mean falls to roughly 0.3, while the maximum remains 0.92. Averaging weakens the very pattern the model needs to preserve: one dangerous connection among several ordinary ones.

With three neighbor scores near 0.1 and one at 0.92, mean pooling yields 0.32 while max pooling retains 0.92.Open full source frame
With three neighbor scores near 0.1 and one at 0.92, mean pooling yields 0.32 while max pooling retains 0.92.

The three statistics expose different properties of the same neighborhood:

  • Mean: the neighborhood’s overall level of activity or signal.
  • Maximum: a strong individual signal that could disappear in an average.
  • Standard deviation: disagreement within the neighborhood, distinguishing a uniformly ordinary group from one containing an outlier.

All three are invariant to neighbor ordering and produce a fixed-size aggregate regardless of neighborhood size. The statistical operations introduce no learned parameters of their own; the combined aggregate then passes through learned weights.

Embedding width also has a measured stopping point in this application. A 64-dimensional representation slightly underfits; 128 dimensions gives the preferred validation result. Moving to 256 dimensions costs more GPU resources without improving performance, with validation gains flattening and overfitting beginning beyond 128. Increasing representation size does not recover useful information indefinitely.

11:0911:39
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

11:09 · section reference included

Compare fraud detection inside the same alert budget

The reported detection gains are easiest to read side by side. True positive rate measures the share of actual fraud detected; relative lift divides the increase by the baseline rate.

PortfolioXGBoost TPRGNN + XGBoost TPRRelative lift
Point of sale36%48%33%
Online48%61%27%

The point-of-sale comparison explicitly uses a 0.5% alert rate. The online comparison is also described as using matched alert rates, although its precise rate is not stated in this results passage. These are portfolio-specific results against the team’s tuned baseline.

The financial quantities need to remain distinct. Rai describes approximately $65 million in projected annualized incremental fraud capture across the portfolios. Sharique later reports $5.6 million captured at an 83% capture rate for point of sale, and $35.4 million at 71% online. The recording does not reconcile those amounts with the annualized projection or define the denominator of the capture percentages. They should therefore remain separately reported quantities, rather than being added together or presented as realized savings. The higher online fraud rate helps explain why that portfolio contributes most of the projected opportunity.

At the stated alert rates, GNN + XGBoost raises TPR from 36.6% to 48.7% for physical POS and from 48.3% to 61.5% online.Open full source frame
At the stated alert rates, GNN + XGBoost raises TPR from 36.6% to 48.7% for physical POS and from 48.3% to 61.5% online.
4:3413:43
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

13:43 · section reference included

Turn a high score into linked evidence

Subgraph attribution examines which relationships contributed to a flagged result. Across 200 flagged cases in each channel, transaction-to-transaction velocity edges had reported mean importance of 0.94 for point of sale and 0.62 online. They were the leading evidence in all 200 point-of-sale cases. Merchant edges had higher importance online—0.19 versus 0.04 for point of sale—consistent with the different signal patterns introduced at the start.

For an analyst, the useful change is from a bare score of 0.91 to a score supported by three linked transactions in the last 40 minutes. The analyst can inspect those transactions rather than reconstruct the entire case. The importance values describe this attribution sample; they are not percentages of all fraud caused by each edge type.

That evidence serves several operational purposes:

  • Documented rationale: financial institutions need explanations for automated decisions within regulatory and model-risk processes.
  • Investigation speed: specific links give analysts something to verify, reducing the temptation to ignore or rubber-stamp an unexplained score.
  • Model debugging: changing attribution patterns can reveal reliance on a spurious or weakening signal before aggregate performance visibly deteriorates.
  • Training feedback: explanations can help analysts assess borderline cases and supply more useful labels for later training.
14:3915:09
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

14:39 · section reference included

Move graph-sized work out of the request path

The first serving design computes graph representations offline. A GPU-sharded, layer-wise GraphSAGE forward pass processes the graph in destination-node batches. Sharique describes it as numerically equivalent to a full-graph forward pass while keeping each batch within a few gigabytes across multiple GPUs. Per-layer representations for users, merchants and recent transactions go into a low-latency embedding store; each user’s last five transactions also sit in a ring buffer.

What crosses from offline computation into online scoring? Cached neighbor states let a new transaction reuse prior graph work. At request time, an assembly step retrieves those states and applies exponential recency weighting matched to training. The service then runs only the new transaction’s two-layer forward pass and the XGBoost classifier. It builds no graph and performs no neighbor sampling during the request, so request work does not grow with the full graph.

Small runtime decisions matter at this scale. The service pins math-library thread pools to one before loading the heavy libraries; Sharique reports a reduction from 30 milliseconds to one millisecond from that change. Startup warmup avoids making the first real request pay initialization costs. The implementation described is a single in-memory process, with a distributed cache presented as a later scaling option through the same interface.

Cached states connect offline graph computation to a small online forward pass

Offline GraphSAGEOffline — GPU-sharded, layer-wise computation in destination-node batches.
Representation cacheStored state — Per-layer user, merchant and recent-transaction states; last five transactions per user in a ring buffer.
Incoming transactionOnline — The new transaction being scored.
Assemble neighbor statesOnline — Retrieve cached states and apply training-matched exponential recency weighting.
New transaction forwardOnline — Compute only this transaction’s two-layer representation.
XGBoost scoreOnline — Use the graph representation in the existing classifier.
This is the initial transaction-node serving design. The cache carries computed representations into scoring; the incoming transaction supplies the new work.
Read the diagram as text
  • Offline GraphSAGE. Offline — GPU-sharded, layer-wise computation in destination-node batches.
  • Representation cache. Stored state — Per-layer user, merchant and recent-transaction states; last five transactions per user in a ring buffer.
  • Incoming transaction. Online — The new transaction being scored.
  • Assemble neighbor states. Online — Retrieve cached states and apply training-matched exponential recency weighting.
  • New transaction forward. Online — Compute only this transaction’s two-layer representation.
  • XGBoost score. Online — Use the graph representation in the existing classifier.
  • Offline GraphSAGE → Representation cache: Store per-layer representations.
  • Representation cache → Assemble neighbor states: Retrieve neighbor states.
  • Assemble neighbor states → New transaction forward: Supply cached neighborhood information.
  • Incoming transaction → New transaction forward: Supply the new transaction’s state.
  • New transaction forward → XGBoost score: Supply graph embedding.
16:4717:17
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

16:47 · section reference included

Predict on an edge to shrink the cache

Caching every transaction creates a second bottleneck. At production scale, the initial design needs roughly 60 GB of representations and expensive high-memory serving. Freshness also matters: with a one-day embedding lag, the reported true positive rate falls from 48% to 44%. A fast lookup is less useful when the stored neighborhood has fallen behind the activity it is meant to describe.

The proposed correction changes what receives an embedding. Predicting on the transaction edge allows the system to precompute user and merchant embeddings without retaining a representation for every transaction. The stated footprint falls to 2–3 GB, roughly 20 times smaller, and fits the same CPU class used for the accompanying XGBoost model. Sharique says Nvidia independently recommended the approach and expected performance comparable to the node model. That expectation does not establish a measured recovery of the four-point detection loss from stale embeddings.

Where does the remaining request time go? Preprocessing, cache lookup and the XGBoost head each take fractions of a millisecond. The two-layer GNN forward pass is the largest component at 1.61 milliseconds. The reported end-to-end latency is 2.3 milliseconds at the median and 3.1 milliseconds at P99, within the stated 3–4 millisecond service-level agreement. That breakdown identifies the GNN computation as the next useful optimization target.

The two-layer GNN forward pass takes 1.61 ms, while preprocessing, cache lookup and XGBoost each take a fraction of a millisecond; the slide reports 2.3 ms p50 and 3.1 ms p99 end-to-end.Open full source frame
The two-layer GNN forward pass takes 1.61 ms, while preprocessing, cache lookup and XGBoost each take a fraction of a millisecond; the slide reports 2.3 ms p50 and 3.1 ms p99 end-to-end.

The closing optimization options follow that measured bottleneck: recompile or quantize the GNN forward pass if more headroom becomes necessary. The practical design has already moved full-graph computation offline, bounded online work to a new transaction and reduced the set of entities requiring cached representations. Further latency work can focus on the computation still dominating the request.

18:3419:04
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

18:34 · section reference included

Transcript download
Full transcript

Loading transcript…