Downloads · 30 days
15
25% of all-time downloads
whoisjiji/lack-of-context-detector
lack-of-context-detector is a text classification model from whoisjiji. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
The Lack-of-Context Detector is a 0.6B-parameter binary text classifier that estimates whether a question or instruction depends on context that is not present in the prompt. It is designed for filtering synthetic and…
Downloads · 30 days
15
25% of all-time downloads
All-time downloads
60
Public
Parameters
596M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 99%
From the Hugging Face model README
The Lack-of-Context Detector is a 0.6B-parameter binary text classifier that estimates whether a question or instruction depends on context that is not present in the prompt. It is designed for filtering synthetic and mined instruction data before supervised fine-tuning or reinforcement learning.
The model is introduced in Data-Centric Post-Training for Financial Reasoning: Mining, Distillation, and Verifiable Learning.
Missing context is common in generated datasets: a question may refer to "the table above," an absent document, an undefined entity, an earlier conversation turn, or other evidence unavailable to the model. Training on such examples can encourage unsupported answers. This classifier provides a lightweight signal for detecting that failure mode at scale.
The checkpoint adds a two-class sequence-classification head to Qwen/Qwen3-Embedding-0.6B. Inputs are user questions or instructions, truncated to at most 4,096 tokens. The semantic labels stored in config.json are:
| Label | Meaning |
|---|---|
SELF_CONTAINED | The question can be understood and answered from the information presented. |
MISSING_CONTEXT | The question requires material context that is absent from the prompt. |
The positive training target is MISSING_CONTEXT. For pipelines that prefer a self-containment score, use 1 - p(MISSING_CONTEXT).
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="whoisjiji/lack-of-context-detector",
tokenizer="whoisjiji/lack-of-context-detector",
)
prompts = [
"Using the table above, calculate the company's operating margin.",
"A bond pays a $50 annual coupon and costs $950. What is its current yield?",
]
scores = classifier(
prompts,
top_k=None,
truncation=True,
max_length=4096,
)
for prompt, result in zip(prompts, scores):
probabilities = {item["label"]: item["score"] for item in result}
p_missing = probabilities["MISSING_CONTEXT"]
p_self_contained = 1.0 - p_missing
print(prompt, {"missing_context": p_missing, "self_contained": p_self_contained})
The probabilities are selection signals rather than universal decision boundaries. Thresholds should be calibrated through manual review on the intended data source. A conservative filtering pipeline can require a high self-containment score; broader exploratory mining can retain uncertain examples for later review.
@article{hayrapetyan2026datacentric,
title = {Data-Centric Post-Training for Financial Reasoning: Mining, Distillation, and Verifiable Learning},
author = {Hayrapetyan, Zhirayr and Kalmykov, Andrei and Kokosinskii, Denis and Stanishevskii, Dmitry and Zmitrovich, Dmitry},
journal = {arXiv preprint arXiv:2609.10113},
year = {2026}
}
@misc{hayrapetyan2026lackofcontext,
title = {Lack-of-Context Detector},
author = {Hayrapetyan, Zhirayr},
year = {2026},
url = {https://huggingface.co/whoisjiji/lack-of-context-detector}
}