[Paper Review] Sensitive Data Detection with High-Throughput Neural Network Models for Financial Institutions
This paper proposes a high-throughput, character-level CNN model for detecting nonpublic personally identifiable (NPI) information in diverse data formats within financial institutions. Evaluated on synthetic, email, and internal structured data, the CNN model outperformed BiLSTM-CRF, spaCy, and regex baselines in both accuracy (F1-score) and throughput, making it the optimal choice for production deployment in sensitive data detection pipelines.
Named Entity Recognition has been extensively investigated in many fields. However, the application of sensitive entity detection for production systems in financial institutions has not been well explored due to the lack of publicly available, labeled datasets. In this paper, we use internal and synthetic datasets to evaluate various methods of detecting NPI (Nonpublic Personally Identifiable) information commonly found within financial institutions, in both unstructured and structured data formats. Character-level neural network models including CNN, LSTM, BiLSTM-CRF, and CNN-CRF are investigated on two prediction tasks: (i) entity detection on multiple data formats, and (ii) column-wise entity prediction on tabular datasets. We compare these models with other standard approaches on both real and synthetic data, with respect to F1-score, precision, recall, and throughput. The real datasets include internal structured data and public email data with manually tagged labels. Our experimental results show that the CNN model is simple yet effective with respect to accuracy and throughput and thus, is the most suitable candidate model to be deployed in the production environment(s). Finally, we provide several lessons learned on data limitations, data labelling and the intrinsic overlap of data entities.
Motivation & Objective
- Address the lack of publicly available, labeled datasets for nonpublic personally identifiable (NPI) information detection in financial institutions.
- Develop and evaluate neural network models for detecting sensitive entities across unstructured text and structured tabular data formats.
- Optimize model performance for production use by balancing accuracy, F1-score, precision, recall, and throughput on CPU and GPU hardware.
- Investigate the feasibility of using character-level models to overcome out-of-vocabulary issues common with domain-specific NPI entities.
- Provide practical insights on data generation, labeling challenges, and entity overlap in real-world NER systems for financial data.
Proposed method
- Generated synthetic datasets with realistic NPI entities (e.g., SSN, bank account numbers, phone numbers) across unstructured text and structured formats (CSV, JSON, Parquet).
- Trained and evaluated multiple character-level neural network models: CNN, LSTM, BiLSTM-CRF, CNN-CRF, and hybrid architectures, including a retrained version of the spaCy NER model.
- Employed CRF layers as conditional random field tag decoders to improve sequence labeling performance on token-level predictions.
- Optimized model inference through hardware-aware deployment on CPU (c5.2xlarge) and GPU instances (g4dn.xlarge, g4dn.8xlarge, p3.2xlarge), measuring throughput and latency.
- Adapted the CNN model for column-wise entity prediction on tabular data by modifying input preprocessing, enabling universal application across data formats.
- Compared models against handcrafted regex filters and CRF models with handcrafted features to establish baseline performance.
Experimental results
Research questions
- RQ1Which neural network architecture achieves the best trade-off between detection accuracy (F1-score) and inference throughput in production-grade NPI detection for financial data?
- RQ2How do character-level models compare to word-level models (e.g., spaCy) in detecting out-of-vocabulary, domain-specific NPI entities in financial text?
- RQ3To what extent does model performance degrade when synthetic data lacks contextual realism compared to real-world email and internal data?
- RQ4Can a single model architecture (e.g., CNN) be effectively adapted for both unstructured text and structured column-wise entity detection with minimal pipeline changes?
- RQ5What are the key challenges introduced by overlapping sensitive entities (e.g., SSN, phone number, BAN) and how do they affect model performance and labeling consistency?
Key findings
- The character-level CNN model achieved the highest F1-score across all test sets (real email, internal data, and synthetic data), outperforming BiLSTM-CRF, spaCy, and regex baselines.
- The CNN model demonstrated the highest throughput—up to 10x faster than CRF-based models like BiLSTM-CRF and 3x–10x faster than Char-CNN models—making it the most efficient for production use.
- On GPU instances, the CNN model achieved throughput of over 1,000 tokens per second, significantly outperforming spaCy (which used CuPy but lacked TensorFlow optimizations) and CRF-based models.
- The Char-CNN-Retrained and Char-CNN-Pretrained models achieved comparable macro F1-scores to the Column-CNN-CRF model on column-wise prediction, but with 3x–10x lower throughput due to larger parameter counts and lack of flattening.
- Despite improvements in data generation with context, synthetic data without contextual realism still led to reduced model generalization on real email data, indicating a need for more realistic data simulation.
- Entity overlap (e.g., between SSN, phone numbers, BAN) was a persistent challenge, and without additional metadata (e.g., column names, value ranges), this overlap could not be resolved effectively.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.