|国家预印本平台
首页|Named Entity Swapping for Metadata Anonymization in a Text Corpus

Named Entity Swapping for Metadata Anonymization in a Text Corpus

Named Entity Swapping for Metadata Anonymization in a Text Corpus

来源:Arxiv_logoArxiv
英文摘要

This work introduces an anonymization scheme for a corpus of texts to safeguard metadata from disclosure. It specifically aims to prevent large language models from identifying metadata associated with texts, thereby avoiding their influence on query responses. The core mechanism is called named entity swapping, a technique inspired by data swapping in statistical disclosure control. Our method randomly selects pairs of semantically similar substrings from different texts based on the similarity of their embedding vectors and interchanges some named entities between them. This prevents certain combinations of named entities from being uniquely associated with the metadata of individual texts. Our approach offers two key advantages. First, it enables users to determine the optimal level of anonymization that balances data utility and data risk through a calibration of several key decision variables. Second, it leverages text embeddings both to compute swapping weights and to assess data utility, enabling a high degree of flexibility and customization in the overall workflow. The effectiveness of the proposed method is demonstrated with an application that prevents the disclosure of company names in a cross-sectional dataset of earnings call transcripts.

Jan Greve、Lukas Sablica

计算技术、计算机技术

Jan Greve,Lukas Sablica.Named Entity Swapping for Metadata Anonymization in a Text Corpus[EB/OL].(2025-05-27)[2025-08-02].https://arxiv.org/abs/2505.21128.点此复制

评论