File size: 3,108 Bytes
651b0c6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
03b553c
 
 
 
 
651b0c6
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
license: apache-2.0
base_model: Qwen/Qwen3-VL-4B-Instruct
pipeline_tag: image-text-to-text
library_name: transformers
tags:
  - multimodal
  - hallucination-detection
  - hallucination-classification
  - hallucination-diagnosis
  - mllm
  - qwen3-vl
language:
  - en
  - zh
datasets:
  - wkinglin/HalluScope-30K
---

# HalluScope-4B

**HalluScope-4B** is a lightweight diagnostic model for **fine-grained
hallucination diagnosis** in multimodal large language models (MLLMs). Given an
image and a model-generated response, it detects hallucinated spans, classifies
each into one of **12 fine-grained types**, and returns span-level annotations
in a single pass.

- **Base model:** Qwen3-VL-4B-Instruct
- **Training data:** [HalluScope-30K](https://huggingface.co/datasets/wkinglin/HalluScope-30K)
- **Task:** span-level hallucination detection + classification

## Output Format

The model wraps hallucinated spans with typed `<hallucination>` tags:

```xml
<Tagged_Text>
The <hallucination type="Color_Attribute">bright red</hallucination>
<hallucination type="Object">sports</hallucination> car is
<hallucination type="Spatial_Attribute">parked near a lake</hallucination>.
</Tagged_Text>
```

## Hallucination Taxonomy

12 fine-grained types across two categories:

| Category | Types |
|---|---|
| Perception | Object, OCR, Numerical_Attribute, Color_Attribute, Shape_Attribute, Spatial_Attribute |
| Reasoning | Logical_Error, Calculation_Error, Knowledge_Error, Query_Misunderstanding, Numerical_Relation, Spatial_Relation |

## Usage

```python
from transformers import AutoModelForImageTextToText, AutoProcessor
from PIL import Image

model = AutoModelForImageTextToText.from_pretrained(
    "wkinglin/HalluScope-4B", torch_dtype="auto", device_map="auto"
)
processor = AutoProcessor.from_pretrained("wkinglin/HalluScope-4B")

messages = [{
    "role": "user",
    "content": [
        {"type": "image", "image": Image.open("example.jpg")},
        {"type": "text", "text": "Analyze the response and tag hallucinated spans:\n<response to diagnose>"},
    ],
}]
inputs = processor.apply_chat_template(
    messages, add_generation_prompt=True, tokenize=True,
    return_dict=True, return_tensors="pt",
).to(model.device)
out = model.generate(**inputs, max_new_tokens=2048)
print(processor.batch_decode(out, skip_special_tokens=True)[0])
```

For high-throughput inference, serve the model with vLLM and query it through
the OpenAI-compatible API.

## Related

- **HalluScope-8B** — the larger variant: [wkinglin/HalluScope-8B](https://huggingface.co/wkinglin/HalluScope-8B)
- **Dataset** — [wkinglin/HalluScope-30K](https://huggingface.co/datasets/wkinglin/HalluScope-30K)

## Citation

```bibtex
@inproceedings{jin2026halluscope,
  title     = {HalluScope: Fine-grained Hallucination Diagnosis for Multimodal Large Language Models},
  author    = {Jin, Weilin and Wang, Mingyu and Li, Wenbo and Huang, Haoyang and Wu, Yifan and Li, Ying and Huang, Gang and Wu, Zhonghai},
  booktitle = {Proceedings of the 34th ACM International Conference on Multimedia (MM '26)},
  year      = {2026}
}
```