IDEAS home Printed from https://ideas.repec.org/a/ers/journl/vxxviiy2024ispecialbp1057-1094.html
   My bibliography  Save this article

Generative AI as Tax Attorneys: Exploring Legal Understanding Through Experiments

Author

Listed:
  • Tomasz Strak

Abstract

Purpose: The purpose of the research presented in this article is to assess LLM models' ability to understand the law's language and legal reasoning for tax law. The choice of the tax law was dictated by the universality of its application (the easily accessible large corpus of tests) and the fact that in the case of European Union member states (such as Poland), this law is partially harmonised. These circumstances make it possible to reduce one of the indicated barriers to applying LLM in law (the multilingual and multicultural nature of the law). The latest GPT o1 - preview model from OpenAI was used for the study. The premiere of this model took place on 12.09.2024. It is a multilingual model with a universal rather than specialised nature, which would be explicitly trained for tax law use. Design/Methodology/Approach: The research used an experimental method in which selected GPT models simulated the responses of a tax law expert. The research used two GPT models by OpenAI: GPT - 4 (available 14.03.2023) and GPT o1-preview (available 12.09.2024). The method used is an extension of the Turing Test concept (Turing, 1950), in which the AI model is intended to mimic human communication by assessing the ability to think logically, be creative and understand the context. Four research experiments were conducted. The first experiment assessed the LLM's understanding of the language of law, the second and third assessed the LLM's understanding of legal language, and the fourth assessed the LLM's legal reasoning skills. Findings: The obtained results of the conducted research about LLM models allow the following conclusions to be formulated for Polish tax law: 1) the quality of understanding and legal reasoning of the GPT models is such that the models help support the work of professional tax advisors; 2) the accuracy of the legal advice provided by the GPT o1 - preview model is too low for the model to be used to provide legal advice on its own; 3) the GPT o1 - preview model can predict the position of the NRAIC for a given factual situation with high probability; 4) the GPT o1 - preview model has legal reasoning skills at the level of a professional lawyer except the ability to analyse court decisions and PTRs; 5) in the case of court decisions and PTRs analysis, there was a solid hallucinatory effect in the conducted studies, which affected 50% of the analysed cases.; 6) the quality of the LLM's understanding and reasoning was significantly influenced by the size of the training set and the number of domain-specific questions asked. Practical Implications: The research results have significant practical implications. They indicate the applicability of GPT models for tax attorneys and identify the main barriers to their practical application. The article also shows how to improve the accuracy of the models and significantly reduce the hallucinatory effect. The practical implementation of the presented research results may significantly affect the labour market for lawyers dealing with Polish and European tax law. Originality/Value: The research presents an original method of assessing the quality of legal reasoning based on the Quality of Legal Reasoning Indicator. It is also the first of its kind concerning Polish tax law. Therefore, it makes an important contribution to the development of Generative AI in the field of law, especially tax law.

Suggested Citation

  • Tomasz Strak, 2024. "Generative AI as Tax Attorneys: Exploring Legal Understanding Through Experiments," European Research Studies Journal, European Research Studies Journal, vol. 0(Special B), pages 1057-1094.
  • Handle: RePEc:ers:journl:v:xxvii:y:2024:i:specialb:p:1057-1094
    as

    Download full text from publisher

    File URL: https://ersj.eu/journal/3783/download
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Mr. Christophe J Waerzeggers & Mr. Cory Hillier, 2016. "Introducing an Advance Tax Ruling (ATR) Regime," IMF Tax Law Technical Note 2016/002, International Monetary Fund.
    2. Christophe J Waerzeggers & Cory Hillier, 2016. "Introducing an Advance Tax Ruling (ATR) Regime," IMF Tax Law Technical Note 16/2, International Monetary Fund.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Egger, Peter H. & Strecker, Nora M. & Zoller-Rydzek, Benedikt, 2020. "Estimating bargaining-related tax advantages of multinational firms," Journal of International Economics, Elsevier, vol. 122(C).
    2. Mayer, Maryse & Gendron, Yves, 2024. "The media representation of LuxLeaks: A window onto the normative dynamics of tax avoidance from a socio-legal perspective," CRITICAL PERSPECTIVES ON ACCOUNTING, Elsevier, vol. 99(C).

    More about this item

    Keywords

    Generative AI; large language models (LLMs); generative pre-trained transformers (GPT); law; tax; legal datasets; judicial data; natural language processing (NLP).;
    All these keywords.

    JEL classification:

    • A1 - General Economics and Teaching - - General Economics
    • C45 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - Neural Networks and Related Topics
    • C99 - Mathematical and Quantitative Methods - - Design of Experiments - - - Other
    • D21 - Microeconomics - - Production and Organizations - - - Firm Behavior: Theory
    • K10 - Law and Economics - - Basic Areas of Law - - - General (Constitutional Law)
    • K34 - Law and Economics - - Other Substantive Areas of Law - - - Tax Law

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ers:journl:v:xxvii:y:2024:i:specialb:p:1057-1094. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Marios Agiomavritis (email available below). General contact details of provider: https://ersj.eu/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.