← Latest papers
💰 quantitative finance

QRAFTI: An Agentic Framework for Empirical Research in Quantitative Finance

QRAFTI is a multi-agent framework designed to emulate a quantitative research team by integrating panel data toolkits with MCP servers to facilitate equity factor research, enabling the replication of established factors, testing of new signals, and generation of standardized reports with narrative analysis and computational traces.

Original authors: Terence Lim, Kumar Muthuraman, Michael Sury

Published 2026-04-21
📖 5 min read🧠 Deep dive

Original authors: Terence Lim, Kumar Muthuraman, Michael Sury

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 build a machine that can predict which stocks will go up or down. In the world of finance, this is called Quantitative Research. Traditionally, this job is done by teams of highly paid experts (quants) who spend years doing three main things:

  1. Having an idea (e.g., "Maybe companies with low debt do better?").
  2. Doing the math (cleaning messy data, running complex formulas, and checking if the idea works).
  3. Writing the report (explaining why it worked and proving it wasn't just luck).

This process is slow, prone to human error, and often hard to double-check.

Enter QRAFTI. Think of QRAFTI not as a single robot, but as a virtual research team built entirely out of advanced AI agents. The paper introduces this system as a way to automate and improve this entire research process.

Here is how QRAFTI works, explained through simple analogies:

1. The Team: Specialized AI Agents

Instead of one giant AI trying to do everything (which often leads to confusion), QRAFTI splits the work among three specialized "employees," each with a specific job:

  • The Research Analyst (The Planner): This agent listens to your idea (e.g., "Find me a factor based on Warren Buffett's style"). It breaks the big idea down into a step-by-step recipe. It doesn't do the math itself; it just figures out what needs to be done.
  • The Quant Developer (The Builder): This agent is the coder. If the Analyst's recipe requires a tool that doesn't exist yet, this agent writes the specific computer code to build it. It's like a carpenter who builds a custom shelf because the store didn't sell the right size.
  • The Risk Manager (The Auditor): This agent is the strict boss. It checks the work, ensures the math is standard, and writes the final report. It asks, "Did we check for bias? Is this result real, or just a fluke?"

2. The Toolbox: The "MCP"

Imagine the Analyst and Developer need to use a giant library of financial data (like a massive warehouse of stock prices). Instead of the AI guessing how to open the warehouse door, QRAFTI uses a Model Context Protocol (MCP).

Think of MCP as a universal remote control. Instead of the AI trying to learn how to operate every single machine in the warehouse, the remote gives it a simple button for "Get Stock Prices," "Clean Data," or "Calculate Risk." This prevents the AI from getting lost or making up fake data.

3. The "Self-Reflection" Trick

One of the biggest problems with AI is that it can confidently give you the wrong answer. QRAFTI solves this with a technique called Reflection-Based Planning.

Imagine you are writing an essay.

  • Normal AI: You ask it to write the essay, and it types it out immediately.
  • QRAFTI: You ask it to write the essay.
    • Step 1: It drafts an outline.
    • Step 2: It stops and critiques itself: "Wait, is this outline logical? Did I miss a step? Is this data available?"
    • Step 3: It fixes the outline before writing the final essay.

This "pause and think" step drastically reduces errors, especially for complex, multi-step tasks.

4. The "Paper Trail" (Traceability)

In science, if you can't show your work, nobody believes your results. QRAFTI creates a Computation Graph.

Think of this like a GPS history log for a road trip. If you arrive at a destination, the GPS doesn't just say "You are here." It shows the exact route taken, every turn, and every stop.

  • If QRAFTI says, "This stock factor works," you can click a button and see the exact path it took to get there.
  • You can see exactly which data was used, how it was cleaned, and which formula was applied. This makes the research reproducible (anyone can do it again and get the same result) and auditable (you can check for mistakes).

5. The Results: Better than Just "Coding"

The paper tested QRAFTI against two other methods:

  1. Just using tools: Letting the AI pick from the toolbox.
  2. Just writing code: Letting the AI write Python code from scratch without a toolbox.

The Finding:

  • For simple tasks, writing code works fine.
  • For complex, multi-step tasks (like building a full investment strategy), QRAFTI's combination of tools + self-reflection was far superior.
  • When the AI was forced to just write code without the "toolbox" or the "reflection" step, it made many more mistakes and produced results that didn't match the real-world benchmarks.

Why Does This Matter?

Currently, the world of finance is full of "Factor Zoos"—thousands of investment strategies that look good on paper but fail in real life because they were built on messy data or statistical tricks (p-hacking).

QRAFTI aims to be a quality control filter. By standardizing how research is done, forcing the AI to check its own work, and keeping a perfect record of every step, it helps researchers:

  • Find real patterns in the market.
  • Avoid wasting time on dead ends.
  • Trust the results because the "math homework" is visible and correct.

In short: QRAFTI turns the chaotic, messy process of financial research into a structured, transparent, and highly reliable assembly line, managed by a team of AI specialists who double-check each other's work.

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 →