A 0.6B parameter edge LLM trained to emit a calibrated verbalized confidence score before its answer, enabling efficient edge–cloud routing without an external router.
FogGen is a small, self-aware edge model that knows when to answer locally and when to defer to a stronger cloud model. At inference (figure (a)) it emits a confidence score then an answer in one forward pass; if confidence
c ≥ τ
the local answer is returned, otherwise the query is routed to the cloud. Training (figure (b)) is a self-evolving loop: each round, the current checkpoint self-samples N=8 generations per question to derive confidence buckets, then SFTs on
(question, confidence, answer)
triples.
The released checkpoint is the endpoint (
R14
) of a 14-round chain trained across seven domains: finance, science, coding, law, math, Kazakh culture, medical.
Quick demo
from transformers import AutoTokenizer, AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("issai/foggen", torch_dtype="bfloat16", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("issai/foggen")
SYSTEM = """You are a self-aware multiple-choice assistant.Rules:- Do not output <think> tags.- First, assess your confidence in solving this question.- Then give your answer.- Output format: Confidence: <0.0|0.25|0.5|0.75|1.0> Final answer: <OPTION_LETTER>"""
question = """A firm reports $400M in total liabilities and $600M in shareholders' equity.What is the firm's debt-to-equity ratio?A. 0.67B. 1.00C. 1.50D. 2.00"""
messages = [
{"role": "system", "content": SYSTEM},
{"role": "user", "content": question},
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True,
enable_thinking=False).to(model.device)
outputs = model.generate(inputs, max_new_tokens=64, do_sample=False)
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
# Expected:# Confidence: 1.0# Final answer: A
System accuracy at τ=0.5 on seven MCQ domains (full test sets, ~16,200 questions), measured against Random routing and a cloud-only baseline (Qwen3-30B-A3B-Instruct-2507):
Domain
Cloud only
R14 raw
Random @ τ=0.5
FogGen @ τ=0.5
Cloud routed
Finance
69.5%
57.0%
59.9%
65.8%
23.3%
Science
72.7%
56.9%
60.1%
64.5%
20.4%
Coding
74.2%
61.8%
64.2%
69.5%
19.7%
Law
70.7%
55.3%
58.4%
62.4%
20.1%
Math
60.1%
42.2%
50.8%
58.1%
47.7%
Kazakh culture
95.8%
91.3%
91.4%
91.9%
1.0%
Medical
74.0%
52.6%
57.1%
62.2%
20.9%
Mean
73.9%
59.6%
63.1%
67.8%
21.9%
Mean lift over Random at τ=0.5:
+4.6
(system accuracy minus random-routing accuracy, averaged across the seven domains).
Baseline comparison
Direct comparison against AutoMix (Aggarwal et al., 2024) on the same R14 checkpoint, same evaluation sets:
Method
SysAcc
Cloud routed
Δ over Random
Fwd passes / query
AutoMix
67.2%
29.0%
+3.7
9 (1 answer + 8 verify)
FogGen (ours)
67.8%
21.9%
+4.6
1
FogGen achieves higher accuracy at lower cloud cost and 9× lower per-query inference cost.
Open-ended generalization
The MCQ-trained chain transfers to open-ended task types zero-shot. Local accuracy and routing benefit at τ=0.5 on three held-out OE benchmarks:
One additional round of OE training (R15, 1876 SFT rows) lifts local accuracy on these three benchmarks to 86.5% / 40.0% / 58.0% respectively; see
issai/foggen-r15-oe
.
Citation
Paper coming soon.
Acknowledgements
Thanks to the Qwen team at Alibaba for the base model and cloud teacher.
Runs of issai foggen on huggingface.co
24
Total runs
0
24-hour runs
2
3-day runs
-15
7-day runs
-76
30-day runs
More Information About foggen huggingface.co Model
foggen huggingface.co is an AI model on huggingface.co that provides foggen's model effect (), which can be used instantly with this issai foggen model. huggingface.co supports a free trial of the foggen model, and also provides paid use of the foggen. Support call foggen model through api, including Node.js, Python, http.
foggen huggingface.co is an online trial and call api platform, which integrates foggen's modeling effects, including api services, and provides a free online trial of foggen, you can try foggen online for free by clicking the link below.
foggen is an open source model from GitHub that offers a free installation service, and any user can find foggen on GitHub to install. At the same time, huggingface.co provides the effect of foggen install, users can directly use foggen installed effect in huggingface.co for debugging and trial. It also supports api for free installation.