← Lab /AI/ML

Attention layers in tabular foundation models expose membership

Attention-based membership inference attacks outperform confidence attacks and an inference-time k-anonymity defense halves the leakage while preserving utility

AI/ML arXiv 24 Jun 2026 Attack Prototype evidence

Published as “Privacy Vulnerabilities of Attention Layers in Tabular Foundation Models and Protection of High-Risk Queries”

Why it matters

Deployments of tabular foundation models that expose raw context rows at inference time must incorporate query-level risk detection and selective k-anonymity to prevent substantial membership leakage.

Summary

AMIA, an attention-based membership inference attack that needs no shadow models, outperforms confidence-based attacks on tabular foundation models by up to a 7.7% gain in low false-positive regimes, and an inference-time k-anonymity defence cuts the attack’s leakage by about 50% (and 25% against confidence attacks) while hurting predictive performance by only 3.9%; however, fine-tuning can still leave AMIA highly effective (AUC ≈ 0.997), showing the risk persists.

What they found 3

  1. AMIA achieves an average 7.7% gain over confidence-based attacks, especially at low false-positive rates.

    “achieving an average gain of 7.7%, specially in low false-positive regimes.”

  2. The proposed defence reduces membership leakage by about 50% for AMIA and 25% for confidence-based attacks, with only 3.9% utility loss.

    “reduces membership leakage of this attack by an average of 50% and 25% against confidence-based attacks, while preserving predictive utility with only 3.9% performance degradation.”

  3. Fine-tuning increases confidence-based leakage: RMIA AUC rises from chance to about 0.57.

    “After fine-tuning, RMIA AUC rises to about 0.57 (Figure 12, Appendix K).”

Caveats 5

  • Even after fine-tuning, AMIA retains an AUC of 0.997, showing the attack remains strong despite the defence’s focus on confidence-based signals.
  • In our current setup, we aggregate representations by averaging across all layers.
  • A final limitation concerns scalability. Both AMIA and target label k-anonymity introduce scalability challenges that constrain their practical applicability.
  • Setting τ as the minimum AMIA score among known members is conservative; a low threshold may protect members but causes many non-member queries to be processed by the stronger defence.
  • False negatives are the main attack surface when the defence is applied only after detection, allowing an adversary to craft queries that evade the high-risk guardrail.

What’s new here 4

  • Introduces a shadow-model-free, attention-based MIA (AMAM) for tabular in-context learning.
  • Proposes an inference-time defence that applies label-aware micro-aggregation only to high-risk queries, inspired by k-anonymity.
  • Evaluates both attack and defence on multiple tabular foundation models and classical classifiers across six real-world datasets.
  • Analyzes how fine-tuning amplifies membership leakage via confidence shifts.