Manuscript Offprint

arXiv:2609.00457

Can LLMs Use Relational Transformer Embeddings?

Francisco Galuppo Azevedo, Clarissa Lima Loures

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Injecting frozen relational-encoder embeddings as soft tokens into a large language model (LLM) is a conceptually appealing fusion strategy: the encoder handles multi-table structure, the LLM handles language and reasoning, and no lossy text serialization is required. We test this hypothesis concretely by injecting embeddings from a frozen Relational Transformer (RT) into Qwen3.5-4B via a learned MLP projection and LoRA adaptation, trained first with supervised fine-tuning (SFT) on chain-of-thought reasoning traces and then with group-based reinforcement learning (GSPO). We evaluate across 10 binary classification tasks on 6 relational databases from RelBench, under four supervision regimes: single-task (ST), within-dataset (WD), cross-dataset (CD), and all-task (ALL). The hybrid model does not consistently outperform standalone RT: it is frequently below random, highly sensitive to serialization format and relational-token budget, and unstable under RL training. We report these negative results and analyze the failure modes, arguing that soft-token fusion requires stronger alignment objectives and schema-aware design before it can serve as a reliable route to relational prediction.

1. Introduction

Relational databases encode entity attributes, foreign-key relationships, and temporal histories across interconnected tables (Fey et al., 2023). Predicting entity-level outcomes from this structure is a core industrial ML task (Robinson et al., 2024). Two paradigms have emerged: specialized relational encoders such as the Relational Transformer (Ranjan et al., 2026), which operate directly over the relational graph; and LLMs prompted with serialized views of the data (Wydmuch et al., 2024).

Each paradigm has complementary limitations. Relational encoders produce rich, structure-aware embeddings but cannot leverage pretrained language reasoning. LLMs reason over text but struggle with multi-table structure: serializing a two-hop neighborhood is lossy, exhausts context windows, and discards the typed semantics of foreign-key graphs.

This complementarity motivates a natural fusion hypothesis: inject frozen RT embeddings into an LLM as soft tokens, bypassing serialization entirely. The RT compresses a relational ego-graph into dense embeddings; the LLM contributes semantic reasoning and cross-schema generalization. But whether this actually works is an open empirical question; the closest prior work (Wu et al., 2025) keeps the LLM frozen and uses a schema-specific GNN requiring per-database pretraining, leaving cross-schema transfer untested.

We test this hypothesis by injecting frozen RT embeddings into Qwen3.5-4B via a learned MLP projection and LoRA adaptation (Hu et al., 2022), trained with SFT on chain-of-thought reasoning traces followed by group-based reinforcement learning (GSPO). We evaluate across 10 binary classification tasks on 6 RelBench databases under four supervision regimes: single-task (ST), within-dataset (WD), cross-dataset (CD), and all-task (ALL).

The answer is largely negative. The hybrid does not consistently outperform standalone RT in any regime, is frequently below random, and is highly sensitive to serialization format, relational-token budget, and training initialization. Soft-token fusion is not a plug-and-play route to better relational prediction.

Our contributions are as follows:

  1. A concrete RT-to-LLM soft-token fusion architecture for RelBench binary prediction.
  2. Evaluation across four supervision regimes, from single-task to fully cross-dataset transfer.
  3. Evidence that the hybrid does not consistently outperform standalone RT and is often unstable.
  4. A failure analysis across serialization, relational-token budget, attention masking, and training initialization.

¹Kunumi Institute, Brazil ²Universidade Federal de Minas Gerais, Belo Horizonte, Minas Gerais, Brazil. Correspondence to: Francisco Galuppo Azevedo franciscogaluppo@dcc.ufmg.br.

2nd ICML Workshop on Foundation Models for Structured Data (FMSD @ ICML 2026), Seoul, South Korea, 2026. Copyright 2026 by the author(s).

Figure

Figure 1. Overview of the proposed architecture. A natural-language task prompt, while the entity's relational ego-graph is encoded by a frozen Relational Transformer. The resulting relational embeddings are projected by an MLP into the Qwen3.5-4B embedding space and inserted as soft tokens to the text sequence. The LLM then generates a reasoning trace and emits the binary prediction in answer format.

References (15)