Why Freeze the Encoder? A Controlled Study of End-to-End Sequence–Graph Learning for User Behavior

Yuen Chen, Yulun Wu, Samuel Sharpe, Igor Melnyk, Nam H Nguyen, Furong Huang, C. Bayan Bruss, Rizal FathonyLOG 2026 Poster 2026

TL;DR

In user behavior modeling, engineers typically pretrain a sequence encoder on user histories, freeze its embeddings, and then train a graph neural network (GNN) on top. This paper asks a simple question: what happens if you unfreeze the encoder and train the whole thing end-to-end? The answer is conditional: end-to-end training delivers massive gains on relationship prediction (where the user-to-user graph carries the signal), but offers little extra help on fraud detection (where local node features like review text dominate).

What Problem Does This Paper Address?

Real-world user data—whether in e-commerce, healthcare, or finance—usually comes in two distinct flavors:

  1. Per-user event sequences: An ordered, asynchronous timeline of actions (logins, page views, purchases).
  2. A persistent relation graph: Static user-to-user connections (friendships, family links, shared devices).
Figure 1: A simple example of user behavior data in e-commerce. Each user has a sequence of events, while simultaneously also having a static user-to-user relationship such as friendship, family relation, sharing same address, sharing same devices, etc.

Because forcing everything into a single format is awkward (for instance, a login has no second user to form a graph edge, and a friendship has no natural timestamp), standard pipelines combine both modalities in two stages: train a sequence encoder, freeze the resulting user embeddings, and feed them into a GNN. Freezing is practical—it's cheap to serve and lets teams reuse embeddings across tasks—but it blocks task-specific gradients from ever reaching the sequence encoder. The authors set out to isolate whether, and when, joint end-to-end training is worth the extra compute.

Methods

To make this a fair, controlled study, the authors hold the architecture fixed and vary only the training strategy. Their end-to-end testbed, BRIDGE, uses off-the-shelf components:

  • A bidirectional Transformer encodes each user's event sequence.
  • Mean pooling compresses that sequence into a single user-level node feature.
  • A static GNN (GCN, GAT, or TFConv) propagates those features across the user-to-user relation graph, followed by a prediction head.
Figure 2: BRIDGE encodes each user’s event history with a sequence module, compresses the sequence representation into user-level node features, propagates information over the static user- relation graph, and optimizes the full pipeline end-to-end for the downstream task.

They compare BRIDGE against:

  • Graph-only baselines (ignoring event sequences).
  • Frozen two-stage baselines (pretraining the Transformer with masked token prediction, then freezing it).
  • A matched freezing control on Brightkite, where both pipelines start from the exact same pretrained Transformer checkpoint and differ only in whether task gradients update the encoder.
  • Alternative formulations: Temporal graph models (TGN, DyRep) and Relational Deep Learning (RelGT), to see when recasting the data into another paradigm works or fails.

Datasets

The authors evaluate across five real-world datasets spanning two tasks:

  • Relationship Prediction (5 datasets): Brightkite and Gowalla (location check-ins converted to Geohash-8 tokens + static friendship graphs), and three Amazon categories (Movies, Electronics, Clothing, where sequences are product IDs/ratings and edges connect users who co-reviewed at least three products).
  • Fraud Detection (3 datasets): The same three Amazon categories, using review text, ratings, and product IDs. Users with at least 5 reviews where >70% were marked "unhelpful" are labeled fraudulent.

Key Insights and Ideas

  • End-to-end training helps where the graph carries signal: On relationship prediction, joint training consistently beats frozen two-stage pipelines. On fraud detection—a largely node-local, text-dominated task where the co-review graph is weak—the gains shrink dramatically.
  • Unfreezing alone drives huge gains: In the matched control on Brightkite, starting from the exact same pretrained encoder and simply allowing task gradients to update it boosts Mean Reciprocal Rank (MRR) by +10.6 points (from 76.8 to 87.4).
  • Don't fabricate structure: Recasting static relations and node-local events into temporal graphs (by fabricating random timestamps for friendships and creating artificial event-nodes) yields inconsistent results. Meanwhile, Relational Deep Learning (RelGT)—which treats histories as unordered bags of rows—is competitive on node-local fraud detection once given review text, showing that when local text dominates, how you route it is second-order.

Key Results

  • Relationship Prediction: BRIDGE variants achieve the best results across all five datasets. On Brightkite, BRIDGE-GCN reaches 92.2 MRR (vs. 72.7 for the best two-stage baseline and 68.5 for graph-only).
Table 2: Relationship prediction performance across five datasets (higher is better). The main comparison uses methods aligned with the static-relation formulation: graph-only baselines, frozen two-stage sequence+graph baselines, and end-to-end BRIDGE variants. Best results are bolded and the runner-ups are underlined.
  • Fraud Detection: BRIDGE-TFConv achieves 87.6 PR-AUC on Amazon-Movies and 48.7 on Amazon-Electronics. On Amazon-Clothing (which has a scarce 2.4% fraud rate), BRIDGE (34.6–35.0) is statistically tied with text-fed RelGT (35.6).
  • Compute Cost: Unfreezing the encoder on Brightkite costs 2.2× the training time per epoch (65.9 min vs. 29.8 min) and 1.9× the peak GPU memory (40.9 GiB vs. 21.3 GiB).

Limitations and Future Work

The authors note that end-to-end training isn't a free lunch: it forfeits the cheap precomputation and cross-task reuse of frozen embeddings. Furthermore, BRIDGE's compression bottleneck—squashing an entire event history into a single vector before message passing—discards fine-grained cross-user event alignment. Finally, the sequence–graph formulation itself has clear boundaries: temporal graphs remain preferable when relations are genuinely dynamic, and Relational Deep Learning is the better fit for true multi-table schemas.

Summary updated

BibTeX
@inproceedings{chen2026why,
  author = {Yuen Chen and Yulun Wu and Samuel Sharpe and Igor Melnyk and Nam H Nguyen and Furong Huang and C. Bayan Bruss and Rizal Fathony},
  title = {{Why Freeze the Encoder? A Controlled Study of End-to-End Sequence–Graph Learning for User Behavior}},
  booktitle = {LOG 2026 Poster},
  year = {2026},
  url = {https://openreview.net/forum?id=zbH5BBAyYW},
}
Figure