Fast-MIA: Efficient and Scalable Membership Inference for LLMs

Hiromu Takahashi, Shotaro Ishihara
10/27/2025
cs.CRcs.CL

Official code: Nikkei/fast-mia (15 stars, Apache-2.0, last commit 2026-05-02).

Abstract

We propose Fast-MIA (https://github.com/Nikkei/fast-mia), a Python library for efficiently evaluating membership inference attacks (MIA) against Large Language Models (LLMs). MIA against LLMs has emerged as a crucial challenge due to growing concerns over copyright, security, and data privacy, and has attracted increasing research attention. However, the progress of this research is significantly hindered by two main obstacles: (1) the high computational cost of inference in LLMs, and (2) the lack of standardized and maintained implementations of MIA methods, which makes large-scale empirical comparison difficult. To address these challenges, our library provides fast batch inference and includes implementations of representative MIA methods under a unified evaluation framework. This library supports easy implementation of reproducible benchmarks with simple configuration and extensibility. We release Fast-MIA as an open-source (Apache License 2.0) tool to support scalable and transparent research on LLMs.

View on arXivView PDF

Code Implementations(1)

Nikkei/fast-miaOfficial100%
Apache-2.0

A framework designed to streamline the evaluation of Membership Inference Attacks (MIA) against Large Language Models (LLMs). By leveraging vLLM, it enables fast and flexible execution and assessment of various representative MIA techniques.

152Shell, PythonOct 31, 20255 months agoApache-2.0

Cite this paper

@article{takahashi2025fastmia,
  title  = {Fast-MIA: Efficient and Scalable Membership Inference for LLMs},
  author = {Hiromu Takahashi and Shotaro Ishihara},
  year   = {2025},
  eprint = {2510.23074},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.23074v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.23074.svg)](https://codeofpaper.com/paper/2510.23074)

Discussion