MoCA-Agent: A Market-of-Claims Code Agent for Financial and Numerical Reasoning
MoCA-Agent is a market-of-claims code agent that enhances financial and numerical reasoning by decomposing questions into atomic claims for specialist verification, synthesizing executable code from market-supported evidence, and applying rigorous verification to achieve state-of-the-art performance across diverse financial benchmarks.
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
Imagine you are trying to solve a very tricky math problem based on a messy spreadsheet. If you ask a standard AI to do it, it might write a long, confident-sounding story that leads to the wrong number. It's like a student who writes a perfect essay but accidentally divides by zero in the final step—the essay looks great, but the answer is wrong.
The paper introduces MoCA-Agent, a new kind of AI designed specifically to stop these "silent mistakes" in financial and numerical tasks. Instead of letting the AI just chat its way to an answer, MoCA-Agent treats the problem like a stock market for facts.
Here is how it works, using simple analogies:
1. The "Claim Catalog" (Breaking it Down)
Instead of asking the AI to "solve the problem," MoCA-Agent first breaks the question down into tiny, atomic pieces called claims.
- Analogy: Imagine you are building a house. Instead of saying "Build a house," you list every single brick, beam, and nail needed.
- In the paper: If the question is "What was the profit?", the system lists claims like: "Revenue is $100," "Expenses are $20," "Profit means Revenue minus Expenses," and "The sign should be positive."
2. The "Market of Traders" (The Debate)
This is the core innovation. The system doesn't just ask one AI to think. It hires four different "specialist traders" to bet on whether each tiny claim is true or false.
- The Traders:
- The Extractor: Checks if the numbers match the original document.
- The Formula Expert: Checks if the math logic makes sense.
- The Accountant: Checks if the units (dollars, percentages) and signs (positive/negative) are correct.
- The Skeptic: Actively tries to find errors and "sell" (reject) claims that look shaky.
- The Market: Each trader places a "buy" or "sell" order on every claim. If the Accountant and the Skeptic both "sell" a claim (saying it's wrong), the market price for that claim drops, and it gets rejected. If everyone agrees, the price goes up, and the claim is accepted.
- Why this matters: In normal AI debates, if three AIs agree on a wrong answer, they all sound confident. Here, even if the "Formula Expert" is confident, the "Skeptic" can short-circuit the whole thing if the numbers don't add up.
3. The "Synthesizer" (Building the Program)
Once the market clears (decides which claims are accepted), a "Synthesizer" agent writes a Python computer program.
- The Rule: The Synthesizer is strictly forbidden from using any claim that the market rejected. It can only build with the "approved bricks."
- Analogy: It's like a construction foreman who is only allowed to use the blueprints that passed the safety inspection. If a blueprint was rejected, they can't use it, even if they really want to.
4. The "Verifier" (The Safety Inspector)
Before the final answer is given, a "Code-Aware Verifier" runs the program.
- The Check: It doesn't just check if the code runs without crashing; it checks if the code matches the logic of the market. Did the program accidentally flip a sign? Did it multiply by 100 when it should have divided?
- The Repair: If the Verifier finds a silent error (like a wrong sign), it sends the program back for one round of repair, specifically pointing out the mistake so the Synthesizer can fix it.
5. The "Conflict Arbiter" (The Tie-Breaker)
Sometimes, the market is confused, or the program is weak. In these cases, a "Committee" compares the market's answer against a standard, non-market AI answer. If they disagree, a special "Arbiter" creates a third, hybrid answer that combines the best parts of both.
The Results: Why It Works
The authors tested this system on 10 different difficult benchmarks involving financial reports, complex tables, and charts.
- The Outcome: MoCA-Agent consistently beat other top-tier AI models (including very large ones like GPT-4o and specialized financial models).
- The Secret Sauce: It didn't just get better because it used a bigger brain; it got better because it stopped the AI from "hallucinating" confident but wrong numbers. By forcing the AI to agree on every single tiny fact before doing the math, it reduced errors significantly.
Limitations (The Fine Print)
The paper is honest about what this system can't do yet:
- It's Expensive: It takes many more computer "thoughts" (API calls) to run this market system than a simple AI chat, making it about 5 times more expensive to run.
- It Needs English: The system is currently tuned for English financial language. It might struggle with other languages or non-financial fields like biology.
- One-Step Vision: If the input is a chart image, the system uses one tool to read the image. If that tool misreads a label, the "traders" don't get a chance to bet on it again; the error slips through.
In summary: MoCA-Agent is like a financial audit firm that doesn't trust anyone's word until they have signed off on every single number. It replaces "free-form chatting" with a structured, evidence-based marketplace to ensure the final math is actually correct.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.