← Latest papers
💻 computer science

Neuro-Symbolic AI for Korean Criminal Law: Sentencing Prediction and Document Drafting

This paper proposes a Neuro-Symbolic AI framework that combines Large Language Models for semantic extraction with Satisfiability Modulo Theories solvers for deterministic statutory calculations to enhance the accuracy and reliability of sentencing predictions and document drafting for Korean traffic offenses, thereby mitigating the hallucination risks inherent in purely neural legal systems.

Original authors: Yeonseok Lee

Published 2026-07-23
📖 6 min read🧠 Deep dive

Original authors: Yeonseok Lee

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 a world where computers are like incredibly talented but slightly scatterbrained chefs. They can read a thousand recipes in a second, understand the flavor of a dish, and even write a beautiful poem about a tomato. This is the realm of Artificial Intelligence, specifically a type called Large Language Models (LLMs). These digital chefs are amazing at understanding language, but they have a tricky habit: sometimes, when asked to do precise math or follow strict rules, they "hallucinate." They might confidently tell you that a tomato costs $500 because it sounds like a good number, even though the recipe says $5. In the real world, this is fine for writing stories, but in a courtroom, where a mistake could mean someone loses their freedom or pays the wrong fine, being "almost right" isn't good enough.

This is where Neuro-Symbolic AI comes in. Think of it as a team-up between that creative, scatterbrained chef and a super-strict, rule-following accountant. The chef reads the messy notes and understands the story, while the accountant does the math and checks the rules to make sure everything adds up perfectly. This paper explores how to build this dream team to help prosecutors in South Korea handle thousands of minor traffic cases, like drunk driving, without getting overwhelmed or making dangerous mistakes.


The Problem: Too Many Tickets, Not Enough Humans

In South Korea, the legal system has a special fast lane for minor crimes called summary proceedings (or guyaksik). Imagine a highway where the police catch hundreds of drivers for small offenses like driving without a license, causing a tiny fender-bender, or having a little too much to drink. Instead of holding a full-blown trial for every single one, prosecutors just review the paperwork and issue a fine. It's efficient, but it creates a mountain of paperwork. Prosecutors are drowning in stacks of police reports, breathalyzer logs, and witness statements. They need a way to turn these messy, handwritten, or scanned documents into a clear, mathematically perfect legal decision.

The Trap: Why Smart Computers Get Stuck

Recently, people tried using those "scatterbrained chef" computers (LLMs) to solve this. The computers are great at reading a police report and saying, "Ah, this guy had 0.12% alcohol in his blood and crashed into a barrier." But when asked to calculate the exact fine based on complex laws, the computer starts to guess. It might add up the numbers wrong or invent a rule that doesn't exist. In criminal law, you can't have a computer guessing. If the math is wrong, the justice system breaks. The paper argues that we cannot rely on these computers to do the math themselves; they are too prone to making up facts.

The Solution: A Team of Chef and Accountant

The authors propose a Neuro-Symbolic framework, which is a fancy way of saying they split the job into two distinct parts to get the best of both worlds.

Step 1: The Chef (The LLM)
First, the system takes the messy, unstructured documents—like a breathalyzer result or a police officer's notes—and feeds them to the LLM. The LLM's only job is to be a "semantic extractor." It reads the story and pulls out the important facts: "The driver's blood alcohol was 0.12," "They crashed into a median barrier," and "They have no prior record." It puts these facts into a neat, structured list (like a JSON file). Crucially, the LLM is not allowed to calculate the fine yet. It just gathers the ingredients.

Step 2: The Human Inspector (The Safety Check)
Before the math happens, a real human prosecutor looks at the list. The system highlights exactly where in the original document the computer found each fact. The human clicks a button to say, "Yes, that is correct," or "No, that's wrong." This is called Human-in-the-Loop (HITL). It ensures that the computer doesn't make up a fact that the human didn't verify. Only the facts the human approves get to move to the next step.

Step 3: The Accountant (The Z3 Solver)
Now, the verified facts go to the "Accountant," which is a piece of software called a Z3 Satisfiability Modulo Theories (SMT) solver. This isn't a guessing machine; it's a mathematical proof engine. It takes the human-approved facts and runs them through the strict rules of the 2026 Sentencing Guidelines for Traffic Offenses.

  • If the blood alcohol is between 0.08 and 0.20, the computer must categorize it as "Type 3."
  • If the driver crashed into a barrier, the computer must add an "aggravating factor."
  • It then does the actual math to figure out the fine range.

Because this part is pure logic and math, it cannot hallucinate. If the rules say the fine is between 5,000,000 and 8,000,000 Korean Won, that is exactly what it outputs. If the math doesn't add up (for example, if the human accidentally approved two facts that contradict each other), the Accountant stops and says, "Error! Something is wrong," and sends the case back to the human to fix it.

The Result: A Perfectly Drafted Document

Once the Accountant has the final number, the system goes back to the "Chef" (the LLM) one last time. This time, the LLM is given the exact math result and asked to write the final legal document, like a Summary Indictment Request. The LLM writes the document in the proper legal format, but it copies the fine amount directly from the Accountant's result. It doesn't calculate anything; it just writes the story.

What This Means for the Future

The paper shows that this method works in theory and creates a pipeline that is both fast and safe. It suggests that by keeping the "creative" AI away from the "math" and letting a human check the work, we can automate the boring parts of the legal system without risking errors.

The authors are careful to note that this is currently a framework they have designed and tested logically. They haven't rolled it out to every police station in Korea yet. However, they plan to build the full software and test it with real data. If successful, this system could eventually handle not just drunk driving, but other minor crimes like simple assault, minor theft, or online insults, helping prosecutors clear their desks while ensuring that every fine is calculated with mathematical precision. It's a way to let computers do the heavy lifting, while keeping the human in the driver's seat.

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 →