LLM Database Constraint Learning With Truthfulness Verification

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing database curation methods, including those using Large Language Models (LLMs), struggle with generating accurate and reliable data due to inherent inaccuracies and inconsistencies, necessitating substantial human verification and intervention.

Innovation Solution

The CHAT2DATA system employs intelligent interrogation techniques to dynamically prompt LLMs, assess answer truthfulness, and utilize complementary programs to ensure data quality, producing structured data tuples with confidence scores.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If Large Language Models are used to generate database data, then productivity is improved, but data accuracy deteriorates

Engineering Contradiction:
Improvedata generation speedVSAvoiddata accuracy
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The system implements feedback loops where generated data is verified against database constraints and rules. The verification module checks constraint satisfaction and logical consistency, providing feedback to identify and correct inaccuracies in LLM-generated data.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent introduces an intermediary verification and constraint satisfaction module between the LLM and the database. This intermediary layer validates generated data against predefined constraints, rules, and logical conditions before insertion, acting as a mediator that ensures data accuracy without slowing down the generation process.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Extent of automation

If automated data generation is used, then human intervention is reduced, but data reliability deteriorates

Engineering Contradiction:
Improveautomation levelVSAvoiddata reliability
Core Design Contradiction:
Extent of automationVSReliability

Solution Approach 1:

The system implements self-service mechanisms where the automated verification module independently checks generated data against constraints and rules without human intervention. The system self-corrects errors and validates reliability through automated constraint satisfaction checking and logical consistency verification.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

Automated feedback loops continuously monitor and verify data quality, with the verification module providing real-time feedback on constraint satisfaction and reliability metrics, enabling the system to maintain high data reliability through self-correction and iterative validation.

Inventive Principle:
Principle #23Feedback

3Manufacturing precision

If comprehensive verification is performed, then data accuracy is improved, but processing time increases

Engineering Contradiction:
Improvedata accuracyVSAvoidprocessing time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-defining constraints, rules, and validation criteria before data generation. This preparation enables rapid verification during the generation process, as the verification module can immediately check against pre-established criteria without time-consuming analysis.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The verification process is segmented into multiple independent checks: constraint satisfaction verification, logical consistency checking, and rule validation. This segmentation allows parallel processing of different verification aspects, reducing overall processing time while maintaining comprehensive data accuracy validation.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12475086B2Database constraint and rule learning using large language models
Publication Date: 2025.11.18 UNLIMIDATA LTD
  • US12475086B2 patent drawing
  • US12475086B2 patent drawing
  • US12475086B2 patent drawing

AI summary

A method for database constraint generation, executed by at least one processor on a computing device accessing one or more large language models (LLMs), comprising retrieving data and/or metadata from a database; generating prompts by parameterizing inputs with concrete values; interacting with LLMs through these prompts to obtain and analyze responses; and performing data intelligence processing to derive natural-language descriptions of structural database elements. The method enables generating database constraints from defined classes, such as attribute-domain restrictions, intra-relational, and inter-relational constraints. Constraints include semantic, syntactic, and dependency-based types. Orchestration of constraint learning involves predefined or dynamic workflows incorporating tasks like database sampling, constraint testing, and refinement. It employs LLM-based techniques to generate candidate rules and optimize constraints through iterative testing and scoring. The method further supports counterexample identification, score aggregation, and rule evaluation to ensure robust constraint generation and refinement.