AI Accountability
AI Accountability
Making clear who is responsible for the outcomes of an AI system. Distinguishes the roles of developers, operators, and users.
AI Accountability
Making clear who is responsible for the outcomes of an AI system. Distinguishes the roles of developers, operators, and users.
AI Accountability is the principle of clarifying who bears what responsibility for the outcomes of the design, development, deployment, and operation of an AI system. The EU AI Act specifies the obligations and responsibilities of each of the provider, the deployer, the importer, and the distributor.
The provider bears the heaviest responsibility under the EU AI Act. Its obligations include conformity assessment, CE marking, preparation of technical documentation, operation of a quality management system, post-market monitoring, and incident reporting. The deployer is obliged to notify users, maintain human oversight, and comply with the provider's instructions.
An important concept when determining the attribution of responsibility is the 'Intended Purpose'. Problems arising within the intended purpose defined by the provider are the provider's responsibility, but if the deployer uses the system outside of it, the deployer may be regarded as the provider.
The EU AI Liability Directive, adopted in 2024, eases the claimant's burden of proof when claiming compensation for damage caused by AI. Victims can benefit from a presumption of causality between a defect in the AI system and the damage, which increases companies' liability risk.
# AI 책임 추적 및 관리 시스템
from dataclasses import dataclass, field
from typing import List, Dict, Optional
from datetime import datetime
from enum import Enum
class ActorRole(Enum):
"""EU AI Act 행위자 역할"""
PROVIDER = "provider" # 공급자 (개발사)
DEPLOYER = "deployer" # 배포자 (운영사)
IMPORTER = "importer" # 수입자
DISTRIBUTOR = "distributor" # 유통업자
AUTHORIZED_REP = "authorized_representative" # EU 대리인
@dataclass
class Obligation:
"""의무사항"""
id: str
description: str
eu_ai_act_article: str
applicable_roles: List[ActorRole]
compliance_status: str = "pending"
@dataclass
class AccountabilityRecord:
"""책임 기록"""
timestamp: datetime
action_type: str
actor_role: ActorRole
actor_name: str
description: str
evidence_reference: Optional[str] = None
@dataclass
class AIAccountabilityFramework:
"""AI 책임성 프레임워크"""
system_name: str
intended_purpose: str
# 역할별 책임자
provider: Dict = field(default_factory=dict)
deployer: Dict = field(default_factory=dict)
eu_representative: Optional[Dict] = None
# 의무 및 기록
obligations: List[Obligation] = field(default_factory=list)
accountability_records: List[AccountabilityRecord] = field(default_factory=list)
def __post_init__(self):
self._initialize_obligations()
def _initialize_obligations(self):
"""EU AI Act 기반 의무사항 초기화"""
obligations = [
# 공급자 의무
Obligation(
id="OBL-P01",
description="적합성 평가 수행",
eu_ai_act_article="Article 43",
applicable_roles=[ActorRole.PROVIDER]
),
Obligation(
id="OBL-P02",
description="기술 문서 작성 및 유지",
eu_ai_act_article="Article 11",
applicable_roles=[ActorRole.PROVIDER]
),
Obligation(
id="OBL-P03",
description="품질관리시스템(QMS) 운영",
eu_ai_act_article="Article 17",
applicable_roles=[ActorRole.PROVIDER]
),
Obligation(
id="OBL-P04",
description="시장 출시 후 모니터링",
eu_ai_act_article="Article 72",
applicable_roles=[ActorRole.PROVIDER]
),
Obligation(
id="OBL-P05",
description="심각한 사고 보고 (72시간)",
eu_ai_act_article="Article 73",
applicable_roles=[ActorRole.PROVIDER, ActorRole.DEPLOYER]
),
# 배포자 의무
Obligation(
id="OBL-D01",
description="공급자 지시에 따른 사용",
eu_ai_act_article="Article 26(1)",
applicable_roles=[ActorRole.DEPLOYER]
),
Obligation(
id="OBL-D02",
description="인간 감독 체계 유지",
eu_ai_act_article="Article 26(2)",
applicable_roles=[ActorRole.DEPLOYER]
),
Obligation(
id="OBL-D03",
description="사용자 대상 투명성 고지",
eu_ai_act_article="Article 26(5)",
applicable_roles=[ActorRole.DEPLOYER]
),
Obligation(
id="OBL-D04",
description="입력 데이터의 관련성 보장",
eu_ai_act_article="Article 26(4)",
applicable_roles=[ActorRole.DEPLOYER]
),
]
self.obligations.extend(obligations)
def log_action(self, action_type: str, actor_role: ActorRole,
actor_name: str, description: str,
evidence_reference: Optional[str] = None):
"""책임 추적 기록 추가"""
record = AccountabilityRecord(
timestamp=datetime.now(),
action_type=action_type,
actor_role=actor_role,
actor_name=actor_name,
description=description,
evidence_reference=evidence_reference
)
self.accountability_records.append(record)
return record
def check_role_obligations(self, role: ActorRole) -> Dict:
"""역할별 의무 준수 현황"""
role_obligations = [o for o in self.obligations
if role in o.applicable_roles]
compliant = [o for o in role_obligations
if o.compliance_status == "compliant"]
return {
"role": role.value,
"total_obligations": len(role_obligations),
"compliant": len(compliant),
"compliance_rate": len(compliant) / len(role_obligations) * 100,
"pending": [
{"id": o.id, "description": o.description, "article": o.eu_ai_act_article}
for o in role_obligations if o.compliance_status != "compliant"
]
}
def assess_liability_exposure(self) -> Dict:
"""책임 리스크 평가"""
provider_compliance = self.check_role_obligations(ActorRole.PROVIDER)
deployer_compliance = self.check_role_obligations(ActorRole.DEPLOYER)
return {
"system": self.system_name,
"intended_purpose": self.intended_purpose,
"provider_liability": {
"entity": self.provider.get("name"),
"compliance_rate": provider_compliance["compliance_rate"],
"risk_level": "HIGH" if provider_compliance["compliance_rate"] < 80 else "LOW"
},
"deployer_liability": {
"entity": self.deployer.get("name"),
"compliance_rate": deployer_compliance["compliance_rate"],
"risk_level": "HIGH" if deployer_compliance["compliance_rate"] < 80 else "LOW"
},
"recommendations": self._generate_recommendations(provider_compliance, deployer_compliance)
}
# 사용 예시
framework = AIAccountabilityFramework(
system_name="AI 신용평가 시스템",
intended_purpose="금융기관 대출 심사 보조",
provider={"name": "KAITRUST Corp", "contact": "legal@kaitrust.ai"},
deployer={"name": "ABC Bank", "contact": "compliance@abcbank.com"}
)
# 책임 추적 기록
framework.log_action(
action_type="CONFORMITY_ASSESSMENT",
actor_role=ActorRole.PROVIDER,
actor_name="KAITRUST Corp",
description="제3자 적합성 평가 완료",
evidence_reference="CERT-2025-001234"
)
print(framework.assess_liability_exposure())
Legal team: "Once the AI Liability Directive is enforced, the victim's burden of proof is reduced. We need to review our product liability insurance."
Development team: "We clearly documented the intended purpose, and we also included the usage restrictions in the API documentation and the contract. So that we are exempt from liability for use outside the scope."
Interviewer: "Who is responsible when a problem occurs in an AI system?"
Candidate: "The EU AI Act distinguishes responsibilities by role. The provider is responsible for the conformity of the system itself, and the deployer is responsible for appropriate use and human oversight. If the deployer uses the system outside the intended purpose, it is regarded as the provider, and responsibility may shift."
Take a mock interview on this topic → WIA SOOM AI Interview · Start for free
Compliance: "Is this feature included in the intended purpose? If we extend it to a use not in the documentation, we'll have a liability problem."
Developer: "I'll update the intended purpose documentation and get it reviewed by the legal team. When adding new features, we always follow the scope verification process."