Abstract
Deep neural networks (DNNs) dominate text classification but suffer from high computational costs and poor generalization in data-scarce or Out-of-Distribution (OOD) environments. Conversely, non-parametric methods like compression-based offer robustness but incur prohibitive inference latency due to the reliance on exhaustive pairwise comparisons. To bridge this gap, this study proposes EGTJ, a training-free framework that introduces a novel retrieval-augmented compression architecture. Unlike prior works that apply similarity metrics in isolation, EGTJ utilizes an inverted-index pre-filtering mechanism to dynamically constrain the comparison scope, effectively reducing algorithmic complexity from linear to constant time relative to the training set size. Furthermore, a tri-metric fusion strategy is introduced that integrates information-theoretic (gzip), lexical (TF-IDF), and structural (Jaccard) similarities to mitigate the inherent biases of individual metrics. Experimental results across five in-distribution and four OOD datasets demonstrate that EGTJ achieves superior accuracy over all baseline methods—notably outperforming BERT by over 30% in 5-shot OOD scenarios—while simultaneously slashing inference latency by orders of magnitude compared to standard compression-based approaches. These findings present EGTJ as a scalable, high-performance alternative for resource-constrained NLP, effectively solving the scalability bottleneck of non-parametric classification.
1. Introduction
The rapid development of artificial intelligence has caused a major change in natural language processing (NLP), leading to systems with unprecedented semantic acuity. In this context, text classification is a fundamental skill that supports a wide range of functions, from figuring out what someone is feeling to sorting topics [1]. Deep Neural Networks (DNNs) have become the most common standard, thanks to their complex designs and huge collections of labeled data [2]. However, this level of performance comes at a high cost. The inherent computational exuberance and rigid dependence on supervision render these models increasingly untenable in resource-constrained environments or Out-of-Distribution (OOD) contexts [3], where the scarcity of annotated exemplars precludes their deployment.
There is no doubt that DNNs are great at finding high-dimensional dependencies, but using such a lot of parameters for text classification is often too much work for computers. Empirical investigations often validate more economical architectures; specifically, Adhikari et al. [4] demonstrated that a suitably regularized Long Short-Term Memory (LSTM) network achieves performance equivalence with considerably more complex models. Shen et al. [5] corroborate this observation, revealing that foundational word embeddings can, in certain contexts, surpass the effectiveness of Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs), thereby contesting the dominant belief that architectural complexity is essential for accuracy.
Traditional unsupervised methods like term frequency-inverse document frequency (TF-IDF) and Jaccard similarity offer efficient text classification. For instance, TF-IDF has been applied to emotion analysis [6], Huang et al. [7] using Jaccard similarity to achieved 90.07% accuracy on Vietnamese text classification, and Jiang et al. [8] use gzip to offer a promising middle ground by exploiting information-theoretic similarity. These methods are competitive and require no training, but they suffer from two major drawbacks: (1) inefficiency due to exhaustive pairwise comparisons with all training samples [8], and (2) limited generalization capacity stemming from reliance on a single similarity metric—such as gzip, which overlooks lexical relevance and structural similarity [6,7].
However, a critical research gap remains in making non-parametric methods scalable. While recent compression-based approaches (such as gzip) have shown remarkable robustness to OOD data, they suffer from a severe computational bottleneck: they require exhaustive pairwise comparisons between the test instance and every single training sample ( complexity). This renders them practically unusable for large-scale datasets or real-time applications. Addressing this exigency, this study proposes EGTJ, an architecture that harmonizes the speed of Elasticsearch (ES) retrieval with the resilience of hybrid metric fusion. This integration decouples inference costs from dataset magnitude—reducing complexity to a constant —and thereby renders robust, training-free NLP viable within resource-constrained environments previously inaccessible to heavy neural architectures or iterative compression schemes. In summary, the main contributions of this study are as follows:
Scalable Architecture for Non-Parametric Classification: To resolve the prohibitively high computational overhead of recent compression-based methods [8], this work proposes a novel integration of ES-based pre-filtering with compression classification. This architecture decouples inference latency from dataset size by restricting the search space to a dynamically retrieved candidate subset. This design yields a 16-fold computational acceleration—collapsing total runtime from 13,518 s to a mere 847 s—thereby transforming a theoretically robust methodology into a tractable, real-time solution.
Robustness via Orthogonal Metric Fusion: A synergistic fusion strategy is proposed that triangulates three orthogonal similarity axes: global information-theoretic regularity (gzip), local lexical weighting (TF-IDF), and set-theoretic overlap (Jaccard). Empirical validation on the AGNews corpus demonstrates that this specific tripartite synthesis effectively mitigates localized noise, yielding a 2.9% accuracy improvement over unimodal baselines and stabilizing variance across heterogeneous data shifts.
Superior Generalization in Zero-Training Regimes: This work demonstrates that EGTJ effectively alleviates the “cold start” problem in text classification. By leveraging its parameter-free architecture to handle distributional shifts, the framework surpasses fine-tuned Transformer architectures (such as BERT) by over 30% in 5-shot OOD scenarios. This establishes EGTJ as a scalable, high-performance paradigm for lightweight deployments where computational parsimony and label scarcity are critical constraints.
2. Related Work
Text classification is a fundamental aspect of NLP that has been examined through various methodological perspectives, each addressing the trilemma of computational efficiency, accuracy, and domain adaptability. This section divides the research into three main categories: methods based on similarity, algorithms based on compression, and deep neural architectures.
2.1. Similarity-Based Text Classification
The effectiveness of similarity metrics, including metadata-augmented retrieval [9] of ES, lexical weighting of TF-IDF [10], and set-theoretic intersections of Jaccard [7], has been thoroughly documented. These methods rely on utilizing the underlying structural and lexical similarities within corpora to aid in categorization. Kim et al. [9] significantly redefined classification boundaries by utilizing metadata associated with query keywords and summaries, thereby enhancing the functionality of retrieval systems beyond basic search capabilities. Their method links the search results of extracted keywords to the metadata, which improves natural language search and the classification of academic papers through ES. However, this needs schema design and domain expertise. Qin et al. [10] created a new multi-level TF-IDF algorithm that takes into account the lengths of the document and category as well as the term frequency in both the document and the category. However, it did not provide a thorough explanation and analysis of the proposed method, which could make it harder to understand and copy. Huang et al. [7] attained 90.07% accuracy on Vietnamese texts utilizing Jaccard similarity, neglecting term significance.
While these methods are individually effective, they are often applied in isolation and face common limitations: ES alone relies heavily on lexical matching and may miss deeper semantic or information-theoretic similarities; TF-IDF is distribution-dependent and struggles with vocabulary shifts in OOD scenarios; Jaccard similarity does not account for term frequency or importance. Recent attempts to combine similarity measures remain limited. For instance, Arabi & Akbari [11] proposed a hybrid weighted similarity for plagiarism detection, but their method is task-specific and not designed for efficient large-scale classification.
2.2. Compression-Based Text Classification
Compression-Based Text Classification (CBTC) represents a substantial divergence from conventional feature engineering, its effectiveness stemming from the stringent convergence of information theory and algorithmic complexity. Bennett et al. [12] laid the theoretical foundation for this paradigm with the Normalized Information Distance (NID), which Cilibrasi and Vitányi [13] later turned into a practical tool for text analysis called the Normalized Compression Distance (NCD). Building on this idea, Montemurro [14] suggested that whole-text compression could decode latent linguistic entropy. Jiang et al. [8] proved this idea by showing that combining lossless gzip compression with kNN classifiers gives the same results as deep learning baselines. However, the usefulness of these kinds of methods is fundamentally limited by a scalability bottleneck: they require complexity because they rely on exhaustive pairwise comparisons, which makes them too expensive to use on large corpora. EGTJ solves this particular problem by adding an Elasticsearch pre-filtering stage, which reduces the search space to a constant (). By further combining the compression signal with the lexical specificity of TF-IDF and the set-theoretic rigor of Jaccard similarity, the framework gets around the semantic blindness of pure compression. This results in a hybrid architecture that is much more accurate and much faster at making inferences than monolithic compression baselines (see Section 5.3.1 and Section 5.3.2).
2.3. Deep Learning for Text Classification
There are two main types of deep learning frameworks for text classification: transductive frameworks, like Graph Convolutional Networks (GCNs) [15], and inductive architectures, like RNNs and CNNs. This study only looks at inductive learning because transductive methods require access to the test set during training, which is not usually the case in real-world situations. Zhang et al. [16] confirmed the effectiveness of inductive methodologies by utilizing character-level CNNs with millions of parameters, showcasing strong feature extraction abilities. In the same way, Chung et al. [17] came up with the Gated Recurrent Unit (GRU) to cut down on parameter overhead without hurting performance in the RNN field. Zhou et al. [18] added attention mechanisms to LSTMs to make them better at modeling long-range dependencies. The Transformer architecture [19] and its bidirectional successor, BERT [20], changed the game by setting new performance standards through self-attention mechanisms and large-scale pre-training. In OOD situations, though, these models are still fragile. Systematic changes in vocabulary, topic, or domain can cause performance to drop significantly without careful fine-tuning [3,21].
Even though they are the most popular, deep learning methods have problems with too many parameters, a heavy reliance on labeled data, and bad zero-shot generalization [21]. EGTJ, on the other hand, is a training-free, non-parametric option that doesn’t need model parameters, and special hardware acceleration. EGTJ solves the problems of DNNs that make them less efficient and less generalizable, especially in low-resource and OOD settings, by combining scalable ES retrieval with a multi-metric fusion strategy. Similarity-based heuristics are fast but have some limitations, and compression-based methods are strong but require a lot of processing power. EGTJ combines the best of both approaches. It uses ES for constant-time retrieval and combines different similarity metrics (gzip, TF-IDF, Jaccard) to provide strong, scalable classification without the high resource requirements of deep learning.
3. Preliminaries
This section talks about the basic methods used in this study. These methods are the foundation of the EGTJ method. They help with text classification, feature representation, similarity calculation, and effective information retrieval.
3.1. Gzip
Gzip is a widely used lossless compression tool [8] that uses the LZ77 algorithm and Huffman coding together to make data encoding as efficient as possible. There are two basic ideas behind using compression in classification: (1) compression algorithms are good at estimating how regular the data is, and (2) instances within the same category are more consistent with each other and therefore easier to compress when combined than instances from different categories.
Consider three texts, , where have a categorical affinity that is different from . Let be the length of the compressed byte. We assert that the marginal entropy necessary to encode in the context of is unequivocally less than that required for , expressed as . The differential measures the information that has that doesn’t. For example, think about these samples:
- t1: ‘Applications to bioinformatics’
- t2: ‘Applications to mobile computing’
- t3: ‘Inpainting-based compression, perceptual coding’
The Compression-based Length Metric (CLM) quantifies this relationship, based on the information-theoretic framework developed by Chen, Li, and colleagues [22,23,24].
where the term serves as an upper bound on the mutual algorithmic information between sequences [23], approximating Kolmogorov complexity. This study use the concatenation difference to find the conditional complexity in practice. This method takes advantage of the LZ77 algorithm’s shared dictionary mechanism to accurately measure how much less bit-rate is needed to encode x when the compressor has been set up to work with the context of y.
3.2. TF-IDF
TF-IDF is a common way to give weight to information retrieval and text mining [6]. TF-IDF shows how important each word is in a document. TF tells you how many times a word appears in a document, while IDF tells you how common a word is in all documents. The mathematical formalization is defined as follows.
Term Frequency (TF): For a specific term t residing within document d, the normalized frequency is calculated as:
where denotes the raw occurrence count of term t in document d.
Inverse Document Frequency (IDF): To capture global rarity across the document collection D, the IDF metric is computed as:
where:
- is the total number of documents
- is the document frequency of term t
TF-IDF Weight:
3.3. Jaccard Similarity Coefficient
The Jaccard similarity coefficient [7] is a measure of similarity between two sets, defined as the size of the intersection divided by the size of the union of the sets. In the context of text classification, it can be used to measure the similarity between the set of words in two texts. The Jaccard similarity coefficient between two sets A and B is calculated as
where is the number of elements in both sets A and B, and is the number of elements in either set A or B, or in both.
3.4. ES Indexing and BM25 Ranking
ES is a distributed, RESTful search and analytics engine built on Apache Lucene [9]. It is designed for fast, scalable full-text search through an inverted index structure. In an inverted index, each unique term (token) is associated with a list of documents containing that term, along with positional and frequency information. This enables sub-linear retrieval time for keyword queries.
In EGTJ, this work use ES as a pre-filtering mechanism to drastically reduce the candidate search space before applying computationally expensive similarity metrics (gzip, TF-IDF, Jaccard). The indexing pipeline includes:
- Tokenization: The standard analyzer performs lowercasing, Unicode text segmentation, and stopword removal.
- Index mapping: Each document is stored as a JSON object with fields "text" (analyzed full text) and "label".
- Sharding and refresh: This work use 5 shards for parallel querying and a 1-s refresh interval for near-real-time availability.
For retrieval, ES employs the BM25 ranking function [25], a probabilistic adaptation of the TF-IDF paradigm. Given a query Q containing terms and a document D, the BM25 score is computed as:
where:
- is the term frequency of in D,
- is the document length in words,
- is the average document length in the collection,
- and b are tuning parameters (this work use , as ES defaults).
BM 25 improves upon classical TF-IDF by saturating term frequencies and normalizing document length, making it more robust for short-text retrieval. In EGTJ, this work retrieve the top-m documents ranked by BM25 for each test instance, forming a candidate set S that is orders of magnitude smaller than the full training set.
3.5. Theoretical Motivation for Component Synergy
The architectural philosophy of EGTJ is based on combining three different types of similarity paradigms: information-theoretic, lexical, and set-theoretic. This is done to get around the problems that come with unimodal classification. This study examine this synergistic interaction using two separate theoretical frameworks.
Complementary Similarity Measures: Gzip uses the CLM to get a rough idea of Kolmogorov complexity, which lets it decode hidden semantic structures and topic consistency. However, its effectiveness is limited in short-text contexts due to the scarcity of compressible redundancy [8]. TF-IDF, on the other hand, uses lexical statistics to measure term specificity. It works well for in-distribution data, but it doesn’t know about structure and breaks down quickly when the vocabulary changes, which is common in OOD environments [6]. Jaccard similarity works as a set-theoretic stabilizer that is strong against permutation but weak against synonymy [7]. The fact that these axes are orthogonal is what makes our approach new. Gzip looks at global algorithmic regularity, while TF-IDF and Jaccard look at local token distributions. This multi-view fusion reduces the unique biases that are present in each modality, as shown by previous research on hybrid similarity [11].
Bias-Variance Tradeoff: The tripartite fusion protocol effectively readjusts the bias-variance tradeoff. Gzip reduces bias in out-of-distribution settings by taking advantage of universal compression properties, but it can still be affected by noise when there isn’t much data. TF-IDF, on the other hand, limits variance for in-distribution tasks by grounding term frequency strictly, but it introduces a lot of bias when vocabulary doesn’t match. Jaccard presents a structural prior predicated on set overlap, thereby stabilizing inference for sequences of moderate length. This synergy is similar to the theoretical basis for multi-metric ensembles [26], but EGTJ is very different from traditional methods. Instead of needing learned weights through training, EGTJ shows that a training-free majority-vote consensus among these carefully chosen orthogonal metrics is enough to beat supervised baselines in high-entropy (OOD) environments.
4. Approach
Figure 1 shows the EGTJ framework’s architectural schema. This method was created to get around the problems with current resource-constrained text classification methods, which rely on a lot of parameters and big labeled corpora. It introduces a new unsupervised, non-parametric synthesis. The system sets up an efficient pipeline by combining ES, gzip compression, TF-IDF, Jaccard similarity, and kNN classification.
Figure 1.
Overview of the EGTJ pipeline. The offline phase (upper panel) builds an ES index from the training corpus. The online phase (lower panel) processes a test instance: ES retrieves top-m candidate documents; three similarity modules (gzip, TF-IDF, Jaccard) compute distances to the candidates; each module outputs a ranked list of top-k labels; labels are aggregated and a majority vote selects the final prediction.
The EGTJ framework’s operational workflow is split into two stages:
Stage 1: ES Index Construction. For each separate dataset (called DataSet i), the labeled corpus that goes with it is put into a special ES index called index i. This first step gets the system ready for high-speed retrieval by creating an inverted index structure that can rank results based on their relevance.
Stage 2: ES Retrieval and Label Voting. After processing a test instance t from DataSet i, the system runs a query against the ES index that goes with it. This operation makes a candidate set of similar documents, each of which keeps its original class label. Three similarity-based modules—gzip + kNN, TF-IDF + kNN, and Jaccard + kNN—are then applied to the candidate set. Each module independently computes a ranked list of the top k predicted labels, resulting in a concatenated list of labels: , where labgi, labti, and labji denote the labels predicted by the gzip, TF-IDF, and Jaccard modules, respectively.
Finally, a voting mechanism is applied to the aggregated label list L. Each label receives one vote per appearance, and the labels are ranked by their vote count in descending order. The top k labels with the highest votes are selected as the final classification result for the test instance t.
4.1. ES Index Construction
The first stage involves configuring and populating ES indices for each dataset to enable efficient retrieval. Below, this work detail the indexing pipeline and its parameters, which are critical for balancing recall and computational efficiency in downstream classification.
4.1.1. Index Configuration
The indexing pipeline adheres to the following architectural specifications:
Scoring Model: BM25 ranking is used (default in ES 7.8.1) with optimized parameters for text retrieval, such as , and .
Tokenization: The standard analyzer is applied, such as lowercasing, unicode text segmentation (splits on word boundaries), and stopword removal (English default) to reduce noise.
Index Structure: The schema is engineered to support dual-modality access: analyzed fields for full-text interrogation and keyword fields for exact-match filtering, implemented via the mapping {"mappings":{"properties":{"label":{"type":"text"},"text":{"type":"text"}}}}. System scalability and responsiveness are ensured through a 5-shard distribution for parallel query execution and a 1-second refresh interval.
4.1.2. Indexing Process
The procedural workflow for index generation is delineated in Algorithm 1. The sequence commences with the instantiation of an ES client, establishing a dedicated index for each dataset governed by the configuration parameters defined in Section 4.1.1. Subsequently, every training instance is serialized into a JSON object—encapsulating both class labels and textual content within the schema {“label”:“class_1”,“text”:“sample text…”}. The pipeline culminates in a bulk ingestion process, which enforces a 1-second refresh interval to guarantee near-real-time search availability while minimizing latency.
| Algorithm 1 Creating ES index for the training data in dataset i |
|
4.2. ES Retrieval and Label Voting
The inference architecture ends with an ES retrieval and voting system, which is fully explained in Algorithm 2.
| Algorithm 2 Calculating the top-k labels for each text t in dataset i |
|
4.2.1. ES Retrieval Stage
Step 4 of Algorithm 2 is the retrieval logic. It starts by asking the pre-built ES index questions to find a set of documents that are related to the test instance t. There are two important parameters that control this operation: the target index identifier () and the retrieval size m, which tells the system how many items to return in the result set.
A full-text search query is run to find the test instance t in the indexed training corpus. When the search engine gets the ES client, it uses its probabilistic ranking model (BM25) to figure out which records are most relevant and then filters the corpus to find the top-m records that are lexically similar.
The query gives back a payload of documents that were found, which includes both the raw text and the class labels that go with it. These results are subsequently parsed and stored in a candidate list: , which is used as the input for the downstream similarity computation and label fusion steps.
4.2.2. Gzip + kNN Module
This module integrates the gzip lossless compression algorithm, a compression-based distance metric, and a kNN classifier, as illustrated in Figure 2.
Figure 2.
gzip + kNN distance metric approach overview.
In terms of implementation, gzip is employed to compute a compression-based distance. Let denote the length of after compression using gzip. Similarly, let represent the compressed length of the concatenation of texts and . Based on the CLM, the distance between two texts can be calculated and subsequently used for classification via the kNN algorithm.
This module is efficiently implemented in Python using only 13 lines of code, as detailed in Algorithm 3. The input to the module includes the candidate document list , the test sample , and the parameter k specifies the number of nearest neighbors considered for majority voting in the classification process.
| Algorithm 3 Python Code for Text Classification with gzip + CLM + kNN |
|
4.2.3. TF-IDF + kNN Module
This module computes lexical similarity between the test text and the training samples using the TF-IDF representation. The top k most similar texts are then selected using cosine similarity, and their labels are used to determine the final classification.
The processing steps are as follows:
- 1.
- Construct a vocabulary by extracting all unique words from the candidate document list .
- 2.
- Compute the TF-IDF values for each text in S, resulting in a TF-IDF matrix where each row corresponds to a document and each column represents a word in the vocabulary.
- 3.
- Apply the same preprocessing steps to the test text and compute its TF-IDF vector using the same vocabulary.
- 4.
- Calculate the cosine similarity between the test vector and each row in the TF-IDF matrix. The cosine similarity between vectors A and B is given by:
Based on the calculated similarity scores, the k training samples that are most like the test text are chosen. In the next step of voting, their matching labels are used to make predictions about the candidates.
4.2.4. Jaccard + kNN Module
This module works on a strictly set-theoretic basis and gives more weight to the occurrence of binary tokens than to their frequency magnitude. Let t be the query instance and S be the pool of candidates that were found and contain labeled training examples.
The algorithmic workflow proceeds as follows:
- 1.
- Preprocess all texts by normalizing and tokenizing them into sets of unique words.
- 2.
- The system calculates the Jaccard coefficient for the query t against each document in S, which gives a number that shows the intersection-over-union ratio.
- 3.
- The candidate pool S is reordered by descending similarity coefficient, isolating the nearest neighbors.
- 4.
- Choose the k documents that are most like t, and then use majority voting to find out what t is by looking at the labels of these k neighbors.
This module introduces a structural similarity metric that is not affected by changes in frequency by removing term frequency and sequence order. This gives an orthogonal signal that works well with the statistical and information-theoretic modes of TF-IDF and gzip.
4.2.5. Integration Module
This module combines the predictions from the gzip + kNN, TF-IDF + kNN, and Jaccard + kNN modules using a weighted voting system that takes advantage of their strengths and improves the overall accuracy of the classification. The next parts make the voting strategy official and give reasons for why it works based on theory and evidence.
Voting Mechanism. For a given text t, each module makes a ranked list of the top k labels. Gzip captures information-theoretic similarity and outputs Lg = [labg1, …, labgk], TF-IDF captures lexical relevance and outputs Lt = [labt1, …, labtk], and Jaccard measures structural overlap and outputs Lj = [labj1, …, labjk]. To combine these outputs, the module fixes each one without slowing down the computer. The integration proceeds as follows.
- 1.
- Flatten the outputs into a unified candidate label list: .
- 2.
- Count the frequency of each label in L to obtain the total number of votes per label.
- 3.
- Sort the labels in descending order based on their vote counts.
- 4.
- Select the top-k labels as the final prediction for the test instance.
An equal weighting scheme is employed, as ablation studies (see Section 5.3.5) indicate that it performs comparably to or better than learned weights while mitigating the risk of overfitting.
Theoretical and Empirical Justification. The bias-variance tradeoff principle guides the design of the integration module. For example, gzip makes OOD data more robust by using universal compression-based similarity, TF-IDF makes in-distribution data less variable by using word frequency statistics to make predictions, and Jaccard makes data more regular by using set-based overlap. This combination of orthogonal similarity measures helps models work better with different types of data. The integration is also non-parametric and doesn’t require training, which makes it scalable, adaptable, and computationally efficient—qualities that are important for use in environments with limited resources.
5. Experiment
5.1. Experimental Environment and Datasets
The experiments were conducted on a system running Ubuntu 20.04 with 16 GB of RAM, without requiring GPU resources. The main software and libraries used in this study include Python 3.8.5, Elasticsearch 7.8.1, and Gensim 4.0.0, all of which are lightweight, widely accessible, and easy to set up.
A diverse range of datasets was selected to examine how factors such as training sample size, class count, text length, and distributional differences influence classification accuracy. Table 1 summarizes these datasets, adapted from [8], the abbreviations are defined as follows: SN denotes the dataset abbreviation; NEtrain and NEtest correspond to the counts of examples in the training and test sets, respectively; NC specifies the total classes. Previous studies indicate that CNN- and RNN-based methods favor large datasets such as AGNews, while graph-based methods target smaller ones such as 20News, Ohsumed, R8, and R52 [1]. Addressing generalization on OOD datasets remains a challenge; Yu et al. [21] noted that improving in-distribution accuracy for pretrained models may degrade their OOD performance. To evaluate the proposed approach under realistic distribution shifts, this work selected four datasets that are OOD relative to the English-centric training corpora typically used in text classification benchmarks. Following the framework of Yang et al. [3], OOD data are defined as samples drawn from a distribution that differs systematically from the training distribution in terms of language, domain, vocabulary, and/or topic. The selected OOD datasets-KinyarwandaNews, KirundiNews, DengueFilipino, and SwahiliNews-exhibit the following shifts: (1) cross-lingual shift (Bantu languages and Filipino not covered by standard English pretraining corpora), and (2) domain-vocabulary shift (e.g., public health terminology in DengueFilipino).
Table 1.
Specifics of the assessment datasets.
In terms of data preprocessing, all datasets underwent a uniform preprocessing pipeline: texts were cleaned (HTML/URL removal, lowercasing), tokenized via whitespace splitting, and English stopwords were removed for English datasets. Digits were replaced with a special token, and extra whitespace was collapsed. For TF-IDF, a vocabulary was built from the training split with a minimum document frequency of 1. The preprocessed text (after cleaning and lowercasing) is indexed using the standard analyzer as described in Section 4.1, which performs its own tokenization and stopword filtering for retrieval purposes. The same preprocessing was applied consistently to training and test sets without task-specific tuning.
These datasets are intentionally chosen to test vocabulary, syntactic, and topical distributional shifts—key challenges in real-world deployment. Table 1 summarizes their statistical properties, including vocabulary size (VS), average word count (NW), and character count (NL). The large vocabulary differences (e.g., 570 K for SwahiliNews vs. 128 K for AGNews) highlight the lexical shift, while variations in average text length reflect structural differences.
5.2. Baselines and Implementation Details
The results of this study are evaluated against two types of methods: (1) neural network-based approaches requiring training and (2) non-parametric approaches utilizing the kNN classifier, either directly or with pre-training on external data. For text classification, this work especially consider widely adopted architectures, including logistic regression, fastText [27], RNNs with and without attention mechanisms (such as bidirectional LSTMs [28] enhanced by attention [29], and hierarchical attention networks [30]), CNNs (e.g., character-level CNNs [16], recurrent CNNs [31], and deep CNNs [32]), as well as BERT [20]. Additionally, three other non-parametric techniques, such as word2vec (W2V) [33], pretrained sentence BERT (SentBERT) [34], and gzip [8] are incorporated in the comparison.
For all baseline models, this study adopt the same hyperparameter settings as described in [8] for both the full-dataset and few-shot settings. All experiments adhere to the predefined training/test splits listed in Table 1. For few-shot settings, labeled examples are randomly sampled from the training set, and results are averaged over five independent runs with different random seeds to ensure statistical reliability. For the proposed method, the only hyperparameters are the ES retrieval size (m) and the kNN classifier size (k). During the empirical evaluation, this study implemented a consistent hyperparameter schema, establishing the retrieval size at and , and documenting the maximum accuracy achieved under these parameters. When it comes to computational throughput, inference on the AGNews corpus takes about 130 s, and for larger datasets, it takes about 800 s. The OOD assessments strictly followed a zero-adaptation protocol, which meant that models were only trained on the in-distribution source domains listed in Table 1. This made sure that there was no gradient fine-tuning or statistical exposure to the target OOD environments.
5.3. Results and Analysis
5.3.1. Results and Analysis on In-Distribution Datasets
Table 2 shows a real-world landscape that helps us understand how well the architectures we looked at work on the AGNews, 20News, Ohsumed, R8, and R52 benchmarks. EGTJ is different from traditional models that require a lot of computation for pre-training or iterative gradient descent because it uses a strictly non-parametric, training-free approach. This architectural independence makes it much easier to deploy high-resource models, so there’s no need for complicated data curation or special hardware. Quantitative analysis shows that EGTJ sets a new record on the AGNews corpus with an accuracy of 0.966, which is better than both supervised and pre-trained baselines. Even when fine-tuned BERT models are slightly better—specifically on 20News and R52—EGTJ comes close to this level of performance with very small differences of 0.001 and 0.009, respectively. In addition, the results support the idea that the proposed hybrid fusion strategy effectively cancels out the differences that are naturally present in single-modality similarity metrics. This is shown by the fact that it achieved top-tier accuracy on R8 (0.985) and matched the fidelity of heavy Transformer architectures in other places.
Table 2.
Test accuracy comparison with the proposed method, including previously published results for all baseline models from [8].
5.3.2. Results and Analysis on Out-of-Distribution Datasets
Figure 3 shows the results of the empirical evaluation on OOD datasets, and Table 3 shows more detailed metrics. As shown, EGTJ always gets better average accuracy than baseline architectures in the KinyarwandaNews, KirundiNews, DengueFilipino, and SwahiliNews corpora, whether in full-shot or 5-shot scenarios. To ensure that the few-shot experiments were statistically sound, labeled examples were randomly chosen from a fixed set of five different seeds (0–4) and used the same way for all models. This strong performance shows how flexible and general the framework is, especially in situations where there isn’t a lot of data. This success can likely be attributed to its feature extraction and fusion mechanisms work together in a smart way that lets the model find useful signals in small amounts of observational data.
Figure 3.
Comparison of accuracy of different models on full-shot and five-shot scenario using the OOD datasets. The symbol “#” denotes the number of labeled examples per class.
Table 3.
Test accuracy in a full-shot and five-shot scenario using OOD datasets, with a 95% confidence interval over five trials.
Comparative analysis shows that there is a lot of variation in performance across datasets. This is probably because the model architecture interacts with the specific characteristics of the data. Table 4 shows that EGTJ has better average test accuracy than all the other methods. The framework is not only very accurate, but it is also very fast and easy to use. It doesn’t need any pre-training or gradient optimization. This makes EGTJ a very powerful tool for text classification that is a good alternative to deep learning models. It’s worth noting that the standalone gzip model gets almost perfect accuracy (0.998) in the full-shot DengueFilipino scenario, but EGTJ does better in the harder 5-shot setting. The fact that DengueFilipino and SwahiliNews do better than KinyarwandaNews and KirundiNews in 5-shot tests suggests that the datasets are inherently different in terms of how hard they are to work with.
Table 4.
Comparison of test accuracy between EGTJ and the average of all baseline models.
Concerning model characteristics, sequence-dependent models like Bi-LSTM+Attn and HAN exhibit significant degradation in the 5-shot scenario, presumably due to their dependence on extensive temporal contexts that are not present in the few-shot scenario. On the other hand, fastText and Word2Vec are moderately resilient, which shows that static word embeddings can be useful for low-resource learning. Pre-trained Transformers like SentBERT and BERT improve accuracy through contextual transfer, but EGTJ always does better in the important 5-shot OOD context. Even when compared to the strong baseline of pure gzip compression, EGTJ shows better fidelity in both full-shot and few-shot scenarios. This supports the idea that a hybrid fusion strategy makes feature extraction more robust.
When it comes to model characteristics, sequence-dependent models like Bi-LSTM+Attn and HAN do much worse in the 5-shot scenario. This is likely because they rely on long-term temporal contexts that aren’t present in the few-shot scenario. FastText and Word2Vec, on the other hand, are somewhat resilient. This shows that static word embeddings can be helpful for learning with few resources. Pre-trained Transformers like SentBERT and BERT make things more accurate by transferring context, but EGTJ always does better in the important 5-shot OOD context. EGTJ has better fidelity in both full-shot and few-shot situations, even when compared to the strong baseline of pure gzip compression. This backs up the idea that a hybrid fusion strategy makes it easier to get features out of data.
EGTJ is very effective at few-shot learning, and in the 5-shot scenario, it had the highest accuracy of all the OOD datasets that were tested. These results highlight the essential importance of integrating various feature extraction modalities and confirm the requirement for generalization-oriented architectures to manage heterogeneous data distributions.
5.3.3. Few-Shot Learning
This study used the AGNews, DBpedia, and SogouNews corpora to compare EGTJ to a range of deep learning architectures in a few-shot learning framework to rigorously test its effectiveness in situations where data is scarce. We divided these datasets into groups based on how many records they had and how many languages they spoke to make it possible to evaluate them up to the 100-shot mark. For the experiments, we randomly chose n-shot labeled examples from each class, where n was one of the following: 5, 10, 50, or 100. The comparative cohort includes a wide range of parameter complexity, from parameter-free compression models (gzip) to minimal-parameter embeddings (Word2Vec, Sentence-BERT) and n-gram baselines (fastText), as well as word-based neural architectures like HAN.
Figure 4 shows the different performance paths, while Table 5, Table 6 and Table 7 give more detailed information. EGTJ always does better than non-pretrained neural baselines (like Bi-LSTM+Attn and HAN) and the standard gzip model at all shot horizons. In the extreme 5-shot setting, EGTJ gets an accuracy of , which is 7% better than gzip, its closest competitor without parameters. This path of better effectiveness continues through the 10-, 50-, and 100-shot increments, which shows that the framework is strong in environments with little supervision.
Figure 4.
Comparing several techniques with varying shots# (where “#” indicates the number of labeled examples per class) and a 95% confidence interval across five trials.
Table 5.
Few-shot results on AGNews.
Table 6.
Few-shot results on DBpedia.
Table 7.
Few-Shot results on SogouNews.
As the supervision signal gets stronger, EGTJ shows that its performance is getting closer to that of heavy, pre-trained architectures. In the 100-shot setting of the AGNews dataset, the framework gets an accuracy of , which is better than SentBERT’s . This parity is especially important because the computational overhead is not the same; EGTJ provides competitive fidelity without the huge amounts of data and pre-training cycles that Transformer-based encoders need. Further analysis shows that the framework is better in real-world 5-shot OOD situations. Table 3 shows that EGTJ performs much better than deep learning methods. In particular, EGTJ shows accuracy gains of 145.8%, 78.7%, 71%, and 88% across the four OOD datasets when compared to BERT. Also, it beats the standalone gzip baseline by 29%, 27.5%, 7.5%, and 18.8%, respectively.
This work attribute this dominance in few-shot situations is because compression algorithms provide intrinsic regularization that effectively captures structural regularities when there isn’t enough labeled data for gradient convergence. Also, the synergistic combination of orthogonal feature extraction methods makes inference more stable, which lowers the risk of overfitting that deep neural networks often face when there isn’t enough data.
5.3.4. Time Performance Evaluation
This section measured the inference latency of EGTJ against the standard gzip baseline across the full dataset spectrum to see how well the proposed architecture worked. Figure 5 shows how the two systems compare over time. The real-world data shows that EGTJ always gives better throughput. This speedup is most noticeable on large corpora like AGNews, 20News, and SwahiliNews, where the proposed method cuts processing time by orders of magnitude compared to the exhaustive compression baseline. EGTJ still has a big latency advantage even with medium-sized datasets like Ohsumed, R8, R52, and KinyarwandaNews.
Figure 5.
Test time performance on all datasets (unit: second).
This analysis underscores the algorithmic efficiency of the EGTJ framework. By drastically curtailing computational overhead, the model not only offers a viable solution for real-time text processing but also enables scalable data analytics within resource-constrained environments previously inaccessible to pure compression-based methods.
5.3.5. Results and Analysis on Ablation Experiment
We did a full ablation study to systematically test how well each module in the EGTJ framework worked on its own. This study compared the full architecture to four different structural variants and a weighted voting option across the entire dataset spectrum. The empirical results are summarized in Table 8.
Table 8.
Test accuracy results for the EGTJ model and its ablation variants.
EGTJw/oJ: Excludes Jaccard similarity.
EGTJw/oJG: Excludes Jaccard + gzip.
EGTJw/oJT: Excludes Jaccard + TF-IDF.
EGTJw/oGT: Excludes gzip + TF-IDF.
EGTJ-Weighted: Replaces equal voting with learned weights (optimized per dataset).
The results clearly show that the full EGTJ architecture is better than any of the ablated versions, with performance margins of 2.1% to 12.3%. When the gzip + TF-IDF subsystem was removed from the Ohsumed dataset, the accuracy dropped sharply from 65.2% to 52.9%. This shows how important this synergistic fusion is. The gzip and TF-IDF modules are the most important parts, and taking them out lowers performance by an average of 6.4%. On the other hand, the Jaccard module is an important stabilizer that improves accuracy by 3.1% on the SwahiliNews dataset.
Comparisons with a weighted voting variant resulted in minimal enhancements over the standard equal-weight consensus, thereby affirming the parsimony of the proposed unweighted design. Granular analysis reveals domain-specific dependencies: the TF-IDF + Jaccard combination prevails in medical contexts (Ohsumed), while the gzip + Jaccard pairing is adequate for short-text classification (DengueFilipino). The full model is very strong in OOD situations, where leaving out Jaccard or TF-IDF only caused a small drop (≤1.5%), but leaving out gzip caused a big drop (≤8.9%). This difference shows that the framework’s ability to generalize is mainly due to the balanced integration of orthogonal metrics.
5.3.6. Impact of ES Retrieval Size on Downstream Performance
This section performed a systematic sensitivity analysis of the ES candidate set size (m) to empirically ascertain the optimal retrieval horizon, evaluating its dual influence on classification accuracy and computational efficiency. Table 9 shows the important trade-offs in performance that were seen in two datasets that are typical of the kinds of data we work with.
Table 9.
Accuracy and Time per Query for different datasets and m sizes.
The experimental data show that is the point of inflection where predictions are most accurate and take the least time to make. In particular, setting on the AGNews benchmark gives an accuracy of 96.6%, which is the same as the setting, and it cuts the time it takes to run a query by 86%. The model also gets 92.8% accuracy on the KirundiNews dataset at , which is the same as the baseline but with a 2.3× faster inference speed. If the retrieval horizon is set to more than , the accuracy doesn’t get much better, but the cost of computing goes up in a straight line.
6. Conclusions
6.1. Limitations
EGTJ is accurate and works well, but it does have some issues. Keeping up with ES indices takes up more memory and storage space. Even though ES pre-filtering speeds up retrieval, it might be necessary to use it on more than one server to handle very large corpora, like hundreds of millions of documents. EGTJ is a non-parametric method, so it doesn’t directly model semantics. This could make it harder to do tasks that require a deep understanding of context. These limits make it more likely that more extensions will be made and point to useful deployment factors.
6.2. Conclusions and Future Work
This study introduces EGTJ, an effective unsupervised framework that integrates ES, gzip compression, TF-IDF, and Jaccard similarity into a cohesive AI-NLP pipeline for text classification in resource-constrained environments. EGTJ meets the need for lightweight, training-free, and strong systems that can work with limited data and computing power by combining classical retrieval and similarity metrics. Extensive experimental results validate that the proposed EGTJ framework not only achieves superior classification accuracy over both traditional baselines and pre-trained models across in-distribution, OOD and few-shot learning scenarios, but also delivers significantly improved computational efficiency by virtue of the ES pre-filtering strategy.
Future work will focus on hybrid neural-classical compression to enhance semantic understanding while preserving efficiency, together with adaptive metric weighting to improve generalization across diverse data distributions. These improvements are meant to make the framework less sensitive and fill in semantic gaps while keeping its main computational benefits. This makes it a useful option for real-world use and helps to make AI-powered NLP tools more accessible.
Author Contributions
Conceptualization, H.L.; Methodology, H.L.; Software, H.L.; Validation, H.L.; Formal analysis, H.L.; Investigation, Y.D.; Resources, Y.D.; Data curation, Y.D.; Writing—original draft, H.L.; Writing—review & editing, Y.D.; Visualization, Y.D.; Supervision, Y.D.; Project administration, Y.D.; Funding acquisition, Y.D. All authors have read and agreed to the published version of the manuscript.
Funding
This work is supported by the National Key Research and Development Program of China under grant 2023YFB3107300.
Data Availability Statement
The dataset used in this study is available upon request from the corresponding author.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Li, Q.; Peng, H.; Li, J.; Xia, C.; Yang, R.; Sun, L.; Yu, P.S.; He, L. A Survey on Text Classification: From Traditional to Deep Learning. ACM Trans. Intell. Syst. Technol. (TIST) 2022, 13, 1–41. [Google Scholar] [CrossRef] [Scilit]
- Wang, T.; Liu, L.; Liu, N.; Zhang, H.; Zhang, L.; Feng, S. A Multi-Label Text Classification Method via Dynamic Semantic Representation Model and Deep Neural Network. Appl. Intell. 2020, 50, 2339–2351. [Google Scholar] [CrossRef] [Scilit]
- Yang, J.; Wang, P.; Zou, D.; Zhou, Z.; Ding, K.; Peng, W.; Wang, H.; Chen, G.; Li, B.; Sun, Y.; et al. OpenOOD: Benchmarking Generalized Out-of-Distribution Detection. Adv. Neural Inf. Process. Syst. 2022, 35, 32598–32611. [Google Scholar]
- Adhikari, A.; Ram, A.; Tang, R.; Lin, J. Rethinking Complex Neural Network Architectures for Document Classification. In Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Minneapolis, MN, USA, 2–7 June 2019; pp. 4046–4051. [Google Scholar]
- Shen, D.; Wang, G.; Wang, W.; Min, M.R.; Su, Q.; Zhang, Y.; Li, C.; Henao, R.; Carin, L. Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanisms. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, Melbourne, Australia, 15–20 July 2018; pp. 440–450. [Google Scholar]
- Sundaram, V.; Ahmed, S.; Muqtadeer, S.A.; Reddy, R.R. Emotion Analysis in Text Using TF-IDF. In Proceedings of the 2021 11th International Conference on Cloud Computing, Data Science & Engineering (Confluence), Noida, India, 28–29 January 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 292–297. [Google Scholar]
- Huynh, H.T.; Duong-Trung, N.; Truong, D.Q.; Huynh, H.X. Vietnamese Text Classification with TextRank and Jaccard Similarity Coefficient. Adv. Sci. Technol. Eng. Syst. J. 2020, 5, 363–369. [Google Scholar] [CrossRef] [Scilit]
- Jiang, Z.; Yang, M.; Tsirlin, M.; Tang, R.; Dai, Y.; Lin, J. “Low-Resource” Text Classification: A Parameter-Free Classification Method with Compressors. In Proceedings of the Findings of the Association for Computational Linguistics: ACL 2023, Toronto, ON, Canada, 9–14 July 2023; pp. 6810–6828. [Google Scholar]
- Kim, M.; Kim, D. A Suggestion on the LDA-Based Topic Modeling Technique Based on Elasticsearch for Indexing Academic Research Results. Appl. Sci. 2022, 12, 3118. [Google Scholar] [CrossRef] [Scilit]
- Qin, J.; Zhou, Z.; Tan, Y.; Xiang, X.; He, Z. A Big Data Text Coverless Information Hiding Based on Topic Distribution and TF-IDF. Int. J. Digit. Crime Forensics (IJDCF) 2021, 13, 40–56. [Google Scholar] [CrossRef] [Scilit]
- Arabi, H.; Akbari, M. Improving Plagiarism Detection in Text Document Using Hybrid Weighted Similarity. Expert Syst. Appl. 2022, 207, 118034. [Google Scholar] [CrossRef] [Scilit]
- Bennett, C.H.; Gács, P.; Li, M.; Vitányi, P.M.; Zurek, W.H. Information Distance. IEEE Trans. Inf. Theory 1998, 44, 1407–1423. [Google Scholar] [CrossRef] [Scilit]
- Cilibrasi, R.; Vitányi, P.M.B. Clustering by Compression. IEEE Trans. Inf. Theory 2005, 51, 1523–1545. [Google Scholar] [CrossRef] [Scilit]
- Montemurro, M.A. Beyond the Zipf–Mandelbrot Law in Quantitative Linguistics. Physica A 2001, 300, 567–578. [Google Scholar] [CrossRef] [Scilit]
- Yao, L.; Mao, C.; Luo, Y. Graph Convolutional Networks for Text Classification. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; Volume 33, pp. 7370–7377. [Google Scholar]
- Zhang, X.; Zhao, J.; LeCun, Y. Character-Level Convolutional Networks for Text Classification. Adv. Neural Inf. Process. Syst. 2015, 28, 649. [Google Scholar]
- Chung, J.; Gulcehre, C.; Cho, K.H.; Bengio, Y. Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. arXiv 2014, arXiv:1412.3555. [Google Scholar] [CrossRef] [Scilit]
- Zhou, P.; Shi, W.; Tian, J.; Qi, Z.; Li, B.; Hao, H.; Xu, B. Attention-Based Bidirectional Long Short-Term Memory Networks for Relation Classification. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, Berlin, Germany, 7–12 August 2016; pp. 207–212. [Google Scholar]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention Is All You Need. Adv. Neural Inf. Process. Syst. 2017, 30, 5998–6008. [Google Scholar]
- Devlin, J.; Chang, M.W.; Lee, K.; Toutanova, L. BERT: Pre-Training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the NAACL-HLT 2019, Minneapolis, MN, USA, 2–7 June 2019; pp. 4171–4186. [Google Scholar]
- Yu, Y.; Jiang, H.; Bahri, D.; Mobahi, H.; Kim, S.; Rawat, A.S.; Veit, A.; Ma, Y. An Empirical Study of Pre-Trained Vision Models on Out-of-Distribution Generalization. In Proceedings of the NeurIPS 2021 Workshop on Distribution Shifts: Connecting Methods and Applications, Vancouver, BC, Canada, 13 December 2021. [Google Scholar]
- Chen, X.; Kwong, S.; Li, M. A Compression Algorithm for DNA Sequences and Its Applications in Genome Comparison. In Proceedings of the Fourth Annual International Conference on Computational Molecular Biology, Tokyo, Japan, 8–11 April 2000; p. 107. [Google Scholar]
- Li, M.; Badger, J.H.; Chen, X.; Kwong, S.; Kearney, P.; Zhang, H. An Information-Based Sequence Distance and Its Application to Whole Mitochondrial Genome Phylogeny. Bioinformatics 2001, 17, 149–154. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, M.; Chen, X.; Li, X.; Ma, B.; Vitányi, P.M. The Similarity Metric. IEEE Trans. Inf. Theory 2004, 50, 3250–3264. [Google Scholar] [CrossRef] [Scilit]
- Robertson, S.; Zaragoza, H. The Probabilistic Relevance Framework: BM25 and Beyond; Now Publishers Inc.: Hanover, MA, USA, 2009. [Google Scholar]
- Zhang, Y.-L.; Shi, Q.; Li, M.; Yang, X.; Li, L.; Zhou, J. A Classification-Based Ensemble Pruning Framework with Multi-Metric Consideration. In Proceedings of SAI Intelligent Systems Conference, Amsterdam, The Netherlands, 2–3 September 2021; Springer: Berlin/Heidelberg, Germany, 2021; pp. 650–667. [Google Scholar]
- Joulin, A.; Grave, E.; Mikolov, P.B.T. Bag of Tricks for Efficient Text Classification. In Proceedings of the EACL 2017, Valencia, Spain, 3–7 April 2017; p. 427. [Google Scholar]
- Schuster, M.; Paliwal, K.K. Bidirectional Recurrent Neural Networks. IEEE Trans. Signal Process. 1997, 45, 2673–2681. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.; Huang, M.; Zhu, X.; Zhao, L. Attention-Based LSTM for Aspect-Level Sentiment Classification. In Proceedings of the EMNLP 2016, Austin, TX, USA, 1–5 November 2016; pp. 606–615. [Google Scholar]
- Yang, Z.; Yang, D.; Dyer, C.; He, X.; Smola, A.; Hovy, E. Hierarchical Attention Networks for Document Classification. In Proceedings of the NAACL-HLT 2016, San Diego, CA, USA, 2–17 June 2016; pp. 1480–1489. [Google Scholar]
- Lai, S.; Xu, L.; Liu, K.; Zhao, J. Recurrent Convolutional Neural Networks for Text Classification. In Proceedings of the AAAI Conference on Artificial Intelligence, Austin, TX, USA, 25–30 January 2015; Volume 29. [Google Scholar]
- Conneau, A.; Schwenk, H.; LeCun, Y.; Lecun, Y. Very Deep Convolutional Networks for Text Classification. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics, Valencia, Spain, 3–7 April 2017; Association for Computational Linguistics: Stroudsburg, PA, USA, 2017; pp. 1107–1116. [Google Scholar]
- Mikolov, T.; Chen, K.; Corrado, G.; Dean, J. Efficient Estimation of Word Representations in Vector Space. arXiv 2013, arXiv:1301.3781. [Google Scholar] [CrossRef] [Scilit]
- Reimers, N.; Gurevych, I. Sentence-BERT: Sentence Embeddings Using Siamese BERT-Networks. In Proceedings of the EMNLP-IJCNLP 2019, Hong Kong, China, 3–7 November 2019; pp. 3982–3992. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.




