TL;DR
This paper introduces an encryption learning framework for Chinese Named Entity Recognition (NER) that allows deep learning models to be trained directly on encrypted, irreversible text. By combining hash algorithms for data desensitization with Ciphertext-Policy Attribute-Based Encryption (CP-ABE) for access control, the approach protects data privacy with virtually no degradation in model performance, offering a lightweight alternative to federated learning.
What Problem Does This Paper Address?
Deep learning models excel at Named Entity Recognition (NER), but they are notoriously data-hungry. In highly sensitive domains like biomedicine or the military, data sharing is severely restricted due to privacy and confidentiality concerns. While federated learning (FL) has emerged as a popular solution for collaborative training without centralizing data, it comes with heavy infrastructure penalties: slow training speeds, high hardware requirements, and vulnerability to network instability.
Furthermore, Chinese NER presents unique challenges compared to English. Because Chinese lacks natural word boundaries, models often rely on word segmentation tools or external lexicons, where any initial segmentation error propagates downstream. The authors set out to answer a compelling question: Can we protect sensitive text data using irreversible encryption methods, yet still train highly accurate Chinese NER models directly on the ciphertext?
Methods
The authors propose a three-step framework that provides double data protection while maintaining utility for machine learning workflows:
- Data Desensitization (Hashing): The data provider encrypts the raw text using cryptographic hash functions like MD5 or "Has256" (SHA-256), occasionally layered with Base64 encoding. Because hashing is irreversible, the original plaintext cannot be recovered by an attacker.
- Access Control (CP-ABE): To ensure only authorized users can access even the hashed dataset, the provider wraps the data using Ciphertext-Policy Attribute-Based Encryption (CP-ABE). Access is granted based on logical combinations of user attributes (e.g.,
teacher AND research). - Model Training: Authorized users decrypt the CP-ABE layer to reveal the hashed text (
Text1), the corresponding entity labels (Text2), and sequence lengths (Text3). They then train standard sequence labeling architectures—such as a BiLSTM-CRF benchmark—directly on this hashed data.
Datasets
The framework was evaluated across six Chinese NER datasets spanning different domains:
- Public Benchmarks: CCKS2017 (electronic medical records), Resume (social media), and MSRA (news).
- New Benchmark: The authors introduced a brand-new History dataset consisting of Chinese historical documents. To evaluate different granularities, they split it into three configurations: History-9types (9 entity classes including army names and official positions), History-3types (LOC, APP, EVE), and History-2types (PER, POS).
Key Insights and Ideas
- Deep Learning on Irreversible Ciphertext: The most significant takeaway is that deep neural networks can successfully learn the underlying syntactic and contextual representations of text even when the characters are transformed into seemingly random, irreversible hash strings.
- The Lexicon Dilemma: While standard character-based models (like LSTM-CRF) handle encrypted data beautifully, models that rely heavily on external dictionaries or vocabularies (such as WC-LSTM and SoftLexicon) experience performance drops. This happens because encrypting the training text breaks the character-to-word mappings required to match external, unencrypted lexicons.
Key Results
The authors compared four baseline models (LSTM-CRF, WC-LSTM, Multi-digraph, and SoftLexicon) across plaintext and various encryption formats.
- Negligible Performance Loss: For standard character-based models like LSTM-CRF, performance remained remarkably stable. On the CCKS2017 medical dataset, the plaintext baseline achieved an F1-score of 87.90%, while the Serial Cipher and MD5 encrypted variants achieved 88.18% and 88.07% respectively—actually showing slight improvements.
- Outperforming Plaintext: In some instances, models trained on encrypted data beat the plaintext baseline. For example, when training the Multi-digraph model on the History-9types dataset, using Base64 encryption boosted the F1-score from 73.46% (plaintext) to 74.73%.
Limitations and Future Work
The primary limitation of this framework lies in its compatibility with lexicon-enhanced NER models. Because encryption alters the text structure, traditional dictionary-lookup mechanisms fail to provide a performance boost.
To overcome this, the authors point toward a promising future direction: leveraging large-scale language models. Instead of relying on static external lexicons, future iterations could involve pre-training dynamic word embedding models, like BERT, directly on massive quantities of encrypted data to capture richer contextual semantics without sacrificing privacy.
Summary updated