Skip to content
WSymBERT: a weighted neuro

WSymBERT: a weighted neuro

Link.Springer • October 11, 2026

The number of disclosed software vulnerabilities has grown rapidly in recent years, placing increasing pressure on security teams to assess risk and prioritize remediation in a timely manner. At the same time, vulnerability scoring in practice still depends heavily on manual expert analysis [ 1 ]. This creates a serious operational bottleneck: many newly published vulnerabilities remain without complete Common Vulnerability Scoring System (CVSS) assessments for extended periods [ 2 ], limiting their usefulness for patch prioritization, vulnerability triage, and downstream risk management. When vulnerabilities remain unscored or are scored late, organizations may struggle to identify which issues require urgent action, leaving exploitable weaknesses exposed during a critical response window. The CVSS is the most widely used standard for communicating vulnerability severity in a structured and comparable form [ 3 ]. In particular, the CVSS v3.1 Base metrics capture the core exploitability and impact characteristics of a vulnerability and serve as the foundation for further severity analysis. However, assigning these metrics requires interpreting short and often ambiguous natural-language vulnerability descriptions and mapping them to discrete security-relevant categories. This process is time-consuming, expert-dependent, and difficult to scale as the volume of reported vulnerabilities continues to increase. These challenges have motivated growing interest in automated CVSS prediction. Earlier approaches relied on classical machine learning models with manually engineered textual features, while more recent studies have adopted transformer-based language models to learn contextual representations from vulnerability descriptions. Although these methods have improved predictive performance, important limitations remain. In particular, many existing models operate as black boxes: they can produce accurate predictions, but they do not make their reasoning process sufficiently transparent for operational cybersecurity settings, where analysts often need to justify severity decisions. In addition, post-hoc explainability methods may highlight influential words, but they do not ensure that the model reasons in a way that is consistent with expert knowledge or CVSS semantics. This gap is especially important in vulnerability assessment, where prediction quality alone is not enough. A useful scoring system should not only classify vulnerability characteristics accurately but also provide explanations that are aligned with domain logic and traceable to meaningful evidence in the text. This calls for approaches that go beyond purely data-driven pattern matching and incorporate structured security knowledge directly into the learning process.

1.1 Problem definition

To bridge the gap between black-box prediction and domain-aware reasoning, we formulate the task as a neuro-symbolic mapping problem. A software vulnerability is typically reported as an unstructured natural language text detailing its cause, prerequisites, and potential impact. Translating this unstructured description into a standardized severity score requires understanding specific technical characteristics. The CVSS formally captures these characteristics using a structured vector as a standardized, machine-readable text string, representing the values assigned to various metrics. For CVSS version 3.1, this representation depends on eight fundamental Base metrics. Let d denote a textual vulnerability description (e.g., see Example 1 ). The goal is to predict the corresponding CVSS Base metric vector \(\textbf{M} = \{AV, AC, PR, UI, S, C, I, A\},\) where each component is a categorical variable with discrete values defined in the CVSS specification.

Specifically, these metrics define the Exploitability factors, including the Attack Vector (AV), Attack Complexity (AC), Privileges Required (PR), and User Interaction (UI). The Scope (S) metric determines whether a vulnerability in one component impacts resources in another. Finally, the Impact factors including Confidentiality (C), Integrity (I), and Availability (A), measure the consequences of a successful exploit on the affected system. A typical CVSS vector format resembles a string such as CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H , detailing the exact categorical value for each metric.

Once \(\textbf{M}\) is known, the numerical Base Score (ranging from 0.0 to 10.0) can be deterministically computed using established equations (see Table 1 ) [ 3 ]. The learning objective is therefore to approximate a mapping, \(f: d \rightarrow \textbf{M}\) that is both accurate (matching expert-assigned labels) and interpretable (consistent with domain reasoning). Unlike traditional approaches that rely solely on textual features, this formulation explicitly requires capturing the semantic meaning of unstructured text while enforcing the symbolic constraints of the CVSS model. This study addresses these challenges through WSymBERT, a hybrid neuro-symbolic model that predicts all eight CVSS v3.1 Base metrics from text. The model integrates expert- and model-derived symbolic weighting into a learned pooling mechanism, enabling domain knowledge to influence the representation used for metric-specific prediction.

Let d denote a textual vulnerability description. For instance, consider the following description for CVE-2022-33955:

“IBM CICS TX 11.1 could allow an attacker with physical access to the system to execute code due using [sic] a back and refresh attack.”

“IBM CICS TX 11.1 could allow an attacker with physical access to the system to execute code due using [sic] a back and refresh attack.”

The official severity assessment for this vulnerability is as follows:

CVE ID: CVE-2022-33955

CVE ID: CVE-2022-33955

CVSS v3.1 Base Score: 4.3 (Medium)

CVSS v3.1 Base Score: 4.3 (Medium)

CVSS Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI: N/S:U/C:L/I:L/A:L

CVSS Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI: N/S:U/C:L/I:L/A:L

To address this need, we propose WSymBERT, a neuro-symbolic framework for automated prediction of the eight CVSS v3.1 Base metrics from vulnerability descriptions.

We formulate CVSS metric prediction using eight independently trained metric-specific WSymBERT models.

We formulate CVSS metric prediction using eight independently trained metric-specific WSymBERT models.

We introduce a symbolic-guided weighted pooling mechanism that combines learned token-level pooling with expert- and KeyBERT-derived symbolic weighting.

We introduce a symbolic-guided weighted pooling mechanism that combines learned token-level pooling with expert- and KeyBERT-derived symbolic weighting.

We evaluate the framework on the NVD and Combine datasets and report metric-wise predictive performance under the stated experimental protocols.

We evaluate the framework on the NVD and Combine datasets and report metric-wise predictive performance under the stated experimental protocols.

We analyze attribution behavior using Integrated Gradients and complementary perturbation-based metrics, without treating pooling weights themselves as causal explanations.

We analyze attribution behavior using Integrated Gradients and complementary perturbation-based metrics, without treating pooling weights themselves as causal explanations.

The rest of the paper is organized as follows. Section 2 reviews prior work on automated CVSS prediction, explainable AI, and neuro-symbolic learning. The proposed WSymBERT architecture is presented in Sect. 3 . Section 4 describes the datasets, experimental setup, and evaluation results. Finally, Sect. 5 concludes the paper and outlines future directions.

Research on automated CVSS prediction has evolved from simple text-based methods to advanced neural and hybrid systems. The main directions include classical machine learning (ML), transformers, symbolic and neuro-symbolic models, and studies that integrate explainability or external data sources.

2.1 Classical ML approaches

Early studies used traditional machine learning to predict CVSS scores from text. These models represented vulnerability descriptions as word frequency vectors using Bag of Words or TF–IDF features and then applied algorithms such as support vector machines, random forests, and XGBoost [ 4 , 5 , 6 ].

Wang et al. [ 5 ] applied XGBoost to predict severity levels and achieved around 92% accuracy but noted that results were strongly dependent on surface-level word matches. Chen et al. [ 6 ] used linear regression models that offered transparency through visible features but lacked the capability to capture semantic meaning or sentence structure.

Because these models ignored context and word order, they often failed on metrics that required deeper understanding, such as Attack Vector (AV) or Privileges Required (PR) . They were interpretable but limited in accuracy, showing a clear need for models that could capture semantics in vulnerability descriptions.

2.2 Transformer-based models

The generation of research adopted transformer models such as BERT and SBERT to process text at a contextual level [ 7 , 8 , 9 ]. Each CVSS metric was treated as a separate classification problem.

The CVSS-BERT framework by Shahid and Debar trained one BERT model per metric and visualized relevant words using gradient-based saliency maps [ 10 ]. Later, SecureBERT and CVEDrill extended this approach and achieved higher accuracy across most metrics [ 8 ]. DistilBERT was also used to reduce model size and training time while maintaining similar performance [ 11 ].

Recent studies have further explored task-specific and generative architectures for automated vulnerability scoring. Mirtaheri and Pugliese [ 12 ] used generative AI to enrich vulnerability descriptions before transformer-based CVSS prediction. Mirtaheri et al. [ 13 ] investigated a fine-tuned BERT–CNN architecture for automated vulnerability scoring. More recently, Mirtaheri et al. [ 14 ] combined LLM-based data augmentation with a lightweight fine-tuned BERT model to target an accuracy–computational-cost trade-off.

Despite these advances, transformer models remain opaque. They often behave as black boxes and may base decisions on statistical shortcuts rather than real security semantics [ 15 , 16 ]. Even internal attention patterns may not represent true reasoning, as shown by the “Attention is not Explanation” study [ 17 ]. As a result, these models are hard for analysts to trust in critical security settings.

2.3 Symbolic and neuro-symbolic methods

Symbolic systems use explicit rules or knowledge trees defined by experts. They are fully transparent but have limited ability to generalize. For example, Khazaei et al. used fuzzy logic and rule-based systems to predict CVSS scores but could not handle diverse text or capture complete vectors [ 18 ]. Elbaz et al. applied linear regression on Bag of Words features, offering interpretability but missing deeper semantic relations [ 19 ].

Recent work combines symbolic reasoning with neural models to gain both interpretability and accuracy [ 20 , 21 , 22 , 23 ]. In these neuro-symbolic systems, neural layers learn language patterns while symbolic components encode domain logic. In the security domain, recent studies have explored the integration of heterogeneous information sources for vulnerability analysis. Tian et al. [ 24 ] combined code semantics with LLM-generated explanations through cross-modal attention, while Zhequ et al. [ 25 ] investigated semantic dependency analysis and fusion paths for modeling relationships among code components. These studies illustrate the potential value of multi-source fusion for context-aware vulnerability analysis without implying that a particular fusion mechanism is universally superior. The model (WSymBERT) is guided by expert-defined mappings or ontologies that connect key phrases to CVSS metric values. For example, a phrase like “requires local access” can map directly to Attack Vector = Local , and “no user interaction required” can map to User Interaction = None . When these symbolic cues are incorporated into representation pooling, the model can assign greater emphasis to tokens associated with CVSS-relevant concepts. This design combines contextual language representations with structured symbolic guidance while keeping attribution analysis separate from the pooling mechanism.

2.4 Use of external and OSINT data

Some researchers explored the use of Open Source Intelligence (OSINT) data such as CWE identifiers, exploit availability, or attack references to improve prediction accuracy [ 11 ]. Kühn et al. found that adding more descriptive text from OSINT sources increased text length but did not always improve results. Their analysis showed that beyond a certain point, additional context leads to “information saturation”.

These results suggest that model performance depends more on the quality and domain relevance of information than on text quantity. This observation motivates the use of symbolic guidance to emphasize domain-relevant cues within the pooled representation rather than simply increasing input length.

2.5 Explainable AI in vulnerability scoring

As neural models became more accurate, researchers began to study explainability in automated CVSS prediction. Post-hoc methods such as Integrated Gradients, SHAP, and LIME have been used to visualize which words influenced model predictions [ 26 , 27 ]. Metrics like Infidelity, Sensitivity, and Deletion-AUC were proposed to evaluate the quality of explanations [ 28 ]. A recent systematic taxonomy of more than 100 studies on Generative AI in vulnerability assessment and risk management identifies explainability, security, and trustworthiness as recurring challenges across the vulnerability-management lifecycle [ 29 ]. This broader perspective motivates evaluating automated scoring systems beyond predictive accuracy alone. Integrated Gradients has also been applied to token- and feature-level attribution in recent NLP-oriented studies [ 30 ], while recent work has explored alternative neural-interpretation approaches and benchmarking frameworks for post-hoc NLP explainability [ 31 , 32 ]. Post-hoc attribution methods characterize model behavior after training but do not themselves inject domain knowledge into the predictive representation. This motivates complementary approaches in which structured security knowledge can guide representation learning while explanation quality is evaluated separately.

Prior research has made strong progress in improving the accuracy and understanding of CVSS prediction, but several important gaps remain. Neural models can achieve high predictive performance, yet their internal reasoning is often not transparent or aligned with CVSS logic. Many systems depend on surface-level word associations rather than learning deeper semantic meaning from vulnerability descriptions. In addition, most existing approaches do not integrate expert knowledge or symbolic reasoning directly into the model, which limits their ability to reflect domain logic. Finally, explainability in prior studies is usually added after training through post-hoc analysis tools, which only describe model behavior instead of shaping it. These gaps highlight the need for an approach that combines neural learning with symbolic guidance to achieve both accuracy and interpretability in automated CVSS prediction.

However, feature-attribution methods may still produce unstable or misleading importance patterns, particularly when interpreted without quantitative validation. Therefore, qualitative attribution analysis should be complemented by quantitative explanation metrics, while symbolic guidance should be interpreted as knowledge injection rather than as direct evidence of model reasoning.

We propose WSymBERT, a weighted neuro-symbolic framework for predicting the eight CVSS v3.1 Base metrics from vulnerability descriptions. Each metric-specific model combines contextual representations from a fine-tuned SBERT encoder with symbolic guidance derived from expert lexicons and KeyBERT keywords. These sources are integrated through symbolic-guided weighted pooling before metric-specific classification (Fig. 1 ).

3.1 Inputs and notation

Let d be tokenized into \(\textbf{x}=[t_1,\ldots ,t_n]\) , and let SBERT return contextual token embeddings \(H=[h_1,\ldots ,h_n]\) , with \(h_i\in \mathbb {R}^d\) . For each token \(t_i\) , the model computes a learned token-level pooling weight \(\alpha _i\) . A symbolic weighting factor \(w_i\) , derived from expert and KeyBERT evidence, is combined with \(\alpha _i\) to obtain the normalized fused pooling weight \(\beta _i\) . The weighted representation \(z_m\in \mathbb {R}^d\) is then constructed for the metric-specific model m . A separate classifier predicts the corresponding CVSS metric label from \(z_m\) .

Figure 2 provides an example to show the style of the expert asset used to build lexicons. The decision tree systematically maps common descriptive phrases to the Attack Vector classes: Network , Adjacent , Local , or Physical . The resulting leaf sets seed the initial AV lexicon, grounding the symbolic weights in structural domain knowledge.

Decision trees. For each Base metric we build a question driven tree from the FIRST scoring guide and security ontologies [ 33 , 34 , 35 , 36 ]. Paths link common phrases to metric values. For example, “requires local access” maps to AV = Local .

Guiding lexicons. From the trees we derive per label lexicons of single word cues. Experts review the lists.

Model keywords. We extract up to five keywords from each d using KeyBERT [ 37 ]. The score for a word w is cosine similarity in the same SBERT space,

where \(e_d\) is the sentence embedding and \(e_w\) is the word embedding.

KeyBERT was applied using the study-specific embedding checkpoint without additional fine-tuning during keyword extraction. Unigram candidates were used with keyphrase_ngram_range=(1,1) , no explicit stop-word filtering, and top_n=5 . MMR and diversity-based re-ranking were not applied, and the selected keywords were subsequently treated with equal weights.

3.3 Symbolic knowledge extraction

The decision logic of cybersecurity experts in CVSS v3.1 scoring was formalized as traceable, question-driven decision trees, modeling the “question–response–label” reasoning typical in expert assessments. Separate trees were built for the eight Base metrics (AV, AC, PR, UI, S, C, I, A). These trees serve as upstream knowledge-construction resources from which the metric-specific expert lexicons are derived; the resulting lexicons are subsequently used in the symbolic-guided weighted pooling mechanism.

The initial framework was derived from official CVSS guidelines and combined with structured rubrics and security ontologies to create executable question-based trees.

A stratified analysis of 2,000 CVE descriptions aligned these trees with domain-specific NVD text records. This process achieved 83.6% coverage, meaning that 83.6% of these CVE descriptions contained at least one token matched by the trees. The remaining cases without symbolic matches relied purely on the underlying language model semantics. All trees were developed solely on the training set and frozen before evaluation.

To handle multi-word expressions such as “adjacent network,” the lexicons include bigrams and n-grams alongside single tokens. When these phrases are identified during preprocessing, symbolic weights are assigned to their constituent parts. Contextual SBERT representations encode information from the surrounding linguistic context and can therefore reduce reliance on isolated lexical matches. However, robustness to negation and other compositional linguistic phenomena was not evaluated separately in the present study.

3.4 Symbolic-guided weighted pooling

Learned pooling weights A learned pooling mechanism assigns a scalar score to each token and normalizes the scores across the sequence:

Symbolic weighting factors Let \(\mathcal {K}_{\textrm{exp}}\) be the expert lexicon for the current metric and \(\mathcal {K}_{\textrm{mdl}}\) be the KeyBERT keywords for d . We assign

To preserve the neural representation when no symbolic cue is matched, the final weighting factor is defined as \(w_i=w'_i+1\) . Consequently, when \(w'_i=0\) for all tokens, the fused weighting reduces, up to the numerical stabilization term, to the learned neural pooling weights \(\alpha _i\) . The weighting scheme represents three levels of symbolic evidence: no symbolic match ( \(w'_i=0\) ), single-source support ( \(w'_i=1\) ), and joint expert–KeyBERT support ( \(w'_i=10\) ). The larger value encodes stronger dual-source agreement before normalization. This configuration was kept fixed across the reported experiments; a systematic sensitivity analysis of alternative weighting values was not conducted and is treated as a limitation.

Normalized fused pooling We form the normalized fused pooling weights and the weighted pooled representation as

with a small \(\varepsilon \) for numeric safety. This pooling focuses on tokens that are important both semantically and symbolically.

Here, \(\alpha _i\) denotes the learned token-level pooling weight, \(w_i\) the symbolic weighting factor, and \(\beta _i\) the normalized fused pooling weight used to construct \(z_m\) . The symbolic-guided weighting mechanism is used for knowledge injection rather than as a standalone explanation method; its token weights are not interpreted as causal evidence of model reasoning, and explanation quality is evaluated separately using attribution-based analyses.

3.5 Metric-specific independent prediction

WSymBERT employs eight independently trained models, one for each CVSS Base metric \(m\in \{AV,AC,PR,UI,S,C,I,A\}\) . Each model contains its own SBERT encoder, symbolic-guided weighted pooling mechanism, and metric-specific classifier. No encoder parameters are shared across metrics. For metric m with label set \(\mathcal {Y}_m\) , the classifier is defined as

Each metric-specific model is optimized independently using only the labels of its corresponding CVSS metric:

No combined multi-metric loss is used (Fig. 3 ).

3.6 Training algorithm

The following procedure trains one metric-specific WSymBERT model. The same procedure is executed independently for each of the eight CVSS Base metrics.

KeyBERT keywords are cached before model optimization and remain fixed during the training of each metric-specific model.

Integrated Gradients is used to attribute token contributions for each metric-specific model [ 38 ]. Because saliency methods can fail model- or data-randomization sanity checks, attribution maps are not treated as self-validating explanations [ 39 ]. Explanation quality is evaluated separately from the pooling mechanism using attribution- and perturbation-based measures under explicitly defined reference configurations (Fig. 4 ).

Remarks. The independent metric-specific design enables component-level training and error analysis while leaving the standard downstream CVSS v3.1 score computation unchanged.

We evaluated WSymBERT against SBERT [ 9 ], DistilBERT [ 11 ], and three domain-specific vulnerability-scoring baselines: CVSS-BERT [ 10 ], SecureBERT, and CVEDrill [ 8 ]. WSymBERT training used an NVIDIA GeForce RTX 2080 GPU, AdamW with a learning rate of \(2\times 10^{-5}\) , batch size 16, 15 epochs, and CrossEntropyLoss without class weighting. The best checkpoint for each metric-specific WSymBERT model was selected using validation accuracy, while the test partition was reserved for final evaluation. For the added re-evaluations, CVSS-BERT used the BERT-small configuration with three frozen-encoder epochs followed by three fine-tuning epochs (batch size 16), whereas SecureBERT and CVEDrill were trained for 10 epochs with a learning rate of \(10^{-5}\) and batch size 8. The supplied baseline runs used a maximum sequence length of 128 and seed 42. The experimental comparison focuses on predictive effectiveness rather than computational efficiency. Parameter counts and wall-clock GPU training times were not systematically recorded; therefore, no claim of computational-cost superiority is made.

Two datasets were used for fine-tuning and evaluation: the Combine dataset and the NVD dataset . Both contain labeled CVE entries with textual descriptions and corresponding CVSS v3.1 base vector metrics, but they differ in scope, source, and data quality.

Combine Dataset The Combine dataset is a merged benchmark introduced in earlier work [ 11 ], designed for reproducible CVSS prediction research. It integrates vulnerability records from multiple public sources, including the National Vulnerability Database (NVD), ExploitDB, and other vendor repositories. The dataset covers the years 2016–2021 and contains approximately 101,735 entries. Each record includes a natural-language description of the vulnerability, its associated CVSS v3 base vector (AV, AC, PR, UI, S, C, I, A), and the corresponding numerical base score. Because it combines data from heterogeneous sources, the dataset provides richer linguistic diversity and terminology coverage, though it also contains occasional inconsistencies and overlapping records.

NVD Dataset The NVD dataset used in this study was fully collected, parsed, and cleaned by the authors from the official National Vulnerability Database. Footnote 1 It includes 153,106 records spanning 2016–2025. The records used for modeling contain complete CVSS v3.1 Base-metric labels together with their vulnerability descriptions and associated CVSS information. Compared to the Combine dataset, this corpus is more consistent and structured but includes shorter text fields, which can make semantic inference more challenging for language models.

Data Splitting and Deduplication Strict deduplication was applied within each dataset before splitting. Each corpus was then partitioned into stratified 80%/10%/10% training, validation, and test sets. Time-aware splitting was not used; therefore, the primary evaluation measures in-distribution predictive performance and does not establish temporal generalization to future vulnerabilities.

Cross-corpus transfer was evaluated separately by applying each source-trained model to a randomly selected subset of the other corpus without additional training or fine-tuning. Specifically, Combine-trained models were evaluated on NVD samples, while NVD-trained models were evaluated on Combine samples.

4.2 Evaluation results

Tables 2 and 3 present the performance results across both datasets and all CVSS Base metrics.

For each of the eight CVSS Base metrics, Accuracy, macro-Precision, macro-Recall, and macro-F1 are reported. Tables 2 and 3 contain single-run point estimates on held-out test partitions. Run-to-run variability across multiple random seeds, confidence intervals, and paired significance tests were not evaluated; therefore, the reported differences are interpreted as observed empirical performance rather than formal evidence of statistical significance or run-to-run stability.

Table 3 additionally includes the supplied re-evaluations of CVSS-BERT, SecureBERT, and CVEDrill. The supplied baseline files use a stratified 80/10/10 split with seed 42 and report Accuracy together with macro-Precision, macro-Recall, and macro-F1. Because the original WSymBERT split identifiers were not preserved, the added results are interpreted as aligned point-estimate comparisons rather than sample-wise paired evaluations.

On the Combine dataset, WSymBERT achieved a mean accuracy of 94.7% across the eight CVSS Base metrics, while the corresponding mean on the NVD dataset was 96.2%. In the expanded Table 3 , WSymBERT retained the highest observed Accuracy, macro-Precision, macro-Recall, and macro-F1 values for every reported CVSS metric. The mean NVD accuracy was 96.2% for WSymBERT, compared with 91.7% for SecureBERT, 91.6% for SBERT, 91.6% for CVSS-BERT, 91.4% for CVEDrill, and 89.4% for DistilBERT. These values are descriptive point estimates and are not interpreted as paired statistical evidence. The largest observed gains for the complete WSymBERT configuration occur on several difficult or imbalanced metrics, including Privileges Required and Availability. Because no component-wise ablation or paired significance test was performed, these differences are not attributed causally to any single symbolic component.

4.3 In-domain dataset evaluation

The in-domain results were obtained independently within the NVD and Combine corpora. Table 4 summarizes the NVD class distributions and shows substantial imbalance for several metrics, particularly Attack Complexity and Availability. Despite this imbalance, the complete WSymBERT configuration achieved the highest observed performance among the evaluated models for the reported NVD metrics.

4.4 Evaluation of errors

To evaluate numerical CVSS Base Score prediction, the eight predicted Base-metric labels for each held-out CVE were passed to the standard CVSS v3.1 Base Score calculator after metric prediction. MSE and MAE were then computed between the resulting predicted Base Scores and the corresponding reference Base Scores over the held-out test data. Lower values indicate smaller numerical prediction error (Table 5 ).

WSymBERT produced lower observed MSE and MAE than DistilBERT in this evaluation. Because repeated training runs were not performed, these values are not interpreted as estimates of run-to-run stability.

4.5 Integrated gradients analysis

Integrated Gradients was used to identify influential tokens for each CVSS metric. The examples in Table 6 indicate that WSymBERT assigns greater attribution to security-relevant terms that overlap with the expert-derived vocabulary than the evaluated DistilBERT baseline. These attribution patterns describe model behavior under the selected explanation method and are not interpreted as causal evidence of human-like or expert-equivalent reasoning.

Not all tokens highlighted by interpretability methods provide meaningful or domain-relevant information. To measure this, we defined four related metrics that capture different types of semantic noise among the top-ranked tokens (Top- k ):

Stopwords: Common words that appear very often but carry little meaning, such as the , a , of , to , and in . These words do not help the model distinguish between vulnerability classes and may lower interpretability quality.

Stopwords: Common words that appear very often but carry little meaning, such as the , a , of , to , and in . These words do not help the model distinguish between vulnerability classes and may lower interpretability quality.

Numeric or Version Tokens: Tokens made up only of numbers or software version patterns, such as 123 or 7.5.1 . These tokens vary widely and usually do not have a consistent semantic role.

Numeric or Version Tokens: Tokens made up only of numbers or software version patterns, such as 123 or 7.5.1 . These tokens vary widely and usually do not have a consistent semantic role.

Short Tokens: Tokens with two or fewer characters, such as ip , os , or c . These are often ambiguous and may overlap by chance, providing little useful information.

Short Tokens: Tokens with two or fewer characters, such as ip , os , or c . These are often ambiguous and may overlap by chance, providing little useful information.

Noise Rate: The proportion of tokens that belong to any of the three categories above among the total number of top- k tokens. This value gives an overall measure of the amount of noise in the model’s explanations.

Noise Rate: The proportion of tokens that belong to any of the three categories above among the total number of top- k tokens. This value gives an overall measure of the amount of noise in the model’s explanations.

For each of the four CVSS Base metrics reported in Table 7 , the top-10 tokens were selected according to their Integrated Gradients (IG) attribution scores, and the noise metrics were computed for both WSymBERT and DistilBERT. Representative examples and values are shown in Table 7 .

Under the defined noise heuristic, WSymBERT produced lower observed noise rates than DistilBERT across the reported components. This indicates cleaner attribution patterns under the present evaluation criteria, but it does not by itself establish causal reasoning, human-equivalent interpretability, or deployment trustworthiness.

4.7 Interpretability evaluation

We evaluate attribution behavior using Integrated Gradients and perturbation-based metrics under explicitly defined reference configurations. The reported values are descriptive point estimates under the stated representation, reference, and perturbation protocol; their raw magnitudes are not interpreted as architecture-independent evidence of explanation superiority (Table 9 ).

\(B_1\) – \(B_4\) denote Integrated Gradients reference configurations rather than predictive baseline models. For token embeddings, the two references are the embeddings of an all-padding-token sequence and an all-one tensor with the same shape as the input embeddings. For the weighting input, the standard binary attention mask and an all-one vector are used as references. Their Cartesian combinations define \(B_1\) (Pad-Embedding + Mask-Weight), \(B_2\) (Pad-Embedding + One-Weight), \(B_3\) (One-Embedding + Mask-Weight), and \(B_4\) (One-Embedding + One-Weight).

The attribution metrics vary across CVSS metrics and reference configurations. Accordingly, no single metric is used as standalone evidence of explanation quality, and raw values are interpreted only within the specified evaluation protocol. In particular, \(\Delta \) , Infidelity, Sensitivity, and Deletion AUC depend on the selected reference, representation, output function, and perturbation procedure. Cross-model comparisons are therefore reported descriptively rather than as architecture-independent absolute measures.

Some WSymBERT reference configurations, particularly AC under \(B_1\) and \(B_2\) , yield larger mean \(|\Delta |\) values than the SBERT \(\Delta \) values reported in Table 8 . Because the reference constructions and aggregation procedures are not identical across the two tables, these raw magnitudes are not treated as directly comparable. Accordingly, \(|\Delta |\) is reported descriptively and is not used alone as evidence of explanation quality.

5 Conclusion and future work

This study presented WSymBERT, a neuro-symbolic framework composed of eight independently trained metric-specific models for predicting the CVSS v3.1 Base metrics from vulnerability descriptions. Each model combines an SBERT encoder with symbolic-guided weighted pooling derived from expert and KeyBERT evidence. WSymBERT achieved mean accuracies of 96.2% on NVD and 94.7% on Combine across the eight Base metrics and obtained the highest observed performance among the evaluated models in the reported in-domain comparisons. Attribution-based analyses further showed greater emphasis on security-relevant terms under the specified explanation protocol. These findings support the potential of explicit domain guidance for automated CVSS prediction, while the statistical, temporal, computational, and explainability limitations described below should be considered when interpreting the results.

Several limitations should be considered when interpreting the results. The primary evaluations use random stratified splits rather than time-aware partitions; therefore, temporal generalization to future vulnerabilities is not established. Cross-corpus transfer is limited to the NVD and Combine corpora and does not establish unrestricted domain generalization. The predictive results are single-run point estimates without multi-seed uncertainty estimates or paired significance tests. WSymBERT also depends on fixed CVSS v3.1 expert-derived resources and predefined symbolic weighting; component-wise ablation, systematic weight sensitivity, robustness to incomplete or evolving lexicons, and transfer to other CVSS versions were not evaluated. The long-term maintenance cost of the expert resources and the computational cost of training eight independent metric-specific models were not systematically benchmarked. Finally, attribution results depend on representation, reference, output, and perturbation choices and should not be interpreted as architecture-independent or causal evidence of model reasoning. Robustness to deliberately crafted descriptions designed to activate symbolic cues was also not experimentally evaluated.

Future work should prioritize time-aware evaluation, broader cross-domain testing, multi-seed statistical analysis, component-level ablation, symbolic-weight sensitivity, computational-cost benchmarking, and systematic evaluation of expert-resource maintenance. Additional extensions include structured sources such as CWE, CPE, and Exploit-DB, dynamic CVSS metrics, cybersecurity knowledge graphs, confidence calibration, adversarial-cue testing, and human-in-the-loop deployment.

Extracted Entities

Platforms (1)