CoolFace
Modelpublic

Baragi-AI/Munche-768-AI-Detector

sourceHugging Facegemmaupdated 2mo agoView on Hugging Face
3likes39downloads
Model Card

⚠️ Do not use this model as evidence of AI authorship.

Munche-768-AI-Detector was built for dataset triage and proof-of-concept research. It cannot establish plagiarism, copyright infringement, misconduct, or whether a person or an AI wrote a text. Its output can be wrong.

Munche-768-AI-Detector

<p align="center"> <img src="./assets/baragi-ai.png" width="128" alt="Baragi AI"> </p>

Munche-768-AI-Detector classifies Korean genre-fiction passages as human, uncertain, or llm. It starts from Munche-768, then jointly tunes LoRA weights in the top four Transformer layers and a 769-parameter linear classifier.

Demo

**Run Munche-768-AI-Detector in your browser** image

Overall test result

The sealed test combines 277 human passages and 256 LLM passages from the independent-generation and content-preserving rewrite evaluations.

MetricResult
AUROC98.59%
Binary accuracy94.00%
Balanced accuracy93.91%
Human recall96.03%
LLM recall91.80%
Human false-positive rate3.97%

<p align="center"> <img src="./assets/overall-confusion-matrix.svg" width="900" alt="Overall binary confusion matrix across independent generation and content-preserving rewrites"> </p>

Independent-generation test

The sealed test contains 87 passages from human-written novels and 66 passages written directly by 11 language-model families. Content-preserving rewrites are excluded from this evaluation.

MetricResult
Binary accuracy100.00%
Balanced accuracy100.00%
Human recall100.00%
LLM recall100.00%
Human false-positive rate0.00%

<p align="center"> <img src="./assets/independent-confusion-matrix.svg" width="900" alt="Binary confusion matrix for independently written human and LLM fiction"> </p>

Three-way decision

The thresholds were selected on validation data only. The classification score is not a calibrated probability that a passage was written by AI. Results below cover the full sealed test.

ScoreOutput
≤ 0.5000Human
0.5000 < score < 0.8697Uncertain
≥ 0.8697LLM
MetricResult
Coverage93.62%
Accuracy among classified passages95.19%
Human classified as LLM1.08%
Human classified as uncertain2.89%
LLM classified as human8.20%
LLM classified as uncertain10.16%

Within the independent-generation subset, all 87 human passages received a human decision. Of the 66 LLM passages, 64 received an LLM decision and two were uncertain.

<p align="center"> <img src="./assets/three-way-outcomes.svg" width="900" alt="Human, uncertain, and LLM outcomes for the independent-generation test"> </p>

Content-preserving rewrite test

This test contains 190 human passages and 190 LLM rewrites that preserve the source content. It is harder than distinguishing independently written human and LLM fiction.

MetricBinary decisionThree-way decision
AUROC97.47%N/A
Balanced accuracy91.58%N/A
Human recall94.21%N/A
LLM recall88.95%N/A
Human classified as LLM5.79%1.58%
LLM classified as human11.05%11.05%
CoverageN/A91.58%
Accuracy among classified passagesN/A93.10%

<p align="center"> <img src="./assets/benchmark-comparison.svg" width="900" alt="Performance comparison between independent generation and content-preserving rewrites"> </p>

Input length

Use passages between 384 and 2,048 EmbeddingGemma tokens. Inputs shorter than 384 tokens are not supported as stable operating inputs. Inputs longer than 2,048 tokens must be divided into separate windows before classification.

The training and evaluation corpora covered short rewrite passages near 400 tokens and independent fiction passages near the 2,048-token model limit. Document-level aggregation across multiple windows has not been calibrated.

Usage

Access to the gated EmbeddingGemma base model is required.

bash
pip install torch numpy sentence-transformers peft safetensors
python
from inference import MuncheAIDetector

detector = MuncheAIDetector(".")
result = detector.predict(korean_fiction_passage)

print(result)
# {"label": "human" | "uncertain" | "llm", "score": float, "tokens": int}

Training data

SplitHumanLLM
Train1,3151,135
Validation290275
Test277256

The training set combines human-written Korean genre fiction, independently generated LLM fiction, and content-preserving LLM rewrites. GPT-5.6 Sol Medium contributes 24 training passages and six validation passages. No Sol Medium passage was added to test.

The detector was initialized from Munche-768. Only LoRA weights in Transformer layers 20-23 and the linear classifier were updated. The selected checkpoint is step 275. A preservation loss limited movement away from the original Munche-768 embedding during tuning.

Raw human fiction is not distributed with this repository.

Limitations

  • The model was trained and evaluated on Korean genre fiction.
  • Generalization to language-model families absent from training remains unknown.
  • The model cannot identify text jointly written or substantially edited by humans and AI.

License

Munche-768-AI-Detector is derived from google/embeddinggemma-300m and Munche-768. Use is subject to the Gemma license and the access terms of the gated base model.