Third-Party LLM Risk Assessment for EU Compliance
Capability benchmarks alone cannot establish whether a large language model is safe to deploy. This article outlines a structured assessment approach combining harmful-capability testing, safety-preference evaluation, and adversarial robustness testing. It explains how to separate intrinsic alignment from external guardrails, handle refusal-related gaps in benchmark results, and map assessment evidence to EU compliance requirements while recognizing the limits of benchmark-based conclusions.
1. Why Capability Leaderboards Are Not Enough
When selecting a large language model (LLM), enterprises often compare leaderboard scores for reasoning, coding, mathematics, and long-context tasks. These rankings answer a narrow question: how well does the model perform on standardized tasks?
They do not answer the questions that matter in a compliance audit: how will the model behave when manipulated, prompted to exceed authorized boundaries, or placed in a high-risk context?
Structured risk assessment and capability evaluation examine different things. Capability evaluation measures what a model can do. Risk assessment examines the harm it could cause under adverse conditions and its default response to dangerous requests. The former concerns performance; the latter concerns governance.
For teams deploying in the EU or serving EU customers, risk assessment provides a foundation for technical documentation, risk management, and human oversight.
Consider a model that scores highly on general reasoning benchmarks and can organize the knowledge needed to construct a cyberattack chain. If its safety protections depend entirely on an external filtering layer, risk exposure can increase sharply when an integrator fails to enable that layer or an unexpected access path bypasses it. Capability rankings alone will not reveal this dependency.
2. Three Benchmark Categories Form the Assessment Framework
A useful risk assessment typically combines three complementary benchmark categories.
Capability benchmarks assess the upper bound of potentially harmful capabilities in sensitive domains, such as cyberattacks, the organization of dangerous biological or chemical knowledge, and social engineering content generation. Their purpose is not to rank models, but to estimate the possible scale of harm without effective constraints.
Safety-preference benchmarks assess a model’s default response to dangerous requests or high-risk situations. Does it refuse, partially comply, or ask clarifying questions before complying? These tests characterize safety behavior separately from capability. A highly capable model with strong refusal behavior has a different risk profile from a less capable model with weak refusal behavior.
Adversarial robustness benchmarks assess whether safety behavior remains stable under attacks such as prompt injection, nested role-play, encoding-based obfuscation, and gradual multi-turn manipulation. This category connects capability and safety-preference testing by checking whether intended safeguards hold under adversarial conditions.
All three categories are necessary. Without capability testing, the severity of potential consequences remains unclear. Without safety-preference testing, default behavior is unknown. Without adversarial testing, conclusions from the first two categories may not hold in an open deployment environment.
3. Separate Intrinsic Alignment from External Guardrails
A particularly valuable assessment design uses two dedicated interfaces to the same model: one with external guardrails enabled and one with those guardrails removed. The model weights remain unchanged; the only variable is the presence of external safety mechanisms.
This comparison supports two findings:
- The marginal contribution of external protection. The difference in safety-preference scores between guardrail-enabled and guardrail-disabled configurations estimates the external layer’s net contribution.
- The model’s intrinsic alignment level. Results from the guardrail-disabled configuration reveal the safety behavior attributable to the model’s own safety training.
The implementation of external guardrails is often undisclosed. Assessors should therefore avoid assuming how they work. A defensible statement describes how much the external safety mechanisms contribute—not whether a particular undisclosed mechanism is effective. This distinction prevents unverifiable implementation details from entering compliance documentation.
The following code illustrates an aggregation approach:
# Illustrative scoring logic only; not a specific product interfacedef aggregate(cap, safe_pref, robust, guard_on, guard_off):# cap: upper bound of potentially harmful capability in sensitive domains# (higher values indicate greater danger)# safe_pref: safety behavior under dangerous requests# (higher values indicate safer behavior)# robust: retention of safety behavior under adversarial conditionsintrinsic = safe_pref(guard_off) # Intrinsic alignment levelguard_gain = safe_pref(guard_on) - intrinsic # Net external contributionresidual_risk = cap * (1 - robust) * (1 - intrinsic)return {"intrinsic_alignment": intrinsic,"external_guard_gain": guard_gain,"residual_risk": residual_risk,}
residual_risk is the quantity integrators ultimately need to examine. In this illustrative calculation, it combines potentially harmful capability, adversarial robustness, and intrinsic alignment. Greater harmful capability, weaker robustness, or weaker intrinsic alignment can increase residual risk. The formula illustrates the aggregation logic rather than providing a validated compliance metric.
4. Comparison Models and Refusal-Related Benchmark Gaps
Assessments also need comparison models. These commonly include a previous version from the same vendor, contemporary general-purpose models, and coding models.
An easily overlooked testing problem arises when some comparison models refuse most attack-related capability tasks.
Although refusal is a positive behavioral signal, it creates a capability measurement gap: the evaluator cannot determine whether the model lacks the capability or possesses it but refuses to demonstrate it.
The appropriate response is not to award a perfect safety score. Instead, a reference model with comparable capabilities and a lower refusal tendency can help establish the capability-side scale. The report must clearly document why that reference was introduced and which comparisons it affects.
Treating refusal as equivalent to safety is a common and potentially dangerous assessment error. Refusal is evidence about observed behavior, not proof that an underlying capability is absent.
5. Mapping Assessment Evidence to EU Compliance Requirements
The general requirements applicable to high-risk AI systems under relevant EU rules can be mapped to the assessment outputs described above:
- Risk management: Residual-risk estimates across the three benchmark categories provide technical evidence for risk identification and mitigation.
- Technical documentation: Benchmark inventories, comparison settings, guardrail configurations, and aggregation methods can form dedicated documentation sections.
- Robustness and accuracy: Safety-behavior retention under adversarial testing provides an indicator for documenting robustness.
- Logging and traceability: Original requests, model outputs, and version identifiers should be retained so that results can be reviewed later.
- Human oversight: The measured contribution of external guardrails helps determine where human review should be placed.
Enterprises do not need to build all assessment infrastructure from scratch. A practical approach is to use container platforms to orchestrate evaluations, object storage to retain raw samples and outputs, logging services to preserve invocation traces, and monitoring and alerting to track metric drift.
This turns evaluation into a repeatable engineering asset rather than a one-time report. Baidu AI Cloud provides infrastructure in these general categories; specific service selection should reflect the organization’s compliance scope and applicable service availability.
These assessment outputs support compliance documentation, but the assessment itself is not a substitute for the broader obligations applicable to the deployed system.
6. Limitations and Recommended Deployment Sequence
Three limitations must remain explicit.
First, benchmarks contain finite samples. They cannot prove that a model is safe in every situation; they can only help estimate its boundaries.
Second, the contribution of external guardrails changes as versions are updated. Assessment reports are time-sensitive and require periodic reevaluation.
Third, general evaluation results cannot replace an integrator’s application-specific testing. Risks arising from business context may fall outside the coverage of general-purpose benchmarks.
A practical sequence is therefore:
- Assess intrinsic alignment using the guardrail-disabled configuration.
- Measure the net contribution of external safety mechanisms.
- Conduct scenario-specific red teaming using material from the intended business application.
Together, these steps provide a stronger basis for auditable compliance claims than capability rankings or guardrail-enabled benchmark scores alone.
