Skip to content
Back to skills

Consensus Reproducibility Eval

ASecurity

Evaluates the reproducibility and deterministic behavior of generative AI models (diffusion and LLMs) by measuring the likelihood of identical outputs given identical prompts and seeds. It probes the stability of model inference and training under decentralized, heterogeneous hardware conditions. Use when the user has predictions and gold and needs to compute consensus.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
ai-agentspythongo

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill consensus-reproducibility-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Consensus Reproducibility Eval?

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

Security grade badge for Consensus Reproducibility Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-consensus-reproducibility-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-consensus-reproducibility-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: consensus-reproducibility-eval
description: Evaluates the reproducibility and deterministic behavior of generative AI models (diffusion and LLMs) by measuring the likelihood of identical outputs given identical prompts and seeds. It probes the stability of model inference and training under decentralized, heterogeneous hardware conditions. Use when the user has predictions and gold and needs to compute consensus.
metadata:
  skill_kind: metric
  source_arxiv: 2307.01898
  bibtex_key: kim2023genai_reproducibility
  confidence: high
---

# consensus-reproducibility-eval

> Generative Artificial Intelligence Reproducibility and Consensus — Edward Kim et al. (2023) (arXiv:2307.01898, 2023)

## What this evaluates

Evaluates the reproducibility and deterministic behavior of generative AI models (diffusion and LLMs) by measuring the likelihood of identical outputs given identical prompts and seeds. It probes the stability of model inference and training under decentralized, heterogeneous hardware conditions.

## Datasets

- **ImageNet (ILSVRC classes)** — total 1000; splits: test (1000)
- **sd-concepts-library** — total ?; splits: train (-1); HF `sd-concepts-library`

## Metrics

- `consensus` **(primary)** — range: percent
  - Percentage of generated outputs that match the mode perceptual hash or exact sequence when identical prompts and seeds are used across independent runs. Computed as (matching_outputs / total_outputs) * 100.
- `verification_accuracy` — range: percent
  - Probability of correctly detecting fraudulent or incorrect behavior in a decentralized network using majority or super-majority voting. Calculated via binomial distribution P(X=k) = C(n,k) * p^k * (1-p)^(n-k), where p is the consensus likelihood and n is the number of verifiers.
- `outliers` — range: count
  - Count of generated outputs that deviate from the mode perceptual hash within a class group, optionally allowing for hamming distance tolerances (Ot<=1, Ot<=2).

## Input / output format

**Input**: For images: prompt template 'A photo of {class}' + fixed seed. For LLMs: prompt '### Human: Please write a description about {name} ### Assistant:' + decoding strategy (greedy, beam, multinomial).

**Output**: Generated images (512x512) or text sequences. Perceptual hashes (aHash, dHash, pHash, cHash) computed from images for comparison.

## Scoring recipe

```python
def compute_consensus(outputs):
    hashes = [compute_perceptual_hash(o) for o in outputs]
    mode_hash = max(set(hashes), key=hashes.count)
    consensus_pct = (hashes.count(mode_hash) / len(hashes)) * 100
    return consensus_pct

def compute_verification_accuracy(n_verifiers, p_consensus, k_successes):
    from math import comb
    return comb(n_verifiers, k_successes) * (p_consensus ** k_successes) * ((1 - p_consensus) ** (n_verifiers - k_successes))
```

## Common pitfalls

- GPU non-determinism and floating-point error drift can cause hash mismatches even with identical seeds and prompts.
- Multinomial sampling is inherently non-deterministic, unlike greedy or beam search decoding, which must be explicitly controlled for reproducibility.
- Hamming distance tolerance thresholds (e.g., Ot<=1, Ot<=2) significantly alter outlier counts and consensus percentages.

## Evidence (verbatim from paper)

> The consensus percentages are computed by the number of outliers over the total number of images hashed. This can be used as the likelihood that an image generated with the same prompt and seed will generate the same perceptual hash. Verification of Correctness - Type I Error - For majority vote and tolerance of 2, we can achieve 99.843%, 99.988%, and 99.999% verification with 3, 5, and 7 independent verifiers.

## Citation

```bibtex
@misc{kim2023genai_reproducibility,
  title={Generative Artificial Intelligence Reproducibility and Consensus},
  author={Edward Kim et al. (2023)},
  year={2023},
  note={arXiv:2307.01898}
}
```

- arXiv: 2307.01898

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.