Large Language Models as Tax Attorneys: A Case Study in Legal Capabilities Emergence
Authors: John J. Nay, David Karamardian, Sarah B. Lawsky, Wenting Tao, Meghana Bhat, Raghav Jain, Aaron Travis Lee, Jonathan H. Choi, Jungo Kasai
Abstract
Better understanding of Large Language Models' (LLMs) legal analysis abilities can contribute to improving the efficiency of legal services, governing artificial intelligence, and leveraging LLMs to identify inconsistencies in law. This paper explores LLM capabilities in applying tax law. We choose this area of law because it has a structure that allows us to set up automated validation pipelines across thousands of examples, requires logical reasoning and maths skills, and enables us to test LLM capabilities in a manner relevant to real-world economic lives of citizens and companies. Our experiments demonstrate emerging legal understanding capabilities, with improved performance in each subsequent OpenAI model release. We experiment with retrieving and utilising the relevant legal authority to assess the impact of providing additional legal context to LLMs. Few-shot prompting, presenting examples of question-answer pairs, is also found to significantly enhance the performance of the most advanced model, GPT-4. The findings indicate that LLMs, particularly when combined with prompting enhancements and the correct legal texts, can perform at high levels of accuracy but not yet at expert tax lawyer levels. As LLMs continue to advance, their ability to reason about law autonomously could have significant implications for the legal profession and AI governance.
The papers around it, by date and closeness
Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper
Papers around this one
Ranked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
Large Language Models Meet Legal Artificial Intelligence: A SurveyZhitian Hou, Zihan Ye, Nan-Li Zeng et al. · 2025 · arXiv.org · preprint, not peer reviewed · cited 15 times · Not summarized yet
The survey reviews legal LLMs, frameworks, benchmarks, and datasets, while this paper experimentally tests LLMs on tax-law analysis.
Abstract
Large Language Models (LLMs) have significantly advanced the development of Legal Artificial Intelligence (Legal AI) in recent years, enhancing the efficiency and accuracy of legal tasks. To advance research and applications of LLM-based approaches in legal domain, this paper provides a comprehensive review of 16 legal LLMs series and 47 LLM-based frameworks for legal tasks, and also gather 15 benchmarks and 29 datasets to evaluate different legal capabilities. Additionally, we analyse the challenges and discuss future directions for LLM-based approaches in the legal domain. We hope this paper provides a systematic introduction for beginners and encourages future research in this field. Reso…
-
Large Language Models in Legal Systems: A SurveyFatemeh Dehghani, Roya Dehghani, Yazdan Naderzadeh Ardebili et al. · 2025 · Humanities and Social Sciences Communications · cited 41 times · Not summarized yet
The survey maps LLM applications and risks across legal systems, whereas this paper evaluates tax-law reasoning and prompting.
Abstract
This paper provides a comprehensive survey of the role of large language models (LLMs) in legal systems. It examines their applications across key areas such as legal document drafting, case analysis, research, compliance monitoring, and education. In addition to mapping these use cases, the survey reviews datasets and benchmarks that enable the training and fine-tuning of LLMs for legal tasks. The analysis highlights both the opportunities and challenges of adopting LLMs in practice, including issues of bias, interpretability, accuracy, and ethical risk. Particular attention is given to the limitations of current models and the risks of overstating their reliability in high-stakes legal con…
-
Legal Evalutions and Challenges of Large Language ModelsJia-Qi Wang, Huan Zhao, Zhen-Yuan Yang et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 5 times · Not summarized yet
The study tests models on English and Chinese legal cases and judgment prediction, while this paper tests tax-law application.
Abstract
In this paper, we review legal testing methods based on Large Language Models (LLMs), using the OPENAI o1 model as a case study to evaluate the performance of large models in applying legal provisions. We compare current state-of-the-art LLMs, including open-source, closed-source, and legal-specific models trained specifically for the legal domain. Systematic tests are conducted on English and Chinese legal cases, and the results are analyzed in depth. Through systematic testing of legal cases from common law systems and China, this paper explores the strengths and weaknesses of LLMs in understanding and applying legal texts, reasoning through legal issues, and predicting judgments. The expe…
-
Large Language Models in Law: A SurveyJinqi Lai, Wen-Sheng Gan, Jia-Yang Wu et al. · 2023 · AI Open · cited 283 times · Not summarized yet
The survey reviews legal LLMs and their challenges, while this paper measures model performance in tax-law analysis.
Abstract
The advent of artificial intelligence (AI) has significantly impacted the traditional judicial industry. Moreover, recently, with the development of AI-generated content (AIGC), AI and law have found applications in various domains, including image recognition, automatic text generation, and interactive chat. With the rapid emergence and growing popularity of large models, it is evident that AI will drive transformation in the traditional judicial industry. However, the application of legal large language models (LLMs) is still in its nascent stage. Several challenges need to be addressed. In this paper, we aim to provide a comprehensive survey of legal LLMs. We not only conduct an extensive…
-
Large Language Models in Cryptocurrency Securities Cases: Can ChatGPT Replace Lawyers?Arianna Trozze, Toby P. Davies, B. Kleinberg · 2023 · arXiv.org · preprint, not peer reviewed · cited 13 times · Not summarized yet
The study tests GPT-3.5’s legal reasoning on cryptocurrency securities cases; this paper tests LLM legal analysis on tax-law questions.
Abstract
Large Language Models (LLMs) could enhance access to the legal system. However, empirical research on their effectiveness in conducting legal tasks is scant. We study securities cases involving cryptocurrencies as one of numerous contexts where AI could support the legal process, studying LLMs' legal reasoning and drafting capabilities. We examine whether a) an LLM can accurately determine which laws are potentially being violated from a fact pattern, and b) whether there is a difference in juror decision-making based on complaints written by a lawyer compared to an LLM. We feed fact patterns from real-life cases to GPT-3.5 and evaluate its ability to determine correct potential violations f…
-
Evaluating the Role of Large Language Models in Legal Practice in IndiaRahul Hemrajani · 2025 · arXiv.org · preprint, not peer reviewed · cited 4 times · Not summarized yet
The study compares LLMs with a junior lawyer on Indian legal tasks, while this paper compares tax-law outputs with expert-level capability.
Abstract
The integration of Artificial Intelligence(AI) into the legal profession raises significant questions about the capacity of Large Language Models(LLM) to perform key legal tasks. In this paper, I empirically evaluate how well LLMs, such as GPT, Claude, and Llama, perform key legal tasks in the Indian context, including issue spotting, legal drafting, advice, research, and reasoning. Through a survey experiment, I compare outputs from LLMs with those of a junior lawyer, with advanced law students rating the work on helpfulness, accuracy, and comprehensiveness. LLMs excel in drafting and issue spotting, often matching or surpassing human work. However, they struggle with specialised legal rese…
-
Large language models and their possible uses in lawPéter Homoki, Zsolt Ződi · 2024 · Hungarian Journal of Legal Studies · cited 25 times · Not summarized yet
The paper discusses legal applications and limitations of LLMs broadly, while this paper experimentally assesses tax-law capabilities.
Abstract
The paper explores the potential applications of Large Language Models (LLMs) like ChatGPT in the legal field, focusing on how they can enhance access to law. We begin by elucidating the fundamental workings of LLMs and their current and future general applications. The core of our study predicts the utilization of LLMs in various legal domains, especially where tasks like text retrieval, generation, labeling, and classification are prevalent. We argue that tools like ChatGPT could play a pivotal role in these areas. Additionally, we discuss the limitations and customization requirements of LLMs, particularly for legal uses. An experiment conducted by one of the authors, involving a tailored…
-
LawBench: Benchmarking Legal Knowledge of Large Language ModelsZhiwei Fei, Xiaoyu Shen, Dawei Zhu et al. · 2023 · Computation and Language · preprint, not peer reviewed · cited 177 times · AI summary available
LawBench benchmarks legal knowledge and understanding across tasks, while this paper uses automated validation to evaluate tax-law answers.
Abstract
Large language models (LLMs) have demonstrated strong capabilities in various aspects. However, when applying them to the highly specialized, safe-critical legal domain, it is unclear how much legal knowledge they possess and whether they can reliably perform legal-related tasks. To address this gap, we propose a comprehensive evaluation benchmark LawBench. LawBench has been meticulously crafted to have precise assessment of the LLMs' legal capabilities from three cognitive levels: (1) Legal knowledge memorization: whether LLMs can memorize needed legal concepts, articles and facts; (2) Legal knowledge understanding: whether LLMs can comprehend entities, events and relationships within legal…
Prior work it builds on
-
Large Language Models as Fiduciaries: A Case Study Toward Robustly Communicating With Artificial Intelligence Through Legal StandardsJ. Nay · 2023 · Social Science Research Network · cited 27 times · Not summarized yet
The study uses legal standards to communicate goals to AI agents, while this paper evaluates LLMs applying tax law.
Abstract
Artificial Intelligence (AI) is taking on increasingly autonomous roles, e.g., browsing the web as a research assistant and managing money. But specifying goals and restrictions for AI behavior is difficult. Similar to how parties to a legal contract cannot foresee every potential"if-then"contingency of their future relationship, we cannot specify desired AI behavior for all circumstances. Legal standards facilitate robust communication of inherently vague and underspecified goals. Instructions (in the case of language models,"prompts") that employ legal standards will allow AI agents to develop shared understandings of the spirit of a directive that generalize expectations regarding accepta…
-
Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated FeedbackBaolin Peng, Michel Galley, Pengcheng He et al. · 2023 · Computation and Language · preprint, not peer reviewed · cited 563 times · AI summary available
LLM-Augmenter grounds responses in external knowledge and feedback, while this paper tests legal authority retrieval and few-shot prompting for tax analysis.
Abstract
Large language models (LLMs), such as ChatGPT, are able to generate human-like, fluent responses for many downstream tasks, e.g., task-oriented dialog and question answering. However, applying LLMs to real-world, mission-critical applications remains challenging mainly due to their tendency to generate hallucinations and inability to use external knowledge.This paper proposes a LLM-Augmenter system, which augments a black-box LLM with a set of plug-and-play modules. Our system makes the LLM generate responses grounded in consolidated external knowledge, e.g., stored in task-specific databases. It also iteratively revises LLM prompts to improve model responses using feedback generated by util…
-
Grounding Large Language Models in Interactive Environments with Online Reinforcement LearningThomas Carta, Clément Romac, Thomas Wolf et al. · 2023 · International Conference on Machine Learning · cited 306 times · AI summary available
GLAM grounds an LLM agent through online reinforcement learning in interactive environments, unlike this paper’s tax-law evaluation.
Abstract
Recent works successfully leveraged Large Language Models'(LLM) abilities to capture abstract knowledge about world's physics to solve decision-making problems. Yet, the alignment between LLMs'knowledge and the environment can be wrong and limit functional competence due to lack of grounding. In this paper, we study an approach (named GLAM) to achieve this alignment through functional grounding: we consider an agent using an LLM as a policy that is progressively updated as the agent interacts with the environment, leveraging online Reinforcement Learning to improve its performance to solve goals. Using an interactive textual environment designed to study higher-level forms of functional grou…
-
Large Language Models as Corporate LobbyistsJ. Nay · 2023 · Social Science Research Network · cited 26 times · Not summarized yet
The study uses an LLM to assess and draft around legislation, while this paper applies LLMs to tax-law questions.
Abstract
We demonstrate a proof-of-concept of a large language model conducting corporate lobbying related activities. An autoregressive large language model (OpenAI's text-davinci-003) determines if proposed U.S. Congressional bills are relevant to specific public companies and provides explanations and confidence levels. For the bills the model deems as relevant, the model drafts a letter to the sponsor of the bill in an attempt to persuade the congressperson to make changes to the proposed legislation. We use hundreds of novel ground-truth labels of the relevance of a bill to a company to benchmark the performance of the model. It outperforms the baseline of predicting the most common outcome of i…
-
Boosting Theory-of-Mind Performance in Large Language Models via PromptingShima Rahimi Moghaddam, C. Honey · 2023 · arXiv.org · preprint, not peer reviewed · cited 118 times · Not summarized yet
The study tests in-context prompting to improve GPT reasoning, as this paper tests few-shot examples for tax-law answers.
Abstract
Large language models (LLMs) excel in many tasks in 2023, but they still face challenges in complex reasoning. Theory-of-mind (ToM) tasks, which require understanding agents' beliefs, goals, and mental states, are essential for common-sense reasoning involving humans, making it crucial to enhance LLM performance in this area. This study measures the ToM performance of GPT-4 and three GPT-3.5 variants (Davinci-2, Davinci-3, GPT-3.5-Turbo), and investigates the effectiveness of in-context learning in improving their ToM comprehension. We evaluated prompts featuring two-shot chain of thought reasoning and step-by-step thinking instructions. We found that LLMs trained with Reinforcement Learning…
Papers that cite it
-
Large Legal Fictions: Profiling Legal Hallucinations in Large Language ModelsMatthew Dahl, Varun Magesh, M. Suzgun et al. · 2024 · Journal of Legal Analysis · cited 419 times · Not summarized yet
The study reports frequent legal hallucinations in public LLMs, while this paper finds high tax-law accuracy with prompting and legal texts.
Abstract
Do large language models (LLMs) know the law? LLMs are increasingly being used to augment legal practice, education, and research, yet their revolutionary potential is threatened by the presence of “hallucinations”—textual output that is not consistent with legal facts. We present the first systematic evidence of these hallucinations in public-facing LLMs, documenting trends across jurisdictions, courts, time periods, and cases. Using OpenAI’s ChatGPT 4 and other public models, we show that LLMs hallucinate at least 58% of the time, struggle to predict their own hallucinations, and often uncritically accept users’ incorrect legal assumptions. We conclude by cautioning against the rapid and u…
-
A rapid evidence review of evaluation techniques for large language models in legal use cases: trends, gaps, and recommendations for future researchJoshua Kelsall, Xing-Wei Tan, A. G. Bergin et al. · 2025 · Ai & Society · cited 9 times · Not summarized yet
The review examines evaluation techniques and risks in legal LLM use, while this paper contributes an empirical tax-law evaluation.
Abstract
The legal profession faces mounting pressures, including case backlogs and limited access to legal services. Large language models (LLMs), such as OpenAI’s GPT series, have been touted as potential solutions, promising to streamline tasks such as legal drafting, summarisation, analysis, and advice. Proponents argue these models can enhance efficiency, accuracy, and access to justice. However, significant risks remain. LLMs are prone to bias, factual hallucinations, and opaque reasoning processes, which can have severe consequences in high-stakes legal contexts. For responsible use in law, legal use cases must be accurately operationalised into LLM tasks that are sensitive to legal settings, …
-
Enhancing Logical Reasoning in Large Language Models to Facilitate Legal ApplicationsHa-Thanh Nguyen, Wachara Fungwacharakorn, Ken Satoh · 2023 · arXiv.org · preprint, not peer reviewed · cited 14 times · Not summarized yet
The paper seeks to strengthen LLM logical reasoning for legal applications, a capability this paper tests through tax-law analysis.
Abstract
Language serves as a vehicle for conveying thought, enabling communication among individuals. The ability to distinguish between diverse concepts, identify fairness and injustice, and comprehend a range of legal notions fundamentally relies on logical reasoning. Large Language Models (LLMs) attempt to emulate human language understanding and generation, but their competency in logical reasoning remains limited. This paper seeks to address the philosophical question: How can we effectively teach logical reasoning to LLMs while maintaining a deep understanding of the intricate relationship between language and logic? By focusing on bolstering LLMs' capabilities in logical reasoning, we aim to …
-
Can LLMs Identify Tax Abuse?Andrew Blair-Stanek, Nils Holzenberger, Benjamin Van Durme · 2025 · AAAI Conference on Artificial Intelligence · cited 1 time · Not summarized yet
The study examines LLMs’ ability to interpret and generate U.S. tax strategies, while this paper tests their application of tax law.
Abstract
We investigate whether large language models can discover and analyze U.S. tax-minimization strategies. This real-world domain challenges even seasoned human experts, and progress can reduce tax revenue lost from well-advised, wealthy taxpayers. We evaluate the most advanced LLMs on their ability to (1) interpret and verify tax strategies, (2) fill in gaps in partially specified strategies, and (3) generate complete, end-to-end strategies from scratch. This domain should be of particular interest to the LLM reasoning community: unlike synthetic challenge problems or scientific reasoning tasks, U.S. tax law involves navigating hundreds of thousands of pages of statutes, case law, and administ…
-
Using large language models for legal decision-making in Austrian value-added tax law: a comparative studyMarina Luketina, Andrea Benkel, Christoph G. Schuetz · 2025 · The Journal of Business Analysis · Not summarized yet
The study evaluates LLM decision-making in Austrian and EU VAT law using fine-tuning and RAG, while this paper evaluates tax-law analysis and legal-context retrieval.
Abstract
This paper provides an experimental evaluation of the capability of large language models (LLMs) to assist in legal decision-making within the framework of Austrian and European Union value-added tax (VAT) law. In tax consulting practice, clients often describe cases in natural language, making LLMs a prime candidate for supporting automated decision-making and reducing the workload of tax professionals. Given the requirement for legally grounded and well-justified analyses, the propensity of LLMs to hallucinate presents a considerable challenge. The experiments focus on two common methods for enhancing LLM performance: fine-tuning and retrieval-augmented generation (RAG). In this study, the…
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 5 November 2026.