← Lab /AI/ML

Attribute inference attacks can recover sensitive user data from KG embeddings

Sensitive user attributes can be inferred from knowledge graph embedding outputs, and post-processing randomization can mitigate this but degrades recommendation performance

AI/ML arXiv 19 May 2026 Attack Prototype evidence

Published as “Inferring Sensitive Attributes from Knowledge Graph Embeddings: Attack and Defense Strategies”

Why it matters

A lightweight output-perturbation step can mitigate attribute inference risks in KG-based recommender systems without retraining the underlying embedding model.

Summary

Sensitive attributes such as gender can be inferred from KGE-based recommendation lists with accuracy up to 0.70 (Yahoo Movies) and 0.71 (MovieLens), well above the random 0.5 baseline, and a simple post-processing sanitization that replaces top items with random movies reduces inference accuracy to around 0.51 while recommendation utility (Qu) falls to as low as 0.32. The evidence comes from experiments on two public benchmark KG datasets, repeated five times with small standard deviations.

What they found 1

  1. The baseline KGE recommender achieves modest recommendation accuracy.

    “The model achieved a Top-5 recommendation accuracy of 0.22 and a Top-10 accuracy of 0.30.”

Caveats 6

  • When inference accuracy is reduced to 0.51, recommendation quality Qu drops to 0.32, indicating a substantial utility loss.
  • Shuffled recommendation lists retain high utility (e.g., Qu (Sshuf) 0.96) but still allow inference success around 0.68, showing the defense is not uniformly effective.
  • Experiments for the other sensitive attributes are left for future works.
  • A systematic comparison between KGE based attribute inference and classification based attacks is left for future work.
  • The current evaluation assumes an attacker that observes only a recommendation lists and has no access to users’ historical interaction data.
  • Our findings suggest that while the current approach is effective, it remains coarse, and motivate the exploration of more refined strategies...

What’s new here 4

  • Demonstrates black-box attribute inference on knowledge-graph embedding recommendation outputs.
  • Introduces a model-agnostic, deployment-time sanitization that randomly replaces and optionally shuffles recommended items.
  • Quantifies the privacy-utility trade-off for this defense on real KG recommendation datasets.
  • Provides an open-source implementation of the attack and defense.