NitiBench: A Comprehensive Study of LLM Framework Capabilities for Thai Legal Question Answering
Paper · 2025 · Pawitsapak Akarajaradwong, Pirat Pothavorn, Chompakorn Chaksangchaichot et al.
Summary
Answering a question about law requires more than locating a passage containing familiar words. The system must determine which provisions govern the situation, recognize dependencies between them, and connect their conditions to the facts of the case. NitiBench investigates how reliably current systems perform this work in Thai legal AI. Its contribution combines a benchmark, an evaluation procedure, and experiments that separate evidence retrieval from answer production. The task requires an explanatory response together with identifiable statutory citations, allowing the authors to investigate where an apparently successful answer loses its legal foundation.
The benchmark brings together differently constructed collections. NitiBench-CCL contains 3,730 questions derived from an expert-authored financial-law test set. It covers 21 legislative codes, and every item has a single annotated supporting section. NitiBench-Tax instead contains 50 authentic inquiries published with official Revenue Department responses. These cases reference an average of three sections and frequently require substantial interpretation. This contrast is central to the study: questions written around a selected provision test a different capability from cases whose relevant provisions must be discovered through analysis of a factual situation.
The authors examine retrieval-augmented generation, commonly abbreviated RAG, in which retrieved documents supply evidence to an answering component. Their section-preserving segmentation improves retrieval and citation results relative to the selected generic segmentation strategy. The improvement in answer content is smaller under the controlled comparison. NitiLink, an additional component that follows statutory references, gives a more complicated result. It can recover supporting provisions that the initial search misses, particularly on tax cases, yet this additional evidence does not consistently produce more accurate answers. The experiments therefore distinguish obtaining useful material from applying it successfully.
Component comparisons reinforce that distinction. Adapting BGE-M3 to the financial-law training collection produces strong in-domain retrieval, but the advantage does not reliably extend to the tax cases. Claude 3.5 Sonnet performs well on answer coverage and contradiction avoidance, while citation precision sometimes favors other generators. Supplying the annotated relevant provisions directly still leaves the tax task difficult: the golden-context condition records coverage of 52.0 and contradiction of 0.460. A whole-collection Gemini configuration also falls behind the selected RAG system on these answer measures. Access to more text, or even to the expected text, does not remove the need for careful legal interpretation.
NitiBench’s broader lesson concerns measurement. A retrieval score can hide missing dependencies; a citation score can reward selecting expected sources without establishing their correct application; an answer score can conceal incomplete or questionable support. The authors consequently evaluate these outcomes separately and introduce retrieval measures that account for multiple required provisions. Their results support respecting legislative structure, while their error analysis identifies unresolved problems involving scope, implicit categories, general definitions, and omitted inference steps. The benchmark itself also has weaknesses, including ambiguous section-derived questions and inconsistent presentation of some equations and numerical results.
Interesting ideas
Preserve units that carry a complete rule. Segmentation should reflect the source’s organization when that organization determines meaning. Keeping a provision intact reduces the chance that retrieval separates a condition from its consequence. This principle also applies to specifications, instructional material, and policies, although the paper shows that an intact unit may still need neighboring context to become easy to find.
Reward completion of the evidence requirement. Recovering a useful document can be insufficient when the conclusion depends on several documents together. Measures that require the complete annotated set expose this weakness more directly than a successful-hit count. The approach transfers to tasks involving definitions, exceptions, prerequisites, or dependencies distributed across a collection.
Evaluate evidence acquisition and evidence application separately. An intervention can improve search while leaving the answer worse. NitiLink makes this possibility concrete by adding relevant provisions without consistently improving tax responses. Any system with several processing stages benefits from observing what each stage receives, selects, and contributes to the final result.
Use controlled evidence conditions to identify the obstacle. Compare answering from existing internal knowledge, answering from retrieved material, and answering from reviewed relevant material. Persistent errors in the last condition point toward interpretation, response construction, or limitations in the reference material. This design is useful whenever retrieval and reasoning can fail independently.
Challenge adaptation with a different question-generating process. A system tuned on questions derived from documents may improve without becoming better at naturally occurring problems. Testing authentic inquiries changes phrasing, implicit assumptions, and the relationships among required sources. This makes generalization a question about task construction as well as subject matter.
Make evaluators accountable to human judgments. Semantic assessment is itself an uncertain process. Comparing automatic decisions with reviewed examples, then examining the types of disagreement, gives more information than reporting agreement alone. The idea applies whenever evaluation depends on interpreting partial correctness rather than matching an exact string.
Assess references independently of answer fluency. A response can attach many citations to weak analysis, or state an acceptable conclusion without identifying its basis. Separate measures for answer content and source selection reveal these behaviors. This is particularly useful for systems expected to support conclusions with inspectable evidence.
Deep dive: NitiBench: A Comprehensive Study of LLM Framework Capabilities for Thai Legal Question Answering
NitiBench examines Thai legal question answering through retrieval, statutory structure, citation accuracy, and difficult tax cases. · about 40 minutes to read
How Mova uses it
Mova’s relevant foundation is its explicit representation of language and evidence: dependency structures become frames, frames update a text world, and native answers retain reasons. Its documented tools also distinguish source material, reviewed proposals, admitted knowledge, and assessment data. Those mechanisms provide places to test NitiBench’s ideas, but they do not demonstrate Thai statutory understanding or an implemented application of this benchmark. The marks below indicate proposed architectural overlap. Effects on Mova remain unverified unless a specific measurement is available; none is established for these transfers.
Idea: Align retrieval passages with meaningful source boundaries. Where: §4.1.1 and §5.1.1. Area: document processing. Mova: частково є (tools/dictindex preserves document identities; tools/enrich prepares source-bound material). A future evidence reader could preserve an entire definition or conditional statement when preparing searchable units, then check whether the necessary content survives segmentation. Why Mova: retaining a rule’s internal relationships would reduce avoidable losses before interpretation begins.
Idea: Audit segmentation independently of answering. Where: §4.1.1, Tables 5–6. Area: data validation. Mova: нове (a dedicated structural-loss report is proposed; equivalent coverage elsewhere is unknown). Preparation could report which units are fragmented, repeated across passages, or unavailable in full. These measurements would describe the representation rather than imply comprehension. Why Mova: a preparation defect could be diagnosed before a later failure is attributed to grammar or inference.
Idea: Attach enclosing scope to extracted material. Where: §6.5.1. Area: knowledge representation. Mova: частково є (global contains typed concepts; layers represents domains and routing decisions). Source units could retain their chapter, subject domain, or governing viewpoint as explicit metadata. The authors suggest related remedies for legal retrieval but do not establish them experimentally. Why Mova: wording that looks equivalent may apply differently under a different scope.
Idea: Evaluate context around a complete unit. Where: §6.1. Area: retrieval analysis. Mova: частково є (world maintains document context, and enrichment packets preserve supporting material). Mova could compare searching an isolated statement with searching that statement plus an identified neighbor. The source boundary would remain explicit even when additional text assists discovery. Why Mova: a passage can express a complete rule while relying on surrounding text to name its topic.
Idea: Represent textual references as traversable dependencies. Where: §4.1.2. Area: graph processing. Mova: частково є (source-bound groupants and bounded recursive capability calls). A reference-following operation could return the requested source unit together with the reference that justified fetching it. Its success would mean that a dependency was resolved, without implying that the resulting conclusion is correct. Why Mova: dependencies would become inspectable inputs to reasoning.
Idea: Search for sources that point toward a retrieved unit. Where: §5.1.2 and §6.5.2. Area: knowledge graphs. Mova: нове (incoming-reference retrieval is a proposal; its implementation elsewhere is unknown). An index could distinguish outgoing references from provisions or explanations that cite the current source. This would address relationships whose useful traversal direction differs from their textual direction. Why Mova: a consequence or exception may be located in the material doing the referencing.
Idea: Preserve original ranking when adding dependencies. Where: §4.1.2 and Table 8. Area: retrieval provenance. Mova: частково є (typed observations and explicit worker outcomes). Search results and graph additions could remain separately identifiable, with the final presentation order recorded as another decision. This would allow evaluation of ordering changes without confusing them with evidence gains. Why Mova: a useful addition can still displace another required item beyond a processing limit.
Idea: Measure expansion cost alongside evidence gains. Where: §6.2 and Figures 7–8. Area: resource management. Mova: частково є (bounded execution interfaces and prospective job-cost tooling). A dependency traversal could report added material and newly satisfied evidence requirements at each admitted depth. The paper motivates this comparison but supplies no universally valid stopping policy. Why Mova: transparent computation requires knowing what extra work actually contributes.
Idea: Check whether all required sources were found. Where: §3.3.1. Area: evaluation. Mova: частково є (groupant constraints and proof obligations in retained reading). A task could declare a set of necessary evidence items and report whether retrieval satisfies the whole set. Finding a useful subset would remain visible as partial success. Why Mova: an explanation should expose an absent exception or prerequisite instead of silently treating incomplete support as sufficient.
Idea: Evaluate the order of multiple required items. Where: Equation 5 and §6.7. Area: ranking statistics. Mova: нове (the proposed multi-source ranking diagnostic has no established implementation in the digest). A checked implementation could measure whether the necessary evidence appears early enough for a bounded reader. The paper’s printed definitions require clarification before adoption. Why Mova: evidence can be present in a collection yet practically inaccessible within the available budget.
Idea: Trace the transition from available evidence to used evidence. Where: §6.8 and Table 23. Area: explanation provenance. Mova: частково є (world retains reasons, while frames identify interpreted content). Mova could compare the facts offered to a reader with the facts actually named in its justification. This should distinguish explicit use from mere availability. Why Mova: unused correct evidence points toward a different repair from failed retrieval.
Idea: Penalize irrelevant supporting references. Where: §3.3.2 and §6.8. Area: evaluation. Mova: частково є (source provenance and native reason chains). A citation audit could ask whether each referenced item plays an identifiable role in the conclusion. A long list would receive no automatic credit for looking comprehensive. Why Mova: explanations become easier to inspect when every source has a purpose.
Idea: Detect missing support in otherwise concise explanations. Where: §3.3.2. Area: evaluation. Mova: частково є (math, global, and world expose explanatory links). A separate completeness check could compare the stated justification with the sources required by a reviewed task. This complements precision rather than replacing it. Why Mova: an economical explanation may still omit the bridge that makes its conclusion defensible.
Idea: Distinguish omitted content from conflicting content. Where: §3.3.2. Area: semantic evaluation. Mova: частково є (reader assessment and explicit gap reporting). Evaluation could record a missing required proposition separately from an asserted proposition that opposes the reference. The distinction should survive aggregation. Why Mova: missing knowledge and incorrect inference require different changes to rules, representations, or parameters.
Idea: Supply reviewed evidence as a diagnostic control. Where: §4.2.3 and §5.2.3. Area: experimental design. Mova: частково є (fastread.rs compares fresh reading with prepared-graph access). An assessment could bypass ordinary acquisition and provide the facts judged necessary for the same questions. Continued failure would then narrow the investigation. Why Mova: it would help separate an evidence shortage from a failure to interpret available information.
Idea: Keep a condition without task-specific evidence. Where: §4.2.3. Area: evaluation controls. Mova: частково є (the fast reader has a skeleton-only condition). The same questions could be answered using compiled knowledge before additional source material is introduced. Comparing decisions would reveal whether the new material helps, distracts, or changes the selected explanation. Why Mova: the contribution of context should be observed rather than assumed.
Idea: Test learned changes on naturally arising inquiries. Where: §5.2.1 and §7.1. Area: generalization. Mova: частково є (held-out evaluation and contrast sets). A repair learned from lesson-like statements could also face questions collected independently of those statements, with different implicit requirements. No improvement is established merely by proposing this evaluation. Why Mova: training-compatible phrasing can conceal weaknesses encountered in actual use.
Idea: Separate multiple annotations from necessary composition. Where: §7.1. Area: dataset design. Mova: нове (an explicit audit of this distinction is proposed; existing coverage is unknown). Dataset records could distinguish related evidence attached by reviewers from evidence that must jointly be applied to answer. These are different claims about difficulty. Why Mova: a benchmark should reveal whether the reader combines facts, rather than only observing that several facts accompany a question.
Idea: Give question authors plausible competing sources. Where: §7.1. Area: annotation. Mova: частково є (treeagree exposes competing parser analyses for review). Assessment authors could inspect confusable definitions or rules before finalizing a question, then specify the conditions that distinguish the intended answer. This transfers the review principle rather than the parser-voting mechanism. Why Mova: it would reduce disagreement caused by underspecified questions.
Idea: Preserve everyday phrasing in evaluation. Where: §7.1. Area: pragmatics and dataset construction. Mova: частково є (native parsing and configured English request handling; broader coverage remains limited). A contrast assessment could retain informal requests alongside more explicit formulations, without presuming that rewriting preserves all meaning. Why Mova: successful interpretation should survive realistic wording rather than depend entirely on the style of teaching material.
Idea: Validate optional semantic judges independently. Where: §3.3.2 and Table 2. Area: evaluation quality. Mova: частково є (teacher review operates across an explicit trust boundary). Any external judge could be compared with independently reviewed decisions before its scores are used diagnostically. Its assessment would remain an observation rather than native proof. Why Mova: evaluator error should not be mistaken for a demonstrated change in capability.
Idea: Retain the shape of evaluator disagreement. Where: Tables 3–4. Area: statistics. Mova: частково є (confidence diagnostics and fast-reader miss classification). Reports could distinguish a disagreement about partial success from a reversal between complete failure and complete success. These categories carry different implications even under similar aggregate agreement. Why Mova: targeted inspection is easier when the report identifies what kind of judgment was unstable.
Idea: Keep generated teaching proposals behind review gates. Where: §3.1.1. Area: training data governance. Mova: вже є (tools/enrich stages reviewed drafts, and admission is separate). The paper supplies another setting in which generated material is useful before it becomes authoritative. Mova can preserve that boundary while testing more economical preparation methods. Why Mova: fluent candidate content should not bypass evidence and compatibility requirements.
Idea: Review test questions through a separate authoring role. Where: §3.1.1 and Figure 2. Area: annotation quality. Mova: частково є (reviewed disagreements and staged admission provide separate checks). Assessment construction could explicitly distinguish the question author from the reviewer checking answerability and scope. The digest does not establish this exact authoring workflow. Why Mova: independent review can detect assumptions that remain invisible to the person who selected the source.
Idea: Record transformations of reference answers. Where: §3.1.1, §3.1.2, and Figure 2. Area: data provenance. Mova: частково є (source fingerprints and retained evidence in enrichment). A shortened scoring target could retain a link to its original response and the transformation that produced it. Review would check whether qualification or applicability conditions disappeared. Why Mova: simplifying evaluation should not silently change what counts as a correct answer.
Idea: Distinguish factual interpretation from discretionary action. Where: §3.1.2. Area: task classification. Mova: частково є (layers can escalate, and the deputy admits configured capabilities). Requests could be classified according to whether a rule determines an answer or an authorized decision-maker must exercise discretion. Unsupported requests would retain their unresolved status. Why Mova: a logical module should not fabricate permission or authority from descriptive knowledge.
Idea: Treat broad definitions as potential prerequisites. Where: §6.6.1. Area: lexical knowledge. Mova: частково є (compiled global concepts and dictionary evidence indexing). A task representation could identify which general concepts are required before a specific observation can be interpreted. The paper’s suggested remedies remain unevaluated. Why Mova: foundational information may be necessary even when it resembles the question less closely than a detailed example.
Idea: Preserve distinctions expressed by narrow relationships. Where: §6.5.3. Area: syntax and lexical semantics. Mova: частково є (dependency roles and structured occurrence frames). Contrast questions could test whether a relation involving a participant differs from the same relation involving another participant of that type. Why Mova: shared vocabulary should not erase the structure that determines which rule applies.
Idea: Expose intermediate classification before retrieval. Where: §6.5.4. Area: reasoning. Mova: частково є (deduct, math::steps, and bounded task concretization). A reader could record the category inferred from a case before using that category to seek evidence. This is a proposed transfer of the authors’ decomposition suggestion. Why Mova: the missing link between ordinary descriptions and formal concepts would become available for review.
Idea: Route by the participant whose obligation is queried. Where: §6.6.3. Area: semantic roles. Mova: частково є (prag assigns roles and layers provides domain routing). Retrieval could prioritize the person or entity bearing the disputed duty, rather than background organizations with frequent topic words. Why Mova: identifying the relevant actor is frequently more informative than recognizing a broad subject.
Idea: Require a bridge from facts to rule conditions. Where: §6.8. Area: inference. Mova: частково є (global explanations identify links and report missing ones). A reasoning path could make the classification of a case fact explicit before applying a rule. The legal examples motivate this requirement without validating a general solution. Why Mova: possession of a rule does not establish that its antecedent holds.
Idea: Preserve ambiguity instead of choosing a convenient scope. Where: §6.8 and §7.1. Area: pragmatics. Mova: частково є (the deputy records missing_context in supported reference-resolution failures). Broader clarification would require additional configured behavior and assessment. Competing interpretations could remain separate until the necessary condition is supplied. Why Mova: uncertainty about applicability should remain visible instead of becoming a confident unsupported answer.
Idea: Diagnose dependence on evidence position. Where: §6.9 and Figure 14. Area: robustness evaluation. Mova: нове (a specific position-sensitivity assessment is proposed; present coverage is unknown). Equivalent tasks could be tested with source order varied while content and obligations remain fixed. That would extend beyond the paper’s observational grouping. Why Mova: bounded processing can create access biases even when all required information is present.
Idea: Evaluate inferential support separately from the conclusion. Where: §7.2. Area: reasoning assessment. Mova: частково є (native reasons, explicit mathematical steps, and groupant checks). Reviewed tasks could inspect whether each inferential transition has adequate premises. A correct final response would not automatically validate its derivation. Why Mova: reusable reasoning needs support that remains sound across related cases.
Idea: Test whether a reasoning step adds useful information. Where: §7.2. Area: explanation analysis. Mova: частково є (explicit step representations permit inspection; this diagnostic is not established). A step could be reviewed for contribution as well as consistency, following the distinction discussed through ReCEval. Why Mova: a long chain may contain redundant statements while omitting the decisive inference.
Idea: Use several final measures when selecting a component. Where: §5.2.2 and §6.8. Area: system evaluation. Mova: частково є (regression gates and separately reported observations). A component choice could retain the tradeoff among completeness, conflicting claims, and source selection instead of collapsing them immediately. Why Mova: a local gain should not conceal a different failure important to the task.
Idea: Recheck a local improvement through the complete pipeline. Where: §6.3. Area: experimental design. Mova: вже є (held-out admission gates and same-question before-and-after comparison in enrichment). NitiLink reinforces why successful intermediate observations need a separate downstream assessment. The existing principle can be applied specifically to evidence expansion. Why Mova: more retrieved structure is useful only if the consumer can interpret it appropriately.
Idea: Preserve assessment separation during adaptation. Where: §3.1.1 and §4.2.3. Area: data separation. Mova: вже є (frozen assessment material remains outside admitted training paths). Fine-tuning, prompt examples, and evaluation should retain distinct source identities. The paper’s own train/test distinction supports this discipline without proving that every possible contamination route is eliminated. Why Mova: a score must reflect the assessed reader rather than access to its expected answers.
Idea: Evaluate a specialized capability in its actual domain. Where: §6.10. Area: capability assessment. Mova: частково є (configured task families and domain-specific checks). A component described as supporting reasoning would still need tests for the particular language, evidence structure, and inference obligations it will encounter. Why Mova: a broad capability label cannot substitute for a successful task-specific observation.
The problem and its context
The target is an applied answer
The authors distinguish professional legal research tools from answering services directed at ordinary users. A research tool can assist an expert who already knows how to inspect a provision and assess its relevance. A public-facing system must frequently perform more of that interpretation itself. It receives a situation described in everyday terms and must decide what legal information answers the actual question.
This creates several opportunities for failure. The query may omit a legally decisive condition. Search may return a provision about a similar issue under another statute. The generator may select the correct provision but misunderstand why it applies. It may also produce a reasonable-looking response whose citations do not justify its conclusion.
The paper argues that Thai legal question answering lacked a standardized assessment capable of distinguishing these problems. Expert annotation is expensive, and suitable corpora are scarce. Existing research also evaluates different tasks with different measures, making it difficult to identify whether an apparent improvement concerns retrieval, response correctness, or source use.
NitiBench addresses this situation through a shared task and aligned evidence annotations. Its aim is not simply to ask whether a response sounds useful. It makes the expected legal sources available to evaluation so that evidence acquisition and final answering can be studied independently.
What the authors take from earlier evaluation
The paper places its work alongside established legal evaluation benchmarks. LexGLUE is described through tasks such as opinion classification and identification of legal violations. LegalBench includes assessments of legal reasoning, with examples involving contractual inference and hearsay.
These precedents demonstrate the usefulness of common evaluation tasks. However, the authors want a benchmark that resembles an unrestricted answer accompanied by supporting provisions. Classification performance alone does not establish that a system can complete that interaction.
Research on legal hallucinations supplies another part of the motivation. The paper discusses Large Legal Fictions in relation to checking legal references and studying contradictions. It discusses Hallucination-Free? as an assessment of correctness and grounding in commercial legal research products. These works support treating polished legal language as insufficient evidence of reliability.
For broader RAG assessment, Ragas provides measures concerning faithfulness and relevance. Summary of a Haystack contributes a framework for selecting and citing material from extended contexts. NitiBench adapts this latter concern to a question-answering task whose sources are legal sections.
The authors also describe CLERC as an example of constructing retrieval and generated-analysis tasks from an available legal corpus. Their interest is methodological: a language without an established public benchmark needs both appropriately constructed data and a clear account of what successful use of that data means.
Legal organization is part of the retrieval problem
Thai legislation has an authority hierarchy and an internal document hierarchy. The paper describes Acts and Codes as organized through units such as books, titles, chapters, and sections. It treats the section as the principal retrieval unit because a section ordinarily expresses a particular provision.
Generic segmentation does not respect that organization automatically. A fixed-size passage can begin after a crucial introductory condition or end before an exception. Conversely, it can combine several provisions whose applicability differs. The retriever then ranks a representation that may no longer correspond cleanly to the legal unit being evaluated.
Cross-references make even complete sections dependent on other text. A provision can assign a penalty by pointing to conduct described elsewhere. Another can import duties from a different part of a code without restating those duties. A query may resemble the imported description instead of the section that makes it applicable to the current situation.
The resulting challenge is more demanding than semantic similarity. The most similar passage may supply terminology without supplying the governing consequence. A less similar section may be indispensable because it establishes applicability, an exception, or a relationship between provisions.
Why compare retrieval with whole-collection context?
RAG, associated with the earlier work of Lewis and colleagues, gives an answering component a selected external context. This introduces design choices about segmentation, representations, ranking, and the amount of evidence supplied.
Earlier legal applications include CBR-RAG. In the paper’s account, that work enriches answering with cases obtained through case-based retrieval. Its comparisons involve different embeddings and retrieval arrangements. The lesson for NitiBench is that retrieval design can materially affect legal answering, although a successful case-based setup does not determine the best arrangement for Thai statutes.
Long-context processing offers a different architecture: supply the whole collection and let the answering system locate what matters. The authors discuss LongBench and L-Eval as richer assessments than simply locating a planted passage in a long document.
They also consider comparative work including Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?. Earlier findings favored long-context processing in several settings. NitiBench asks whether that pattern survives a task requiring statutory identification, source selection, and application to case facts. Its answer is specific to the tested Thai legal configurations, rather than a universal ranking of the architectures.
The method, step by step
Establish what an item contains
The benchmark associates a question with supporting sections and a reference response. Its dataset notation is:
D = {(x₁, y₁), …, (x_N, y_N)}
D is the collection of benchmark entries. N denotes its size. For entry i, xᵢ contains the question and its annotated evidence, while yᵢ is the answer used as the reference.
xᵢ = (q, T)
The symbol q denotes the question. T denotes the collection of statutory sections annotated as relevant to that question.
T = {t₁, t₂, …, t_K}
Each t is a relevant legal document or section, and K is the number of such items for the question. These annotations permit evaluation of retrieval even when the final generated response is poor.
At test time, an answering system receives the question and, depending on the condition, legal context. It must return answer text and a list identifying its cited sections. The reference evidence is used for scoring; it is not automatically available to the ordinary retrieval pipeline.
The benchmark’s retrieval-and-answering workflow
The steps in order.
Build training material with expert intervention
The WangchanX Legal ThaiCCL RAG collection covers 35 pieces of legislation. Its training data begin with generated questions based on legal sections. Gemini 1.5 Pro proposes those questions.
BGE-M3 retrieves the top 5 candidate sections for each proposed question. Legal annotators assess those candidates alongside the section from which the question originated. They identify which sections are relevant, allowing training entries to contain multiple positive documents.
An answer is then drafted using Meta-Llama-3-70B. Claude 3 Sonnet supplies a fallback when that process fails to yield an answer. A different expert can accept the resulting item, revise its question or answer, or reject it.
This arrangement gives automation a proposal role while retaining expert control over the accepted training material. It also creates an important structural limitation: although the annotations can contain several relevant sections, the initial question is still derived from an individual section.
The authors report selecting 34 annotators from 97 applicants. Their backgrounds include legal study, recent law-school completion, and employment in legal firms. The total annotation expenditure is approximately 274,240 THB. Different tasks receive different compensation, reflecting their differing demands.
Construct and transform the financial-law test set
Test questions are produced manually. An expert writes a question and response around a selected provision, and a separate group reviews the item. Feedback can lead to revision or rejection rather than automatic acceptance.
The resulting test material covers 21 of the legislative codes present in training. Its evidence annotations concentrate on a single supporting section per question. This makes the evaluation easier to construct and inspect, but also creates a mismatch with the training set’s multi-positive annotations.
To create NitiBench-CCL, the authors extract section names from the annotated contexts and remove duplicate questions. They also condense reference responses for their experiments, using GPT-4o mini to retain the essential answer while removing extended rationale. The publicly released material retains complete responses.
The final evaluation collection contains 3,730 entries. Questions concerning the Civil and Commercial Code account for 43% of the collection. Only the test material is used for benchmark evaluation, keeping the retriever’s training split outside that evaluation.
Condensation matters methodologically. The experimental scoring target asks whether a response contains the central answer, while the full expert response may include additional reasoning. Accordingly, coverage under this setup does not directly measure reproduction of the complete legal analysis.
Assemble authentic tax inquiries
NitiBench-Tax begins with publicly posted Revenue Department cases. These contain an inquiry, an official reply, and associated metadata. Personal identifying information has been removed.
GPT-4o mini assists preprocessing, including extracting legislative references from the inquiry and response. The authors retain cases whose references fall within the legislative scope of the collection and remove repeated references inside a case.
Requests for discretionary decisions are excluded. A request for an extension or exemption may require an administrative decision rather than an answer obtainable through statutory interpretation. Removing such cases keeps the task focused on law-based answering.
The official responses are shortened to their essential answers. The authors also restrict the final collection to cases from 2021 onward, intending to reflect more recent legislative conditions. The result is a set of 50 cases, predominantly concerning the Revenue Code.
These cases average three referenced provisions. Their relevance is not simply that they have more labels. They arise from factual inquiries and often require a sequence of interpretations before the relevant provisions can be selected or applied.
Preserve statutory sections during segmentation
The proposed hierarchy-aware method uses regular expressions and rules to identify section boundaries. Each resulting passage contains a complete section. The intent is to preserve an interpretable legal unit rather than to optimize passage length alone.
The comparison includes character splitting, recursive splitting, and line-based splitting. The authors vary passage size and overlap, then evaluate structural damage before running the answering pipeline.
Their diagnostics ask how many sections appear in a passage, how many passages overlap a section, whether a passage contains any section completely, and whether a section is available in full anywhere. They also track sections that receive no coverage.
The selected generic configuration uses line splitting with a size of 553 characters and overlap of 50 characters. It is chosen because its structural behavior is closest to the complete-section arrangement among the tested alternatives.
For the controlled answering experiment, generic passages with no fully represented section are discarded. The complete-section corpus is restricted to comparable available material, and questions are filtered accordingly. This leaves 2,625 financial-law entries and 19 tax entries. Only the financial subset proceeds to evaluation because the tax subset is too limited.
This procedure supports a matched comparison, but it does not reproduce every consequence of generic segmentation in practice. A deployed system might retain fragments and attempt to combine them, whereas this experiment removes passages that fail its complete-section criterion.
Expand cross-references with NitiLink
NitiLink starts from retrieved sections and follows the provisions they mention. The expansion uses depth-first traversal. A reference associated with an early result is inserted before later original results are presented.
For instance, the paper describes a Securities and Exchange Act provision assigning a penalty through a reference to another section. The dependency is legally important because the penalty text alone does not explain the entire underlying conduct.
The principal experiments use maximum depth 1. The choice reflects computational feasibility and cost: additional traversal produces additional context for the generator.
This operation changes more than recall. It also changes ordering and context length. A dependency of an early result can push another originally retrieved section downward. Additionally, the implemented traversal follows outgoing textual references; it does not generally recover every provision that refers back to the retrieved section.
Define retrieval success carefully
The paper proposes ordinary and multi-label retrieval measures. Let Tᵢ be the relevant set for question i, and Rᵢᵏ be the retrieved collection within cutoff k. Let I be an indicator that gives 1 when its condition holds and 0 otherwise. N is the number of evaluated instances, although the accompanying prose initially describes it as a document count.
The printed hit-rate formula is:
HitRate@k = (1/N) Σᵢ₌₁ᴺ I(Rᵢᵏ ⊆ Tᵢ)
The subset symbol means that every element on its left belongs to the set on its right. Read literally, this equation rewards a retrieved collection containing only relevant items. That is different from the ordinary successful-hit interpretation used in much of the discussion.
The multi-label expression reverses the containment requirement:
Multi-HitRate@k = (1/N) Σᵢ₌₁ᴺ I(Tᵢ ⊆ Rᵢᵏ)
Here a question contributes a successful hit only if the retrieval contains its full annotated evidence set. This matches the authors’ substantive concern: answering may require several provisions simultaneously.
The printed recall equation is:
Recall@k = (1/N) × (Σᵢ₌₁ᴺ |Tᵢ ∩ Rᵢᵏ|) / (Σᵢ₌₁ᴺ |Tᵢ|)
The intersection identifies relevant retrieved items, and the vertical bars indicate their count. The denominator counts relevant annotations across the collection. The additional normalization by N is difficult to reconcile with the reported values, leaving uncertainty about the intended implementation.
The paper presents reciprocal rank as:
MRR@k = (1/N) Σᵢ₌₁ᴺ 1 / argmax(Tᵢ ∩ Rᵢᵏ)
MRR denotes mean reciprocal rank. The explanation describes argmax as the largest rank number among matching documents, with no contribution when there is no match. Because the displayed arguments are documents instead of an explicit collection of ranks, the notation is not a complete computational specification.
The proposed multi-label extension can be written with the paper’s matched-document count retained explicitly:
Multi-MRR@k = (1/N) Σᵢ₌₁ᴺ [(Recallᵢ@k / |Tᵢ ∩ Rᵢᵏ|) × Σⱼ₌₁⁽|Tᵢ∩Rᵢᵏ|⁾ 1/(rank(dⱼ) − j + 1)]
Recallᵢ@k is the recall for question i. The document dⱼ is its j-th relevant match in retrieval order. The function rank gives that document’s retrieved position. The matched-document count normalizes the inner contribution, while the recall factor reduces credit when required evidence remains missing.
The adjustment involving j favors relevant documents that appear together near the beginning of the ranking. Its motivation is understandable even though boundary handling and the surrounding definitions need clarification. The conceptual distinction between finding some evidence and finding sufficient evidence should therefore be separated from confidence in every printed formula.
Judge answers along different dimensions
Coverage concerns semantic inclusion of the reference answer. Complete inclusion receives 100, partial inclusion receives 50, and failure to include the reference content receives 0.
Contradiction is assessed against the reference response. A score of 1 denotes disagreement, while 0 denotes the absence of that disagreement under the judging procedure.
Citation evaluation compares the generated section list with annotated relevant sections through precision, recall, and F1. These scores carry an E2E label so that the reader can distinguish the generator’s source selection from the retriever’s output.
The judging procedure uses GPT-4o with temperature 0.3. Instructions are refined through comparison with human decisions on 150 tax examples and 200 financial-law training examples. The tax judging material is sampled without the final restriction to recent cases.
The reported agreement table concerns coverage and contradiction. Some procedural wording instead mentions coverage and citation, so the validation evidence should be attributed to the measures actually reported.
Vary components under specified conditions
Retriever comparisons include BM25 and Jina ColBERT V2. The latter uses token-level interaction related to ColBERT. Jina Embeddings V3 and NV-Embed V1 provide other neural retrieval approaches; Cohere supplies a commercial comparison.
BGE-M3 combines dense, multi-vector, and sparse scores. Their weights are 0.4, 0.4, and 0.2, respectively. The human-adapted variant uses expert-selected positive contexts. The automatically adapted variant uses reranker decisions and excludes candidates whose score is below 0.8.
For generator experiments, segmentation and the human-adapted BGE-M3 retriever remain fixed. The answering components include GPT-4o, Claude 3.5 Sonnet, and Gemini 1.5 Pro. Separate comparisons use Typhoon V2 at different sizes.
Ordinary generation uses temperature 0.5 and a maximum response length of 2048 tokens. The authors employ 3-shot prompting, with examples outside the final test entries. RAG supplies the top 10 retrieved documents.
The final architecture comparison includes answering without documents, generic RAG, section-based RAG, and annotated golden context. NitiLink is omitted from the selected final RAG because its answer-level contribution is inconclusive and its omission lowers cost.
The whole-collection experiments use Gemini because it accommodates the complete legislative collection among the selected candidates. Budget limits restrict the financial evaluation to a stratified 20% subset; the full tax collection is retained.
Experiments and results
Structural preservation and the matched comparison
Generic segmentation frequently fails to make entire provisions available. Averaged across tested configurations, line splitting has a fail-section ratio of 0.417 and an uncovered-section ratio of 0.294. The chosen line configuration reduces these structural losses, but does not remove them.
For that selected configuration, the fail-section ratio is 0.323 and the uncovered-section ratio is 0.156. These values measure source representation after preparation. They should not be read as answer error rates.
On the filtered financial-law comparison, complete-section passages improve the ranking result:
Filtered NitiBench-CCL segmentation comparison, retrieval Multi-MRR
Preserving sections improves retrieval ranking on the matched material.
The numbers
| System or setting | Multi-MRR |
|---|---|
| Naive segmentation | 0.786 |
| Hierarchy-aware segmentation (this paper) | 0.834 |
The answer-level effect is more modest. Coverage is 86.6 with generic segmentation and 86.7 with section-preserving segmentation. Citation F1 is 0.722 and 0.739, respectively.
Contradiction does not improve in this controlled experiment: the generic setting records 0.050, while the section-based setting records 0.054. The result therefore supports a specific claim about retrieval and citation selection, rather than improvement on every dimension.
The tax collection exposes missing dependencies
Retrieval becomes markedly more difficult on authentic tax cases. The multi-label measures make the gap especially visible because they distinguish finding a relevant provision from assembling the annotated legal basis.
NitiBench-Tax retrievers, Table 10 Multi-MRR@10
Base BGE-M3 leads these settings despite the adapted variants’ in-domain strength.
The numbers
| System or setting | Multi-MRR@10 |
|---|---|
| NV-Embed V1 | .052 |
| JINA V2 | .091 |
| BM25 | .183 |
| Cohere | .263 |
| JINA V3 | .311 |
| Human-Finetuned BGE-M3 | .333 |
| Auto-Finetuned BGE-M3 | .345 |
| BGE-M3 (this paper) | .354 |
For base BGE-M3 at k=10, Table 10 reports hit rate .820, multi-hit rate .360, and recall .472. These measures describe different outcomes. Many cases have some relevant retrieval, while substantially fewer have their full annotated set.
The human-adapted retriever records tax recall .437 at the same cutoff. The automatic variant records .423. Thus adaptation to the financial-law training distribution does not supply a dependable advantage for these cases.
The findings concern distributional transfer instead of a general rejection of fine-tuning. The training questions and authentic inquiries differ in how they are formed, how much context they contain, and how their supporting provisions interact.
Financial-law retrieval is stronger, but reporting is inconsistent
The authors identify the human-adapted BGE-M3 as the strongest financial-law retriever. Table 9 reports HR/Recall@10 of .938 for this setting. The automatic variant records .934, and base BGE-M3 records .919.
Some ranking values cannot be reconciled cleanly across the paper. Its prose gives MRR@5 of 0.805 for the human-adapted version, while Table 9 gives .850. The corresponding automatic-variant values are 0.800 in the narrative and .840 in the table.
At k=1, Table 9 also presents different hit-rate and MRR values in spite of its single-positive setting. These discrepancies limit precise interpretation of that table. They do not erase the broader contrast between easier section-derived questions and harder tax inquiries.
Generator rankings depend on the objective
Without NitiLink on the financial benchmark, Claude obtains coverage 89.7 and contradiction 0.040. GPT-4o obtains coverage 85.2 and contradiction 0.055.
Citation measures favor a different balance. GPT-4o records precision 0.601 and F1 0.714. Claude records precision 0.444 and F1 0.595. Claude’s strength in answer coverage therefore coexists with less selective citation behavior.
Gemini’s financial-law coverage is 86.5 without expansion, with citation precision 0.512. The larger Typhoon variant records coverage 81.2, while the smaller variant records 70.8.
On tax cases, the ordering is less stable. Claude’s no-expansion coverage is 51.0, while the larger Typhoon configuration reaches 54.0 with NitiLink. This does not make the latter uniformly better: reference expansion changes several outcomes, and the selected generator depends on which properties receive priority.
The final financial-law pipeline benefits from retrieval
The complete-system comparison uses Claude and human-adapted BGE-M3. Its proposed RAG differs from generic RAG principally through section-preserving segmentation. Unlike the matched segmentation experiment, this comparison uses the benchmark without that earlier filtering.
Full NitiBench-CCL architecture comparison, answer coverage
Structured retrieval improves coverage substantially over the generic and no-context settings.
The numbers
| System or setting | Coverage |
|---|---|
| Parametric answering | 60.3 |
| Naive RAG | 77.3 |
| Proposed RAG (this paper) | 89.7 |
| Golden context | 93.4 |
Golden context supplies a useful diagnostic ceiling for this generator and prompt. It bypasses ordinary evidence retrieval but does not guarantee perfect answering.
The financial results show that the selected retrieval arrangement contributes materially. They also show remaining errors even when the annotated evidence is supplied directly.
Tax answers remain weak with reviewed context
The same complete-system comparison behaves differently on NitiBench-Tax. Coverage is 46.0 without documents, 50.0 with generic RAG, 51.0 with proposed RAG, and 52.0 with golden context.
Citation F1 reaches 0.820 under golden context. Yet answer coverage remains limited, and contradiction is 0.460. Recovering or selecting the expected sources therefore does not establish successful legal application.
The proposed tax RAG records contradiction 0.440. Golden context does not improve that measure. This is particularly important because the golden condition removes the ordinary explanation that the retriever simply failed to provide the expected provisions.
The authors also inspect citations from the no-context baseline. Of 105 cited sections, 58 are absent from the best retriever’s results; among those absent sections, 26 are correct. This suggests that the generator sometimes has useful associations unavailable in its supplied context. It does not show that unrestricted internal knowledge is reliably grounded.
Whole-collection context has mixed capabilities
On the stratified financial subset, proposed RAG records coverage 90.1 and contradiction 0.028. Whole-collection Gemini records coverage 83.2 and contradiction 0.063.
Citation F1 gives a different comparison: the whole-collection setting records 0.615, while proposed RAG records 0.607. Accordingly, the claim that RAG performs better is strongest for answer coverage and contradiction, instead of every metric.
The tax whole-collection condition records coverage 36.0 and contradiction 0.620. Its input contains approximately 1.2 million tokens. Being able to accept the collection does not mean the system can apply its contents reliably.
As a retriever, Gemini is more competitive on tax. Table 16 gives Multi-MRR@10 .379 and recall .477. The architecture’s weakness in direct answering therefore should not be confused with a complete inability to identify relevant provisions.
What the ablations show
Expansion changes retrieval and generation differently
The NitiLink comparison isolates an important pipeline mismatch. Table 8 reports tax recall 0.437 without expansion and 0.535 at reference depth 1. Answer coverage moves from 50.0 to 45.0, while contradiction moves from 0.460 to 0.520.
The narrative elsewhere gives the expanded recall as 0.549. These conflicting presentations should remain identifiable. Both support the qualitative conclusion that additional annotated evidence does not consistently improve the response.
Several explanations are plausible within the setup. Additional provisions lengthen the input. Depth-first insertion changes the positions of original results. The generator must also determine how the new provisions interact with the case.
The comparison does not independently manipulate these factors. It establishes the combined outcome of the implemented expansion procedure, instead of proving that context length or legal reasoning alone causes the decline.
Greater depth has dataset-dependent value
The authors vary reference depth to investigate whether shallow traversal leaves useful dependencies undiscovered. Tax retrieval gains reach their peak at depth 6, with roughly 60 sections per query.
Financial-law gains level off after depth 2. Expansion can still resolve up to 30 sections at depth 9, but this additional material contributes little to the measured retrieval outcome.
That difference is consistent with the collections’ construction. A section-derived question frequently already has its intended provision among the initial candidates. An authentic case can require linked provisions whose relevance only becomes apparent after following dependencies.
The analysis does not establish that the deeper tax context improves answers. It measures retrieval behavior and the amount of resolved material. A generator may remain unable to integrate that material correctly.
Useful additions alone do not explain the answer gap
The authors further restrict analysis to questions for which NitiLink actually improves recall. This removes cases where expansion failed to recover any additional expected evidence.
Even in this selected tax subset, better retrieval does not consistently yield better answer-level results. The problem therefore cannot be attributed only to expansion finding irrelevant material or failing to add positives.
For financial questions, the corresponding selected analysis is more favorable. When expansion supplies something useful, answer measures improve more clearly. The evidence points towards an interaction between task complexity and the consumer’s ability to use added context.
Isolated sections can lose their topic
The segmentation analysis also investigates cases where generic passages outperform complete sections. A recurring explanation is inherited context.
The paper’s bill-of-exchange example concerns a provision that discusses an undated acceptance without repeating the name of the legal instrument. A neighboring provision supplies that missing vocabulary. A generic passage accidentally containing both can be easier to retrieve.
This does not invalidate structural segmentation. It reveals that structural completeness and retrieval self-sufficiency are different properties. A section may contain its entire operative text while depending on a heading or neighboring passage to identify its subject.
A stronger representation might preserve the section and attach relevant inherited context. The paper motivates that direction but does not evaluate a complete solution.
Shared errors reveal representation gaps
When the generator remains fixed and the retriever changes, some cases still receive equally imperfect outcomes. The authors examine these common failures instead of treating every error as a component-ranking problem.
Hidden scope is one category. Similar statements appear in different chapters or statutes, and the section text may not restate the conditions supplied by its position. A retriever relying on the local wording can therefore select the wrong legal context.
Nested references are another category. The passage describing an action may be different from the passage establishing its consequences. Following outgoing references helps in some cases, but does not automatically recover incoming relationships.
Fine distinctions also matter. A question about guaranteeing another guarantor requires a provision addressing that particular relationship. A broad definition of suretyship is topically appropriate but insufficient.
Finally, complex cases may require an intermediate classification before search. In the ring example, the system needs to connect the object and transaction to the relevant property category. The authors propose query decomposition, but do not report an evaluated decomposition component.
General provisions are necessary but weak search matches
The tax analysis identifies repeated failures involving definitions and broad statements of applicability. Such sections can be indispensable to legal analysis while sharing relatively little concrete detail with a long inquiry.
For example, a case involving veterinary services and medical materials may attract provisions about specific tax mechanisms. A foundational statement of VAT liability can remain missing even though it establishes the framework within which the detailed rules operate.
The authors suggest considering whether foundational material should be supplied more generally. They also suggest terminology-sensitive matching for definitions. These remain proposed remedies.
Other tax failures involve selecting the wrong legislation or tax category. An inquiry about a person’s income can contain extensive discussion of companies and foreign subsidiaries. Those background terms may pull retrieval towards corporate taxation despite the actual subject being an individual’s liability.
Complete-evidence metrics relate more closely to final quality
The metric analysis compares correlations with downstream measures. Table 22 reports coverage correlation 0.741 for ordinary hit rate and 0.989 for multi-hit rate.
For citation F1, the correlation is 0.933 for ordinary MRR and 0.991 for Multi-MRR. Contradiction has the opposite direction of association, as expected for a measure where lower values are preferable.
These observations support evaluating evidence completeness in this task. They do not establish universal superiority across datasets or architectures. The analysis uses a limited collection of system configurations, and its accompanying references to the relevant comparison tables are not fully consistent.
Citation behavior exposes different generator failures
The authors compare retrieved recall with the citations appearing in responses. A gap means the generator did not name some expected evidence that was available to it.
Claude has relatively small gaps under this diagnostic, but its citation precision can still be low. Naming more of the expected evidence does not prevent it from including additional provisions outside the reference set.
Gemini’s tax answers show substantial overcitation. The authors describe cases where a provision shares a few salient terms with the question but lacks sufficient overall relevance. Citation count therefore cannot stand in for grounding quality.
The paper also examines responses that cite no correct section while retaining some answer coverage. This behavior can reflect internal knowledge, omitted attribution, or unsupported generation. The condition identifies a grounding concern without determining which explanation is correct.
Missing intermediate interpretations remain consequential
One detailed tax example concerns transfers within an unregistered relationship. The relevant provision includes an exemption involving support arising from a moral obligation.
The observed response recognizes parts of the statutory wording but does not adequately analyze whether the relationship and payments satisfy that category. It moves too quickly from the facts to a taxable-income conclusion.
The example illustrates an inferential gap between recognizing a provision and applying its conditions. A correct citation cannot fill that gap by itself. The necessary work is to justify the classification of the case facts.
A separate example involves an ambiguous payment-deadline question. Similar provisions state different deadlines under different circumstances. The generator incorporates several alternatives and then chooses a general answer without resolving the missing conditions. This motivates clarification rather than merely more retrieval.
Position and specialized reasoning do not remove the difficulty
For the long-context analysis, the authors group financial questions according to where their relevant provisions occur in the collection. The context spans 2.7 million characters, and the analysis uses bins of 100,000 characters.
Coverage changes relatively little across deeper positions, while citation F1 declines more clearly. This suggests a particular difficulty in identifying and citing the appropriate source even when answer content is less affected.
The additional reasoning-generator experiment uses o1-preview, associated with the OpenAI o1 system card. It retains section-based retrieval without NitiLink, but omits few-shot examples and uses temperature 1.0.
Its financial-subset coverage is 83.3, and tax coverage is 43.0. These values do not outperform the selected RAG’s corresponding 90.1 and 51.0. The result concerns this particular configuration; changes in prompting and generation settings prevent a clean isolation of a general “reasoning” capability.
Limitations
The authors’ concerns about question construction
The authors explicitly identify ambiguity in section-derived questions. An annotator given a target provision may write a question that also fits similar provisions elsewhere. The annotation then records the intended section rather than every interpretation supported by the wording.
This affects both answer evaluation and citation precision. A response that includes another plausible provision can be penalized even when the question did not clearly exclude that interpretation. Conversely, a response can appear successful by following the annotator’s unstated assumption.
The proposed remedy is to show annotators competing provisions during construction. That would encourage them to specify the conditions that distinguish the target. The paper presents this as future improvement, not as a completed correction to the reported benchmark.
The authors also acknowledge that the training collection’s multiple positive labels do not necessarily create genuine multi-provision reasoning. The question originates from an individual section, and additional relevance judgments are attached afterward.
NitiBench-Tax partly addresses this weakness because its cases arise from authentic inquiries. However, its 50 cases cannot represent the full variety of legal interpretation problems that a general answering service might encounter.
Another stated concern is naturalness. Questions written around statute text may differ from ordinary user requests. The authors consider either making future questions more informal or transforming incoming requests toward the benchmark’s style. Neither possibility establishes that the current benchmark measures unrestricted user interaction.
Legal reasoning is not directly scored
The authors distinguish their outcome measures from a full assessment of legal reasoning. Coverage asks whether the expected answer is present; contradiction asks whether the response conflicts with it; citation measures compare source identities.
None of these measures determines whether each inferential transition is justified. A system can reach an acceptable conclusion through a weak route, or name the right provision while misunderstanding its conditions.
The paper therefore discusses future reasoning evaluation. ROSCOE is presented through complementary perspectives on reasoning support, whole-chain similarity, inference, and linguistic coherence.
ReCEval contributes a distinction between correctness and informativeness. In the authors’ account, reasoning steps should remain compatible with their premises while also adding something useful toward the conclusion.
These are methodological foundations considered by NitiBench, rather than implemented legal-reasoning scores in its principal evaluation. The authors identify defining sound Thai legal reasoning and obtaining appropriate annotated chains as continuing challenges.
Automatic evaluation remains an additional source of error
The human comparisons provide evidence that the judge is useful, but do not establish perfect reliability. Reported coverage agreement F1 is .88 for the financial sample and .83 for the tax sample. Contradiction agreement F1 is .98 and .91, respectively.
The confusion matrices indicate that many disagreements concern neighboring coverage categories. Distinguishing partial inclusion from full inclusion can be subjective. This is less severe than treating an unrelated response as fully correct, but it still affects system comparisons.
A further design limitation is that the judging instructions are repeatedly adjusted using the human-comparison material. The paper does not describe a separate untouched validation stage after those adjustments. Agreement on that material therefore does not fully establish generalization of the evaluator.
The contradiction measure also captures only a particular relationship to the reference response. Unsupported claims need not directly oppose the reference. A response can avoid contradiction while remaining incomplete or weakly justified.
Similarly, the diagnostic involving zero correct citations and non-zero coverage is broader than hallucination. It can include correct internal knowledge without adequate attribution. Calling every such case invented content would exceed what the diagnostic establishes.
Some printed definitions and numbers are unresolved
The hit-rate equation, recall normalization, and reciprocal-rank notation do not form a consistently clear implementation specification. Their literal readings are difficult to align with all reported results.
The financial retrieval prose and Table 9 disagree about ranking values. NitiLink’s expanded tax recall also differs between prose and Table 8. These conflicts should constrain exact numerical claims rather than be silently repaired.
Other comparison tables contain values that differ from earlier presentations under apparently related settings. The correlation discussion refers to a set of retrievers while pointing to a table with a different organization. That makes reconstruction of the statistical analysis less straightforward.
These reporting problems do not invalidate the qualitative finding that authentic tax cases are difficult. They do mean that reproducing the precise metrics requires more than adopting the displayed equations at face value.
A careful reader should also distinguish descriptive advantages from demonstrated statistical significance. Most comparisons are not accompanied by uncertainty intervals or significance tests. Small differences, especially on the tax collection, should not be treated as stable universal rankings.
Architecture comparisons have a defined scope
The whole-collection evaluation uses Gemini because it can accommodate the complete collection among the selected candidates. The strongest RAG comparison uses Claude. The result therefore changes the generator as well as the evidence-access architecture.
This does not make the comparison useless: it evaluates practical configurations available to the authors. It does limit a causal interpretation in which retrieval alone explains the entire advantage.
The specialized reasoning experiment has a related limitation. It changes examples and temperature along with the generator. It establishes the performance of that configured system, instead of an isolated effect of reasoning-oriented training.
The position analysis is observational. Different provisions naturally occupy different locations in the legislative collection. Without moving identical evidence across positions under controlled conditions, source location can remain associated with differences in subject matter or question type.
The matched segmentation experiment also has a narrower scope than deployment. It removes incomplete generic passages and filters questions to shared available material. That supports controlled comparison, but does not measure every harm from fragmentation or every opportunity to combine fragments.
Finally, golden context is a diagnostic condition for a particular generator, prompt, and annotation set. It is not an absolute upper limit on legal answering. Annotation omissions, ambiguous questions, and response design can all affect its performance.
The benchmark concerns selected Thai financial legislation and a specialized tax collection. Its results do not establish general legal competence across jurisdictions, all Thai legal domains, or professional decision-making settings.
What came after
The available follow-up record identifies no later citing studies to discuss. There is therefore no documented basis for describing subsequent replications, extensions, or systems as outcomes of NitiBench.
The authors’ own future agenda remains distinct from completed follow-up work. It calls for clearer questions, naturally multi-provision cases, more realistic user language, and evaluation of the inferential route connecting facts to legal conclusions. Those directions follow directly from the study’s strongest observation: supplying relevant provisions and producing correct legal analysis are separate capabilities, and both need evidence before reliability can be claimed.
Cite
Cite as Pawitsapak Akarajaradwong, Pirat Pothavorn, Chompakorn Chaksangchaichot, Panuthep Tasawong, Thitiwat Nopparatbundit, Keerakiat Pratai and Sarana Nutanong. 2025. NitiBench: A Comprehensive Study of LLM Framework Capabilities for Thai Legal Question Answering. arXiv:2502.10868.
@misc{akarajaradwong2025nitibench,
title = {{NitiBench: A Comprehensive Study of LLM Framework Capabilities for Thai Legal Question Answering}},
author = {Pawitsapak Akarajaradwong, Pirat Pothavorn, Chompakorn Chaksangchaichot, Panuthep Tasawong, Thitiwat Nopparatbundit, Keerakiat Pratai and Sarana Nutanong},
year = {2025},
doi = {10.48550/arxiv.2502.10868},
eprint = {2502.10868},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2502.10868}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/akarajaradwong-2025-nitibench-comprehensive-study-llm-framework/
References
- ailawyer. AI Lawyer | Your personal AI legal assistant. ailawyer.pro. [Accessed 14-01-2025]. OpenAlex ↗ · Scholar ↗
- Ayyoub Ajmi. Revolutionizing access to justice: The role of AI-powered chatbots and retrieval-augmented generation in legal self-help, 2024. OpenAlex ↗ · Scholar ↗
- Chenxin An, Shansan Gong, Ming Zhong, Xingjian Zhao, Mukai Li, Jun Zhang, Lingpeng Kong, and Xipeng Qiu. L-eval: Instituting standardized evaluation for long context language models, 2023. our card
- Anthropic. The claude 3 model family: Opus, sonnet, haiku, March 2024. Technical report. OpenAlex ↗ · Scholar ↗
- Anthropic. Claude 3.5 sonnet model card addendum, 2024. OpenAlex ↗ · Scholar ↗
- asklegal.bot. AskLegal.bot - AI Legal Help. asklegal.bot. [Accessed 14-01-2025]. OpenAlex ↗ · Scholar ↗
- Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. LongBench: A bilingual, multitask benchmark for long context understanding. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3119–3137, Bangkok, Thailand, August 2024. Association for Computational Linguistics. our card
- Ilias Chalkidis, Manos Fergadiotis, Prodromos Malakasiotis, Nikolaos Aletras, and Ion Androutsopoulos. Legal-bert: The muppets straight out of law school, 2020. our card
- Ilias Chalkidis, Abhik Jana, Dirk Hartung, Michael Bommarito, Ion Androutsopoulos, Daniel Katz, and Nikolaos Aletras. LexGLUE: A benchmark dataset for legal language understanding in English. In Smaranda Muresan, Preslav Nakov, and Aline Villavicencio, editors, Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4310–4330, Dublin, Ireland, May 2022. Association for Computational Linguistics. our card
- Jianlv Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, and Zheng Liu. Bge m3-embedding: Multi-lingual, multi-functionality, multi-granularity text embeddings through self-knowledge distillation, 2024. OpenAlex ↗ · Scholar ↗
- Somyot Chuathai. Introduction to Law. Winyuchon, 30th edition, 2023. OpenAlex ↗ · Scholar ↗
- Matthew Dahl, Varun Magesh, Mirac Suzgun, and Daniel E Ho. Large legal fictions: Profiling legal hallucinations in large language models. Journal of Legal Analysis, 16(1):64–93, January 2024. our card
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Jill Burstein, Christy Doran, and Thamar Solorio, editors, Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. our card
- Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, and Angela Fan et al. The llama 3 herd of models, 2024. our card
- Shahul Es, Jithin James, Luis Espinosa-Anke, and Steven Schockaert. Ragas: Automated evaluation of retrieval augmented generation, 2023. our card
- Olga Golovneva, Moya Chen, Spencer Poff, Martin Corredor, Luke Zettlemoyer, Maryam Fazel-Zarandi, and Asli Celikyilmaz. Roscoe: A suite of metrics for scoring step-by-step reasoning, 2023. our card
- Neel Guha, Julian Nyarko, Daniel E. Ho, Christopher Ré, Adam Chilton, Aditya Narayana, Alex Chohlas-Wood, Austin Peters, Brandon Waldon, Daniel N. Rockmore, Diego Zambrano, Dmitry Talisman, Enam Hoque, Faiz Surani, Frank Fagan, Galit Sarfaty, Gregory M. Dickinson, Haggai Porat, Jason Hegland, Jessica Wu, Joe Nudell, Joel Niklaus, John Nay, Jonathan H. Choi, Kevin Tobia, Margaret Hagan, Megan Ma, Michael Livermore, Nikon Rasumov-Rahe, Nils Holzenberger, Noam Kolt, Peter Henderson, Sean Rehaag, Sharad Goel, Shang Gao, Spencer Williams, Sunny Gandhi, Tom Zur, Varun Iyer, and Zehua Li. Legalbench: A collaboratively built benchmark for measuring legal reasoning in large language models, 2023. our card
- Shibo Hao, Yi Gu, Haotian Luo, Tianyang Liu, Xiyan Shao, Xinyuan Wang, Shuhua Xie, Haodi Ma, Adithya Samavedhi, Qiyue Gao, Zhen Wang, and Zhiting Hu. Llm reasoners: New evaluation, library, and analysis of step-by-step reasoning with large language models, 2024. OpenAlex ↗ · Scholar ↗
- Abe Bohan Hou, Orion Weller, Guanghui Qin, Eugene Yang, Dawn Lawrie, Nils Holzenberger, Andrew Blair-Stanek, and Benjamin Van Durme. Clerc: A dataset for legal case retrieval and retrieval-augmented analysis generation, 2024. OpenAlex ↗ · Scholar ↗
- Aaron Hurst, Adam Lerer, Adam P Goucher, Adam Perelman, Aditya Ramesh, Aidan Clark, AJ Ostrow, Akila Welihinda, Alan Hayes, Alec Radford, and et al. Gpt-4o system card, 2024. our card
- Rohan Jha, Bo Wang, Michael Günther, Saba Sturua, Mohammad Kalim Akram, and Han Xiao. Jina-colbert-v2: A general-purpose multilingual late interaction retriever, 2024. OpenAlex ↗ · Scholar ↗
- Gregory Kamradt. Needle in a haystack. github.com, 2023. OpenAlex ↗ · Scholar ↗
- Omar Khattab and Matei Zaharia. Colbert: Efficient and effective passage search via contextualized late interaction over bert. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '20, page 39–48, New York, NY, USA, 2020. Association for Computing Machinery. our card
- Omar Khattab and Matei Zaharia. Colbert: Efficient and effective passage search via contextualized late interaction over bert, 2020. our card
- Philippe Laban, Alexander R. Fabbri, Caiming Xiong, and Chien-Sheng Wu. Summary of a haystack: A challenge to long-context llms and rag systems, 2024. our card
- Chankyu Lee, Rajarshi Roy, Mengyao Xu, Jonathan Raiman, Mohammad Shoeybi, Bryan Catanzaro, and Wei Ping. Nv-embed: Improved techniques for training llms as generalist embedding models, 2024. our card
- Jinhyuk Lee, Anthony Chen, Zhuyun Dai, Dheeru Dua, Devendra Singh Sachan, Michael Boratko, Yi Luan, Sébastien M. R. Arnold, Vincent Perot, Siddharth Dalmia, Hexiang Hu, Xudong Lin, Panupong Pasupat, Aida Amini, Jeremy R. Cole, Sebastian Riedel, Iftekhar Naim, Ming-Wei Chang, and Kelvin Guu. Can long-context language models subsume retrieval, rag, sql, and more?, 2024. our card
- Jinhyuk Lee, Anthony Chen, Zhuyun Dai, Dheeru Dua, Devendra Singh Sachan, Michael Boratko, Yi Luan, Sébastien M. R. Arnold, Vincent Perot, Siddharth Dalmia, Hexiang Hu, Xudong Lin, Panupong Pasupat, Aida Amini, Jeremy R. Cole, Sebastian Riedel, Iftekhar Naim, Ming-Wei Chang, and Kelvin Guu. Can long-context language models subsume retrieval, rag, sql, and more?, 2024. our card
- Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. Retrieval-augmented generation for knowledge-intensive nlp tasks, 2021. our card
- LexisNexis. LexisNexis Launches Lexis+ AI, a Generative AI Solution with Hallucination-Free Linked Legal Citations. lexisnexis.com, 2023. [Accessed 13-08-2024]. OpenAlex ↗ · Scholar ↗
- Chaofan Li, Zheng Liu, Shitao Xiao, and Yingxia Shao. Making large language models a better foundation for dense retrieval, 2023. OpenAlex ↗ · Scholar ↗
- Xianming Li and Jing Li. Angle-optimized text embeddings, 2024. our card
- Zhuowan Li, Cheng Li, Mingyang Zhang, Qiaozhu Mei, and Michael Bendersky. Retrieval augmented generation or long-context llms? a comprehensive study and hybrid approach, 2024. OpenAlex ↗ · Scholar ↗
- Varun Magesh, Faiz Surani, Matthew Dahl, Mirac Suzgun, Christopher D. Manning, and Daniel E. Ho. Hallucination-free? assessing the reliability of leading ai legal research tools, 2024. our card
- "OpenAI". "openai o1 system card", 2024. our card
- Hung Phan, Anurag Acharya, Sarthak Chaturvedi, Shivam Sharma, Mike Parker, Dan Nally, Ali Jannesari, Karl Pazdernik, Mahantesh Halappanavar, Sai Munikoti, and Sameera Horawalavithana. Rag vs. long context: Examining frontier large language models for environmental review document comprehension, 2024. OpenAlex ↗ · Scholar ↗
- Hung Phan, Anurag Acharya, Sarthak Chaturvedi, Shivam Sharma, Mike Parker, Dan Nally, Ali Jannesari, Karl Pazdernik, Mahantesh Halappanavar, Sai Munikoti, and Sameera Horawalavithana. Rag vs. long context: Examining frontier large language models for environmental review document comprehension, 2024. OpenAlex ↗ · Scholar ↗
- Kunat Pipatanakul, Potsawee Manakul, Natapong Nitarach, Warit Sirichotedumrong, Surapon Nonesung, Teetouch Jaknamon, Parinthapat Pengpun, Pittawat Taveekitworachai, Adisai Na-Thalang, Sittipong Sripaisarnmongkol, Krisanapong Jirayoot, and Kasima Tharnpipitchai. Typhoon 2: A family of open text and multimodal thai large language models, 2024. our card
- Archiki Prasad, Swarnadeep Saha, Xiang Zhou, and Mohit Bansal. Receval: Evaluating reasoning chains via correctness and informativeness, 2023. our card
- Machel Reid, Nikolay Savinov, Denis Teplyashin, Dmitry Lepikhin, Timothy Lillicrap, Jean baptiste Alayrac, Radu Soricut, Angeliki Lazaridou, Orhan Firat, Julian Schrittwieser, and et al. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context, 2024. our card
- Stephen Robertson and Hugo Zaragoza. The probabilistic relevance framework: Bm25 and beyond. Foundations and Trends in Information Retrieval, 3:333–389, 01 2009. OpenAlex ↗ · Scholar ↗
- Sarah Strumberger. AI-powered legal research: Where legal research meets generative AI. legal.thomsonreuters.com, 2023. [Accessed 13-08-2024]. OpenAlex ↗ · Scholar ↗
- Saba Sturua, Isabelle Mohr, Mohammad Kalim Akram, Michael Günther, Bo Wang, Markus Krimmel, Feng Wang, Georgios Mastrapas, Andreas Koukounas, Andreas Koukounas, Nan Wang, and Han Xiao. jina-embeddings-v3: Multilingual embeddings with task lora, 2024. our card
- Akash Takyar. AI agents for legal: Applications, benefits, implementation and future trends — leewayhertz.com. leewayhertz.com. [Accessed 13-08-2024]. OpenAlex ↗ · Scholar ↗
- Kobkrit Viriyayudhakorn. Thanoy AI Chatbot - genius AI lawyer. iapp.co.th, 2024. [Accessed 13-08-2024]. OpenAlex ↗ · Scholar ↗
- Nirmalie Wiratunga, Ramitha Abeyratne, Lasal Jayawardena, Kyle Martin, Stewart Massie, Ikechukwu Nkisi-Orji, Ruvan Weerasinghe, Anne Liret, and Bruno Fleisch. Cbr-rag: Case-based reasoning for retrieval augmented generation in llms for legal question answering, 2024. our card
- Jingtao Zhan, Jiaxin Mao, Yiqun Liu, Min Zhang, and Shaoping Ma. Repbert: Contextualized text embeddings for first-stage retrieval. CoRR, abs/2006.15498, 2020. OpenAlex ↗ · Scholar ↗