Back
Image Alt

The Singapore Law Gazette

AI and a New Way of Looking at Contract Pre-screening

The use of artificial intelligence software to identify possible items of concern in legal documents is well established. However, the real possibilities are only now being opened up with a new generation of systems.

Breakthroughs in machine learning and natural language processing – “artificial intelligence” – have attracted a great deal of interest and investment in the legal sector over the past few years.1Goodman, Joanna, 2016. Robots in Law: How Artificial Intelligence is Transforming Legal Services, ARK Group. Some commentators have hailed this technology as ushering in “the end of lawyers”, or at least greatly reducing the need for junior legal staff.

This may be premature. Even in routine legal work such as contract pre-screening, the ability of AI systems to scan rapidly through documents for points of interest does not remove the need for human professional expertise. In particular, what do we do with all the data the AI is throwing up?

Meanwhile, the idea of exploiting the real power of AI – the knowledge gathered by such systems – is still in its infancy in law.

Where are We Currently, and How Does This “AI” Technology Work?

There is no doubt that so-called AI software is improving dramatically in its ability to identify relevant phrases and clauses in documents, and, importantly, to improve its capability over time as more training examples become available. Such systems employ techniques of anomaly detection and pattern matching to find phrases that are topically similar to the training examples.

It is important to stress that AI systems do this in a completely different way to conventional logic-based programs. The system’s programmers do not set out a series of algorithmic steps to achieve a prescribed end goal. Instead they “train” the system how to get there, in a software model of a “neural network” with the capacity to alter the weights of connections between the virtual neurons, so that more weight is given to pathways that trigger the desired outcome. In effect the controlling algorithms emerge through achieving the correct output, rather than the opposite, as is the case with a conventional program or so-called “expert systems”.

Such pattern-matching can link a scanned image of a piece of legal text to an output meaning – “applicable jurisdiction”, for example – with an accuracy that increases with the number of training examples shown to the software. Hence the uncanny illusion that the software has the ability to extract meaning even from a precise set of words it has never encountered before.

Whether this constitutes “understanding” is a familiar problem in philosophy2Searle, John, 1980. Minds, Brains and Programs http://cogprints.org/7150/1/10.1.1.83.5248.pdf but need not detain us here. As far as legal professionals are concerned, what matters is the ability of the software to identify points of interest in a large mass of documentation in minutes, rather than hours or days.

On the surface, this ability enables a breakthrough in tasks such as due diligence – which is how the systems are marketed and why they are increasingly adopted by leading law firms. While the assumption is that this kind of automation will cut legal bills,3Cross, Michael, 2018. In-house lawyers expect artificial intelligence to cut firms’ bills. https://www.lawgazette.co.uk/in-house-lawyers-expect-artificial-intelligence-to-cut-firms-bills-/5067832.article financial results from the major international firms suggests that this has yet to happen. One reason may be that the ability to tag items of interest in a mass of legal documentation at lightning speed does not in itself improve productivity. Human expertise is still required to know what questions to ask – and what to do with the outputs. Without these skills, the AI is little more than a word-search, throwing up large numbers of matches which at best will need interpretation and at worst are irrelevant.

True transformation of the legal function requires a different generation of artificial intelligence and the way in which it is used.

So What are the Use Cases, the Problems That Can be Solved?

Let us start by looking at the real everyday problems faced by corporate legal departments. Typically, working life is dominated by pressure to approve contracts, especially a constant influx of sales or distribution agreements.

All too often, contracts are agreed in outline by business teams and passed to the legal department for a “quick once-over” before they are signed, even though there may be little of value that the GC’s team can contribute at this stage. At best, this way of working means that the GC’s team is expected to support strategic decisions made without their input. At worst, they may come under pressure to put their names to unwise agreements.

So Can I Replace My Lawyers with AI?

Inevitably, lawyers’ time is spent performing a first review of contracts that may not pose any great risk – but of course there is no way of knowing what level of expertise is required before the lawyer’s time is assigned to the job. Meanwhile any change in external circumstance – a merger, or new legislation may mean there are hundreds of existing contracts to review. All this soaks up time: with most commercial agreements running to a minimum of 20 or 30 pages, a pre-screen and initial review takes between 1.5 to 3.5 hours. This is a waste of highly-qualified professional abilities which could be more usefully deployed elsewhere.

On the surface, AI systems of the type we have seen deployed in law firms would be ideal for cutting this workload by fishing out the clauses that trigger certain alerts from mountains of documents. However, the legal department still requires expert human knowledge to make decisions about what to do with these alerts, which, because of the need for caution, will almost always contain many false alarms. Most of all, a human will be required to deliver the output required by senior management, which is invariably words to the effect of: “Are we good to go with this?”

Rather than simply scanning the contract for data matches, what is needed to transform this process is a system that can review the contract and come up with a concise verdict analogous to a human lawyer’s conclusion – which will generally be along the lines of: “I’ve looked at this, and these five issues need careful consideration. Otherwise, we are OK.”

Contract Pre-screening – A New Category of Legal AI

Generating this kind of output (decisions) from an AI system requires a completely different approach to system architecture. Rather than asking a few questions of a document to get a large number of potential matches, the system needs to ask many thousands of questions to extract a few core issues. The system developed by UK and Singapore based ThoughtRiver, for example, asks thousands of questions to draw out knowledge on the issues that executives are interested in, to create a holistic view. It is done by a combination of machine learning and traditional decision-tree AI.4ThoughtRiver, 2019. https://thoughtriver.com/

While the output of the review, displayed as an on-screen dashboard, may appear superficial compared with a human lawyer’s considered perspective, it is based on a vast number of inputs rolled up into a single recommendation.

Two use-cases will be immediately obvious:

  • Where a quick review is needed of a specific contract. This is where the ability to derive a top-level recommendation based on thousands of questions (but not thousands of answers) is most useful. This is known as pre-screening.
  • In a merger or acquisition or major event such as a legislative change (the UK’s impending departure from the EU is a classic example). This is a typical due diligence scenario where quick answers are needed about thousands of contracts to identify where issues might lie.

A New Data and Insight Resource is Created

But automated contract pre-screening is not just about these dive-in, dive-out scenarios. It also enables enterprises to look at their contract inventories in quite a new way – and by so doing create a wholly new knowledge resource. In this approach, AI software builds up a picture of every contract throughout its life-cycle, from an initial assessment of the draft to the exposure it creates with new legislative or other external developments, to dealing with the implications of its expiry. It also records positions taken by the enterprise along the way, for example how often it may be accepting indemnities or unlimited liability on agreements.

Obviously this task could be carried out by human lawyers, but AI can ensure that it is done quickly, reliably and consistently. And the results can be displayed on an on-screen dashboard alerting legal teams to upcoming issues on which professionals need to be deployed.

This is a much more subtle decision than simply tagging every contract according to pre-set criteria such as valuation or renewal date. Many contracts can be allowed to lapse without the legal team needing to become involved – it all depends on context, which depends on developments across the organisation. This applies particularly to value: an agreement with a negligible headline value may turn out to be a very high-risk matter if it has the effect of giving away key intellectual property. Context is everything.

Monitoring This New Data Repository for Commercial Value

Life-cycle contract screening can also provide the intelligence to spot business opportunities. Such opportunities are often time-sensitive, such as a rapidly-approaching renewal date or an ability to increase prices. In these instances being able to alert stakeholders to the opportunity for a potential sale or revenue increase is immediately of obvious benefit to the organisation, when the alternative is to let it go unnoticed as a result of a manual contract management process.

A New Era for Contracts?

The real breakthrough enabled by AI-powered contract pre-screening, however, may be beyond the individual enterprise: the creation of a new body of knowledge on good practice.

It starts with the playbooks maintained by individual enterprises. There are the accumulated volume of corporate rules stating essentially: “We can accept this, we can’t accept that.” The playbook provides legal teams with a matrix of behaviour, so long as they are remembered, observed, and – especially – known to be observed. This is not a trivial point: today it is often impossible for organisations of any size to be confident that everyone is applying the rules consistently.

Digital Playbooks

Automated screening at important stages of the contract lifecycle can change this game, by extracting narrative data, information, and knowledge from the written playbook. Instead of a document, the playbook exists in a living, digital, computer-readable form. Crucially, the knowledge inside it reflects what is really going on, not a set of aspirations. Not only can we now identify at a glance any contract that is incompatible with the playbook, or becomes so due to changes outside the organisation, but we can also start changing behaviour within.

As a first step, we can now understand whether the playbook’s rules are themselves fit for purpose, by the very simple criterion of whether they are playing out in practice. For example, if the knowledge base shows that a particular opening negotiating position mandated by the playbook for a particular type of contract is always knocked back by the other party, it may be advantageous to save time and other resources by dropping that position from initial drafts.

A Digital Contract Description Framework

This knowledge can also be harnessed for benchmarking with other organisations. But for this to be effective, another behaviour change is required: we need to standardise the way contract clauses are described in data terms. Today, there is little or no coherence between one organisation’s library of data terms and those of its counterparts, even in the same industry. Until now, there has been little incentive to make this happen even though misunderstandings about meaning are the cause of so many disputes in contracting.

The situation is a little like the web world in the mid 1990s: thanks to lack of standardisation, a website’s appearance would vary widely depending on which browser it was seen through. The obvious benefits of being able to develop a site once for any browser was a strong force for standardisation, so we now take it for granted that a site will look the same whether viewed in Firefox or Explorer. Something similar will happen to contract data once the attractions of cross-sector benchmarking become obvious.

Standardisation enabled a massive leap forward in efficiency of the web world. There is the same potential for efficiency gains in removing the friction from the often centuries-old language of analogue contracts. AI can be the tool for creating a common core library of standards, which is growing all the time. This library should not be the property of one commercial party, but shared by all those with an interest, including law firms, academic institutions, and professional bodies.

Is there a precedent for such an exercise in sharing benchmarking data across highly competitive commercial sectors? The answer is yes, and in one of the most competitive sectors at all. In the 1970s every financial institution made its own assessments of customers’ credit-worthiness, asking their own questions to elicit essentially the same information. The response to the obvious inefficiency was a global credit ratings industry, a standard model allowing banks to learn from each other by having insight into shared knowledge. The fact it is standard makes it irresistible.

Artificial intelligence is not going to replace the general counsel – or most other types of lawyer – anytime soon. But it can empower changes in the way we will work. From the day- to-day activities of the GC’s team, to the additional functions that rely on the legal department’s work, and even to the way in which organisations interact and conduct business across the globe, computer-readable contracts can bring a multitude of benefits at every level.

Endnotes   [ + ]

1.Goodman, Joanna, 2016. Robots in Law: How Artificial Intelligence is Transforming Legal Services, ARK Group.
2.Searle, John, 1980. Minds, Brains and Programs http://cogprints.org/7150/1/10.1.1.83.5248.pdf
3.Cross, Michael, 2018. In-house lawyers expect artificial intelligence to cut firms’ bills. https://www.lawgazette.co.uk/in-house-lawyers-expect-artificial-intelligence-to-cut-firms-bills-/5067832.article
4.ThoughtRiver, 2019. https://thoughtriver.com/

Chief Legal Intelligence Officer
ThoughtRiver

Martin Davidson is Chief Legal Intelligence Officer of ThoughtRiver, a company specialising in the pre-screening of contracts using AI. He is also Product Owner and leads the legal intelligence team that supports client adoption of the technology. Before joining ThoughtRiver in 2017, he was Head Counsel at Sky and played a leading role in developing legal operations initiatives there, including contract automation. He joined Sky as a legal adviser in 2005 and has operated in senior adviser roles at Sky since 2010, including leading the Sky Sports, Sky Business and NOW TV legal teams. Before joining Sky, Martin was a lawyer at international law firm Herbert Smith Freehills. Legal500 recognised him as a rising star in their GC PowerList in 2017.