Governments will soon start using AI to identify and close tax loopholes
The tax code is so complex even AI doesn't understand it, but new AI research shows that it will soon be able to help governments create better more robust tax systems with fewer loopholes.
Key takeaways
- Hoping to narrow the gap with better technology, Blair-Stanek enrolled at Johns Hopkins to get a doctoral degree in computer science in Van Durme's lab.
- The idea is to create software that Congress, the IRS, or the courts, could use to easily scan proposed tax legislation or rulings for loopholes they might unintentionally create.
- The team is experimenting now with language prediction technology like ChatGPT and GPT3.
Cite or link to this article
Griffin, M. (2023) 'Governments will soon start using AI to identify and close tax loopholes', 311 Institute, 14 April. Available at: https://www.311institute.com/governments-will-soon-start-using-ai-to-identify-and-close-tax-loopholes/ (Accessed: 1 October 2026).
To eliminate tax loopholes that cost the federal government billions of dollars every year, tech and law experts are working together to create an Artificial Intelligence (AI) that can find loopholes better than a legion of blue-chip tax accountants.
Though the task is daunting - a recent test with the tax code "completely baffled" ChatGPT and GPT3, with GPT4 not doing much better - leaders of the Johns Hopkins University based effort not only believe it's doable they worry a corporate funded effort will beat them to the punch and use their own AI to find even more tax loopholes.
"The rules of the game are if you're operating within the law, how you bend the law to save on taxes is OK," said Benjamin Van Durme, a Johns Hopkins computer scientist specializing in AI who's leading the effort. "It's very difficult to predict all possible ways a law will work in the real world. The point of using AI is it could guess ahead before these laws get locked down."
What's understood as "tax law" is a massive, unwieldly array of laws enacted by Congress, Treasury regulations, Internal Revenue Service rulings, and court decisions. Even if all of it had been enacted with the best intentions, workarounds exist for taxpayers clever enough to find them.
"The problem is when a clever taxpayer takes one ruling and combines it with another to produce an idea that saves a lot of money," said Andrew Blair-Stanek, a tax attorney turned law professor who is part of the AI team. "It's the pairing of all these tax laws by clever lawyers."
The IRS estimates an annual tax gap of about $500 Billion, and some part of that results from these clever pairings. Hoping to narrow the gap with better technology, Blair-Stanek enrolled at Johns Hopkins to get a doctoral degree in computer science in Van Durme's lab. They recruited another student, Nils Holzenberger, to help create an AI system they're calling Shelter Check.
The idea is to create software that Congress, the IRS, or the courts, could use to easily scan proposed tax legislation or rulings for loopholes they might unintentionally create.
"That's why we call it Shelter Check - it's like a spell checker but for tax shelters," Van Durme said. "We want to build a system that could read proposed changes in the law and inform Congress and the IRS about ramifications for the tax code, or warn people writing new policies about unintended side effects."
Such sophisticated analysis will require a machine that can not only read, parse and understand complex tax law, but blend all of it like an accountant or a tax attorney.
The project is in the early stages, with the team building on the lab's extensive work in machine learning to explore language processing options and test them. As yet, they haven't found a way to conquer the legalese let alone replicate the deductive reasoning of a real human.
Despite recent advances in language-based AI, the latest in tech is no match for tax code. First, while the material is text-based, the legal language it's written in is complex if not downright arcane. Then, the thousands of pages of documents are peppered with tables that are vital to interpreting tax outcomes.
The team is experimenting now with language prediction technology like ChatGPT and GPT3. Tax code stumped both.
"GPT3 was completely baffled by the tax code," said Blair-Stanek, a law professor at the University of Maryland. "Literally flipping a coin on these would get 50% of the questions we were asking right and GPT3 only got about 70%. And these were just basic questions about the tax code like so-and-so is a dependent, makes $100,000 a year, does this tax section apply? It couldn't handle it."
Still, the team feels that a solution is possible. For example, initial experiments with the recently announced GPT4 suggest that progress is being made but that there is still work to be done.
"We have yet to find a way to easily produce the judgements of a human tax professional with high accuracy, but we have been making progress," Van Durme said. "But, if we're making progress, certainly a much larger, better funded corporate effort could be making it faster."
The team worries that corporations, which have the most to gain from tax shelters, are also working on this type of AI - and might already have it. Team members believe their AI could also be adapted for broader law uses in medicine and business.
"I'm planning to spend the rest of my career trying to make it work," Blair-Stanek said.
FAQ
Why does this matter?
The tax code is so complex even AI doesn't understand it, but new AI research shows that it will soon be able to help governments create better more robust tax systems with fewer loopholes.

About the author
Matthew Griffin Founder, 311 Institute
Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath."
Read full bio
Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath." 15-time best selling author of the "Codex of the Future" series, Matthew is the Founder and Futurist in Chief of the 311 Institute, a global Futures and Deep Futures advisory firm working with royal households, world leaders, G7, G20, and G77 governments, NGOs, and multi-national mid and mega cap firms to help them explore, shape, and lead the next 50 years of business and society.
An award-winning YouTube creator with over a million followers, with an unrivalled global reach and impact, Matthew is a highly sought-after international keynote speaker, lecturer, and mentor who collaborates with global leaders through the United Nations Alliance of Civilizations (UNAOC) and United Nations General Assembly (UNGA) to shape pivotal initiatives such as the UN’s AI for Humanity program, the United Nations Conference of the Parties (UN COP), and the World Economic Forum in Davos.
As the former Global Head of Cloud, National Security, and Enterprise Sales for companies including Atos, Dell-EMC, and IBM, Matthew has a proven track record of building multi-billion dollar business units and turning failing divisions into market leaders. His ability to identify, analyse, and communicate the implications of hundreds of emerging technologies and trends is unparalleled, and his insights are trusted by many of the world’s most respected organisations, including ABB, Accenture, Adidas, AON, ARM, BCG, Centrica, Citi, Coca-Cola, Dentons, Deloitte, Dow Jones, EY, Google, KPMG, Lego, Legal & General, LinkedIn, Microsoft, PepsiCo, Qualcomm, RWE, Samsung, Siemens AG and Siemens Energy, T-Mobile, UBS, VISA, Walmart, Workday, Worldpay and many others.
Regularly featured in the global media including the AP, BBC, Bloomberg, CNBC, Discovery, Forbes, Khaleej Times, Telegraph, TIME, ViacomCBS, WIRED, and the WSJ, Matthews mission is to help organisations create a fair and sustainable future whose benefits are shared by everyone irrespective of their ability, background, or circumstances.
What future do you need to see?
Choose one to get started on AI and intelligence and the future of your organisation.
Sources and further reading
- Taxation 311insitute.com
- Artificial intelligence 311insitute.com
- Johns Hopkins University 311insitute.com
- Benjamin Van Durme engineering.jhu.edu
- Internal Revenue Service 311insitute.com
- Index law.umaryland.edu
- University of Maryland 311insitute.com
Source: first published by the 311 Institute on 14 April 2023. Cite as: Griffin, M. (2023). Governments will soon start using AI to identify and close tax loopholes. 311 Institute. https://www.311institute.com/governments-will-soon-start-using-ai-to-identify-and-close-tax-loopholes/
You are welcome to quote this article with credit and a link to the original.