ARDI: a new dataset for automatic advocate recommendation in the Indian Legal System
Paper · 2025 · Upal Bhattacharya, Aniket Deroy, Ayan Bandyopadhyay et al.
Summary
A person looking for legal representation may know what happened and still have little information about which advocates handle disputes like theirs. The authors study whether court records can help fill that gap. They introduce ARDI, a dataset drawn from Delhi High Court decisions, and ask a system to read the factual account of a dispute and identify the advocates recorded as its counsel. A case can have several correct names because the target includes advocates who appeared for either side. The benchmark measures how well a system recovers those historical appearances. Whether a particular advocate would be a good choice for a new client is a separate question.
The collection contains approximately 25k documents. For the experiments, the authors retain a working corpus of 16,595 cases and a candidate pool of 306 advocates. They extract factual sentences from judgments and mask names and other identifying details so the system has to work from the description of the dispute. ARDI also preserves information about cited laws and verdicts. To connect statutes with the broader fields in which advocates might practise, legal annotators assign Acts to areas such as criminal law. The researchers use these assignments to test whether learning the area of a dispute helps identify its counsel.
The strongest approach combines text representations learned by several advocate predictors. In the paper’s comparison of leading systems, it reaches a macro F1 of 0.2075. Macro F1 gives each advocate equal weight when measuring how well the system retrieves their appearances and avoids naming them for other cases. Direct prediction with Longformer, which can read much longer factual accounts than the shorter-input alternatives, comes close at 0.2014 in the same comparison. Selecting sentences for a short legal summary helps some predictors, while the systems that explicitly learn legal areas fall behind direct Longformer prediction.
The authors also find that advocates with more training examples are only weakly associated with higher individual F1 scores. Among advocates with many recorded cases, appearing often alongside other advocates is associated with lower scores. The experiments suggest that reading more of a dispute and combining distinct representations can help recover historical counsel, while distinguishing among individual advocates remains difficult even within a fixed candidate pool.
Deep dive: ARDI: a new dataset for automatic advocate recommendation in the Indian Legal System
ARDI uses Delhi High Court records to test how well a dispute’s facts can identify the advocates who appeared in similar legal cases. · about 34 minutes to read
The problem and its context
Finding an advocate from a description of a dispute
At the point when someone needs legal counsel, the information they can readily supply is an account of what happened. They might be able to describe the events, the parties involved and the disagreement without knowing which statutes apply. The authors take that starting point seriously. They want to investigate whether a factual description alone can support a recommendation, even when prospective clients lack the legal vocabulary or professional contacts that would make a search easier.
As the paper describes the Indian setting, people commonly choose advocates through personal recommendations and ease of access. The Bar Council of India and State Bar Councils keep registration records, but the authors describe reporting practices as uneven. Some states offer ways to check an advocate when the name is already known. Checking a name presupposes that someone has identified a candidate. It answers a different question from who might handle a given dispute. The authors also point to restrictions on advertising by advocates, which limit another potential source of information about their practices.
The paper envisages several uses for a system that could make this connection reliably. A prospective client could use it to find candidates for representation. A court assigning counsel, or a law firm deciding who should handle an incoming case, could use it to support that allocation. The authors also connect better case assignment to the problem of delays in the judiciary. These are motivations for studying the task. The experiments concern matching cases to names in court records, and their outcomes are measured at that level.
The challenge is to obtain observations from which the connection between disputes and advocates can be learned. Registration records establish something about who is registered, while a judgment can reveal who actually appeared in a particular matter. The latter makes it possible to associate names with descriptions of disputes in a consistent collection. The Delhi High Court was selected because its decisions regularly record representation for both parties. A document from that court can therefore supply factual material for the input and a list of counsel for the target.
The resulting research question belongs to legal AI. It also has a specific classification structure. In ordinary text classification, a label might describe the subject of a document. In ARDI, an advocate’s identity is a label, and several labels can apply to the same document. A predictor has to deal both with the differences between disputes and with the possibility that several people regularly appear together. The factual description is the same whoever represented either party. The output studied in the paper brings those appearances together into one target set.
This setting gives the word recommendation a concrete but restricted meaning. The general task asks for advocates who would be well suited to a matter. That criterion could encompass expertise, availability and other considerations relevant to a client. For historical cases, the authors have an observable substitute, namely the advocates the court recorded. Matching that set is a testable target. Historical representation carries information about practice, but the passage from past appearances to suitability for a new dispute involves further assumptions.
Earlier expert finding and legal prediction
The closest earlier legal expert-finding study the authors identify is the work of Askari and colleagues. It starts from exchanges on an online legal forum and produces an ordered list of experts for a new question. In that setup, the question is a search query, and the system has additional information about the people it can retrieve. That positions the work within information retrieval and search, with the forum providing a source of questions and answers.
ARDI changes both the evidence and the target. A set of sentences extracted from a court judgment serves as the query-like input, and the recorded counsel supply the labels. Those sentences come from factual narrative rather than a forum question written for someone to answer. The researcher also lacks the additional expert information available to the earlier study. The authors describe those differences as reasons why direct comparison with the forum approach is difficult. A method that benefits from rich expert profiles may behave differently when the only evidence about an advocate comes from their cases.
The paper also draws on a recommendation problem outside law. Biswal and colleagues’ doctor2vec work uses representations of patients and additional information about doctors in a clinical-trial recruitment setting. A databank supplies evidence used to represent the doctors for prediction. The analogy is that a collection of earlier cases can help describe an expert whose relevance to a new case is being judged. The ARDI study adapts that broad approach under tighter data and computing constraints. Its case descriptions are extracted from judgments, and its candidate advocates lack the supplemental profiles that the doctor recommendation system uses.
Statute and charge prediction offer a different connection. Paul and colleagues study charge prediction at the chapter level using Indian Supreme Court material. The paper also describes work by Luo and colleagues that asks whether charge predictors capture the legal reasoning behind their decisions, and a later study by Paul and colleagues that evaluates statute identification across Indian and European datasets. These studies bear on an intermediate question raised by ARDI. If the facts of a dispute reveal which laws are relevant, that signal might help identify advocates who work on related matters. The advocate task adds a further step because a legal category can apply to cases handled by many different people.
Other earlier work supplies resources for identifying the parts of a judgment. The authors describe a collection of 50 legal documents prepared for rhetorical-role identification. A rhetorical role indicates the job a sentence does in a decision, such as relating the events or recording the court’s reasoning. They also point to research that provides reference summaries of legal documents and research that labels Indian cases for statutes, charges or judgments. The Indian Legal Document Corpus, for instance, contains 34,816 documents with judgment labels. Such resources demonstrate ways to structure court text for related tasks. ARDI uses the separation of rhetorical roles to determine which material belongs in the input to a recommendation.
Finally, the paper distinguishes expert finding from other work called legal recommendation. Earlier studies it cites use a Bayesian network for legal recommendation under sparse data, a graph-based approach for helping users find legal documents, and methods for suggesting citations from lists or surrounding text. Each recommends something within a legal workflow. ARDI’s choice of target changes what counts as success. A citation may be relevant to a doctrine, a document may answer a search, and an advocate may have appeared in a similar dispute. The benchmark turns that last kind of relationship into a question about which particular people can be identified from case facts.
The method, step by step
Turning judgments into cases a predictor can read
The authors gathered Delhi High Court documents from Indian Kanoon covering June 2008 to March 2022. The collection description reports 25,640 raw documents, while the dataset statistics and corpus overview use 25,641 for the source collection. The experiments use the separately reported working corpus of 16,595 cases. The raw material is a published judgment, with both a preamble that can identify counsel and a body that contains the factual account along with other kinds of text.
The preparation starts with cleaning the raw documents. The authors remove characters outside the expected encoding and repeated punctuation, and expand some legal abbreviations. Expanding the abbreviation for sections, for example, makes references easier to recognize when the same kind of citation appears in different forms. This cleaning precedes the extraction of the information that will supply inputs, targets and supporting metadata.
Counsel names come from the preamble. Depending on the document format, that material appears in a preformatted portion or within the opening paragraphs. Wording that identifies petitioners, plaintiffs or respondents supplies cues to the names that follow. The authors use regular expressions, which identify recurring patterns of characters and words, to collect an overall set of advocate names and a set for the petitioning side. They derive the respondent set by removing the petitioning advocates from the overall set. This is an example of obtaining structured records from prose through information extraction.
The corpus yielded 21,531 extracted advocates, of whom 10,685 appear in a single case. The authors restrict the prediction vocabulary to advocates with at least 30 appearances in the dataset, giving them 306 candidate labels. Cases enter the experiments only when they involve advocates from that pool and supply at least five sentences identified as facts. Those criteria give the experiment enough material to learn from for each included advocate and each retained description. They also define the population to which the resulting benchmark applies.
The next job is to find the parts of the body that describe the events giving rise to the dispute. The authors apply a sentence classifier that assigns a rhetorical role to each sentence. Sentences labelled factual are taken in their original order and joined into a single description, which the paper calls a Fact. The order matters because the account can introduce an event in one sentence and explain its consequences later. The joined text can still be discontinuous with respect to the judgment because sentences that perform other roles are left out.
The authors then mask named entities, including advocate names, and describe masking statute sections that occur in these sentences. The procedure draws on a spaCy tagger for named entity recognition. Leaving a counsel name visible in a training or test description could allow a predictor to recover a label by recognizing a direct mention. Masking shifts the evidence toward the kind of dispute described in the remaining language. It also means that the benchmark evaluates edited factual accounts rather than raw judgments.
The processing produces other attributes alongside the inputs and counsel labels. The authors extract statutory sections from the case documents and map them to their containing chapters where those exist, and to their Acts. They also use indicative wording to infer whether the ruling favoured the petitioning or responding side. Verdicts are stored in ARDI. The advocate predictors evaluated in the paper use factual descriptions, with legal-area information providing supervision in some setups. Verdict information remains available for future work.
From Delhi High Court judgments to advocate predictions
The steps in order.
Adding legal areas above individual Acts
Statutes give the authors a way to move from individual cases to a picture of the legal subjects associated with an advocate’s appearances. They collect section, chapter and Act information across the cases in which each advocate features. A profile at the level of individual sections can distinguish specific legal provisions, while an Act groups related provisions. In consultations described in the paper, legal experts suggested that an advocate’s practice frequently falls under categories broader than a single Act.
The authors give criminal law as an example. The Indian Penal Code and the Code of Criminal Procedure can both be placed in that area. An assignment at this level keeps a connection between cases even when the cited Acts differ. It also allows a case that cites several Acts to carry several area labels. The procedure begins with what the judgment cites, so an area label records a classification of the statutory evidence associated with the case.
A law faculty member prepared a taxonomy containing 40 areas. An LLB student then used it to assign one or more areas to Acts on a list of central Indian legislation. The paper reports that 36 of the proposed areas were applicable in that exercise. The faculty member reviewed the assignments, and disagreements were discussed jointly. The underlying annotations are attached to Acts. A case acquires area information through those assignments, and an advocate’s historical exposure to different areas can be inferred from their cases.
This distinction matters at prediction time. The published decisions make it possible to extract citations and use them to construct labels for training. A person seeking counsel may only describe what happened. The area-based experiments consequently learn from the statute-derived categories and try to recover the relevant area information from the facts. Their advocate predictions depend on what the factual narrative can convey about those categories.
Defining what counts as a recommendation
The paper first expresses the intended task as a general selection problem. In a single query, the input is a textual account and the output is a subset of the available advocates.
Recommendation(F, A) = { Aᵢ ∣ Aᵢ ∈ A and Aᵢ is well suited to F }
Here F is a factual description of a potential dispute, A is the candidate set and Aᵢ is the advocate indexed by i. The name Recommendation denotes the selection operation. The braces delimit the output set, the vertical bar introduces the conditions for belonging to that set, and ∈ means membership. The equality states that the operation returns the advocates who satisfy those conditions. Suitability is an abstract criterion in this formulation. The paper supplies an operational target separately for ARDI.
Recommendation_ARDI(Fᵢ, A) = { Aₖ ∣ Aₖ ∈ A_Cᵢ }
Recommendation_ARDI denotes the benchmark version of the task. Cᵢ is case i and Fᵢ is the factual text derived from that case. A is the candidate advocate pool. A_Cᵢ is the set of candidate advocates who actually appeared in case Cᵢ, and Aₖ is the candidate indexed by k. As in the general formulation, the braces enclose the target set, the bar introduces its membership condition, ∈ means belongs to, and = identifies the returned set with that target. The index for a case is independent of the index for an advocate.
The second expression describes what the learner is expected to recover. It does not give the predictor access to A_Cᵢ at inference time. During training, the extracted appearances provide examples of which labels belong with which texts. At evaluation, the reserved case supplies the description and the candidate pool supplies the possible names. Its recorded appearances provide the answer against which the predictions are checked.
The authors split the working corpus in a 70:10:20 ratio for training, validation and test and balance the assignment so every candidate advocate is represented in each split. The training portion provides examples from which parameters are learned. Validation supplies a separate portion for development, and test cases supply held-out material for assessment. By design, the task involves retrieving known advocate identities on other cases. An identity that has no labelled training examples falls outside this setup.
Predicting counsel directly or from a summary
Direct prediction takes the factual account and learns to identify its advocates without first producing legal areas as the output of a separate task. A text encoder produces an embedding, a vector of numbers representing the input, and the prediction part uses that vector to score the candidate labels. Since a single account can have multiple counsel labels, several candidates can be selected at once. Training adapts the encoder and predictor to the examples through fine-tuning.
The paper tests BERT, XLNet, InLegalBERT and RoBERTa. Its legal variants include InLegalBERT, pretrained on Indian legal text, and LEGAL-BERT, pretrained on European legal text. These comparisons explore whether prior exposure to legal material helps once the actual input has been narrowed to the factual narrative. The direct experiments also include a hierarchical sequence architecture, described in Hierarchical Attention Networks for Document Classification.
The short-input systems use the first 512 tokens of the description. Tokens are the units into which the encoder divides the input, so a token limit and a word count measure different things. Truncation keeps the opening sequence. If a relevant event or complication appears later, the predictor has no access to that passage. The longer-context direct system uses Longformer, with a capacity of 4096 tokens. The authors describe that setting as covering 98% of the textual data in ARDI. Their hierarchical attention alternative accommodates sequences of all lengths in the paper’s description and supplies a comparison with an architecture trained from scratch.
Summary-based prediction changes what fits into the shorter input. Instead of keeping the start of the account, an extractive method chooses sentences from the existing facts. The authors aim for a result near the 512-token limit and feed it to a direct advocate predictor. The selected sentences can come from different parts of the account. This tests whether a compressed input that draws from more of the narrative is useful within the same capacity. It is a use of extractive text summarization.
The paper uses LetSum, KMM, CaseSummarizer and SummaRuNNer. It evaluates different sentence-selection methods with several of the same encoders used for the beginning-of-text input. Its results also distinguish the CNNRNN and RNNRNN versions of SummaRuNNer. The advocate labels are still the supervision for the final prediction. What changes is which parts of the factual account reach the encoder. A summary can surface a decisive passage from later in the account, and it can also discard details that distinguish one advocate’s cases from another’s.
Combining representations learned from advocate labels
The direct and summary-based predictors each learn a representation useful for their own version of advocate prediction. The authors reason that these vectors may preserve different details. An encoder that reads a long factual account sees a different selection of evidence from one that reads an extractive summary. Encoders that receive similar text can still learn different representations from it.
The method called Concatenation takes the vectors produced by trained advocate predictors and places them end to end. This creates a larger vector whose parts retain the identities of their originating representations. A downstream predictor uses the combined vector to score the advocates. The combination therefore occurs before the final labels are selected. The procedure does not take a majority vote over advocate names or average the final scores, so it can learn to use information in a component representation even when that component’s standalone prediction is weak.
All of these representations have been shaped by the target task. The training signal encourages them to preserve text features that help identify appearances by particular advocates. This makes Concatenation different from the area-first approach, where the intermediate representation is trained to preserve details that help recognize areas of law. It also explains what an advantage for Concatenation can establish. The combined representations work well together in the evaluated configuration, while the comparison leaves open how much individual components contribute.
Learning legal areas before, or alongside, advocate identities
The first area-based strategy proceeds in stages. The authors train a Longformer encoder to predict the legal areas associated with the facts. This is another multi-label task because statutes cited in one case can map to several areas. They then use the trained encoder to produce a vector for each factual account. A simple linear predictor, followed by an activation that turns scores into prediction values, learns to map those vectors to advocate labels. The area representation is fixed for this second task.
The authors also build an area representation using Sentence-BERT, abbreviated SBERT. This alternative learns from pairs of cases. For a pair of factual accounts, the training target is the Jaccard similarity between the cases’ area sets. Jaccard similarity compares the areas the cases share with the full set of distinct areas represented in either case. If their area assignments coincide, the training signal treats them as more similar than a pair with little overlap. The intended result is a vector space that reflects semantic similarity as defined by legal-area overlap.
The Longformer variant learns from area labels for each individual case, whereas SBERT learns from how those labels overlap across cases. Both pass their representations to an advocate predictor after the area-related training. Their main constraint is that the downstream predictor can use only the distinctions preserved in those representations. Cases can share areas and still be associated with different advocates. If the embedding mainly preserves broad categories, advocate supervision received later cannot recover distinctions the embedding has discarded.
Joint prediction changes when the two kinds of supervision arrive. A shared Longformer encoder receives a factual account. One prediction head scores advocates, while another scores legal areas. Errors from both heads contribute to training the shared representation. The representation can therefore adapt to the needs of advocate prediction while it also learns what in the facts is useful for categorizing the dispute.
The paper shows the advocate loss as a binary cross-entropy averaged across advocate labels.
L_adv = −(1/N₁) ∑ᵢ₌₁ᴺ¹ [yᵢ log(P(yᵢ)) + (1 − yᵢ) log(1 − P(yᵢ))]
L_adv is the advocate prediction loss and N₁ is the number of candidate advocates. i is the label index. The summation sign ∑ accumulates the bracketed contribution from index 1 through N₁, and 1/N₁ averages those contributions. yᵢ is the observed binary target for advocate i. It is 1 for an advocate recorded in the case and 0 otherwise. P(yᵢ) is the paper’s notation for the predicted probability of a positive advocate label. The expression 1 − P(yᵢ) is the probability assigned to absence, while 1 − yᵢ makes that second term apply when the advocate is absent. log is the logarithm, adjacent factors are multiplied, + adds the terms, and the leading minus sign makes higher probability on the observed outcome yield lower loss.
The area head uses the same structure on a different set of labels.
L_area = −(1/N₂) ∑ᵢ₌₁ᴺ² [zᵢ log(P(zᵢ)) + (1 − zᵢ) log(1 − P(zᵢ))]
L_area is the area prediction loss. N₂ is the number of areas and i now indexes area labels. The summation ∑ runs from 1 through N₂, with 1/N₂ giving the average over the labels. zᵢ is the observed binary target for area i, and P(zᵢ) denotes the predicted probability that the area applies. The complementary expressions 1 − zᵢ and 1 − P(zᵢ) correspond to the negative target and its predicted probability. The logarithm log, multiplication by juxtaposition and addition inside the brackets form the contribution for a label. The initial minus sign turns the total into a loss that decreases as the predictions better match the targets.
The authors combine the losses by simple addition.
L_total = L_adv + L_area
L_total is the objective used for joint training. L_adv and L_area are the advocate and area losses just defined, and + gives their sum. The equality defines the quantity used to train the shared representation and the prediction heads. The authors say this combination performed best among the ways they tried combining the two losses. Their results give the score of the chosen setup.
Adapting an expert databank
The databank strategy uses stored case representations as a source of evidence for recommendation. It takes its design from doctor2vec, which uses a bank of patient representations to help describe doctors. In ARDI, the authors use the SBERT area-trained vectors for both the stored cases and the cases for which they want predictions. They select 40% of the original training cases at random for the bank and use the remaining training cases to fit the predictor.
The original expert-finding method can use extra doctor information and update representations dynamically. The ARDI adaptation has no comparable supplemental profiles for advocates, and the authors use static representations because of computational constraints. The result tests whether a bank of historical cases is helpful under those conditions. Its representations are tied to the area similarity objective, so it shares some of the information constraints of the other area-based approaches.
The experiments are implemented in Python with PyTorch. The authors obtain published pretrained versions through the Hugging Face implementation of Transformers. Their implementation table lists a learning rate of 3e-5 and 100 epochs for the pretrained encoders shown there. For the hierarchical attention architecture, it lists a learning rate of 1e-3 and 200 epochs, although the general training description gives 100 epochs. The experiments were run on an NVIDIA RTX A5000 GPU. The evaluation compares families of approaches that vary in input preparation, training signal and architecture.
Experiments and results
The corpus and what the scores measure
The working corpus has 16,595 case descriptions and 306 candidate advocates. The dataset statistics give an average of 1.89 advocate labels per document and a maximum of 31 in a document. The candidate pool is frequency-filtered, yet the number of appearances still varies considerably. The authors give 454 cases for the most frequent advocate and 34 for the least frequent one in the pool. The requirement that each advocate appear in every split gives each label a presence throughout the experiment without making the advocates equally frequent.
The dataset statistics also list 5555 distinct statutory sections, 653 chapters and 351 Acts. For areas, the working-corpus table lists 36 and an average of 1.59 per document. It gives a maximum of 12 areas per document and 20 Acts. The surrounding prose instead calls 20 the maximum for areas. The value for areas is therefore reported inconsistently, and the distinction between area labels and cited Acts matters when interpreting the size of the auxiliary prediction task.
The case facts remain substantial even though they are selected sentence by sentence. In the training split the paper reports a factual-sentence fraction of 0.3384 and an average of 1166.06 words per document for the selected text. In the test split the corresponding figures are 0.3518 and 1233.31 words, and in validation they are 0.3366 and 1129.85 words. The average number of sentences in the selected description is 83.26 on training cases, 87.43 on test cases and 80.12 on validation cases. Those word counts show the scale of the narrative presented to the system. They do not directly specify token counts, which depend on the encoder’s text segmentation.
The main metrics are macro precision, macro recall and macro F1. For an individual advocate, precision asks how frequently the cases assigned to that advocate actually list them. Recall asks how often the system finds that advocate across the cases that do list them. The individual F1 score combines precision and recall, so it is sensitive to both missed appearances and incorrect suggestions. Macro scores average the class-level measures over the advocate labels. This gives a less frequent candidate the same influence on the corresponding metric as a more frequent one.
Macro F1 is an average of advocate-level F1 scores. The macro precision and recall shown beside it are separate averages, so combining those two reported numbers does not in general reproduce the published macro F1. The score also has a different interpretation from the proportion of cases on which every counsel name is correct. A system can recover some of a case’s known advocates, miss others and propose additional names. Each of those decisions feeds into class-level performance.
The comparison of leading approaches
The paper gives a full comparison and a separate table of category leaders. For several repeated systems, the two tables report different values. Their captions identify the metrics and groups but do not assign the tables to named evaluation splits. The results below keep the comparisons separate. The first chart takes every value from the category-leaders table.
Leading approaches on ARDI by advocate macro F1
Combining advocate-trained representations leads the comparison, followed by direct prediction with Longformer.
The numbers
| System or setting | macro F1 |
|---|---|
| Concatenation (this paper) | 0.2075 |
| Longformer direct prediction | 0.2014 |
| RoBERTa with KMM summary | 0.1916 |
| Joint advocate and area prediction | 0.1904 |
| XLNet with first 512 tokens | 0.1889 |
| SBERT area representation | 0.1598 |
| Static case databank | 0.1414 |
| Longformer area representation | 0.1391 |
Concatenation leads this comparison with macro F1 of 0.2075, macro precision of 0.4825 and macro recall of 0.1557. Direct Longformer reaches macro F1 of 0.2014, with macro precision of 0.2931 and macro recall of 0.1767. The latter result shows a different balance between finding historical appearances and proposing correct names. Within this comparison, Longformer retrieves a greater share per advocate on average, while Concatenation’s positive predictions are more often correct on the precision measure.
RoBERTa with KMM summaries has macro precision of 0.2682, macro recall of 0.1722 and macro F1 of 0.1916 in the category-leaders table. The direct XLNet row reports macro precision of 0.3905 and macro recall of 0.1446 with macro F1 of 0.1889. The joint advocate and area approach has macro precision of 0.4070, macro recall of 0.1445 and macro F1 of 0.1904. These rows illustrate why the choice of metric matters. A system with a higher average precision can still recover fewer of each advocate’s recorded appearances.
The full comparison also ranks Concatenation and direct Longformer first and second on macro F1. There the Concatenation row gives 0.4428 macro precision, 0.1780 macro recall and 0.2085 macro F1. Longformer gives 0.3464, 0.1558 and 0.1980 on those metrics. The ordering by macro recall between these two systems changes across the reported tables. The recurring result is their ordering by macro F1, with Concatenation first and the longer-context direct predictor close behind.
The static area approaches sit well below those two on macro F1. The SBERT representation reaches 0.1598 and the Longformer area representation reaches 0.1391. For the databank, the paper reports 0.2851 macro precision, 0.1104 macro recall and 0.1414 macro F1. The same figures are given for these rows in both comparisons. In this implementation, routing the facts through a representation trained for legal areas, or storing those representations in a databank, gives weaker advocate prediction than learning directly from the advocate labels.
Direct prediction and sentence selection
The full comparison is the more informative source for the range of direct baselines. It includes general-purpose and legal pretraining, a longer-context encoder and the hierarchical sequence baseline. The chart uses its reported macro F1 values.
Direct prediction approaches on ARDI by advocate macro F1
Direct Longformer leads the full comparison, while the first-token baselines cluster below it.
The numbers
| System or setting | macro F1 |
|---|---|
| Longformer (this paper) | 0.1980 |
| BERT with first 512 tokens | 0.1868 |
| XLNet with first 512 tokens | 0.1856 |
| InLegalBERT with first 512 tokens | 0.1839 |
| LEGAL-BERT with first 512 tokens | 0.1795 |
| RoBERTa with first 512 tokens | 0.1780 |
| Hierarchical Attention Network | 0.1432 |
By macro F1, the best short-input direct row in that table is BERT at 0.1868. XLNet has macro F1 of 0.1856 and the highest macro precision among the direct rows at 0.4582. The paper’s narrative singles out XLNet among the short-input direct predictors, and the category-leaders table names XLNet as its short-input representative. The full comparison thus supports a distinction between which system leads short-input direct prediction on macro F1 and which has the strongest macro precision.
The hierarchical architecture reaches 0.1432 macro F1 in the full comparison, below all the pretrained direct baselines shown. Its ability to handle arbitrary sequence lengths did not yield the strongest result. The authors interpret the comparison as evidence for the usefulness of pretrained encoders in this setting. The comparison also changes architecture and training regime, so its scores reflect the complete systems as implemented.
Summary inputs show variation across both the extractor and the encoder. For the same encoder, replacing the first tokens with selected sentences sometimes improves macro F1. RoBERTa scores 0.1780 on the first 512 tokens, 0.1877 with LetSum and 0.1912 with KMM in the full comparison. BERT has 0.1868 with the first 512 tokens and 0.1898 with LetSum, while its KMM configuration scores 0.1836. These scores show why the relevant comparison is between specific pairings. A sentence selector that is helpful to one encoder does not necessarily produce the same benefit for another.
The paper names CaseSummarizer and SummaRuNNer as additional ways to allocate the short input. With BERT, CaseSummarizer has a macro F1 of 0.1785 and the CNNRNN SummaRuNNer configuration reaches 0.1787. With XLNet, the direct configuration reaches 0.1856 while LetSum yields 0.1790 and KMM yields 0.1716. The strongest summary setting uses RoBERTa and KMM, while direct Longformer has a higher macro F1 in both published comparisons. The findings favour providing more of the original account when the architecture can use it, with sentence selection offering a more variable way to work within the shorter limit.
The legal pretraining comparisons show a similarly mixed picture. InLegalBERT has macro F1 of 0.1839 with the first 512 tokens and LEGAL-BERT has 0.1795. General-purpose BERT is higher on that comparison, and RoBERTa with KMM is the highest summary-based row. The authors suggest that factual narration often uses relatively plain English. Since the inputs exclude much of the legal analysis in judgments and mask some explicit legal references, the experiment asks whether specialized pretraining helps on a selected portion of legal text.
What the ablations show
Context and supervision are compared at the system level
The paper does not present a dedicated ablation that removes individual components from Concatenation or changes Longformer’s context length while holding its architecture fixed. It does compare input variants, training objectives and representations, and it examines the predictions by advocate and by legal area. These analyses address different questions about where the performance comes from and which cases remain difficult.
Changing the text supplied to the same short-input encoder is one of the closest comparisons to a controlled intervention. It allows a researcher to ask whether keeping the opening tokens or choosing sentences from across the factual account gives better evidence. The different outcomes for BERT, RoBERTa and XLNet indicate that the usefulness of sentence selection depends on the predictor receiving it. The authors observe that KMM and LetSum frequently perform relatively well and point to their use of rhetorical-role information. The study compares complete summarizers, so it does not quantify the contribution of rhetorical-role information independently of their other choices.
Longformer’s performance against the shorter-input systems supports a practical case for retaining more factual context. The choice of encoder changes at the same time, which means the results do not isolate a token-budget effect on its own. The hierarchical attention result puts another boundary on the interpretation. Reading a long input only helps if the predictor learns to use the information in it. The study gives evidence for the longer-context Longformer configuration as a whole.
The Longformer-based methods also provide useful comparisons across different supervision. Direct prediction learns from the advocate labels. The static area approach learns a representation from areas and fits advocate prediction on top. Joint prediction supplies both losses to a common encoder. Joint training performs better on advocate macro F1 than the static Longformer area representation, but below training Longformer directly for advocates. That ordering is consistent with advocate supervision helping shape what the representation retains. It also shows that adding the auxiliary area objective under the tested setup fails to improve on the direct baseline.
The authors measure area prediction itself and report an F1 of 0.4328 in their discussion, with 0.432 given in the area-analysis subsection. They compare this with 0.566 for the related task of legal statute prediction in earlier work. The latter study uses additional attributes, and its targets are statutes, so the values are context for the difficulty of inferring legal subjects and do not form a common benchmark comparison. The authors’ explanation is that area-based representations inherit weaknesses from the area signal that shaped them. There is no experiment supplying known areas at recommendation time to estimate how much of the shortfall would disappear if the area labels were predicted correctly.
Concatenation shows that combining advocate-trained representations can produce a better predictor in this benchmark. The per-advocate analysis also suggests a limit to what the combination changes. The leading systems broadly agree about which advocates are hard to identify. A combined representation can improve the overall score even if it leaves much of that ordering intact. The paper does not give a component-by-component analysis that would identify which encoder or input view is responsible for particular improvements.
More examples and more co-appearances
The authors examine whether each advocate’s training count predicts their class F1 on the test set. They use Pearson correlation, a measure of linear association, with the count for a label on one side and its F1 on the other. The largest reported coefficient is 0.2097 for the databank approach. For direct Longformer it is 0.1924, and for Concatenation it is 0.1871. These weak positive associations give little support to using frequency alone to tell which advocates a predictor will identify well.
They also look at advocates with a test class F1 of at least 0.75. The average training count for that group varies by system. The paper gives 58.60 for Longformer, 42.34 for Concatenation and 20.25 for the SBERT area representation. Each of those averages describes the advocates who reach the stated threshold for that method. The subset can therefore change across methods, and the figures do not imply that reducing an advocate’s training examples would make their cases easier to identify.
There is substantial agreement in the broader ordering of advocates by difficulty. The authors compare the rank orders of advocate-level F1 across pairs of systems using Spearman correlation. The reported average across pairs is 0.7998. This analysis is about relative positions. An advocate may rise or fall in absolute F1 across configurations while still being easier to predict than many others. The agreement suggests that properties shared by the cases or labels matter across different representations.
The authors investigate one such property with a graph of counsel appearing together in training cases. Each advocate is a vertex. An edge carries the number of training cases in which its two advocates appear together. They relate the advocate’s degree in the weighted graph to test F1. An advocate who appears frequently with other advocates contributes to this structure differently from one whose cases usually have fewer associated counsel. The graph uses the training data, and the score used in the correlation comes from held-out cases.
For advocates with more than 150 training cases, the relationship is negative across the approaches examined. The paper gives a coefficient of -0.6694 for Longformer, -0.6914 for Concatenation and -0.7553 for RoBERTa with KMM. For advocates with fewer than 150 cases, it reports an average Pearson correlation of −0.1265. The evidence for a relationship between co-appearance and predictability is thus stronger in the higher-frequency group the authors examine.
A possible interpretation is that several names become associated with closely related factual patterns because they frequently appear on the same disputes. A textual description can then provide good evidence about the case type while providing weak evidence about which advocate within the group actually appeared. The observed relationship supports investigating that explanation. The experiment does not manipulate co-appearances, and the correlations leave room for other differences among advocates and their cases.
Performance within legal areas
The area analysis asks a different question from whether predicting an area improves recommendations. It starts from the area annotations for test cases and asks how well advocates are identified when evaluation is confined to cases in a given area. For each area, the authors take the relevant test cases, recompute advocate-level F1 within those cases, and average the scores over advocates with cases in that area. An advocate can consequently have a score for a particular category that differs from their score across the whole benchmark.
The authors find that several areas with relatively high scores recur across approaches. Among the areas they name are media law, consumer law, telecommunications law and immigration law. They report that the highest-scoring areas have at most 20 training cases. At the same time, the paper puts the overall F1 of advocates it discusses in this analysis at no more than 0.48. Success on a restricted group of disputes and success across an advocate’s entire portfolio measure different things.
The analysis does not establish that sparse areas are easier in general. Restricting a test set changes the mix of matters and advocates, and the areas highlighted by the paper have few training examples. An analogous co-occurrence analysis by area did not yield a clear pattern. The authors conclude that the subject of a case contributes to differences in predictability while leaving the mechanism unresolved.
They also consider whether the recommendation target could be broadened to count all advocates associated with the case’s area as correct. Criminal law illustrates the problem. It is common in the corpus, and the authors say that using it as a sufficient criterion would make almost the entire candidate pool relevant. Shared work within a broad area can also conceal narrower differences in expertise. These observations explain why area membership is used as evidence in the benchmark while the target continues to be the recorded counsel.
Limitations
Limits the authors identify
The authors point out that the dataset is assembled from historical court appearances. It does not contain the information needed to determine whether a listed advocate is still practising or would be available for a new matter. The records also do not support comparisons of the financial arrangements for representation. A high score for an advocate would therefore say something about fit to patterns in recorded cases. It would leave practical questions about taking on a client open.
The authors also state that the factual accounts are automatically extracted. The rhetorical-role classifier can omit sentences that should be included or keep sentences that do something other than describe events. The resulting input is a filtered account of the facts as stated in a judgment. The paper also notes that some accounts are longer than the limits of the longer-context systems. Extending the input provides more coverage while leaving some descriptions subject to truncation.
The published record limits the phases of legal work that can be studied. The authors explain that final court orders are publicly accessible in their setting, whereas the parties’ filings and documentation of negotiation or settlement are generally unavailable to them. Settlements may leave a record when the parties seek the court’s approval. Otherwise, the dataset gives little insight into an advocate’s role in keeping a dispute out of court. The authors discuss why they emphasize courtroom representation in the Indian setting and note that some pre-trial activity is undertaken by transactional lawyers. ARDI’s evidence concerns the matters and participation visible in final court documents.
The authors report uneven representation of both advocates and areas and say they do not apply special measures to counter the resulting imbalance and label concurrence. In the reported advocate labels, MeanIR is 6.09 and MaxIR is 13.32. These describe typical and greatest label imbalance relative to frequency. For areas, MeanIR is 99.91 and MaxIR is 383.34, which shows that the distribution is much more uneven at that level. SCUMBLE, their measure of how imbalanced labels occur together, is 0.6793 for advocates and 0.4988 for areas. These statistics describe the structure of the prediction targets. They do not estimate the benefit of any intervention on it.
Future directions named by the authors include studying how to incorporate winning ability, addressing data imbalance, and improving the use of legal areas. The stored verdict information makes it possible to ask further questions about outcomes. In the experiments reported here, an advocate label reflects a recorded appearance for one of the sides regardless of the ruling.
What the benchmark can establish
The largest gap between the intended application and the evaluation is the target. For each retrospective case, the benchmark has a set of observed names. An advocate who could have been equally well suited but did not appear is treated as a negative label for that case. Conversely, recovering a recorded name is scored as correct without a separate judgment of how well the advocate represented the client. The metrics are therefore about recovering historical assignments. The study has no independent assessment that would let the same numbers be read as measures of professional suitability.
The candidate pool imposes another limit. Advocates with few appearances are excluded from prediction, even though an infrequently recorded advocate could be a reasonable candidate in practice. The split is balanced to include each retained advocate in training, validation and test. It evaluates other cases for known candidates, with no test of whether the system can recommend a newcomer for whom it has no past cases. A prospective service would also face changes in availability and practice over time. The paper evaluates a balanced document split and does not report a separate evaluation that trains on earlier cases and tests on later ones.
The cases come from one court, during the period covered by the collection, and the experiments retain descriptions that meet the factual-sentence requirement. Those decisions give the study a coherent source and comparatively substantial inputs. They also mean the measured scores do not establish performance for other courts or for a client who provides a brief initial account. The text of a judgment is assembled after a dispute has reached court. Even its factual portion can include organization and detail that a prospective client would be unlikely to supply in the same form. Masking names and selecting sentences reduce some of the distance between a published decision and a plausible input, while the source of the narrative still matters.
The side of representation is available in the source data, but the advocate prediction target is the set of counsel in the case. Recovering a respondent’s advocate and recovering a petitioner’s advocate both count toward performance under that definition. The reported metrics cannot tell a prospective petitioner how well a system selects advocates suited to represent their side specifically. The evaluation also gives equal class weight to advocates when reporting macro scores, a reasonable choice for measuring coverage of the candidate pool. It does not evaluate how useful a ranked shortlist would be in a client’s decision.
The annotation process deserves a similar distinction. The faculty member and student label Acts and reconcile differences. This gives the experiments a defined vocabulary and a source for auxiliary supervision. It does not make a case’s derived area assignment the same as an independent expert classification of the facts alone. A judgment can cite multiple Acts, and the places where its citations occur may extend beyond the sentences the advocate predictor reads. Some difficulty in learning the auxiliary task can therefore arise from the relationship between its input and how its labels are constructed, alongside weaknesses in any particular predictor.
Finally, the comparisons report point estimates, and the full and category-leader tables leave the evaluation splits behind their differing values unspecified. The agreement in the macro F1 ordering for the leading configurations is more interpretable than a fine distinction between closely spaced scores. The co-occurrence analysis is also observational. Taken together, the results establish that predicting recorded counsel from masked factual narratives is difficult in this corpus, and that long-context direct prediction and combined advocate representations are competitive ways to do it. They leave real-world client outcomes, case allocation and the effect of deploying such a system unevaluated.
What came after
No subsequent work is identified for this paper. Improving inference of legal areas, addressing imbalances in the case records and studying how verdict information could inform advocate prediction remain directions proposed by the authors.
Cite
Cite as Upal Bhattacharya, Aniket Deroy, Ayan Bandyopadhyay, Gourish Majumdar, Shouvik Kumar Guha, Koustav Rudra, Saptarshi Ghosh and Kripabandhu Ghosh. 2025. ARDI: a new dataset for automatic advocate recommendation in the Indian Legal System. Artificial Intelligence and Law (Springer).
@article{bhattacharya2025ardi,
title = {{ARDI: a new dataset for automatic advocate recommendation in the Indian Legal System}},
author = {Upal Bhattacharya, Aniket Deroy, Ayan Bandyopadhyay, Gourish Majumdar, Shouvik Kumar Guha, Koustav Rudra, Saptarshi Ghosh and Kripabandhu Ghosh},
journal = {Artificial Intelligence and Law (Springer)},
year = {2025},
doi = {10.1007/s10506-025-09479-1},
url = {https://doi.org/10.1007/s10506-025-09479-1}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bhattacharya-2025-ardi-new-dataset-automatic/