Skip to content
Back to skills

Truthfulqa Biogen Factuality Eval

ASecurity

Evaluates an LLM's factual accuracy and hallucination mitigation across multiple-choice, short-form, and long-form generation tasks. It measures the trade-off between truthfulness and informativeness, and quantifies the exact number of supported versus unsupported facts in generated text. Use when the user wants to benchmark on TruthfulQA, BioGEN, or asks about evaluating this task. Reports Accuracy, True*Info, FActScore.

  • 3 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 11, 2026
researchpythongoperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill truthfulqa-biogen-factuality-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Truthfulqa Biogen Factuality Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Truthfulqa Biogen Factuality Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-truthfulqa-biogen-factuality-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-truthfulqa-biogen-factuality-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: truthfulqa-biogen-factuality-eval
description: Evaluates an LLM's factual accuracy and hallucination mitigation across multiple-choice, short-form, and long-form generation tasks. It measures the trade-off between truthfulness and informativeness, and quantifies the exact number of supported versus unsupported facts in generated text. Use when the user wants to benchmark on TruthfulQA, BioGEN, or asks about evaluating this task. Reports Accuracy, True*Info, FActScore.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2402.09267
  bibtex_key: [REDACTED]
  confidence: high
---

# truthfulqa-biogen-factuality-eval

> Self-Alignment for Factuality: Mitigating Hallucinations in LLMs via Self-Evaluation — Xiaoying Zhang et al. (2024) (arXiv:2402.09267, 2024)

## What this evaluates

Evaluates an LLM's factual accuracy and hallucination mitigation across multiple-choice, short-form, and long-form generation tasks. It measures the trade-off between truthfulness and informativeness, and quantifies the exact number of supported versus unsupported facts in generated text.

## Datasets

- **TruthfulQA** — total ?; splits: test (-1)
- **BioGEN** — total ?; splits: test (-1)

## Metrics

- `Accuracy` **(primary)** — range: percent
  - Percentage of correct multiple-choice answers selected by the model.
- `True*Info` **(primary)** — range: percent
  - Product of truthfulness (True) and informativeness (Info) scores, both evaluated via a fine-tuned GPT-3 classifier.
- `FActScore` **(primary)** — range: percent
  - Percentage of generated facts that are supported by external evidence, computed using the FActScore pipeline.
- `Respond ratio` — range: percent
  - Percentage of generated responses that are not refusals.
- `Fact counts (cor/incor)` — range: other
  - Absolute count of accurate (cor) and inaccurate (incor) facts per response, extracted via the FActScore methodology.

## Input / output format

**Input**: Dataset prompts with few-shot examples (6-shot for TruthfulQA MCQA and short-form generation; 5-shot for BioGEN long-form generation). Self-alignment methods use only the provided dataset prompts without external knowledge injection.

**Output**: Model-generated responses: multiple-choice answers for MCQA, short-form text for TruthfulQA generation, and long-form biographical text for BioGEN.

## Scoring recipe

```python
# TruthfulQA MC
accuracy = sum(pred == gold for pred, gold in mcqa_preds) / len(mcqa_preds)

# TruthfulQA Gen (evaluated via fine-tuned GPT-3)
true_score = gpt3_classifier.predict_truthfulness(gens)
info_score = gpt3_classifier.predict_informativeness(gens)
true_info = true_score * info_score

# BioGEN (evaluated via FActScore pipeline)
facts = extract_facts(gens)
cor = sum(1 for f in facts if f.supported)
incor = sum(1 for f in facts if not f.supported)
factscore = (cor / len(facts)) * 100 if facts else 0
respond_ratio = (sum(1 for g in gens if not g.is_refusal) / len(gens)) * 100
```

## Common pitfalls

- True*Info is computed as the product of True and Info percentages, not a separate classification score.
- FActScore and fact counts (cor/incor) rely on an external fact-checking pipeline (Tian et al. 2023a) rather than native model scoring.
- Baseline results on TruthfulQA are often cited from prior works rather than reproduced, which may cause metric inconsistencies if re-evaluated.

## Evidence (verbatim from paper)

> In evaluating performance on TruthfulQA, we report Accuracy for the MCQA task, alongside metrics of truthfulness (True), informativeness (Info), and a composite True∗Info score, all evaluated using a fine-tuned GPT-3 model*Lin et al. ([2022])*. For assessments on BioGEN, we present the FActScore percentage and the Respond ratio. Moreover, we quantify the correctness of generated content by reporting the number of accurate (cor) and inaccurate facts (incor) per response, following the methodology outlined by*Tian et al. ([2023a])*.

## Citation

```bibtex
@misc{zhang2024selfalignment,
  title={Self-Alignment for Factuality: Mitigating Hallucinations in LLMs via Self-Evaluation},
  author={Xiaoying Zhang et al. (2024)},
  year={2024},
  note={arXiv:2402.09267}
}
```

- arXiv: 2402.09267

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.