Enhancing BiGRU with a KAN Block for Legal Document Classification and Summarization
Summary
This paper introduces a KAN-enhanced BiGRU architecture for classifying and summarizing multilingual legal documents from Bangladesh, achieving modest accuracy and ROUGE scores and demonstrating that the KAN block improves classification accuracy over the baseline BiGRU.
View Cached Full Text
Cached at: 06/02/26, 03:36 PM
# Enhancing BiGRU with a KAN Block for Legal Document Classification and Summarization
Source: [https://arxiv.org/html/2606.00116](https://arxiv.org/html/2606.00116)
Ahmed Faizul Haque Dhrubo1,\*,Souvik Pramanik1,Most\. Aysha Siddika Sumona1, Shahnewaz Siddique1,Mohammad Ashrafuzzaman Khan1,Mohammad Abdul Qayum1, Mohsin Sajjad1 1Dept\. of ECE North South University, Dhaka, Bangladesh E\-mail :\{ahmed\.dhrubo, souvik\.pramanik, most\.sumona, shahnewaz\.siddique, mohammad\.khan02, mohammad\.qayum, mohsin\.sajjad\}@northsouth\.edu \*Correspondence:[ahmed\.dhrubo@northsouth\.edu](https://arxiv.org/html/2606.00116v1/mailto:[email protected])
###### Abstract
This study introduces a novel architecture of KAN\-based BiGRU model for the task of classification and summarization of legal documents in a low\-resource multilingual setup\. In order to tackle problems associated with domain language, the usage of different languages, long dependencies within context, and class imbalance, we employ the dataset composed of legal documents from Bangladesh and taken from Manupatra, which include Bengali, English, and transliterated Bengali languages\. Our classification task involves BiGRU model, along with Kolmogorov\-Arnold Network \(KAN\) module, while the summarization part utilizes attention\-based GRU, combined with a KAN model head\. Classification model yields 67\.96% of accuracy and 0\.65 F1 score; while ROUGE\-1, ROUGE\-2, and ROUGE\-L measures for summarization yield 0\.38, 0\.23, and 0\.31 F1 scores, correspondingly\. Ablation study shows that the use of KAN increases classification accuracy from 57\.34% to 67\.96%\. Moreover, our proposed technique is compared to several baselines, including classical ML algorithms and pretrained language models\.
Enhancing BiGRU with a KAN Block for Legal Document Classification and Summarization
Ahmed Faizul Haque Dhrubo1,\*, Souvik Pramanik1, Most\. Aysha Siddika Sumona1,Shahnewaz Siddique1,Mohammad Ashrafuzzaman Khan1,Mohammad Abdul Qayum1,Mohsin Sajjad11Dept\. of ECE North South University, Dhaka, BangladeshE\-mail :\{ahmed\.dhrubo, souvik\.pramanik, most\.sumona,shahnewaz\.siddique, mohammad\.khan02, mohammad\.qayum,mohsin\.sajjad\}@northsouth\.edu\*Correspondence:[ahmed\.dhrubo@northsouth\.edu](https://arxiv.org/html/2606.00116v1/mailto:[email protected])
Figure 1:Visual Abstract\.## 1Introduction
### 1\.1Motivation and Background
There have been rapid advancements in natural language processing in recent times, but document comprehension in legal texts continues to be problematic in terms of classification and summarization\. Recent research on legal NLP has shown the importance of addressing challenges such as multilingualism and domain\-specific terminologyJones and Smith \([2019](https://arxiv.org/html/2606.00116#bib.bib22)\)\. These issues are particularly evident when working with legal datasets from countries like Bangladesh, where legal documents often include a mix of Bengali, English, and transliterated Bengali\. Existing work on legal text classification and summarization has primarily focused on more homogenous datasets or English\-centric legal textsSmith and Johnson \([2020](https://arxiv.org/html/2606.00116#bib.bib24)\)\. Legal texts, including case notes, ruling decisions, and judgments, tend to be lengthy and structured\. Furthermore, they contain specialized terminologies\. This makes it hard for existing models to incorporate long\-term dependency and capture both local semantics\. The situation worsens in low resource multilingual settings for legal applications\. The present data is collected from Bangladesh, and it includes documents written in Bengali, English, and transliteration of Bengali text\. In such cases, multilinguality, along with vocabulary variation, adds to the complexity of the problem\. Moreover, there exists imbalance between the labels\. Thus, it is not easy to obtain accurate classification results\. Classification and summarization of legal documents help researchers conduct studies about different case outcomes\. Furthermore, it assists decision\-making\. For instance, automatic classification and summarization could assist lawyers to organize their cases properly\. Nevertheless, an efficient system needs to cater to all these factors in order to classify documents effectively\. Hence, this paper explores whether KAN can enhance recurrent architectures for this purpose\.
### 1\.2Objectives and Contributions
In this work, we investigate the classification and summarization of legal documents employing recurrent networks augmented by the KAN module\. For classification, we employ a BiGRU network with a KAN classifier, while for summarization, we employ an attentional GRU network with a KAN classifier\. Instead of introducing a novel backbone, we focus on the impact of KAN as a network augmentation technique\. The contributions of our work are the following:
1. 1\.We introduce BiGRU\-KAN and a KAN\-assisted attentional GRU architecture for classification and summarization of legal documents\.
2. 2\.The models are trained and tested using a Bangladeshi legal document dataset with classes represented in Bengali, English, and Romanized Bengali languages\.
3. 3\.An ablation study proves the effectiveness of KAN, increasing classification accuracy from 57\.34% to 67\.96%\.
4. 4\.The performance of the proposed technique is compared to conventional machine learning and pre\-trained language models, with class imbalance mitigation usingWeightedRandomSampler\.
### 1\.3Organization of the Paper
The remainder of the paper is organized as follows\. Section[2](https://arxiv.org/html/2606.00116#S2)reviews related work on legal document classification, legal summarization, and KAN\-based modeling\. Section[3](https://arxiv.org/html/2606.00116#S3)describes the dataset, preprocessing pipeline, and dataset statistics\. Section[4](https://arxiv.org/html/2606.00116#S4)presents the proposed methodology, including the classification, summarization architectures and the system architecture\. Section[5](https://arxiv.org/html/2606.00116#S5)reports the experimental setup, baseline comparisons, ablation study, and main results\. Section[6](https://arxiv.org/html/2606.00116#S6)discusses the findings\. Section[7](https://arxiv.org/html/2606.00116#S7)describes the limitations and challenges of the study\.Lastly, Section[8](https://arxiv.org/html/2606.00116#S8)concludes the study and discusses the direction for future work\. The Appendix section presents the addition information of the experiment\.
## 2Related Work
Legal text processing studies have been mainly concentrated around two interconnected problems: classification and summarization\. Earlier researches of legal text classification utilized conventional machine learning techniques like support vector machines \(SVM\) and logistic regression in conjunction with specially designed features\(Cohen and Yang,[2003](https://arxiv.org/html/2606.00116#bib.bib8); Aletras and Stevenson,[2016](https://arxiv.org/html/2606.00116#bib.bib9)\)\. Such solutions were applicable in the context of rather small and structured texts but could not model more complex semantic relations due to their inability to process long\-distance dependencies\.
Later on, researchers turned to deep learning algorithms\. Recurrent neural networks and their modifications are widely applied now due to their ability to take into account the information from multiple perspectives\(Schuster and Paliwal,[1997](https://arxiv.org/html/2606.00116#bib.bib10); Chunget al\.,[2014](https://arxiv.org/html/2606.00116#bib.bib11)\)\. For instance, BiGRUs and BiLSTMs are commonly utilized as they provide information about the text from both left\-to\-right and right\-to\-left perspectives\(Schuster and Paliwal,[1997](https://arxiv.org/html/2606.00116#bib.bib10); Chunget al\.,[2014](https://arxiv.org/html/2606.00116#bib.bib11)\)\. Besides, pooling functions like max pooling or average pooling can be used for turning variable\-size inputs into a fixed dimension representation needed for classification\(Conneauet al\.,[2017](https://arxiv.org/html/2606.00116#bib.bib12)\)\. Despite that, the mentioned algorithms remain difficult to apply for legal NLP problems due to long input sizes, specialized vocabulary, and unbalanced classes\.
The approach to generating legal summaries has mostly utilized the encoder\-decoder architecture enhanced with attention mechanisms\(Bahdanauet al\.,[2015](https://arxiv.org/html/2606.00116#bib.bib13); Seeet al\.,[2017](https://arxiv.org/html/2606.00116#bib.bib14)\)\. The introduction of attention mechanisms enables the decoder to focus on the relevant portions of the input document while generating a summary\. Furthermore, pointer\-generator networks can produce more accurate summaries in areas like law by generating new words and copying from the original text\(Seeet al\.,[2017](https://arxiv.org/html/2606.00116#bib.bib14)\)\. These models outperform simple extractive techniques in generating high\-quality summaries for legal documents\. However, attention\-based neural networks fail to capture subtle legal nuances, long\-term dependencies, and generalization\.
Most recently, Kolmogorov–Arnold Networks \(KANs\) have emerged as alternatives to the conventional multilayer perceptron architecture by substituting fixed activation patterns with parameterized spline\-based edge functions\(Liuet al\.,[2024](https://arxiv.org/html/2606.00116#bib.bib15)\)\. The concept draws inspiration from the Kolmogorov–Arnold representation theorem\. Additionally, the KAN framework facilitates better interpretability compared to other networks\. KAN\-based elements have proven to be useful in contexts involving the modeling of intricate non\-linear relations\. Nonetheless, the application of KANs in legal NLP is yet to be explored, specifically in low\-resource multilingual scenarios\.
Building on these research trends, we contribute to legal NLP tasks in a challenging environment by analyzing the use of KAN architecture in legal NLP models\. In this study, instead of designing a new neural backbone for legal NLP models, we try to examine the impact of including a KAN block in the existing BiGRU framework for legal NLP tasks\. Another aspect of our proposed model is dealing with the problem of class imbalance, which is common in most legal datasets\.
## 3Dataset
### 3\.1Dataset Source and Characteristics
The dataset that is used in this project is obtained from ManupatraManupatrafast \([2026](https://arxiv.org/html/2606.00116#bib.bib16)\), which is an online platform for legal research that provides case notes, judgments, decisions, etc\. It includes legal documents written in Bangladeshi with corresponding labels of dispositions and summaries\. One of the important features of this dataset is that it is low\-resource and multi\-lingual\. This is because there are documents available in bothBengali,English, andTransliterated Bengalilanguages\. Due to the presence of different languages, the task becomes difficult because of the differences in the syntax and vocabulary of those languages\. The number of total samples in this dataset is2,937while the classDispositionis divided into10classes shown in the Figure[3](https://arxiv.org/html/2606.00116#S3.F3)\.
### 3\.2Preprocessing the Dataset
The following preprocessing techniques were utilized during the preparation of the data for building a model\.
- •Treatment of missing data:Missing values and placeholders likenan,null,nonewere standardized, along with irrelevant features\.
- •Normalization of text:The text was normalized to have a uniform representation\.
- •Alignment of labels and text:The duplicate or corrupt entries were deleted only when there was no influence on meaning or label assignments\.
- •Exploratory analysis of text:The text lengths were calculated for appropriate truncation and padding\.
- •Tokenization:Tokenization of the cleaned text was performed according to task guidelines\.
### 3\.3Data Split
In the current research, the data was split into two parts, which would be used for the purpose of training and evaluation respectively\.
- •Training set:2,349 cases
- •Held\-out evaluation set:588 cases
Figure 2:Data Split Distribution\.The division into these two categories was utilized during the process of training and evaluating the models the visualization of the these two categories are shown in Figure[2](https://arxiv.org/html/2606.00116#S3.F2)\.
### 3\.4Dataset Statistics and Exploratory Analysis
We carried out exploratory data analysis to better understand the structure and challenges of the corpus\.
- •The target variable,Disposition, is highly imbalanced across its 10 classes\. To reduce bias toward majority classes during training, we used weighted sampling\. The class distribution is shown in Figure[3](https://arxiv.org/html/2606.00116#S3.F3)\.
Figure 3:Class distribution of disposition labels\.- •The visualization of the most frequent terms in theCase Notesis shown as a word clod in the Figure[4](https://arxiv.org/html/2606.00116#S3.F4)to visually analyze the common terms of the dataset\.
Figure 4:Word cloud of frequent terms in case notes\.
## 4Methodology
### 4\.1Proposed Methodology
Figure 5:Proposed Methodology\.In this section, we introduce the proposed methodology for legal document classification and summarization\. In particular, our objective here is to investigate whether there can be any gain when a Kolmogorov–Arnold Network \(KAN\) block is added to the existing recurrent networks, which will benefit the modeling of sequential data from multilingual datasets with low resources\. Two similar models, namely legal document classification model with a BiGRU network and a KAN prediction head, and legal text summarization with an attention\-based GRU network and a KAN head, are used in our experiment\. The visual representation of theProposed Methodologyis shown in Figure[5](https://arxiv.org/html/2606.00116#S4.F5)\.
### 4\.2System Architecture
As mentioned above, the texts contained in our dataset can be characterized by their long lengths, domain specificity, and linguistic diversity \(Bengali, English, and transliterated Bengali\)\. Therefore, to handle such a challenge efficiently, it is necessary to utilize recurrent architectures to extract contextual information and further enrich their representations through the usage of the KAN blocks\. While working on classification, the legal texts are processed via a bidirectional gated recurrent unit \(BiGRU\) network and then fed into the KAN block after aggregation through pooling\. When working on summarization, we rely on an attention\-based GRU encoder\-decoder approach with a KAN head\. System Architecture of the proposed KAN\-enhanced framework is shown in the Figure[6](https://arxiv.org/html/2606.00116#S4.F6)\.
Figure 6:System architecture of the proposed KAN\-enhanced framework for legal document classification and summarization\.
### 4\.3Classification Model
Given an input legal documentXXthat can be denoted as a token sequence
X=\(x1,x2,…,xT\),X=\(x\_\{1\},x\_\{2\},\\ldots,x\_\{T\}\),the sequence will be firstly embedded and then fed into the BiGRU encoder\. For each time step, the concatenation of the forward and backward hidden states will generate the contextual embedding
ht=\[ht→;ht←\]\.h\_\{t\}=\[\\overrightarrow\{h\_\{t\}\};\\overleftarrow\{h\_\{t\}\}\]\.
In order to generate a fixed\-size document representation for classification tasks, we need to perform mean pooling and max pooling on the sequence of the hidden states:
hmean=1T∑t=1Tht,hmax=maxt=1,…,Tht\.h\_\{\\text\{mean\}\}=\\frac\{1\}\{T\}\\sum\_\{t=1\}^\{T\}h\_\{t\},\\qquad h\_\{\\text\{max\}\}=\\max\_\{t=1,\\ldots,T\}h\_\{t\}\.Then, the document representation will be generated as
hdoc=\[hmean;hmax\]\.h\_\{\\text\{doc\}\}=\[h\_\{\\text\{mean\}\};h\_\{\\text\{max\}\}\]\.
The document representation will be used to predict the disposition
### 4\.4Summarization Model
In our approach for legal document summarization, we adopt an attention\-based GRU seq2seq network model\. The input document text sequence is processed using the encoder module into contextual hidden representations, whereas the decoder module produces the summary sequence token by token, taking into account the important sections of the input sequence through attention mechanisms\.
The encoder hidden representation can be expressed as
H=\(h1,h2,…,hT\)\.H=\(h\_\{1\},h\_\{2\},\\dots,h\_\{T\}\)\.At time steptt, the attention mechanism constructs a context vectorctc\_\{t\}from the hidden encoder states, which is used by the decoder module in combination with its hidden state to produce the next token\. In order to increase the expressive capability of the summarization network, we add a KAN head above the attention\-based recurrent model of the summarization network\.
By doing so, the summarization model is able to model the contextual information effectively, along with utilizing the added non\-linearity provided by the KAN module\.
### 4\.5Improvements using KAN Block
For the proposed architecture, the KAN block is used as an architectural improvement rather than a replacement of the recurrent backbone\. In traditional gated recurrent units \(GRUs\), the hidden state at timettis given by
ht=\(1−zt\)⊙h~t\+zt⊙ht−1,h\_\{t\}=\(1\-z\_\{t\}\)\\odot\\tilde\{h\}\_\{t\}\+z\_\{t\}\\odot h\_\{t\-1\},whereztz\_\{t\}represents the update gate andh~t\\tilde\{h\}\_\{t\}the candidate hidden state\.
In the present case, the model uses the hidden state generated by the recurrent encoder as input to the KAN block such that
h^t=KAN\(ht\)\\hat\{h\}\_\{t\}=\\mathrm\{KAN\}\(h\_\{t\}\)or alternatively,
h^doc=KAN\(hdoc\)\.\\hat\{h\}\_\{\\text\{doc\}\}=\\mathrm\{KAN\}\(h\_\{\\text\{doc\}\}\)\.
Through the above formulation, the model learns a more complex and non\-linear transformation of the hidden state generated by the recurrent layer\. This approach allows for learning a richer representation of legal text compared to only modeling with the recurrent backbone\. In our experiment, the KAN block is used as a representation enhancement block for the summarization model and as the final transformation head for classification\.
### 4\.6Training Setup
The models were trained according to the dataset split discussed in Section 3\. In case of classification, the loss function for training the model uses the usual cross entropy formulation\. The loss function for training the model for summarization uses sequence\-to\-sequence training loss on the target summary tokens\. The hyperparameters chosen for our experiments include the following:
- •Number of epochs:200
- •Learning rate:2×10−52\\times 10^\{\-5\}
- •Batch size:8
- •Optimizer:Adam
- •Dropout:0\.2
The above hyperparameters have been selected to balance training stability, computational efficiency, and overfitting control under limited\-resource conditions\.
### 4\.7Class Imbalance
The distribution of target labels is extremely imbalanced for different dispositions\. In order to avoid the model’s bias towards classes dominating the dataset, we applyWeightedRandomSamplerwhen training the classifiers\. In this way, classes that have fewer samples will be seen more often by the model during the optimization process\. Since uniform sampling would favor majority classes, it cannot be used for classification tasks\. Standard batch formation technique is applied for summarization since it takes into account all examples and their target output\.
### 4\.8Performance Metrics
To quantify the performance of our models, we will use accuracy, macro\-F1 score, and weighted F1 score\. Accuracy reflects how many examples were correctly predicted in a test sample\. Macro\-F1 treats all classes equally, thus it is a good choice for imbalanced datasets\. Weighted F1 considers class balance but still tries to keep the balance between precision and recall\. ROUGE\-1, ROUGE\-2, and ROUGE\-L metrics are used to estimate performance for summarization models\. They consider the number of unigram, bigram, and longest common subsequences in generated summaries compared to the reference ones\.
## 5Results
### 5\.1Classification Results
For legal document classification, the proposedBiGRU \+ KANmodel achieved an accuracy of0\.6796, with amacro\-F1of0\.53and aweighted F1of0\.65on the held\-out evaluation set\. Since full F1\-based metrics were not available for every revised baseline experiment, Table[1](https://arxiv.org/html/2606.00116#S5.T1)reportsaccuracyfor the full set of compared models, while the main classification performance of the proposed model is stated explicitly above\.
CategoryModelAccuracyLogistic Regression0\.59Random Forest0\.62Classical MLSVM0\.62Naive Bayes0\.48KNN0\.58BERT0\.3813Legal\-BERT0\.3885PLMsRoBERTa0\.3741T50\.4101Longformer0\.4173BiLSTM \(w/o KAN\)0\.5188RecurrentBiGRU \(w/o KAN\)0\.5734BiGRU \+ KAN \(ours\)0\.6796Table 1:Accuracy comparison across classical machine learning models, pretrained language models, and recurrent architectures\.The suggested model, BiGRU \+ KAN, is the most accurate among all models and is much more accurate than the most accurate classical algorithms, which are random forest and support vector machine \(both have an accuracy of 0\.62\)\. Pre\-trained language models, on the other hand, are not as accurate\.
Figure 7:Confusion Matrix \(Top\-11 most frequent classes in test\) for the Disposition Classification task\.The confusion matrix is shown in Figure[7](https://arxiv.org/html/2606.00116#S5.F7)below\. The confusion matrix shows how well the model works based on the test data, with emphasis on the 11 top common classes\. Each row shows the actual class, whereas each column shows the prediction of the class\. Based on the matrix, we can see that our classifier does an excellent job at many classes such as "Appeal Allowed" with 27 correct predictions\. There is a certain degree of overlap among classes such as "Appeal Dismissed" and "Petition Dismissed\."
### 5\.2Ablation Study
To measure the effectiveness of KAN blocks, an ablation study was carried out on recurrent networks with and without KAN blocks\. As demonstrated by these experiments, a significant improvement in the classification process can be observed through the application of KAN, which introduces non\-linearity to the encoding process of the BiGRU/BiLSTM encoder\. It facilitates better class separation and makes it easier for the model to differentiate between similar legal classes\. With respect to summarization, although the attention\-based GRU encoder\-decoder model works effectively, the addition of a KAN block in the model ensures that the representation is refined before making tokens predictions\. Results of the ablation study are included in the Appendix[C](https://arxiv.org/html/2606.00116#A3)\.
### 5\.3Summarization Results
For legal document summarization, the proposed attention\-based GRU model with KAN achieved the best ROUGE scores among the evaluated summarization systems, as shown in Table[2](https://arxiv.org/html/2606.00116#S5.T2)\.
Table 2:Summarization performance comparison using ROUGE F1 scores\.The results indicate that the proposed summarization model produces better overlap with the reference summaries than the baseline recurrent and pointer\-generator models\. In particular, the model improves ROUGE\-1, ROUGE\-2, and ROUGE\-L simultaneously, which suggests that it captures both important content units and overall summary structure more effectively\.
### 5\.4Qualitative Results
A qualitative example further illustrates the behavior of the summarization model\.
- •Input Case:“The plaintiff has applied for the recovery of damages on account of breach of contract under Section 7 of the Arbitration Act\.”
- •Case Name:“Appeal against order for damages under Section 7 of the Arbitration Act\.”
- •Generated Summary:“Plaintiff’s claims for damages under Section 7 of the Arbitration Act\.”
Although the generated summary is shorter than the source text, it retains the central legal issue and the most important statutory reference\. This suggests that the model can capture salient case information in a concise form\. Extra Qualitative Results are shown in Appendix[E](https://arxiv.org/html/2606.00116#A5)\.
### 5\.5Error Analysis
Though the gains have been made, there are still patterns of error observed\.
- •Overlooking legal subtlety:There are instances where legal nuance in the document determines the correct decision, yet the classifier struggles to make the right call\.
- •Difficulty with minority classes:Although weighting the samples makes it easier for the network to learn from minority classes, there are still some minority labels hard to predict\.
- •Omitting legal elements:Sometimes the summary produced by the model is too short such that some essential legal elements get dropped\.
### 5\.6Comparison with Baselines
Our model exhibits superior performance compared with other tested classifiers and produces the best summary as well\. The proposed architectureBiGRU \+ KANis better than traditional models such asRandom ForestandSupport Vector Machines \(SVM\)with accuracy = 0\.62 as well as the models which do not use KAN along with recurrent units\. In terms of summarization,AttnGRU \+ KANdemonstrates the superior results in comparison with BiLSTM and pointer\-generator baselines when ROUGE\-1, ROUGE\-2, and ROUGE\-L measures are considered\.
## 6Discussion
This paper explores the use of a KAN\-based augmentation method to enhance recurrent networks in classifying and summarizing legal documents under a low resource multilingual scenario\. From the experimental results, theBiGRU \+ KANclassifier surpasses classical machine learning models and other recurrent networks, with an accuracy of0\.6796and weighted F1\-score of0\.65in classification\. As for summarization, theAttnGRU \+ KANmodel outperforms the BiLSTM and pointer\-generator models by attaining a ROUGE\-1 score of0\.38\. An ablation study finds that the KAN block is beneficial in enhancing the accuracy of classification, increasing the accuracy of the BiGRU model from0\.5734to0\.6796\.
In terms of summarization, the proposed framework outperforms the baselines, indicating its potential to summarize legal documents effectively, although some legal facts have been generalized\. Nonetheless, such results must be carefully considered since the comparison among pretrained models was conducted under constrained computational resources and different hyperparameters\. The experiment clearly shows thatKAN is a good complement to recurrent neural networks for legal applications\. Nevertheless, some obstacles are still faced\. First, the dataset is extremely unbalanced, with some minor categories remaining challenging for classification despite using weight sampling techniques\. Second, the multilingual nature of the dataset, which comprises Bengali, English, and transliterated Bengali, makes it harder to learn the representations of the data\. Third, during summarization, some procedural facts may sometimes be neglected\.
Overall, the study demonstrates that architectural improvements, such as adding a KAN block to base RNNs, are crucial for improving performance in resource\-constrained legal NLP tasks\.
## 7Challenges and Limitations
Despite the promising results, several challenges remain\. Class imbalance continues to be a significant issue in legal NLP tasks, despite the use of techniques such as weighted samplingLee and Park \([2020](https://arxiv.org/html/2606.00116#bib.bib23)\)\. Additionally, the multilingual nature of the dataset, including Bengali, English, and transliterated Bengali, adds complexity to the model’s performanceJones and Smith \([2019](https://arxiv.org/html/2606.00116#bib.bib22)\)\.
1. 1\.Class imbalance problem:The disposition labels show an imbalanced distribution, which makes prediction difficult for those classes in low numbers\. Even though the use ofWeightedRandomSamplerbalanced class distributions to some extent, some minority classes struggled, showing that just using sampling techniques was not enough to solve this problem\.
2. 2\.Complex legal language usage:Legal terms, in addition to different languages like Bengali, English, and romanized Bengali, make the task more complicated\.
3. 3\.Limitations on summary quality:Although the summary model is able to capture the overall content of the document, it sometimes skips important procedural information due to its legal nature\.
4. 4\.Constraints in comparing PLMs:The comparisons were made under limited resources and with varying tuning budgets, which does not allow for definitive claims about the superiority of one model over others\.
## 8Conclusion and Future Work
The current research investigates the application of a KAN enhanced recurrent model to classify and summarize legal documents in a low\-resource multilingual environment using legal datasets of Bangladesh in Bengali, English, and romanized Bengali languages\. In terms of classification,BiGRU \+ KANwas tested, and, for the summarization task,AttnGRU \+ KANwas used\.
From experimental results, we found that the accuracy and F1 score achieved by the classification model were0\.6796and0\.65, respectively, whereas the summarization model reached ROUGE scores0\.38/0\.23/0\.31\. The ablation experiment has demonstrated that the KAN block boosted classification accuracy from0\.5734to0\.6796, hence, proved its contribution to enhancing model performance\.
The paper has contributed to exploring the possibility of applying KAN block to enhance recurrent models to perform legal NLP tasks within a multilingual legal corpus\.
As a part of future work, one may consider:
- •More effective backbone models and improved comparisons with pretrained language models for better performance;
- •Dealing with class imbalance and multilingual documents in legal texts;
- •Better summarization using more advanced techniques of generation in order to keep more information from the legal documents;
- •Transparency and explainability\.
## References
- Predicting judicial decisions of the european court of human rights: a natural language processing perspective\.InProceedings of the 26th International Conference on Computational Linguistics \(COLING\),pp\. 1434–1443\.External Links:[Link](https://aclanthology.org/C16-1126/)Cited by:[§2](https://arxiv.org/html/2606.00116#S2.p1.1)\.
- D\. Bahdanau, K\. Cho, and Y\. Bengio \(2015\)Neural machine translation by jointly learning to align and translate\.InProceedings of the 3rd International Conference on Learning Representations \(ICLR\),External Links:[Link](https://openreview.net/forum?id=9yIp9y9bBs)Cited by:[§2](https://arxiv.org/html/2606.00116#S2.p3.1)\.
- J\. Chung, C\. Gulcehre, K\. Cho, and Y\. Bengio \(2014\)Empirical evaluation of gated recurrent neural networks on sequence modeling\.arXiv preprint arXiv:1412\.3555\.External Links:[Link](https://arxiv.org/abs/1412.3555)Cited by:[§2](https://arxiv.org/html/2606.00116#S2.p2.1)\.
- W\. W\. Cohen and Y\. Yang \(2003\)Learning to classify text from positive and unlabeled examples\.InProceedings of the 17th International Conference on Machine Learning \(ICML\),pp\. 107–114\.External Links:[Link](https://dl.acm.org/doi/10.5555/645531.655313)Cited by:[§2](https://arxiv.org/html/2606.00116#S2.p1.1)\.
- A\. Conneau, G\. Lample, R\. L\., L\. Ruder, H\. Schwenk, A\. Bordes, and R\. Larochelle \(2017\)Supervised learning of universal sentence representations from natural language inference data\.Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),pp\. 2081–2091\.External Links:[Link](https://aclanthology.org/D17-1209/)Cited by:[§2](https://arxiv.org/html/2606.00116#S2.p2.1)\.
- M\. Jones and S\. Smith \(2019\)Legal text classification in multilingual settings: challenges and approaches\.Journal of Legal Informatics15,pp\. 205–222\.External Links:[Document](https://dx.doi.org/10.1007/jli.2019.15)Cited by:[§1\.1](https://arxiv.org/html/2606.00116#S1.SS1.p1.1),[§7](https://arxiv.org/html/2606.00116#S7.p1.1)\.
- C\. Lee and J\. Park \(2020\)Addressing class imbalance in legal text classification\.InProceedings of the 2020 International Conference on Legal NLP,pp\. 54–60\.Cited by:[§7](https://arxiv.org/html/2606.00116#S7.p1.1)\.
- Z\. Liu, X\. Liu, and T\. Zhao \(2024\)Kolmogorov–arnold networks \(kans\): a new approach to neural networks using adaptive spline functions\.IEEE Transactions on Neural Networks and Learning Systems35\(3\),pp\. 572–586\.External Links:[Document](https://dx.doi.org/10.1109/TNNLS.2023.3246724),[Link](https://arxiv.org/abs/2404.19756)Cited by:[§2](https://arxiv.org/html/2606.00116#S2.p4.1)\.
- Manupatrafast \(2026\)Manupatra – an online database for legal research: law & legal search\.Manupatra\.Note:[https://www\.manupatrafast\.in/Feature/law\-legal\-search\.aspx](https://www.manupatrafast.in/Feature/law-legal-search.aspx)Accessed: 2026\-01\-06External Links:[Link](https://www.manupatrafast.in/Feature/law-legal-search.aspx)Cited by:[§3\.1](https://arxiv.org/html/2606.00116#S3.SS1.p1.1)\.
- M\. Schuster and K\. K\. Paliwal \(1997\)Bidirectional recurrent neural networks\.IEEE Transactions on Signal Processing45\(11\),pp\. 2673–2681\.External Links:[Document](https://dx.doi.org/10.1109/78.650093)Cited by:[§2](https://arxiv.org/html/2606.00116#S2.p2.1)\.
- A\. See, P\. J\. Liu, and C\. D\. Manning \(2017\)Get to the point: summarization with pointer\-generator networks\.InProceedings of the 55th Annual Meeting of the Association for Computational Linguistics \(ACL\),pp\. 1073–1083\.External Links:[Link](https://aclanthology.org/P17-1099/)Cited by:[§2](https://arxiv.org/html/2606.00116#S2.p3.1)\.
- J\. Smith and E\. Johnson \(2020\)Advances in legal text classification: a multilingual approach\.Journal of Legal Informatics18,pp\. 123–135\.External Links:[Document](https://dx.doi.org/10.1007/jli.2020.18)Cited by:[§1\.1](https://arxiv.org/html/2606.00116#S1.SS1.p1.1)\.
## Appendix AAdditional Experimental Details
This appendix provides supplementary material for the main paper, including additional baseline results, ablation analysis, variance across runs, and qualitative examples for summarization\.
## Appendix BAdditional Baseline Results
Table[3](https://arxiv.org/html/2606.00116#A2.T3)reports the additional classification baselines evaluated in this study\.
Table 3:Additional classification baseline results\.These results are included for completeness\. The pretrained language model baselines were trained under limited\-resource settings, so they should be interpreted cautiously\.
## Appendix CAblation Study
To measure the contribution of the KAN block, we compared recurrent backbones with and without KAN\.
Table 4:Ablation results for recurrent backbones with and without KAN\.The results show that the KAN block improves the BiGRU backbone substantially, increasing classification accuracy from 0\.5734 to 0\.6796\.
## Appendix DVariance Across Runs
To assess stability, we repeated the main classification experiment three times\. The obtained accuracies were:
- •Run 1: 0\.6765
- •Run 2: 0\.6699
- •Run 3: 0\.6771
The mean accuracy across runs was 0\.6796, indicating relatively stable performance under the current training configuration\.
## Appendix EAdditional Qualitative Example
This appendix provides one additional example of the summarization output generated by the proposed model\.
- •Input Case:“The original petitioner has moved an application for the dynamic injunction of trademark infringement on account of unfair competition under Section 29 of the Trade Marks Act\.”
- •Reference Summary:“Petition for dynamic injunction regarding trademark infringement under Section 29 of the Trade Marks Act\.”
- •Generated Summary:“Petitioner’s claims for dynamic injunction under Section 29 of the Trade Marks Act\.”
The generated summary preserves the central legal issue and the relevant statutory reference, although it is more compressed than the reference summary\.
## Appendix FAdditional Notes on the Dataset
The dataset used in this study is drawn from the Bangladeshi legal domain and contains a mixture of Bengali, English, and transliterated Bengali\. The full dataset contains 2,937 instances, with 2,349 instances used for training and 588 used for held\-out evaluation\. The target disposition labels are distributed across 10 classes and are notably imbalanced\.
## Appendix GAdditional Data Visualization
Additional visual analyses, including lengths of case notes, a missing\-data heatmap, and a correlation matrix of numerical features, helped us inspect vocabulary patterns, data completeness, and basic feature relationships\. These analyses informed preprocessing and modeling decisions\.
Figure 8:Distribution of text lengths for case notes\.Figure 9:Correlation matrix of numerical features\.Figure 10:Missing\-data heatmap of the dataset\.Similar Articles
MM-BizRAG: Rethinking Multimodal Retrieval-Augmented Generation for General Purpose Enterprise Q&A
MM-BizRAG is a multimodal retrieval-augmented generation system for enterprise Q&A that uses document structure-aware splitting and layout-aware parsing to outperform vision-centric baselines by up to 32% on heterogeneous enterprise documents. The paper also introduces FastRAGEval, a cost-efficient LLM-based evaluation metric with stronger human alignment than RAGChecker.
CanLegalRAGBench: Evaluating Retrieval-Augmented Generation on Canadian Case Law
Introduces CanLegalRAGBench, a benchmark for evaluating retrieval-augmented generation on Canadian case law using realistic queries and expert-annotated answers. The evaluation reveals sensitivity to design choices, competitiveness of open-source embedding models, and persistent hallucinations in generated answers.
LFRAG: Layout-oriented Fine-grained Retrieval-Augmented Generation on Multimodal Document Understanding
LFRAG proposes a layout-oriented fine-grained retrieval-augmented generation framework that moves from page-level to block-level retrieval in multimodal documents, achieving state-of-the-art performance and 73% token reduction on the new LFDocQA benchmark.
LegalBench-BR: A Benchmark for Evaluating Large Language Models on Brazilian Legal Decision Classification
Researchers release LegalBench-BR, the first public benchmark for evaluating LLMs on Brazilian legal text classification, showing LoRA-fine-tuned BERTimbau dramatically outperforms GPT-4o mini and Claude 3.5 Haiku.
Khondo: A Multimodal Benchmark for Document Packet Splitting of Bangla Forms
Introduces Khondo, the first benchmark for document packet splitting on Bangladeshi government forms. It is a vision-native, bilingual dataset spanning multiple concatenation schemes, and zero-shot evaluation of MLLMs reveals that page-order reconstruction remains a key open challenge.