Baragi-AI/Munche-768-AI-Detector
⚠️ 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** 
Overall test result
The sealed test combines 277 human passages and 256 LLM passages from the independent-generation and content-preserving rewrite evaluations.
<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.
<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.
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.
<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.
pip install torch numpy sentence-transformers peft safetensorsfrom inference import MuncheAIDetector
detector = MuncheAIDetector(".")
result = detector.predict(korean_fiction_passage)
print(result)
# {"label": "human" | "uncertain" | "llm", "score": float, "tokens": int}Training data
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.
