DataSentinel-LLM

A fine-tuned small language model for interpreting tabular data-quality profiles and producing structured findings.

DataSentinel-LLM is a QLoRA fine-tune of Qwen/Qwen2.5-1.5B-Instruct. It interprets structured column-profiling information and returns JSON describing detected data-quality issues, their severity, explanations, and recommended actions.

The initial release is intended for experimentation, local inference, and further development of the wider DataSentinel platform.

Model details

  • Base model: Qwen/Qwen2.5-1.5B-Instruct

  • Fine-tuning: QLoRA using Unsloth and PEFT

  • Training data: 3,040 examples

  • Context length: 2,048 tokens

  • Training epochs: 2

  • Optimizer steps: 310

  • LoRA rank / alpha / dropout: 16 / 16 / 0

  • Learning rate: 2e-4

  • Training hardware: Google Colab NVIDIA T4

  • Inference format: Q8_0 GGUF

  • Local runtime: Ollama

Intended input and output

The model receives a structured profile of a column, including information such as missing-value percentage, duplicate counts, format statistics, and expected numeric ranges.

It returns structured JSON containing:

  • Overall severity

  • Detected issue types

  • Severity for individual issues

  • Explanations

  • Recommended actions

The model is designed to interpret profiling results. It is not itself a complete data profiler and does not independently inspect an entire database.

Evaluation

Evaluation used an Ollama-based harness with temperature set to 0. The held-out test set contains 300 examples from dataset groups excluded from training and validation.

Held-out test results โ€” fine-tuned Q8_0

| Metric | Result |

|---|---:|

| Strict JSON validity | 100.00% |

| Lenient JSON validity | 100.00% |

| Schema validity | 100.00% |

| Issue-type precision | 98.86% |

| Issue-type recall | 98.58% |

| Issue-type F1 | 98.72% |

| Issue-type macro-F1 | 97.88% |

| Overall severity accuracy | 70.67% |

| Issue-type and severity F1 | 61.91% |

| Exact issue-set match | 62.00% |

| Severity MAE on matched issues | 0.575 |

| Clean-column false-positive rate | 0.00% |

| Average latency | 15.10 seconds per example |

These results indicate strong issue-type detection and structured-output reliability on this evaluation set. Severity assignment and exact issue-set matching remain areas for improvement.

Base-model comparison โ€” validation set

The following comparison uses the validation evaluation documented for this project. The base model was given a schema hint; the fine-tuned model was evaluated using the projectโ€™s standard prompt.

| Metric | Base + schema hint | Fine-tuned Q8_0 |

|---|---:|---:|

| Strict JSON validity | 98% | 100% |

| Issue-type F1 | 0.549 | 0.987 |

| Issue-type macro-F1 | 0.503 | 0.977 |

| Overall severity accuracy | 29% | 80% |

| Severity-aware F1 | 0.176 | 0.749 |

| Exact issue-set match | 25% | 77% |

| Clean-column false positives | 21.7% | 0% |

This is a validation-set comparison, not a same-test-set comparison. The base model's results should not be directly compared with the held-out test metrics above.

Handwritten holdout

A separate 10-example handwritten holdout was retained as a style sanity check.

| Metric | Base + schema hint | Fine-tuned Q8_0 |

|---|---:|---:|

| JSON validity | 80% | 100% |

| Issue-type F1 | 0.615 | 1.000 |

| Overall severity accuracy | 20% | 80% |

| Severity-aware F1 | 0.308 | 0.778 |

This is a small, author-created sample and should not be interpreted as an independent benchmark.

Training data

The v1 dataset contains:

  • 3,000 generated training examples

  • 40 handwritten training examples

  • 300 validation examples

  • 300 held-out test examples

  • 10 handwritten holdout examples

Generated examples are built from 24 dataset groups. Groups are separated across training, validation, and test splits. Inputs were deduplicated across splits, and the generation script checks for shared groups and identical inputs.

Labels are produced using deterministic data-quality rules. Explanations use varied but partly template-based text.

See the companion DataSentinel-Datasets repository for the dataset, generator, and full dataset documentation.

Limitations

  1. Rule-derived labels: The synthetic examples are labelled using deterministic rules. These labels represent the project's chosen assumptions and thresholds, not universal data-quality ground truth.

  2. Severity classification: Severity accuracy is weaker than issue-type detection. Threshold boundaries can be difficult for the model.

  3. Identifier recognition: Identifier status is partly inferred from column names. Unfamiliar names may lead to incorrect severity assignments. Explicit schema metadata would be preferable.

  4. Template-based explanations: Explanation wording is varied but partly template-generated. The evaluation primarily measures issue detection and severity, not independent expert assessment of explanation quality.

  5. Handwritten holdout: The handwritten examples were created by the same author as some training examples and are not an independent external benchmark.

  6. Synthetic evaluation: Performance on these test examples does not establish performance on arbitrary enterprise datasets or real-world production data.

  7. Latency: The reported latency is specific to the tested local Ollama setup and should not be treated as a hardware-independent benchmark.

Intended use

Suitable for:

  • Research and experimentation with small fine-tuned language models

  • Local demonstrations of structured data-quality interpretation

  • Prototyping data-quality analysis workflows

  • Further evaluation and improvement of severity classification

Not suitable as:

  • An autonomous data-cleaning system

  • A replacement for validated data-quality rules or human review

  • A production decision-maker without domain-specific evaluation

  • Evidence of guaranteed accuracy on unseen enterprise data

Recommendations should be reviewed before being used to modify data. The wider DataSentinel project is designed around human approval for remediation.

Quantization

The Q8_0 GGUF export is the recommended local inference artifact for this release. Q4_K_M was tested but showed weaker severity performance in the project's evaluation, so Q8_0 was selected despite its higher inference cost.

Base model and licensing

This model is based on Qwen/Qwen2.5-1.5B-Instruct, which is published under Apache-2.0. Retain the base model's attribution and applicable license notices when redistributing this fine-tuned model. Review the base model's original license and repository notices before redistribution.

Citation

If you use this work, please cite the DataSentinel project and link to this model repository.

Project: DataSentinel

Release: DataSentinel-LLM v1.0.0

Status: Initial research / portfolio release

Downloads last month
-
GGUF
Model size
2B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Karan0310/DataSentinel-LLM

Quantized
(421)
this model