RADAR: Reasoning as Discrimination with Aligned Representations for LLM-based Knowledge Graph Reasoning

Bo Xue, Yuan Jin, Luoyi Fu, Jiaxin Ding, Xinbing WangarXiv 2026

TL;DR

Current Large Language Models (LLMs) often "cheat" at Knowledge Graph Reasoning (KGR) by memorizing surface-level word co-occurrences instead of understanding actual logical relations. To fix this, RADAR reformulates KGR from a text-generation task into a discriminative selection task, using reinforcement learning to structure the model's internal representation space. By performing inference directly within these latent representations rather than decoding text, RADAR achieves a 5–6% relative performance boost, eliminates generation-induced hallucinations, and significantly improves out-of-distribution generalization.

What Problem Does This Paper Address?

Knowledge Graphs (KGs) store real-world facts as structured triples—such as (Berlin, capital_of, Germany). Because real-world KGs are inherently incomplete, Knowledge Graph Reasoning (KGR) is used to infer missing links. Recently, researchers have turned to LLMs to solve this, translating triples into text strings and training models using standard next-token prediction (Supervised Fine-Tuning, or SFT).

However, the authors point out a fundamental flaw: LLMs trained this way take statistical shortcuts. Instead of learning the true semantic validity of a relation, they minimize loss by exploiting surface-level co-occurrences (e.g., noticing that "Berlin" and "Germany" frequently appear together in the pre-training corpus). While this works well for in-distribution data, it fails miserably when encountering unseen entity-relation combinations (out-of-distribution shifts). Furthermore, relying on autoregressive text generation frequently introduces factual hallucinations.

Methods

RADAR (Reasoning as Discrimination with Aligned Representations) completely abandons the generative pattern-matching paradigm in favor of a three-pronged data-to-inference alignment framework:

  1. Task Reformulation (Discriminative Selection): KGR is recast as a multiple-choice task. Given a query, the model must explicitly select the correct target entity from a constrained candidate space containing both positive and negative distractors (stratified by difficulty using a lightweight knowledge graph embedding model).
  2. Two-Stage Training Paradigm:
  3. Stage I (Supervised Fine-Tuning): The model is trained using Chain-of-Thought (CoT) prompts to ground its output structure.
  4. Stage II (Reinforcement Learning): To break the model's reliance on token-level imitation, the authors apply Group Relative Policy Optimization (GRPO) on an error-focused dataset (instances where SFT failed). The model is rewarded based on an F1-score of its discrete selections, forcing it to optimize for global outcome validity rather than token likelihood.
  5. Representation-Based Inference: Instead of generating text token-by-token during inference, RADAR extracts the hidden states from an intermediate layer of the LLM (specifically layer 15) at the final token position. A lightweight, two-layer MLP binary classifier is then trained directly on these latent representations to score the plausibility of a triple.
Figure 2: RADAR, a data-to-inference alignment framework for discriminative KGR.

Datasets

The authors evaluated RADAR across four standard KGR benchmarks spanning two distinct tasks:

  • Link Prediction: Evaluated on FB15K-237 and FB15K-237N (a more challenging variant of the Freebase subset that removes mediator nodes and introduces hard negative samples).
  • Triple Classification: Evaluated on WN18RR (a WordNet subset), UMLS (a biomedical semantic network), and FB15K-237N.
  • Downstream Generalization: Zero-shot evaluations were conducted on domain-aligned subjects within the MMLU benchmark (e.g., Clinical Knowledge, Medical Genetics) to test cross-task knowledge transfer.

Key Insights and Ideas

  • SFT Memorizes, RL Generalizes: Standard cross-entropy SFT reinforces token-level mimicry, which locks in co-occurrence shortcuts. Shifting the learning signal to an outcome-based RL reward forces the model to internalize relation-conditioned distinction patterns that are decoupled from specific entity identities.
  • The Intermediate Layer "Sweet Spot": The authors discovered that triple classification accuracy follows a unimodal curve across LLM layers. Lower layers contain raw input noise, while the topmost layers focus heavily on generic token-prediction objectives. Intermediate layers (like layer 15 in a 32-layer LLaMA model) strike the optimal balance, distilling task-salient features most conducive to relational reasoning.
  • Latent Space Alignment: By training the model to discriminate rather than generate, relational validity naturally emerges as cleanly separated geometric structures within the representation space.
Figure 1: FB15K-237N triple classification with a shared LLaMA backbone: co-occurrence-based SFT yields only marginal gains over the frozen baseline, whereas RADAR substantially improves accuracy by optimizing discriminative relational reasoning.

Key Results

  • State-of-the-Art Performance: On link prediction, RADAR achieved an MRR of 0.377 on FB15K-237 and 0.415 on FB15K-237N, outperforming strong LLM baselines like COSIGN and FLAME. For triple classification, it achieved top marks on WN18RR (95.3% accuracy) and FB15K-237N (81.6%).
  • 62.9% Mutual Information Increase: Using a novel task-adaptive information-theoretic probe, the authors proved that RADAR increases task-relevant mutual information within intermediate representations by an average of 62.9% compared to standard serialized SFT.
  • Robust Inductive Generalization: In entity-disjoint settings where up to 40% of the entities were completely withheld during training, RADAR maintained stable performance on unseen triples, whereas standard SFT baselines suffered sharp performance degradation.
  • Cross-Task Knowledge Transfer: Training on the UMLS graph boosted zero-shot performance on domain-aligned MMLU medical subjects by an average relative gain of 11.6%, proving the model learned transferable reasoning rather than just memorizing facts.

Limitations and Future Work

Despite its strong performance, RADAR has two primary limitations:

  1. Recall Bottleneck: Because scoring every single entity in a massive KG is computationally prohibitive for an LLM, RADAR relies on a retrieve-then-rerank paradigm for link prediction. This introduces an inherent bottleneck tied to the initial retriever's recall capabilities.
  2. Training Overhead: The reinforcement learning stage (GRPO) requires generating multiple rollouts per query, making it computationally more expensive than standard supervised fine-tuning.

Future work will focus on optimizing training efficiency and exploring retriever-free LLM reasoning mechanisms for large-scale graphs.

Summary updated

Abstract

Knowledge graph reasoning (KGR) infers missing facts, with recent advances increasingly harnessing the semantic priors and reasoning abilities of Large Language Models (LLMs). However, prevailing generative paradigms are prone to memorizing surface-level co-occurrences rather than learning genuine relational semantics, limiting out-of-distribution generalization. To address this, we propose RADAR, which reformulates KGR from generative pattern matching to discriminative relational reasoning. We recast KGR as discriminative entity selection, where reinforcement learning enforces relative entity separability beyond token-likelihood imitation. Leveraging this separability, inference operates directly in representation space, ensuring consistency with the discriminative optimization and bypassing generation-induced hallucinations. Across four benchmarks, RADAR achieves 5-6% relative gains on link prediction and triple classification over strong LLM baselines, while increasing task-relevant mutual information in intermediate representations by 62.9%, indicating more robust and transferable relational reasoning.
BibTeX
@misc{xue2026radar,
  author = {Bo Xue and Yuan Jin and Luoyi Fu and Jiaxin Ding and Xinbing Wang},
  title = {{RADAR: Reasoning as Discrimination with Aligned Representations for LLM-based Knowledge Graph Reasoning}},
  year = {2026},
  eprint = {2602.21951},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.21951},
}
Figure