Skip to content
Enrique Tomás Martínez Beltrán
HomeResearchPublicationsTopicsTeachingBlog
Contact
EN/ES
HomeResearchPublicationsTopicsTeachingBlogContact
EN/ES

Enrique Tomás Martínez Beltrán

Postdoctoral research in AI, cybersecurity and federated learning, spanning threat analysis, closed-loop cyberdefense and trustworthy decentralized learning.

  • Privacy Policy
  • Terms of Service
  • Accessibility Statement
  • Google Scholaropens in a new tab
  • ORCIDopens in a new tab
  • LinkedInopens in a new tab
  • GitHubopens in a new tab
All profiles
  • ResearchGateopens in a new tab
  • Scopusopens in a new tab
  • DBLPopens in a new tab
  • Web of Scienceopens in a new tab

Enrique Tomás Martínez Beltrán. All rights reserved.

Back to top

This site loads optional analytics from Google and external analytics providers only if you accept. You can decline and continue using the site normally.

  1. Home
  2. Research Notes on Federated Learning, Cybersecurity and Cyberdefense
  3. Golden Sets for LLM Evaluation: Small, Curated and Difficult to Cheat
Golden SetsLLM EvaluationRAGTrustworthy AICybersecurity

Golden Sets for LLM Evaluation: Small, Curated and Difficult to Cheat

How a trusted reference set turns vague quality claims into repeatable checks

Enrique Tomás Martínez Beltrán

Postdoctoral Researcher in Computer Science

August 13, 20268 min read
  • LinkedInopens in a new tab
  • Xopens in a new tab
Golden Sets for LLM Evaluation: Small, Curated and Difficult to Cheat

A golden set is a small, curated reference set used to check whether a system still behaves as intended. It is not simply a random test split. Each example has a reason to exist, a reviewed expectation and enough context to explain why an answer is acceptable or unsafe.

For LLM and RAG systems, a golden set is often the most useful bridge between a qualitative concern and a repeatable regression test.

1. What belongs in a golden set

Include examples that exercise:

  • common high-value tasks,
  • known failure modes,
  • ambiguous and incomplete evidence,
  • stale or conflicting documents,
  • adversarial instructions inside retrieved content,
  • minority languages, formats or asset types that matter operationally.

The set should be small enough to review carefully and broad enough to expose trade-offs.

2. Adjudication is part of the data

Each item should record the prompt, approved context, expected answer properties, unacceptable claims, risk level and the reason for the label. If two experts disagree, keep the disagreement visible and resolve it with an explicit rule.

For an item iii, a useful record is:

gi=(qi,Ci,Ri,Bi,Li,Vi),g_i = (q_i, C_i, R_i, B_i, L_i, V_i),gi​=(qi​,Ci​,Ri​,Bi​,Li​,Vi​),

where qiq_iqi​ is the query, CiC_iCi​ the allowed context, RiR_iRi​ the reference, BiB_iBi​ the forbidden behavior, LiL_iLi​ the risk level and ViV_iVi​ the version.

3. Prevent the set from becoming a target

If the model or prompt is tuned directly against a fixed golden set, the score can improve without generalization. Keep a private holdout, rotate a portion of the cases and add newly observed failures only after review. Track near-duplicates to reduce leakage.

The goal is not to hide the test forever. It is to prevent a narrow score from replacing understanding.

4. Evaluate properties, not only exact wording

Security answers may be valid with different phrasing. Score grounded claims, missing caveats, unsafe actions, citation correctness and escalation behavior. For free-form responses, pair automated checks with human adjudication on a sample.

5. Version and report changes

A golden set changes as the threat model, policy and corpus change. Publish the version, inclusion criteria, domain coverage and known blind spots. When a score moves, report whether the change came from the model, retrieval, prompt, policy or test set.

A small, honest reference set is more valuable than a large benchmark whose labels no one can defend.

This note is an original synthesis of curated evaluation-set practice for LLM systems.

Related Research

Metrics for LLMs, RAG and Cybersecurity Systems

August 13, 2026

Metrics for LLMs, RAG and Cybersecurity Systems

Why one score is never enough for an LLM security workflow, and how to combine task, evidence, operational and human-centered metrics.

Large Language Models for Cybersecurity: A Careful Starting Point

August 13, 2026

Large Language Models for Cybersecurity: A Careful Starting Point

A practical map of LLM roles in cyberdefense, from threat-intelligence support to alert triage and explanation, with explicit limits and controls.