← Latest papers
💬 NLP

Evaluating Semantic and Syntactic Understanding in Large Language Models for Payroll Systems

This paper evaluates the ability of various large language models to accurately process complex payroll schemas and calculations, providing a framework to determine when prompting is sufficient versus when explicit computational tools are necessary for high-stakes accuracy.

Original authors: Hendrika Maclean, Mert Can Cakmak, Muzakkiruddin Ahmed Mohammed, Shames Al Mandalawi, John Talburt

Published 2026-02-10
📖 3 min read☕ Coffee break read

Original authors: Hendrika Maclean, Mert Can Cakmak, Muzakkiruddin Ahmed Mohammed, Shames Al Mandalawi, John Talburt

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The "Math-Savvy Poet" Problem: Can AI Handle Your Paycheck?

Imagine you hire a brilliant, world-class poet to be your company’s accountant. This poet can write beautiful sonnets about tax law, summarize a 500-page manual in seconds, and explain the concept of a paycheck better than anyone on Earth.

But there’s a catch: The poet is a "language person," not a "number person." They understand the meaning of the word "deduction," but when it comes to actually subtracting $42.57 from $1,200.00, they might get distracted by the beauty of the numbers and accidentally give you $1,157.43.

That is essentially the problem this research paper investigates.


The Experiment: The Payroll Stress Test

The researchers wanted to see if the world’s most famous AI models (like GPT, Claude, and Gemini) could handle a high-stakes task: Calculating payroll.

Payroll is the ultimate "stress test" for AI because it isn't just about simple math; it’s about logic and rules. It’s like a complex obstacle course:

  1. The Semantic Hurdle: Does the AI understand that "Pre-tax 401k" means you subtract that money before you calculate taxes?
  2. The Rule Hurdle: Does it know that if someone earns too much, the Social Security tax "caps out" and stops increasing?
  3. The Precision Hurdle: In payroll, being off by a single penny is a failure. Can the AI be "cent-accurate"?

The "Difficulty Levels"

The researchers created five levels of difficulty, ranging from a simple "multiply hours by pay rate" to a "boss-level" nightmare involving different currencies, multiple state taxes, and complex bonuses.

To test them, they used different "Instruction Styles" (Prompts):

  • Level 1 (The Lazy Boss): "Here is a spreadsheet. Tell me the net pay."
  • Level 4 (The Micromanager): "Here is the spreadsheet, and here is the exact mathematical formula for every single step. Follow it exactly."

The Results: What We Learned

1. For the easy stuff, the AI is a superstar.
If you just need to calculate basic hourly wages, the AI is nearly perfect. It’s like asking the poet to count apples; they can do it easily.

2. For the complex stuff, "talking" isn't enough.
When the rules got messy (like calculating taxes across two different states), the AI started to stumble. It would understand the idea of the tax, but it would trip over the math.

3. The "Micromanager" approach works best.
The study found that if you just give the AI a vague instruction, it often fails. But if you act like a micromanager and provide the exact mathematical formulas (Level 4), the accuracy skyrockets. One model, Perplexity, was the only one that achieved "perfect" results in the hardest category when given these exact formulas.

4. The "Claude" Mystery.
Interestingly, one of the top models (Claude) actually got worse when given more instructions. It’s like giving the poet too many rules—they get overwhelmed and start making mistakes.


The Bottom Line (The "So What?")

If you are a business owner thinking about using AI to run your payroll, this paper gives you a very clear warning:

Don't just ask the AI to "do the math."

If you want to use AI for high-stakes, precise work, you can't treat it like a human employee you can just give a verbal command to. You have to treat it like a calculator with a brain. You must provide it with explicit, step-by-step mathematical recipes.

The takeaway: AI is a brilliant storyteller, but if you want it to be an accountant, you have to provide the math, or it will start "hallucinating" your bank balance.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →