<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Legal Argument Mining | Language Technologies Lab</title><link>https://nlp.unibo.it/tag/legal-argument-mining/</link><atom:link href="https://nlp.unibo.it/tag/legal-argument-mining/index.xml" rel="self" type="application/rss+xml"/><description>Legal Argument Mining</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Wed, 01 Jan 2025 00:00:00 +0000</lastBuildDate><image><url>https://nlp.unibo.it/media/logo.svg</url><title>Legal Argument Mining</title><link>https://nlp.unibo.it/tag/legal-argument-mining/</link></image><item><title>Dynamic Demonstrations Selection for Few-Shot Legal Argument Mining</title><link>https://nlp.unibo.it/publication/alfieri-2025-dynamic/</link><pubDate>Wed, 01 Jan 2025 00:00:00 +0000</pubDate><guid>https://nlp.unibo.it/publication/alfieri-2025-dynamic/</guid><description>&lt;h2 id="research-setting"&gt;Research setting&lt;/h2&gt;
&lt;p&gt;Argument mining (AM) is the automatic detection and classification of arguments in text.
In court decisions, an argument is a chain of inferences in which one or more premises lead to a conclusion.
The paper works on Demosthenes, a corpus of 40 English decisions by the Court of Justice of the European Union (CJEU) on Fiscal State Aid.
Legal experts annotated it at three levels.
Each level gives one classification task.&lt;/p&gt;
&lt;figure class="lt-viz lt-pipeline"&gt;
&lt;ol&gt;
&lt;li class="lt-pipeline-step"&gt;
&lt;span class="lt-pipeline-index"&gt;&lt;i class="fas fa-gavel" aria-hidden="true"&gt;&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;Argumentative sentence&lt;/strong&gt;
&lt;span&gt;A sentence from a CJEU decision.&lt;/span&gt;
&lt;/li&gt;
&lt;li class="lt-pipeline-step"&gt;
&lt;span class="lt-pipeline-index"&gt;&lt;i class="fas fa-sitemap" aria-hidden="true"&gt;&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;&lt;ol&gt;
&lt;li&gt;Argument component&lt;/li&gt;
&lt;/ol&gt;
&lt;/strong&gt;
&lt;span&gt;Premise or conclusion.&lt;/span&gt;
&lt;/li&gt;
&lt;li class="lt-pipeline-step"&gt;
&lt;span class="lt-pipeline-index"&gt;&lt;i class="fas fa-balance-scale" aria-hidden="true"&gt;&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;&lt;ol start="2"&gt;
&lt;li&gt;Premise type&lt;/li&gt;
&lt;/ol&gt;
&lt;/strong&gt;
&lt;span&gt;For premises. Factual, legal, or both.&lt;/span&gt;
&lt;/li&gt;
&lt;li class="lt-pipeline-step is-highlight"&gt;
&lt;span class="lt-pipeline-index"&gt;&lt;i class="fas fa-tags" aria-hidden="true"&gt;&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;&lt;ol start="3"&gt;
&lt;li&gt;Argument scheme&lt;/li&gt;
&lt;/ol&gt;
&lt;/strong&gt;
&lt;span&gt;For legal premises. One or more of five schemes.&lt;/span&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;figcaption&gt;The three classification tasks of the paper, one per annotation level of the Demosthenes corpus (Sections 3 and 4).&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Terms used on this page:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;factual premise&lt;/strong&gt; describes events or procedural aspects of the case. A &lt;strong&gt;legal premise&lt;/strong&gt; refers to legal content such as laws, precedents, principles, or their interpretation.&lt;/li&gt;
&lt;li&gt;An &lt;strong&gt;argument scheme&lt;/strong&gt; is the pattern of reasoning behind a legal premise. A premise can carry several schemes. The paper uses five:
&lt;ul&gt;
&lt;li&gt;Rule: an EU norm applies to the case.&lt;/li&gt;
&lt;li&gt;Precedent: an earlier ruling of the Court applies.&lt;/li&gt;
&lt;li&gt;Authoritative: a statement by an authority, such as an Advocate General, supports the outcome.&lt;/li&gt;
&lt;li&gt;Classification: a legal concept is defined by its conditions.&lt;/li&gt;
&lt;li&gt;Interpretative: a meaning is given to a legal source.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;large language model (LLM)&lt;/strong&gt; is a general-purpose text model that can solve a task from instructions in its prompt, without training.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Few-shot learning&lt;/strong&gt;, or in-context learning, adds a few labeled examples to the prompt. These examples are called &lt;strong&gt;demonstrations&lt;/strong&gt;, and a prompt with &lt;em&gt;k&lt;/em&gt; of them is a &lt;em&gt;k&lt;/em&gt;-shot prompt.&lt;/li&gt;
&lt;li&gt;An &lt;strong&gt;embedding&lt;/strong&gt; is a vector that represents the meaning of a sentence. Two sentences with close embeddings are similar.&lt;/li&gt;
&lt;/ul&gt;
&lt;figure class="lt-viz lt-annotate"&gt;
&lt;div class="lt-annotate-legend" role="group" aria-label="Labels"&gt;
&lt;button type="button" class="lt-annotate-key lt-c1" data-lt-label="precedent" aria-pressed="false"&gt;Precedent&lt;/button&gt;
&lt;button type="button" class="lt-annotate-key lt-c2" data-lt-label="classification" aria-pressed="false"&gt;Classification&lt;/button&gt;
&lt;button type="button" class="lt-annotate-key lt-c3" data-lt-label="rule" aria-pressed="false"&gt;Rule&lt;/button&gt;
&lt;/div&gt;
&lt;p class="lt-annotate-text"&gt;
&lt;span&gt;First, it must be recalled that,&lt;/span&gt;
&lt;mark class="lt-c1" data-lt-label="precedent"&gt;according to the Court’s settled case-law,&lt;span class="lt-annotate-tag"&gt;Precedent&lt;/span&gt;&lt;/mark&gt;
&lt;mark class="lt-c2" data-lt-label="classification"&gt;classification of a national measure as ‘State aid’,&lt;span class="lt-annotate-tag"&gt;Classification&lt;/span&gt;&lt;/mark&gt;
&lt;mark class="lt-c3" data-lt-label="rule"&gt;within the meaning of Article 107(1) TFEU,&lt;span class="lt-annotate-tag"&gt;Rule&lt;/span&gt;&lt;/mark&gt;
&lt;mark class="lt-c2" data-lt-label="classification"&gt;requires all the following conditions to be fulfilled …&lt;span class="lt-annotate-tag"&gt;Classification&lt;/span&gt;&lt;/mark&gt;
&lt;/p&gt;
&lt;figcaption&gt;A legal premise from the corpus that carries three argument schemes at once (Appendix B.3 of the paper). The marked spans follow the rationale that the paper gives for each scheme.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h2 id="motivation"&gt;Motivation&lt;/h2&gt;
&lt;p&gt;LLMs give mixed results in the legal domain, whose language is formal, layered, and often ambiguous.
In few-shot learning, the choice of demonstrations shapes performance, and in the legal domain the choice is especially hard.
Demonstrations must show the key reasoning patterns and cues, yet stay short because of the token limits of the models.
Some prior methods fix one set of demonstrations for all queries.
Others pick examples close to the query, but measure diversity only through labels or through the same similarity score.&lt;/p&gt;
&lt;figure class="lt-viz lt-gap"&gt;
&lt;div class="lt-viz-scroll"&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th scope="col"&gt;Selection method&lt;/th&gt;&lt;th scope="col"&gt;Chosen for each query&lt;/th&gt;&lt;th scope="col"&gt;Similar to the query&lt;/th&gt;&lt;th scope="col"&gt;Diverse in content&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th scope="row"&gt;Static selection by experts or by the LLM (Grundler et al., 2024; Qin et al., 2024)&lt;/th&gt;
&lt;td&gt;&lt;i class="fas fa-times-circle lt-no" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;no&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;i class="fas fa-times-circle lt-no" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;no&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;not discussed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th scope="row"&gt;k-NN selection (Liu et al., 2022)&lt;/th&gt;
&lt;td&gt;&lt;i class="fas fa-check-circle lt-yes" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;yes&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;i class="fas fa-check-circle lt-yes" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;yes&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;i class="fas fa-times-circle lt-no" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;no&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th scope="row"&gt;Reinforcement learning selection (Wang et al., 2025)&lt;/th&gt;
&lt;td&gt;&lt;i class="fas fa-check-circle lt-yes" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;yes&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;i class="fas fa-check-circle lt-yes" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;yes&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;labels only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th scope="row"&gt;Complementary examples (Ye et al., 2023)&lt;/th&gt;
&lt;td&gt;&lt;i class="fas fa-check-circle lt-yes" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;yes&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;i class="fas fa-check-circle lt-yes" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;yes&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;i class="fas fa-adjust lt-partial" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;partially&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="is-ours"&gt;
&lt;th scope="row"&gt;This paper (dynamic graph selection) &lt;span class="lt-ours"&gt;This work&lt;/span&gt;&lt;/th&gt;
&lt;td&gt;&lt;i class="fas fa-check-circle lt-yes" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;yes&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;i class="fas fa-check-circle lt-yes" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;yes&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;i class="fas fa-check-circle lt-yes" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;yes&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;figcaption&gt;How the paper relates to the demonstration selection methods it discusses (Section 2 of the paper).&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Objective.&lt;/strong&gt; Measure how demonstration selection affects LLMs on legal argument mining. Compare static selection with dynamic selection, including a new graph-based method that also seeks diversity.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="approach"&gt;Approach&lt;/h2&gt;
&lt;p&gt;The paper compares two families of selection, shown in the figure at the top of this page.
&lt;strong&gt;Static&lt;/strong&gt; selection fixes the demonstrations once.
Legal experts choose them with explicit criteria, or the LLM itself chooses them from at most 50 training examples (self-selection).
&lt;strong&gt;Dynamic&lt;/strong&gt; selection picks new demonstrations from the training set for each query, the sentence to classify.
Dynamic k-NN takes the &lt;em&gt;k&lt;/em&gt; training examples whose embeddings are closest to the query.
The new dynamic graph method adds diversity, in five steps.&lt;/p&gt;
&lt;figure class="lt-viz lt-pipeline"&gt;
&lt;ol&gt;
&lt;li class="lt-pipeline-step"&gt;
&lt;span class="lt-pipeline-index"&gt;&lt;i class="fas fa-project-diagram" aria-hidden="true"&gt;&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;Build a graph&lt;/strong&gt;
&lt;span&gt;Nodes are training examples, linked when close.&lt;/span&gt;
&lt;/li&gt;
&lt;li class="lt-pipeline-step"&gt;
&lt;span class="lt-pipeline-index"&gt;&lt;i class="fas fa-crosshairs" aria-hidden="true"&gt;&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;Keep near nodes&lt;/strong&gt;
&lt;span&gt;Drop nodes far from the query.&lt;/span&gt;
&lt;/li&gt;
&lt;li class="lt-pipeline-step is-highlight"&gt;
&lt;span class="lt-pipeline-index"&gt;&lt;i class="fas fa-object-group" aria-hidden="true"&gt;&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;Find groups&lt;/strong&gt;
&lt;span&gt;The Louvain method splits them into dense groups.&lt;/span&gt;
&lt;/li&gt;
&lt;li class="lt-pipeline-step"&gt;
&lt;span class="lt-pipeline-index"&gt;&lt;i class="fas fa-hand-pointer" aria-hidden="true"&gt;&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;Pick one each&lt;/strong&gt;
&lt;span&gt;The most central node, by PageRank.&lt;/span&gt;
&lt;/li&gt;
&lt;li class="lt-pipeline-step"&gt;
&lt;span class="lt-pipeline-index"&gt;&lt;i class="fas fa-comment-dots" aria-hidden="true"&gt;&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;Prompt the LLM&lt;/strong&gt;
&lt;span&gt;The picks go into the prompt.&lt;/span&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;figcaption&gt;Dynamic graph selection (Section 4.1 of the paper). The two distance thresholds are set per task and number of demonstrations, in two configurations called c1 and c2 (Section 4.2).&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;A &lt;strong&gt;balanced&lt;/strong&gt; variant of both dynamic methods includes about the same number of demonstrations for each class.
The LLMs are Llama 3.1 (8B, instruction tuned) and Gemini 2.0 Flash, with 0, 5, or 10 demonstrations.
Two trained classifiers serve as references: a LinearSVC on TF-IDF features and a fine-tuned LEGAL-BERT, one model per task.&lt;/p&gt;
&lt;h2 id="results"&gt;Results&lt;/h2&gt;
&lt;p&gt;The paper tests 34 configurations on a held-out split of 8 decisions, with 345 premises and 22 conclusions.
Scores are F1 per class and their macro average (macro-F1), from 0 to 1, where higher is better.&lt;/p&gt;
&lt;ul class="lt-viz lt-proj-numbers"&gt;&lt;li&gt;&lt;span class="lt-proj-number"&gt;0.80&lt;/span&gt;&lt;span class="lt-proj-number-label"&gt;argument scheme macro-F1, Gemini 5-shot with k-NN, against 0.68 with static expert&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="lt-proj-number"&gt;0.84&lt;/span&gt;&lt;span class="lt-proj-number-label"&gt;premise type macro-F1, Gemini 10-shot with k-NN, against 0.81 with static expert&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="lt-proj-number"&gt;14&lt;/span&gt;&lt;span class="lt-proj-number-label"&gt;demonstrations chosen by both Gemini and the experts, 11 for argument schemes&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;figure class="lt-viz lt-bars"&gt;
&lt;figcaption class="lt-viz-title"&gt;Macro-F1 on argument schemes &lt;span&gt;(higher is better)&lt;/span&gt;&lt;/figcaption&gt;
&lt;ul&gt;&lt;li class="lt-bar" tabindex="0"&gt;
&lt;span class="lt-bar-label"&gt;Gemini zero-shot&lt;/span&gt;
&lt;span class="lt-bar-track"&gt;&lt;span class="lt-bar-fill" style="--w: 61%"&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class="lt-bar-value"&gt;0.61&lt;/span&gt;
&lt;/li&gt;&lt;li class="lt-bar" tabindex="0"&gt;
&lt;span class="lt-bar-label"&gt;Static expert&lt;/span&gt;
&lt;span class="lt-bar-track"&gt;&lt;span class="lt-bar-fill" style="--w: 71%"&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class="lt-bar-value"&gt;0.71&lt;/span&gt;
&lt;/li&gt;&lt;li class="lt-bar" tabindex="0"&gt;
&lt;span class="lt-bar-label"&gt;Static self-selection&lt;/span&gt;
&lt;span class="lt-bar-track"&gt;&lt;span class="lt-bar-fill" style="--w: 75%"&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class="lt-bar-value"&gt;0.75&lt;/span&gt;
&lt;/li&gt;&lt;li class="lt-bar" tabindex="0"&gt;
&lt;span class="lt-bar-label"&gt;Dynamic k-NN&lt;/span&gt;
&lt;span class="lt-bar-track"&gt;&lt;span class="lt-bar-fill" style="--w: 80%"&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class="lt-bar-value"&gt;0.80&lt;/span&gt;
&lt;/li&gt;&lt;li class="lt-bar is-ours" tabindex="0"&gt;
&lt;span class="lt-bar-label"&gt;Dynamic graph c1 &lt;span class="lt-ours"&gt;This work&lt;/span&gt;&lt;/span&gt;
&lt;span class="lt-bar-track"&gt;&lt;span class="lt-bar-fill" style="--w: 79%"&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class="lt-bar-value"&gt;0.79&lt;/span&gt;
&lt;/li&gt;&lt;li class="lt-bar is-ours" tabindex="0"&gt;
&lt;span class="lt-bar-label"&gt;Dynamic graph c2 &lt;span class="lt-ours"&gt;This work&lt;/span&gt;&lt;/span&gt;
&lt;span class="lt-bar-track"&gt;&lt;span class="lt-bar-fill" style="--w: 74%"&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class="lt-bar-value"&gt;0.74&lt;/span&gt;
&lt;/li&gt;&lt;li class="lt-bar" tabindex="0"&gt;
&lt;span class="lt-bar-label"&gt;LEGAL-BERT (fine-tuned)&lt;/span&gt;
&lt;span class="lt-bar-track"&gt;&lt;span class="lt-bar-fill" style="--w: 75%"&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class="lt-bar-value"&gt;0.75&lt;/span&gt;
&lt;/li&gt;&lt;li class="lt-bar" tabindex="0"&gt;
&lt;span class="lt-bar-label"&gt;LinearSVC (trained)&lt;/span&gt;
&lt;span class="lt-bar-track"&gt;&lt;span class="lt-bar-fill" style="--w: 83%"&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class="lt-bar-value"&gt;0.83&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="lt-viz-note"&gt;Argument scheme classification with Gemini 2.0 Flash and 10 demonstrations, against zero-shot Gemini and the trained references. Source: Table 2 of the paper.&lt;/p&gt;
&lt;details class="lt-viz-table"&gt;
&lt;summary&gt;Show as table&lt;/summary&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th scope="col"&gt;System&lt;/th&gt;&lt;th scope="col"&gt;Macro-F1 on argument schemes&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Gemini zero-shot&lt;/td&gt;&lt;td&gt;0.61&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Static expert&lt;/td&gt;&lt;td&gt;0.71&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Static self-selection&lt;/td&gt;&lt;td&gt;0.75&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Dynamic k-NN&lt;/td&gt;&lt;td&gt;0.80&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Dynamic graph c1 (this work)&lt;/td&gt;&lt;td&gt;0.79&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Dynamic graph c2 (this work)&lt;/td&gt;&lt;td&gt;0.74&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LEGAL-BERT (fine-tuned)&lt;/td&gt;&lt;td&gt;0.75&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LinearSVC (trained)&lt;/td&gt;&lt;td&gt;0.83&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;/details&gt;
&lt;/figure&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model and selection&lt;/th&gt;
&lt;th&gt;Argument component&lt;/th&gt;
&lt;th&gt;Premise type&lt;/th&gt;
&lt;th&gt;Argument scheme&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;LinearSVC (trained)&lt;/td&gt;
&lt;td&gt;0.90&lt;/td&gt;
&lt;td&gt;0.82&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.83&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LEGAL-BERT (fine-tuned)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.91&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.89&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0.75&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 10-shot, static expert&lt;/td&gt;
&lt;td&gt;0.69&lt;/td&gt;
&lt;td&gt;0.81&lt;/td&gt;
&lt;td&gt;0.71&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 10-shot, static self-selection&lt;/td&gt;
&lt;td&gt;0.67&lt;/td&gt;
&lt;td&gt;0.80&lt;/td&gt;
&lt;td&gt;0.75&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 10-shot, dynamic k-NN&lt;/td&gt;
&lt;td&gt;0.65&lt;/td&gt;
&lt;td&gt;0.84&lt;/td&gt;
&lt;td&gt;0.80&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 10-shot, dynamic k-NN balanced&lt;/td&gt;
&lt;td&gt;0.67&lt;/td&gt;
&lt;td&gt;0.82&lt;/td&gt;
&lt;td&gt;0.80&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 10-shot, dynamic graph c1&lt;/td&gt;
&lt;td&gt;0.65&lt;/td&gt;
&lt;td&gt;0.79&lt;/td&gt;
&lt;td&gt;0.79&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 10-shot, dynamic graph c2&lt;/td&gt;
&lt;td&gt;0.67&lt;/td&gt;
&lt;td&gt;0.83&lt;/td&gt;
&lt;td&gt;0.74&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;em&gt;Macro-F1 per task. Source: Table 2 of the paper.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Among the LLM configurations, dynamic k-NN is the best overall in all three tasks, which points to similarity as an important criterion in this domain.
At least one configuration of the graph method performs close to k-NN in most settings.
Neither c1 nor c2 is better overall.
Balancing matters for argument components with Llama: with 5 demonstrations, k-NN drops to 0.14 macro-F1 without balancing and reaches 0.69 with it.
The trained references still score best in every task.
However, they use the whole training set and one model per task, while one LLM serves all tasks with 5 or 10 demonstrations.&lt;/p&gt;
&lt;h2 id="takeaways"&gt;Takeaways&lt;/h2&gt;
&lt;ol class="lt-viz lt-takeaways"&gt;
&lt;li&gt;&lt;strong&gt;Similarity is the key criterion.&lt;/strong&gt;&lt;span&gt;Picking demonstrations close to each query was the best LLM setting overall in all three tasks. In the paper&amp;rsquo;s comparison, it matches or outperforms demonstrations chosen by legal experts.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Expert curation is not required.&lt;/strong&gt;&lt;span&gt;Comparable or better results come without the cost and effort of manual selection. At least one configuration of the graph method performs close to k-NN, which leaves room to explore its thresholds.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Training still wins.&lt;/strong&gt;&lt;span&gt;LinearSVC and LEGAL-BERT obtain the best results in all three tasks. The paper plans to test how less labeled data affects each approach.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;</description></item></channel></rss>