Methodology and limitations

What this package establishes

Hermes is a dataset-construction toolkit. Its current implementation supplies reproducible sampling policies, task formats, cache/manifests, and automated integrity checks. It does not establish that a generated benchmark is a manually annotated gold standard, a validated measure of general intelligence, or free of training-data contamination. Such claims require evidence for the particular dataset and evaluation protocol.

Provenance and supervision

The source is a language-specific Wikipedia dump. Filtering removes selected namespaces/redirects and applies configured title, paragraph, and cleaning rules. These decisions influence topic coverage and difficulty; they are not neutral sampling from all language use.

Paragraph tasks derive labels from article identity/order and synthetic perturbations. Reranking identifies a source title and mines distractors with embeddings. NER and QA derive answer candidates from linked mentions and Wikidata class relations. Classification labels are LLM assignments constrained by an author-selected taxonomy. Each supervision source can introduce systematic errors.

The P31/P279* closure and priority mapping are implementation policies. For example, changing priority can change the label for an entity whose class closure matches several labels. Mapping fingerprints prevent reuse of label-cache entries from another policy; this prevents a cache error, not an ontology-design error.

QA quality controls and their limits

The generator checks question format, answer leakage according to configured rules, and exact answer-span agreement with the exported context. It detects identical normalized question/context pairs carrying different normalized answers. Here normalization collapses whitespace and applies Unicode casefold(); it does not identify paraphrases or all Unicode/semantic equivalences.

Every detected conflicting group is removed in full rather than retaining an arbitrary gold answer. Replacements use contexts with one distinct answer among the mined candidates, and hybrid replacements must pass an additional model check. The check receives question/context without the gold answer; acceptance requires a matching extractive answer and is_unambiguous: true. Replacement questions with explicit one-of wording are additionally rejected by the implemented pattern check. The audit report records counts and affected IDs.

Important scope: this semantic check covers replacement records. It does not audit all original records, prove that the mined candidate inventory contains every possible answer, or make an LLM judge equivalent to expert review. Template fallbacks and questions with several plausible answers can remain outside a detected conflict group. A dataset-wide semantic ambiguity audit remains necessary for a research release.

Splits and leakage

Outputs Current split policy
Reranking Deterministic title hash, approximately 80/10/10 train/dev/test
Classification Deterministic page-ID hash, approximately 80/10/10
Extractive QA Deterministic page-ID hash, approximately 80/10/10
Paragraph tasks No standard train/dev/test field generated
NER No standard train/dev/test field generated

These are approximate hash partitions, not exact quota allocations. Reranking queries from a title share a split, but candidate titles are not restricted to that query's split. The title-hash and page-ID-hash policies are different. Articles can also occur in different task families. Therefore the package does not create a globally article-disjoint multi-task benchmark or guarantee that translated articles do not overlap across languages.

For held-out evaluation, define article/entity grouping and cross-language policies before sampling. Do not randomly split individual variants or related questions and then treat them as independent held-out observations. Describe whether LLM-generated questions, source articles, and evaluated model families could overlap in training or supervision.

Evaluation recommendations

These are methodological recommendations, not built-in Hermes scoring commands:

  • Report per-task/per-language results before choosing an aggregate. Explain how multiple variants from the same source are weighted.
  • Use a documented accuracy/response-parsing policy for choice and boolean tasks.
  • For NER, specify entity-boundary matching, label vocabulary, tokenizer, and micro/macro averaging. Link-derived annotations have incomplete coverage.
  • For QA, state exact-match/token-F1 normalization and handling of multiple valid answers. The original SQuAD paper is a primary reference for extractive machine comprehension; a SQuAD-style export does not reproduce its annotation process.
  • For reranking, one known relevant title supports gold-rank measures such as reciprocal rank and Recall@k. Do not claim a fully judged gold permutation or graded relevance evaluation without further annotation.
  • When computing uncertainty, account for shared articles/entities rather than assuming all variant records are independent observations.

What validate checks

The validator reads configuration/manifests and verifies referenced artifact integrity, counts, structural fields, source alignment, embedding array metadata and finite values, QA answer spans, and contradictory QA gold annotations. CSV/JSONL row counts are compared; this is not a cell-by-cell semantic comparison of the two formats. A manifest/hash proves consistency with the recorded artifact, not correctness of an annotation.

Review files are annotation forms. Their existence is not evidence that people reviewed them. For research use, sample by language, task, label, source cluster, and generation method; define reviewer instructions, agreement measures, and a policy for adjudicating ambiguity. Document the number reviewed, exclusions, corrections, and remaining limitations.

Reproducibility record

Retain the dump snapshot and source URL; hash the dump separately if an immutable content identifier is needed. Hermes records dump path/size/modification time, source/artifact hashes in relevant manifests, configuration, seed, and provider identities. A complete dump SHA-256 is not automatically promised by those fields. The filtered raw corpus does not preserve all source revision metadata.

Also retain the package version and Git commit, dependency environment, embedding snapshot, LLM model/API settings, ontology, cached responses, and review history. A fixed seed or temperature zero does not make a remote model deterministic. Fresh Wikidata responses and model revisions can change a reconstruction. --force does not clear provider-response caches.

For each released dataset, provide a dataset card/datasheet with purpose, composition, collection/annotation process, intended uses, limitations, and maintenance policy. This follows the documentation approach advocated by Gebru et al., Datasheets for Datasets. Record software versions and verified releases/commits when citing Hermes; this repository does not assign a publication DOI or claim a peer-reviewed paper.

Licensing and attribution

The library's MIT license applies to its software. It does not replace the licenses of source text, models, or generated dataset components. Wikimedia's Terms of Use, section 7 describe content reuse and attribution conditions. Wikidata's licensing policy states that structured data is released under CC0; other Wikimedia material has separate terms. Record source provenance and applicable terms when redistributing a benchmark, including any model/provider conditions relevant to your release.