PolicyEngine logo
menu
Research
About
Donate
Learn ▼

New AI feature helps people understand their taxes and benefits

We’re applying large language models to clarify complex policy rules.

By anthony volk

26 December 2024

1 min read

New AI feature helps people understand their taxes and benefits

Contents

PolicyEngine has developed a new artificial intelligence feature that transforms complex tax and benefit calculations into clear, accessible explanations. This innovation emerged from our participation in the Georgetown Beeck Center’s Policy2Code Challenge with a central question: How can we help users better understand their tax and benefit eligibility?

Users frequently encounter intricate calculations spanning multiple programmes, each with distinct thresholds, phase-outs, and dependencies. Our solution combines PolicyEngine’s open-source rules engine with artificial intelligence to explain these calculations in plain language, building on our previous work applying AI to policy analysis.

Technical architecture#

The system integrates PolicyEngine’s tax-benefit rules with Anthropic’s Claude 3.5 Sonnet API. When calculating programme amounts like Universal Credit or Income Tax, PolicyEngine processes thousands of intermediate calculations involving household income, deductions, and other eligibility factors. Our new explanation system passes these complex intermediate calculations to the AI system, which generates natural language explanations.

For example, consider an individual earning £15,000. PolicyEngine calculates that they pay £486 in Income Tax. Users can now click a tooltip followed by an “Explain with AI ✨” button to receive a comprehensive explanation of this amount, including the Personal Allowance and potential changes that could affect their tax.

The AI system analyses both final outcomes and the intermediate calculations contributing to them. Many variables in PolicyEngine’s system involve dozens of intermediate steps, calculated at both monthly and annual levels. This new feature makes these calculation chains transparent and comprehensible.

Applications and impact#

This explanation tool serves diverse needs across the policy ecosystem. Whether you’re a household trying to understand your taxes and benefits, a professional analysing complex policy interactions, or a researcher exploring programme mechanics, the system breaks down intricate calculations into clear explanations.

Following PolicyEngine’s existing policy analysis framework, the explanations adapt to different audiences, ranging from simplified overviews to detailed technical analyses. This flexibility makes complex policy calculations accessible while preserving the depth needed for technical users.

Development roadmap#

Having launched this feature in the PolicyEngine web app, we will extend it to API customers in Q1 2025. PolicyEngine welcomes feedback on improving accessibility across user groups as we continue development.


Max Ghenis, Pavel Makarchuk, Rachel Lawrie, and Li-Heng Pan also contributed to this feature.

PolicyEngine logo

Subscribe to PolicyEngine

Get the latests posts delivered right to your inbox.


PolicyEngine is a registered charity with the Charity Commission of England and Wales (no. 1210532) and as a private company limited by guarantee with Companies House (no. 15023806).

© 2025 PolicyEngine. All rights reserved.