mlsanityData to 14 Oct 2026

J&H: Evaluating the Robustness of Large Language Models Under Knowledge-Injection Attacks in Legal Domain

arXiv 2503.18360 ↗First posted 24 Mar 2025cs.CLcited by 7

Not on the map. Why?

Abstract (arXiv)

As the scale and capabilities of Large Language Models (LLMs) increase, their applications in knowledge-intensive fields such as legal domain have garnered widespread attention. However, it remains doubtful whether these LLMs make judgments based on domain knowledge for reasoning. If LLMs base their judgments solely on specific words or patterns, rather than on the underlying logic of the language, the ''LLM-as-judges'' paradigm poses substantial risks in the real-world applications. To address this question, we propose a method of legal knowledge injection attacks for robustness testing, thereby inferring whether LLMs have learned legal knowledge and reasoning logic. In this paper, we propose J&H: an evaluation framework for detecting the robustness of LLMs under knowledge injection attacks in the legal domain. The aim of the framework is to explore whether LLMs perform deductive reasoning when accomplishing legal tasks. To further this aim, we have attacked each part of the reasoning logic underlying these tasks (major premise, minor premise, and conclusion generation). We have collected mistakes that legal experts might make in judicial decisions in the real world, such as typos, legal synonyms, inaccurate external legal statutes retrieval. However, in real legal practice, legal experts tend to overlook these mistakes and make judgments based on logic. However, when faced with these errors, LLMs are likely to be misled by typographical errors and may not utilize logic in their judgments. We conducted knowledge injection attacks on existing general and domain-specific LLMs. Current LLMs are not robust against the attacks employed in our experiments. In addition we propose and compare several methods to enhance the knowledge robustness of LLMs.

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 18 of its 29 references that are in the map. First posted on arXiv 24 Mar 2025.

Builds on

18 of 29 references.

References · 18

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  2. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  3. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
  4. 2019Adversarial NLI: A New Benchmark for Natural Language Understandingcited by 807
  5. 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
  6. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
  7. 2021Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Modelscited by 232
  8. 2018CAIL2018: A Large-Scale Legal Dataset for Judgment Predictioncited by 170
  9. 2023SelfCheck: Using LLMs to Zero-Shot Check Their Own Step-by-Step Reasoningcited by 159
  10. 2023Zhongjing: Enhancing the Chinese Medical Capabilities of Large Language Model through Expert Feedback and Real-world Multi-turn Dialoguecited by 119
  11. 2023An LLM can Fool Itself: A Prompt-Based Adversarial Attackcited by 116
  12. 2022LEVEN: A Large-Scale Chinese Legal Event Detection Datasetcited by 36
6 more
  1. 2023MathAttack: Attacking Large Language Models Towards Math Solving Abilitycited by 32
  2. 2024EconLogicQA: A Question-Answering Benchmark for Evaluating Large Language Models in Economic Sequential Reasoningcited by 22
  3. 2024STARD: A Chinese Statute Retrieval Dataset with Real Queries Issued by Non-professionalscited by 10
  4. 2023MUSER: A Multi-View Similar Case Retrieval Datasetcited by 8
  5. 2024Baichuan2-Sum: Instruction Finetune Baichuan2-7B Model for Dialogue Summarizationcited by 7
  6. 2023LEEC: A Legal Element Extraction Dataset with an Extensive Domain-Specific Label Systemcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 4; 2026: 3.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Know Your Limits : On the Faithfulness of LLMs as Solvers and Autoformalizers in Legal Reasoning
  2. 2025Parameterized Argumentation-based Reasoning Tasks for Benchmarking Generative Language Models
  3. 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Models
  4. 2024LawInstruct: A Resource for Studying Language Model Adaptation to the Legal Domain
  5. 2025Better Call CLAUSE: A Discrepancy Benchmark for Auditing LLMs Legal Reasoning Capabilities
  6. 2023LawBench: Benchmarking Legal Knowledge of Large Language Models
  7. 2025Evaluating Test-Time Scaling LLMs for Legal Reasoning: OpenAI o1, DeepSeek-R1, and Beyond
  8. 2025Investigating the Robustness of Deductive Reasoning with Large Language Models