Aphelion Judge
A lightweight judge for hallucinations and answer grounding
2 min read
The Aphelion Judge model is built on microsoft/Phi-3.5-mini-instruct using QLoRA (a variation of LoRA (a small add-on layer for a base model) with 4-bit quantization). It is designed to check how well language model answers in RAG systems (an approach that enhances generation by searching external documents) rely on the provided context. The tool helps automatically track hallucinations and parameter leaks. The model is useful for AI application developers building reliable retrieval and generation pipelines.
Key features
- Trained on two variants: direct JSON output and distillation via Micro-CoT (micro chain of thought).
- Achieves near-perfect JSON output accuracy (up to 99.79%) thanks to protection against context truncation.
- Runs about 2.1 times faster than similar solutions like
Flow-Judge-v0.1.
What you can do
- Integrate the model into a RAG validation pipeline to check answers for hallucinations.
- Evaluate the accuracy and completeness of AI assistant answers against external sources.
Example
Use the peft and transformers libraries to load the adapter on top of the base model microsoft/Phi-3.5-mini-instruct in Python code.
Read more
Details• Benchmarks (OOD F1): Exp-02 Micro-CoT achieves 0.741 compared to 0.562 for direct JSON.
• Requirements: A lightweight model based on Phi-3.5 mini with NF4 4-bit quantization (r=16, lora_alpha=32).
• Features: Micro-CoT adds a short justification (~19 words) to combat memory leakage.










Comments