Benchmarking Classical and Transformer-Based Models for Document Sensitivity Classification

arXiv cs.LG Papers

Summary

This paper introduces Strategic 16K, a leakage-controlled dataset for document sensitivity classification, and benchmarks classical and transformer-based models, with BERT achieving top performance while addressing label leakage issues.

arXiv:2608.16928v1 Announce Type: new Abstract: Automatic sensitivity classification of organizational documents is a critical yet underserved problem, where the consequences of misclassification range from regulatory violations to security breaches. While AI-based approaches offer a scalable alternative to manual review, their reliability depends fundamentally on the integrity of training data. A pervasive but underreported problem in this domain is label leakage: residual classification markers embedded within document bodies that allow models to exploit surface shortcuts rather than learning genuine content-based sensitivity signals, producing performance estimates that are inflated and unreliable. This paper addresses this problem by introducing Strategic 16K, a carefully constructed, leakage-controlled corpus of 16,000 diplomatic cables sourced from the WikiLeaks Public Library of US Diplomacy (PlusD), and presents a systematic benchmark evaluating six model architectures spanning classical machine learning and transformer-based approaches. We document an extended leakage removal protocol that identifies and eliminates three categories of residual classification markers embedded within document bodies. On the clean benchmark, BERT achieves the strongest performance (Accuracy = 89.14%, F1 = 89.33%), followed by ELECTRA (Accuracy = 88.57%, F1 = 88.90%). Among classical models, TF-IDF with Logistic Regression achieves the strongest performance at significantly lower computational cost. These results constitute the first fully reproducible sensitivity classification benchmark constructed under explicit leakage-controlled conditions from WikiLeaks PlusD.
Original Article
View Cached Full Text

Cached at: 08/19/26, 10:16 AM

# Benchmarking Classical and Transformer-Based Models for Document Sensitivity Classification
Source: [https://arxiv.org/html/2608.16928](https://arxiv.org/html/2608.16928)
###### Abstract

Automatic sensitivity classification of organizational documents is a critical yet underserved problem, where the consequences of misclassification range from regulatory violations to security breaches\. While AI\-based approaches offer a scalable alternative to manual review, their reliability depends fundamentally on the integrity of training data\. A pervasive but underreported problem in this domain is label leakage: residual classification markers embedded within document bodies that allow models to exploit surface shortcuts rather than learning genuine content\-based sensitivity signals, producing performance estimates that are inflated and unreliable\. This paper addresses this problem by introducingStrategic 16K, a carefully constructed, leakage\-controlled corpus of 16,000 diplomatic cables sourced from the WikiLeaks Public Library of US Diplomacy \(PlusD\), and presents a systematic benchmark evaluating six model architectures spanning classical machine learning and transformer\-based approaches\. We document an extended leakage removal protocol that identifies and eliminates three categories of residual classification markers embedded within document bodies\. On the clean benchmark, BERT achieves the strongest performance \(Accuracy = 89\.14%, F1 = 89\.33%\), followed by ELECTRA \(Accuracy = 88\.57%, F1 = 88\.90%\)\. Among classical models, TF\-IDF with Logistic Regression achieves the strongest performance at significantly lower computational cost\. These results constitute the first fully reproducible sensitivity classification benchmark constructed under explicit leakage\-controlled conditions from WikiLeaks PlusD\.

## IIntroduction

A single misclassified document can lead to a data breach, a regulatory penalty, or a national security incident\. In most organizations, the classification of a document as sensitive is still determined at the document level, manually\. Before it can be routed, stored, and transmitted, trained reviewers must read and label each document manually, which is time consuming, inconsistent across reviewers and cannot scale with the volume of documents today’s organizations produce\. While automated sensitivity classification with NLP provides a principled scalable solution, the utility of this approach is highly dependent on whether the trained models capture actual sensitivity signals or are simply capturing artefacts of how the training data was prepared\.

There is a significance in this difference that is greater than might be supposed\.Label leakageis a well\-known and often overlooked document sensitivity classification problem, where explicit sensitivity markers are found in the body text of training documents, such as by being embedded in inline classification codes, classification phrases, and distribution notices\. The ground\-truth label is directly stored in a machine\-readable way on these artefacts\. Such a trained classifier does not need to know what makes a document sensitive, it just needs to see when a classification marker is present\. The model gets very high cross\-validation scores but when the model is used on documents that have been correctly sanitised, there it fails, which is the operational condition\.

This problem is not merely theoretical\. Prior studies using the WikiLeaks Public Library of US Diplomacy \(PlusD\) as a training corpus for sensitivity classification generally do not disclose explicit leakage removal procedures\. Their reported scores cannot be interpreted as evidence of genuine sensitivity understanding without knowing what artefacts were contained within the training data; and cannot be fairly compared across studies or reproduced in controlled conditions\.

This paper will directly address these limitations\. We buildStrategic 16K, a 16K\-document benchmark from WikiLeaks PlusD, using a well\-documented leakage removal protocol, and perform the first controlled cross\-family evaluation under identical experimental conditions on six model architectures\. The contributions of this work are:

1. 1\.The first reproducible sensitivity classification benchmark from WikiLeaks PlusD, with fully documented leakage removal and sensitive\-focused sampling protocols\.
2. 2\.An extended leakage removal protocol targeting three categories of residual classification markers embedded within document bodies that prior studies have not addressed\.
3. 3\.A systematic cross\-family benchmark comparing classical TF\-IDF classifiers and transformer\-based models under identical experimental conditions on a common cleaned corpus\.
4. 4\.A quantified efficiency analysis identifying TF\-IDF with Logistic Regression as a strong practical baseline, at a fraction of the computational cost of transformer fine\-tuning\.

## IIRelated Work

### II\-ATraditional Machine Learning Approaches

However, with the help of TF\-IDF and bag\-of\-words representations, classical machine learning methods have set solid baselines for text classification in various domains\. Ahmad et al\.\[[1](https://arxiv.org/html/2608.16928#bib.bib1)\]tested SVM, Random Forest, k\-Nearest Neighbours and Naive Bayes for document categorisation, and found SVM to be 97% accurate, proving that well\-regularized linear models work well with lexically rich text\. Joachims\[[2](https://arxiv.org/html/2608.16928#bib.bib2)\]gave theoretical foundations for SVM\-based text categorisation by showing that the maximum\-margin formulation with sparse TF\-IDF representations has good generalisation bounds in high\-dimensional feature spaces\. Although these methods are efficient, they can only compare words at the surface level and do not account for the bidirectional relationships that are often key in deciding whether a document is sensitive or not\.

### II\-BDeep Learning Approaches

Alzhrani et al\.\[[3](https://arxiv.org/html/2608.16928#bib.bib3)\]built a CNN\-based system for sensitive text detection on the dataset of the WikiLeaks diplomatic cables with an F1 score of 0\.91, segmenting the long documents into shorter paragraphs to redirect the focus toward locally sensitive passages\. This represents the first application of deep learning to WikiLeaks PlusD sensitivity classification\. In a previous work, Hart et al\.\[[4](https://arxiv.org/html/2608.16928#bib.bib4)\]have presented the possibility of using machine learning for Data Loss Prevention \(DLP\) activities, arguing that automatic classifiers can be used to detect sensitive information in organisational documents\. A critical limitation shared by both studies is that they do not explicitly describe any procedure for identifying or removing potential label leakage from the WikiLeaks corpus\. Consequently, it is difficult to determine whether the reported performance reflects genuine semantic sensitivity understanding or, at least in part, the exploitation of residual classification artefacts\.

### II\-CTransformer\-Based Models

A bidirectional transformer pre\-trained on the masked language modelling task, BERT\[[5](https://arxiv.org/html/2608.16928#bib.bib5)\]changed the paradigm in text classification\. BERT represents tokens with context, using self\-attention at all layers to model the left and right context of a token simultaneously, which cannot be achieved with TF\-IDF or recurrent models\. Petrolini et al\.\[[6](https://arxiv.org/html/2608.16928#bib.bib6)\]fine\-tuned BERT to detect sensitive data automatically, and obtained F1 = 0\.95 on a privacy\-sensitive classification task\. Kowsari et al\.\[[7](https://arxiv.org/html/2608.16928#bib.bib7)\]conducted a survey of text classification algorithms and found that transformer models have shown consistently and significantly better performance than classical and recurrent models\.Saritha and Kumar\[[8](https://arxiv.org/html/2608.16928#bib.bib8)\]presented a review of AI\-based techniques for sensitive data protection, highlighting the use of transformer models, convolutional neural networks \(CNNs\), recurrent neural networks \(RNNs\), autoencoders, and metaheuristic optimization methods for detecting and preventing data leakage\. However, the reviewed studies did not address explicit leakage control during dataset construction\.

### II\-DSummary of Research Gaps

Representative previous studies on document and text classification are summarized in Table[I](https://arxiv.org/html/2608.16928#S2.T1)\. The studies come from various environments and data sets and are added to give a context to the model families and evaluation methods for sensitivity classification\. The present study is motivated by four gaps observed across all the reviewed work: \(1\) No leakage removal protocol is explicitly disclosed in prior studies that used WikiLeaks PlusD; \(2\) previous benchmarks are challenging to reproduce because they do not specify preprocessing pipelines and dataset splits; \(3\) No controlled cross\-family comparison was conducted on a common cleaned corpus; and \(4\) No work quantifies the efficiency tradeoff between transformer and classical models in this domain\.

TABLE I:Representative Prior Work on Text and Sensitivity Classification

## IIIDataset and Preprocessing

### III\-ASource: WikiLeaks Public Library of US Diplomacy

The WikiLeaks Public Library of US Diplomacy \(PlusD\) is the largest publicly available collection of real government documents with official sensitivity labels, containing 251,287 diplomatic cables produced by US embassies worldwide\. The seven official classification labels – UNCLASSIFIED, CONFIDENTIAL, LIMITED OFFICIAL USE, SECRET, UNCLASSIFIED//FOR OFFICIAL USE ONLY \(FOUO\), CONFIDENTIAL//NOFORN, and SECRET//NOFORN – were affixed to each cable by trained government officials at the time of its writing\. These are real government classification decisions using formal protocols and not crowd\-sourced annotations, meaning that this dataset is uniquely reliable as a source of real ground\-truth sensitivity labels\.

There was no pre\-built version of this data available\. Every document was collected from the WikiLeaks PlusD API via a custom automated extraction pipeline\. The pipeline repeatedly processed each classification category, fetched HTML pages of cables, extracted the document content and original classification labels, and stripped away any leftover HTML artefacts\. The pipeline deduplicated more than 100,000 unique documents, which were stored in structured CSV format\.

### III\-BBinary Label Mapping

The seven original labels were reduced to a binary schema, which represents the basic access\-restriction decision\. UNCLASSIFIED and UNCLASSIFIED//FOUO were both classified as Non\-Sensitive since they do not have formal access restrictions\. All the other labels \(LIMITED OFFICIAL USE, CONFIDENTIAL, CONFIDENTIAL//NOFORN, SECRET, and SECRET//NOFORN\) were assigned a formal access restriction of Sensitive, since all apply some degree of formal restriction\. This mapping and the resulting distribution of the corpus are shown in Table[III](https://arxiv.org/html/2608.16928#S3.T3)\.

### III\-CLeakage Removal Protocol

One of the most important challenges during the preprocessing of WikiLeaks PlusD cables is the removal of remaining classification artefacts that are embedded in document bodies\. Unless eliminated, these can enable classifiers to use surface shortcuts instead of learning real sensitivity signals\. Three types of leakage were found and eliminated:

- •Inline paragraph markers:Single\-letter sensitivity codes\(C\),\(S\),\(U\)and\(SBU\)inserted at the beginning of each paragraph of a specific cable indicating the paragraph classification\.
- •Repeated classification phrases:Natural\-language phrases like“this cable is classified SECRET”in the body of the document and not in the header or metadata fields\.
- •Distribution notices:Repetitive boilerplate strings such as“Sensitive But Unclassified, Not for Internet Distribution”repeated throughout document bodies\.

All recognized patterns have been eliminated during the extended cleaning pass\. Sensitive terms reflecting the classification were left within natural, semi\-natural sentence contexts\. For example, a cable discussing nuclear confidentiality agreements was not modified\. This is the most crucial difference between artefact removal and content preservation, which underlie the construction of a benchmark that forces models to learn from real content\.

To illustrate the protocol, three representative before\-and\-after examples are provided: \(1\)\(C\) The ambassador confirmed\.\.\.becomesThe ambassador confirmed\.\.\.; \(2\)This cable is classified SECRET\. The meeting\.\.\.becomesThe meeting\.\.\.; and \(3\)Sensitive But Unclassified, Not for Internet Distribution\. Officials agreed\.\.\.becomesOfficials agreed\.\.\.\.

Following the cleaning pass, the corpus was additionally examined for letter\-spaced classification banners, a pattern documented in raw PlusD cables in which classification labels appear as spaced characters \(e\.g\.,S E C R E Tas a standalone line\)\. No such patterns were identified in the sampled subset\. The three categories described above therefore represent the complete set of leakage artefacts present in Strategic 16K, and the corpus is considered fully leakage\-controlled with respect to the document sample it comprises\.

To provide empirical confirmation of successful leakage removal, the top TF\-IDF features were examined for both classes on the cleaned corpus\. Fig\.[1](https://arxiv.org/html/2608.16928#S3.F1)shows the top 15 features per class\. Both feature sets consist entirely of generic English vocabulary; no classification\-related tokens such as SECRET, CONFIDENTIAL, or NOFORN appear among the highest\-weighted features of either class\. This confirms that classifiers trained on Strategic 16K must rely on content\-based signals rather than surface classification artefacts\.

![Refer to caption](https://arxiv.org/html/2608.16928v1/fig4_feature_audit.png)Figure 1:Top 15 TF\-IDF features for Sensitive and Non\-Sensitive classes on Strategic 16K\. Both feature sets consist entirely of generic English vocabulary with no classification\-related tokens, providing empirical confirmation of successful leakage removal\.TABLE II:Impact of label leakage on TF\-IDF with Logistic Regression performance\.The severity of this leakage problem was confirmed empirically\. As shown in Table[II](https://arxiv.org/html/2608.16928#S3.T2), TF\-IDF with Logistic Regression achieves nearly perfect performance on the raw corpus, but its performance decreases substantially after leakage removal\. This indicates that the inflated performance on the raw dataset is primarily attributable to residual classification artefacts rather than genuine semantic sensitivity understanding\.

To further validate the corpus construction, a length\-only baseline was evaluated in which document length alone was used as the classification signal\. This baseline achieved substantially lower accuracy than all evaluated models, confirming that the length difference between Sensitive and Non\-Sensitive documents in Strategic 16K cannot serve as a reliable proxy for sensitivity\. The corpus therefore forces models to learn from content rather than structural shortcuts, and the performance reported in this benchmark reflects genuine sensitivity discrimination\.

### III\-DStrategic 16K Benchmark

Following leakage removal,Strategic 16Kwas assembled by applying a sensitive\-focused sampling strategy that increases model exposure to the diversity of sensitive document patterns during training\. As shown in Table[III](https://arxiv.org/html/2608.16928#S3.T3), a total of 16,000 documents with a near\-balanced class distribution \(Sensitive 52\.4%, Non\-Sensitive 47\.6%\) have been included in the corpus\. The near\-balanced distribution avoids having one class being structurally privileged when applied to cross\-validation evaluation\. The corpus was constructed via random sampling from the leakage\-cleaned document pool, with class counts adjusted to achieve near\-balance\. The complete Strategic 16K dataset is publicly available to support reproducibility and future benchmarking at:[https://drive\.google\.com/file/d/11\-a5QeBklbrefKHdlcwoKPAZQ6mo119w/view?usp=drive\_link](https://drive.google.com/file/d/11-a5QeBklbrefKHdlcwoKPAZQ6mo119w/view?usp=drive_link)

Deduplication was done at the document level before splitting, so that there is no overlap in the documents contained in different folds\. Stratified sampling was used for fold construction for each cable individually, but no constraints were applied to grouping at the cable level; each cable in PlusD is a separate document and a separate classification label is used for each one\. All the fold assignment is fully reproducible by using a fixed random seed of 42\.

The median of the Sensitive documents is 276 words, and the median of the Non\-Sensitive documents is 64 words\. Fig\.[2](https://arxiv.org/html/2608.16928#S3.F2)illustrates the word count distribution across both classes\. Simple length\-thresholding is not a reliable classification strategy due to the variety of sensitive document lengths, from short cables to documents longer than 1,400 words\. Fig\.[3](https://arxiv.org/html/2608.16928#S3.F3)also illustrates how sensitive documents dominate longer length buckets, further establishing the wide coverage of the corpus in terms of length\.

TABLE III:Binary Label Mapping and Strategic 16K Composition![Refer to caption](https://arxiv.org/html/2608.16928v1/fig1_wordcount.png)Figure 2:Word count distribution by class\. Sensitive documents \(median 276 words\) have a significantly longer and wider distribution than Non\-Sensitive documents \(median 64 words\)\.![Refer to caption](https://arxiv.org/html/2608.16928v1/fig2_lengthbucket.png)Figure 3:Records per document length bucket\. Sensitive documents dominate longer buckets while Non\-Sensitive documents concentrate in the 0–100 word range\.

## IVModels and Experimental Setup

### IV\-AEvaluation Protocol

All six models were evaluated using 5\-fold stratified cross\-validation on Strategic 16K\. Stratified splitting ensures that the 52\.4%/47\.6% class ratio is preserved identically across all folds\. A fixed random seed of 42 was used throughout to ensure full reproducibility\. Weighted F1\-score and accuracy are reported as the primary evaluation metrics for all models\. Weighted F1 is preferred as it accounts for the slight class imbalance and jointly captures precision and recall\.

In security\-sensitive classification tasks, the cost of a false negative, that is, classifying a sensitive document as non\-sensitive, substantially exceeds the cost of a false positive\. An undetected sensitive document may be routed, stored, or transmitted without appropriate access controls, with potentially severe operational and regulatory consequences\. Accordingly, sensitive class recall is treated as a secondary evaluation criterion alongside weighted F1, as it directly quantifies the model’s ability to avoid missed detections of sensitive content\.

### IV\-BClassical TF\-IDF Models

Three classical models were evaluated, each using TF\-IDF feature representations with sublinear term frequency scaling\.Logistic Regressionapplies L2 regularization to a linear decision boundary\. Hyperparameters were tuned via RandomizedSearchCV with 25 candidates and 5\-fold inner cross\-validation, selectingC=25\.13C=25\.13with balanced class weights\.Linear SVMfinds the maximum\-margin separating hyperplane in TF\-IDF space\[[2](https://arxiv.org/html/2608.16928#bib.bib2)\]; best parameters selectedC=14\.53C=14\.53with balanced class weights\. A convergence warning from the liblinear solver indicates that the optimisation did not fully converge, meaning reported results represent a conservative lower bound\.Multinomial Naive Bayesapplies the conditional independence assumption with Laplace smoothing\[[11](https://arxiv.org/html/2608.16928#bib.bib11)\]; bestα=0\.021\\alpha=0\.021, fit prior = False\.

### IV\-CTransformer\-Based Models

Three transformer architectures were fine\-tuned end\-to\-end under 5\-fold stratified cross\-validation with maximum token length 256\.BERT\(bert\-base\-uncased\)\[[5](https://arxiv.org/html/2608.16928#bib.bib5)\]is pre\-trained on masked language modelling \(MLM\), randomly masking 15% of tokens and training the model to reconstruct them using bidirectional context; a linear classification head is attached to the\[CLS\]token\.RoBERTaextends BERT with dynamic masking, removal of the next\-sentence prediction objective, and training on substantially larger data, modifications intended to produce stronger general\-purpose representations\.ELECTRA\[[12](https://arxiv.org/html/2608.16928#bib.bib12)\]uses a replaced token detection \(RTD\) objective: a generator replaces some tokens with plausible alternatives, and the discriminator is trained to identify which tokens were replaced\. RTD trains on every input token rather than only the masked 15% subset, yielding greater sample efficiency and representations grounded in token plausibility rather than surface\-form reconstruction\. Encoder based transformers have also inspired the creation of modern Large Language Models \(LLMs\), which are large\-scale pretrained models based on the transformer architecture and have achieved outstanding performance in many natural language understanding and generation tasks\[[13](https://arxiv.org/html/2608.16928#bib.bib13)\]\.

## VResults and Discussion

### V\-AOverall Performance

Table[IV](https://arxiv.org/html/2608.16928#S5.T4)presents the complete 5\-fold cross\-validation results for all six models on Strategic 16K\. BERT achieves the strongest performance across both accuracy and F1\. ELECTRA trails BERT by 2\.25 pp on accuracy and 2\.39 pp on F1, while remaining clearly ahead of the classical tier\. The three classical TF\-IDF models form a distinct lower performance tier, with SVM leading marginally on F1 and recall\. RoBERTa occupies an intermediate position, underperforming both BERT and ELECTRA\. Fig\.[4](https://arxiv.org/html/2608.16928#S5.F4)visualises F1 and sensitive recall across all six models, with a clear separation between the transformer and classical tiers\.

TABLE IV:5\-Fold CV Results on Strategic 16K![Refer to caption](https://arxiv.org/html/2608.16928v1/image.png)Figure 4:F1 scores for all six models on Strategic 16K\. A clear performance gap separates the transformer tier \(BERT, ELECTRA, RoBERTa\) from the classical tier \(LR, SVM, Naïve Bayes\)\.
### V\-BTransformer vs\. Classical Gap

The results reveal a clear and consistent performance gap between the two architectural families\. BERT leads with 89\.33% F1 and 89\.14% accuracy\. The gap between BERT and the best classical model \(SVM, 86\.95% F1\) is 2\.38 pp on F1 and 2\.79 pp on accuracy, widening to 6\.37 pp F1 against Naive Bayes\. Paired t\-tests confirm that all transformer\-vs\-classical comparisons are statistically significant: BERT vs\. SVM \(t=15\.19t=15\.19,p<0\.001p<0\.001, 95% CI \[3\.55 pp, 5\.14 pp\]\); BERT vs\. LR \(t=12\.52t=12\.52,p<0\.001p<0\.001, 95% CI \[3\.48 pp, 5\.46 pp\]\); BERT vs\. Naive Bayes \(t=13\.80t=13\.80,p<0\.001p<0\.001, 95% CI \[5\.09 pp, 7\.66 pp\]\); and ELECTRA vs\. SVM \(t=4\.38t=4\.38,p=0\.012p=0\.012, 95% CI \[0\.71 pp, 3\.18 pp\]\)\. RoBERTa \(86\.51% F1\) sits between the transformer and classical tiers, performing comparably to the best classical models despite being a full transformer architecture\.

The transformer advantage comes from the fact that the fundamental capacity of representation is different\. Transformer’s self\-attention architecture can be used to consider the bidirectional context between every word in the entire document, allowing for semantic context sensitive discrimination that is not sensitive to lexical frequency\. The distinction between a diplomatic cable in a normal administrative setting and a diplomatic cable in a restricted operational setting is not captured reliably by a feature like TF\-IDF, but can be captured by transformer attention via adjacent tokens\.

### V\-CBERT vs\. ELECTRA

BERT outperforms ELECTRA by 0\.57 pp on accuracy and 0\.43 pp on F1\. A paired t\-test across five fold\-level F1 scores confirms that BERT’s advantage is statistically significant \(t=8\.20t=8\.20,p=0\.0012p=0\.0012\), with a mean F1 difference of 2\.40 pp and a 95% confidence interval of \(1\.58 pp, 3\.21 pp\)\.

The advantage is consistent with the nature of the task\. BERT’s masked language modelling produces representations sensitive to a broad range of semantic patterns in the diplomatic register\. ELECTRA’s replaced token detection, which is based on token plausibility, rather than on complete reconstruction of the context in which tokens appear, might not be better suited to PlusD cables’ specific vocabulary\. Remarkably, ELECTRA outperforms in terms of sensitive recall \(87\.24% vs\. 86\.66%\), which is useful in recall\-sensitive deployments where minimizing false negatives is more critical than the overall F1\.,

### V\-DSensitive Class Recall Analysis

From a security standpoint, sensitive class recall is the most operationally critical metric, as it measures the proportion of truly sensitive documents that are correctly identified\. A notable finding is that Naive Bayes achieves a sensitive recall of 86\.40%, which is comparable to Logistic Regression \(86\.41%\) and SVM \(86\.74%\), despite trailing both models substantially on F1 and accuracy\. This indicates that Naive Bayes, while less precise, is relatively conservative in classifying documents as non\-sensitive\. BERT achieves the strongest overall balance, with 89\.33% F1 and 86\.66% sensitive recall, making it the most reliable model for deployment where both coverage and precision are required\.

### V\-EEfficiency Tradeoff: Classical vs\. Transformer

When it comes to the classical models, SVM has the best performance \(F1 = 86\.95%\) and needs only standard CPU resources without any fine\-tuning of the GPU\. Logistic Regression is a close second \(F1 = 86\.83%\) and slightly quicker to tune \(362\.6 seconds as opposed to SVM’s 382\.2 seconds\)\. TF\-IDF\-based models are extremely practical to deploy for organizations with limited computational resources, where the latency to inference is critical or when one wants to update the models quickly\.

## VIConclusion

This paper presented a systematic benchmark evaluation of six document sensitivity classification models on Strategic 16K, a 16,000\-document leakage\-controlled corpus constructed from WikiLeaks PlusD diplomatic cables\. We documented a three\-category leakage removal protocol targeting inline paragraph markers, embedded classification phrases, and distribution notices, artefacts present in raw WikiLeaks PlusD cables that prior studies have not explicitly addressed, and demonstrated that removing them is essential for producing honest, content\-grounded performance estimates\.

Among the six evaluated architectures, BERT achieves the strongest and most stable performance \(Accuracy = 89\.14%, F1 = 89\.33%,±\\pm0\.46% F1 std\)\. ELECTRA performs competitively \(F1 = 88\.90%\) and may be preferable in resource\-constrained settings given its parameter efficiency\. Among classical models, SVM achieves the highest F1 \(86\.95%\) and sensitive recall \(86\.74%\), while Logistic Regression offers a comparable and slightly faster alternative\. RoBERTa achieves 86\.51% F1 but underperforms both transformer peers, warranting dedicated hyperparameter investigation\. The sensitive class recall analysis confirms that transformer models offer the best balance between coverage and precision for security\-critical deployment\.

### Limitations and Future Directions

While BERT achieves the strongest benchmark performance, a monolithic model has structural limitations in security\-critical deployment\. Sensitivity is not determined by a single signal type: a document may be sensitive because of who is mentioned, what topic it covers, or how information is phrased\. A single shared attention mechanism cannot isolate, prioritise, or explain these signals independently, and any policy change requires full model retraining\.

Future work will address these limitations through a Multi\-Agent System \(MAS\) architecture in which specialised agents handle distinct evidence categories: asemantic content agentevaluates topical sensitivity; anamed entity agentdetects references to restricted personnel, facilities, and programmes; and astructural agentevaluates subject lines and routing cues\. A learned fusion mechanism combines agent confidence estimates to produce the final decision\. This design provides built\-in explainability, since the fusion output can be decomposed to show which agent drove each decision, and supports targeted updatability when classification policies change\. Explainable AI mechanisms including LIME and SHAP will additionally be integrated for per\-document rationales, and the best\-performing model will be fine\-tuned on real organizational document collections for institutional domain adaptation\. The Strategic 16K benchmark documented here provides the controlled evaluation foundation against which this proposed architecture will be measured\.

## References

- \[1\]F\. B\. Ahmad, A\. A\. Kiani, Y\. Hafeez, H\. Imran, M\. Habib, A\. Nawaz, M\. R\. R\. Rana, and M\. Azhar, “Securing Cloud Data: An Approach for Cloud Computing Data Categorization Based on Machine Learning,”International Journal of Innovations in Science & Technology, vol\. 7, no\. 1, pp\. 235–258, Feb\. 2025\. doi: 10\.33411/ijist/202571235258\.
- \[2\]T\. Joachims, “Text Categorization with Support Vector Machines: Learning with Many Relevant Features,” inProc\. ECML\-98, LNCS 1398, Springer, pp\. 137–142, 1998\.
- \[3\]K\. Alzhrani, F\. S\. Alrasheedi, F\. A\. Kateb, and T\. E\. Boult, “CNN with Paragraph to Multi\-Sequence Learning for Sensitive Text Detection,” inProc\. ICCAIS, pp\. 1–6, 2019\.
- \[4\]M\. Hart, P\. Manadhata, and R\. Johnson, “Text Classification for Data Loss Prevention,” inPrivacy Enhancing Technologies, LNCS 6794, Springer, pp\. 18–37, 2011\.
- \[5\]J\. Devlin, M\. Chang, K\. Lee, and K\. Toutanova, “BERT: Pre\-training of Deep Bidirectional Transformers for Language Understanding,”arXiv:1810\.04805, 2019\.
- \[6\]M\. Petrolini, S\. Cagnoni, and M\. Mordonini, “Automatic Detection of Sensitive Data Using Transformer\-Based Classifiers,”Future Internet, vol\. 14, no\. 8, article 228, 2022\.
- \[7\]K\. Kowsari, K\. J\. Meimandi, M\. Heidarysafa, S\. Mendu, L\. Barnes, and D\. Brown, “Text Classification Algorithms: A Survey,”Information, vol\. 10, no\. 4, article 150, 2019\.
- \[8\]P\. Saritha and R\. Kumar, “Sensitive Data Protection Using AI: An Evaluation of Deep Learning and Metaheuristic\-Based Leakage Prevention Techniques,” inProc\. 2025 Int\. Conf\. Intelligent Communication Networks and Computational Techniques \(ICICNCT\), pp\. 1–6, 2025, doi: 10\.1109/ICICNCT66124\.2025\.11232588\.
- \[9\]C\. Rudin, “Stop Explaining Black Box Machine Learning Models for High Stakes Decisions,”Nature Machine Intelligence, vol\. 1, no\. 5, pp\. 206–215, 2019\.
- \[10\]G\. McDonald, “A Framework for Technology\-Assisted Sensitivity Review,” Ph\.D\. thesis, University of Glasgow, 2019\.
- \[11\]A\. McCallum and K\. Nigam, “A Comparison of Event Models for Naive Bayes Text Classification,” inAAAI\-98 Workshop on Learning for Text Categorization, pp\. 41–48, 1998\.
- \[12\]K\. Clark, M\. Luong, Q\. V\. Le, and C\. D\. Manning, “ELECTRA: Pre\-training Text Encoders as Discriminators Rather Than Generators,” inProc\. ICLR, 2020\.
- \[13\]S\. Minaeeet al\., “Large Language Models: A Survey,”arXiv preprint arXiv:2402\.06196, 2025\.

Similar Articles

Lightweight Transformer Models for On-Device Fault Detection: A Benchmark Study on Resource-Constrained Deployment

arXiv cs.LG

A benchmark study comparing traditional machine learning methods (Random Forest, XGBoost, SVM, Logistic Regression) against lightweight transformer variants (DistilBERT, TinyBERT, MobileBERT) for on-device fault detection across three public datasets. Traditional ML offers competitive accuracy at far smaller resource footprints, while TinyBERT-4L is the most deployment-friendly transformer.

Benchmarking Large Language Models on Multi-Sensor Physical Hazard Assessment

arXiv cs.AI

The paper benchmarks five large language models on multi-sensor physical hazard assessment, revealing that all tested models fail to produce precautionary warnings when multiple sensors are simultaneously elevated below their individual safety limits, while achieving near-perfect accuracy on single-sensor violations.