AI lawyers and judges? Not just yet

    • Lawyers are to provide clients with effective legal representation, which often means they have to grapple with novel issues by coming up with arguments previously not advanced.
    • Lawyers are to provide clients with effective legal representation, which often means they have to grapple with novel issues by coming up with arguments previously not advanced. PHOTO: PIXABAY
    Published Wed, Apr 26, 2023 · 05:50 AM

    CHATGPT has revived the debate over the potential of artificial intelligence (AI) to disrupt the work that humans do. Buoyed by the promise that AI holds, predictions that AI will quickly upend several professions and change the value of human output forever abound.

    The legal profession, often considered traditional and resistant to change, is not spared. Predictions have ranged from AI being yet another tool to AI imminently replacing your lawyer or judging your cases. This debate is not new. Before ChatGPT, there were electronic discovery and predictive coding, which prompted clairvoyants to predict the replacement of lawyers, only for such technology to ultimately serve as aides.

    How much of this current debate around ChatGPT is hype? To separate the wheat from the chaff, it is vital to strip ChatGPT and its like down to their basics.

    The GPT in ChatGPT stands for “generative pre-trained transformer”, which is a type of large language model (LLM) that can perform natural language processing tasks such as answering questions, composing tests and solving complex equations. The model is trained on massive datasets and uses a technique called deep learning to produce human-like responses. While the user may feel the program is “chatting” with them like another human, the model is in fact stringing together a response based on the data it has been trained on. The program is trained on a huge dataset of text, which enables it to understand and generate responses to a wide range of topics and questions.

    This reliance on datasets is both a boon and a bane.

    There is no denying that the current advances made by ChatGPT will augment the work that lawyers and judges do, freeing them to focus on higher quality work. Technological tools of the past decade have somewhat freed lawyers from the drudgery of more mundane tasks such as document review and discovery – but now, LLMs could potentially be used to produce a rough first cut of an opinion.

    Yet, the technology behind ChatGPT will not replace the lawyers and judges, at least not anytime soon. Lawyers and judges are not just wordsmiths.

    Lawyers are tasked with providing clients with effective legal representation, which often means that they have to grapple with novel issues by coming up with arguments previously not advanced. By fielding creative arguments and tackling policy concerns, lawyers seek to advance the development of the law in several uncharted territories, such as assisted reproduction, euthanasia and cryptocurrency. Further, lawyers do not stop advancing their client’s cause simply because similar cases have failed before. If that were the case, we would never have had Brown versus Board of Education, the landmark US Supreme Court decision which ended racial segregation of children in public schools.

    Similarly, judges are not decision generators who rely only on past precedents. They decide each case on its facts to find a just outcome. When presented with unprecedented cases, they develop the law by adapting or changing existing legal concepts. Even in the precedent-driven common law world, modern judges are not simply shackled to precedent and oblivious to progress.

    Leaving aside the tendency for inaccuracy – which developers claim can be fixed – LLMs such as ChatGPT, if charged with the replacement of lawyers and judges, would fail on three counts: bias, legitimacy and novelty.

    Bias and opacity

    While an LLM is an improvement of past technology in its machine learning capabilities, its reliance on datasets at its core means that the ghosts of our biased past will continue to live among us. If historical data is biased against a certain demographic group, relying on such models in the legal sphere would perpetuate systemic bias. Reliance on such models to adjudicate cases or, worse still, replace judges could have dire consequences in criminal law and sentencing. Eradicating stubborn historical biases would become that much more difficult.

    Consider the case of Eric Loomis, who was sentenced in 2013 to a six-year prison term by a judge in Wisconsin. The length of his jail term was determined by his criminal record and the use of an algorithm-driven assessment, COMPAS (Correctional Offender Management Profiling for Alternative Sanctions), that claims to predict an individual’s risk of re-offending. Before obtaining the COMPAS score, the prosecution and defence entered a plea deal of one year in county jail. However, Loomis’ COMPAS score at trial suggested that he had a high risk of committing another crime, and this resulted in the six-year imprisonment term. Loomis appealed on the basis that the court’s reliance on the algorithm violated his due process rights and took race and gender into account when deciding on recidivism. The Wisconsin Supreme Court denied the appeal on the basis that the judge considered the COMPAS score but arrived at his own judgment on the sentence. Independent testing of the algorithm tool used in Loomis’ case showed that offenders of colour were more likely to receive higher risk ratings than white offenders.

    Loomis’ example highlights why LLMs are still ill-suited to replace the work of lawyers and judges. Such models are at risk of relying on data biased against particular groups to arrive at a decision that penalises the individual before the court not for their action, but possibly those of others before them.

    Legitimacy

    A related problem is how such models produce responses to questions. There are already cries for regulation of AI, in part because of the opacity surrounding how AI processes data. Unlike human judges, AI systems do not have the ability to explain their reasoning or provide context for their decisions. This lack of transparency can be problematic in legal decision-making, where individuals have a right to understand why a decision was made. In Loomis’ case, the closed-source nature of the algorithm meant that there could be no meaningful scrutiny of the factors playing a part in the scoring system. Without such transparency, legal representation and the justice system would lose legitimacy.

    Novelty

    Finally, such models are not ready to deal with cutting-edge “tip of the spear” type of legal work. When faced with a novel legal problem or an unprecedented ethical question, the model’s crutch would be its curse. Historical precedent is often a poor guide for deciding cases on the new frontiers of the law. Such models are also not equipped to develop existing legal concepts or to take into account policy considerations when deciding individual cases.

    In its present form, while LLMs such as ChatGPT have shown remarkable advancements in machine learning, the reliance on the datasets means that the model is only as good as the data. The issues highlighted here are emblematic of the limitations of AI and machine learning, but they become more acute in the law because, often, life, liberty and property are at stake. Each wave of new technology leads to predictions on its power to disrupt. However, until we figure out how to eliminate bias in datasets, address novelty and render transparent AI’s decision-making process, such technology would not replace lawyers and judges anytime soon.

    The writer is a director at Drew & Napier LLC.