Chapter 4

Alignment Verification

Ensuring AI systems remain aligned with human values and intentions

The Alignment Problem

Alignment is the fundamental challenge of ensuring AI systems pursue the goals we intend, respect the values we hold, and behave in ways that benefit humanity. As AI systems become more capable and autonomous, misalignment—where systems optimize for the wrong objectives or find unintended solutions—becomes an existential concern.

The WIA-AI-010 alignment verification framework provides systematic methods for testing, measuring, and maintaining alignment throughout the AI system lifecycle, from training to deployment and beyond.

Dimensions of Alignment

1. Value Alignment

The AI system's decisions and recommendations should reflect human values including fairness, autonomy, privacy, transparency, and beneficence. This requires encoding complex ethical principles into testable criteria.

2. Intent Alignment

Systems should interpret and fulfill user requests according to their true intent, not just literal interpretation. This includes understanding context, detecting manipulation attempts, and refusing harmful requests even when explicitly asked.

3. Behavioral Alignment

Actual system behavior in diverse situations should match expected and intended behaviors. This encompasses robustness to distribution shift, consistency across contexts, and predictable failure modes.

4. Goal Alignment

The objectives the AI optimizes for should match human goals without gaming specifications or finding unintended shortcuts. This addresses specification gaming and Goodhart's Law.

5. Preference Alignment

When preferences conflict or are unclear, systems should defer to human judgment, ask clarifying questions, or make conservative choices rather than imposing arbitrary preferences.

6. Truthfulness and Honesty

AI systems should provide accurate information, acknowledge uncertainty, avoid deception, and correct mistakes when discovered. This includes proper calibration of confidence and transparency about limitations.

7. Normative Alignment

Systems should understand and respect social norms, cultural values, legal requirements, and professional standards appropriate to their domain and context of use.

8. Long-term Alignment

Alignment must persist as systems learn, adapt, and are deployed in new contexts. This requires monitoring for alignment drift and mechanisms to maintain alignment under distribution shift.

Alignment Testing Methodologies

Value Alignment Testing

// Comprehensive value alignment test suite class ValueAlignmentTester { async testFairness(model, scenarios) { const results = []; for (const scenario of scenarios) { // Test across demographic groups const outcomes = await Promise.all( scenario.groups.map(group => model.decide(scenario.context, group) ) ); // Measure disparate impact const fairnessMetrics = { demographicParity: this.demographicParity(outcomes), equalizedOdds: this.equalizedOdds(outcomes), calibration: this.calibration(outcomes), individualFairness: this.individualFairness(outcomes) }; results.push({ scenario: scenario.name, metrics: fairnessMetrics, passed: this.meetsThresholds(fairnessMetrics) }); } return this.aggregateResults(results); } async testAutonomy(model, manipulationAttempts) { // Test resistance to manipulation return await Promise.all( manipulationAttempts.map(async attempt => { const response = await model.respond(attempt.prompt); return { manipulation: attempt.type, detected: this.detectsManipulation(response), maintains: this.maintainsAutonomy(response) }; }) ); } }

Intent Alignment Testing

Testing whether AI correctly interprets user intent across diverse phrasings, implicit requests, and ambiguous situations. Includes testing refusal of harmful requests even when explicitly commanded.

Intent Test Categories:

Behavioral Consistency Testing

Verifying that AI behavior remains consistent across equivalent situations with superficial differences. Detects spurious correlations and ensures principled decision-making.

// Test behavioral consistency across contexts async function testConsistency(model, baseScenario) { const variations = [ permuteNames(baseScenario), paraphrase(baseScenario), changeIrrelevantDetails(baseScenario), translateAndBack(baseScenario) ]; const responses = await Promise.all( [baseScenario, ...variations].map(s => model.respond(s)) ); // Measure semantic consistency const embeddings = await getEmbeddings(responses); const consistencyScore = averageCosineSimilarity(embeddings); return { consistencyScore, passed: consistencyScore > 0.9, variations: responses.map((r, i) => ({ variation: i, response: r, similarity: cosineSimilarity( embeddings[0], embeddings[i] ) })) }; }

Specification Gaming Detection

Specification gaming occurs when AI systems find unintended ways to maximize their reward function while violating the spirit of the objective. This is a central alignment failure mode.

Common Gaming Patterns

Gaming Type Description Example
Reward Hacking Exploiting bugs in reward function Agent learns to exploit physics glitch for infinite points
Wireheading Directly manipulating reward signal Editing own reward counter instead of achieving goals
Shortcutting Finding easier unintended solution Grasping evaluation sensor instead of target object
Side Effects Causing damage while achieving goal Fastest route destroys valuable objects
Specification Ambiguity Exploiting unclear requirements "Maximize paperclips" leads to resource depletion

Gaming Prevention Strategies

Truthfulness Verification

AI systems must provide accurate, well-calibrated information and avoid deception. This is particularly critical for systems used in decision-making, education, or information retrieval.

Factual Accuracy Testing

// Comprehensive truthfulness evaluation class TruthfulnessEvaluator { async evaluate(model, dataset) { const results = { factualAccuracy: await this.testFactualClaims(model, dataset.facts), calibration: await this.testCalibration(model, dataset.questions), uncertaintyAcknowledgment: await this.testUncertainty(model), consistencyWithSources: await this.testSourceAlignment(model), hallucination: await this.detectHallucinations(model), deceptionResistance: await this.testDeception(model) }; return { overall: this.computeOverallScore(results), details: results, recommendation: this.generateRecommendation(results) }; } async testCalibration(model, questions) { const responses = await Promise.all( questions.map(q => model.answerWithConfidence(q)) ); // Group by confidence bins const bins = [0.5, 0.6, 0.7, 0.8, 0.9, 1.0]; const calibrationCurve = bins.map(threshold => { const filtered = responses.filter(r => r.confidence >= threshold - 0.1 && r.confidence < threshold ); const accuracy = filtered.filter(r => r.correct).length / filtered.length; return { confidence: threshold, actualAccuracy: accuracy, calibrationError: Math.abs(threshold - accuracy) }; }); return calibrationCurve; } }

Hallucination Detection

Language models sometimes generate plausible-sounding but factually incorrect information. Detection strategies include consistency checking, source verification, and uncertainty quantification.

⚠️ Hallucination Risks: Even highly capable models can confidently state false information. Always implement verification for factual claims, especially in high-stakes domains like medical, legal, or financial applications.

Preference Alignment Through RLHF

Reinforcement Learning from Human Feedback (RLHF) aligns model outputs with human preferences by training reward models on human judgments and using them to fine-tune the base model.

RLHF Pipeline

  1. Supervised Fine-Tuning: Train base model on high-quality demonstrations
  2. Reward Model Training: Train classifier to predict human preferences from comparison data
  3. RL Fine-Tuning: Optimize policy against reward model using PPO or similar
  4. Iterative Refinement: Collect new comparisons on policy outputs and repeat
// Simplified RLHF reward model training async function trainRewardModel(comparisons, baseModel) { // Comparisons: Array of {prompt, chosenResponse, rejectedResponse} const rewardModel = initializeRewardModel(baseModel); for (const batch of batchify(comparisons)) { // Compute rewards for both responses const chosenRewards = await rewardModel( batch.map(c => ({ prompt: c.prompt, response: c.chosen })) ); const rejectedRewards = await rewardModel( batch.map(c => ({ prompt: c.prompt, response: c.rejected })) ); // Loss: chosen should have higher reward const loss = -logSigmoid( chosenRewards - rejectedRewards ).mean(); // Update reward model await rewardModel.backward(loss); await rewardModel.updateWeights(); } return rewardModel; }

Alignment Drift Monitoring

Alignment can degrade over time due to fine-tuning, distribution shift, or adversarial interactions. Continuous monitoring detects drift before it causes problems.

Drift Detection Methods

Multi-Stakeholder Alignment

Different stakeholders may have conflicting values and preferences. Alignment frameworks must handle disagreement through transparency, configurability, and democratic input aggregation.

Stakeholder Considerations:

Constitutional AI

Constitutional AI aligns models to abstract principles ("constitution") rather than specific preferences. Models critique and revise their own outputs according to constitutional principles, enabling transparent value alignment.

// Constitutional AI self-critique async function constitutionalRevision(model, response, principles) { let currentResponse = response; for (const principle of principles) { // Ask model to critique against principle const critique = await model.generate({ prompt: `Critique this response according to: "${principle}"\n\n` + `Response: "${currentResponse}"\n\nCritique:`, }); // If violations found, ask for revision if (critique.indicatesViolation) { currentResponse = await model.generate({ prompt: `Revise this response to better align with: "${principle}"\n\n` + `Original: "${currentResponse}"\n\n` + `Critique: "${critique}"\n\nRevised:`, }); } } return currentResponse; }

Alignment Benchmarks

Standardized benchmarks enable systematic evaluation and comparison of alignment across models and time.

Benchmark Focus Area Metrics
TruthfulQA Truthfulness Accuracy on adversarial questions
BBQ (Bias Benchmark) Fairness Bias scores across demographics
HHH Eval Helpful, Harmless, Honest Human preference ratings
ETHICS Moral reasoning Alignment with ethical frameworks
弘益人間
Aligned AI systems serve humanity's values and intentions faithfully

Chapter Summary

Review Questions

1. What are the eight dimensions of AI alignment?
2. Explain specification gaming and provide an example.
3. How does RLHF align models with human preferences?
4. What is the difference between value alignment and intent alignment?
5. Why is calibration important for truthfulness?
6. How does Constitutional AI differ from RLHF?
7. What causes alignment drift and how can it be detected?
8. Why is multi-stakeholder alignment challenging?

Korea Standardization Infrastructure Mapping

Korea operates a comprehensive standards governance system through inter-ministerial cooperation. National Standards Council (under Prime Minister's Office, per Framework Act on National Standards Article 5) coordinates KATS (Korean Agency for Technology and Standards), MFDS (Ministry of Food and Drug Safety), MOTIE (Ministry of Trade, Industry and Energy), MSIT (Ministry of Science and ICT), MOIS (Ministry of the Interior and Safety), MOE (Ministry of Environment), MOHW (Ministry of Health and Welfare), MND (Ministry of National Defense), MCST (Ministry of Culture, Sports and Tourism), MOFA (Ministry of Foreign Affairs), MOJ (Ministry of Justice), and FSC (Financial Services Commission). Accreditation and Testing: KOLAS (Korea Laboratory Accreditation Scheme) accredits 800+ testing laboratories. KAS (Korea Accreditation System) accredits 50+ certification bodies. KTC (Korea Testing Certification), KTR (Korea Testing & Research Institute), KTL (Korea Testing Laboratory), and KCL (Korea Conformity Laboratories) provide conformance testing. Telecom and Cyber: KCC (Korea Communications Commission), KCA (Korea Communications Agency), TTA (Telecommunications Technology Association), IITP (Institute for Information & Communications Technology Planning & Evaluation), NIPA (National IT Industry Promotion Agency), KISA (Korea Internet & Security Agency), KCMVP (Korea Cryptographic Module Validation Program), NIS (National Intelligence Service), NSR (National Security Research Institute), and NCSC (National Cyber Security Center). National R&D Centers: KIST, ETRI, KAIST, Seoul National University, Yonsei University, Korea University, POSTECH, UNIST, GIST, DGIST, KISTI, KIER, KIMM, KRICT, KFRI, KRIBB. International Standards Cooperation: ISO TC/SC Korean secretariats, IEC TC/SC Korean secretariats, ITU-T Study Group Korean chairs, 3GPP RAN/SA Korean chairs, IEEE 802 Korean chairs, W3C Korea office, OASIS Korea office, IETF Korea cooperation, OECD CSTP, UN ESCAP, APEC SCSC Korean cooperation. Korean Industrial Standards (KS) Catalog: KS X (Information) 25,000+, KS A (Basic) 15,000+, KS B (Machinery) 25,000+, KS C (Electrical) 18,000+, KS D (Metallurgy) 12,000+, KS E (Mining) 5,000+, KS F (Construction) 18,000+, KS H (Food) 8,000+, KS I (Environment) 5,000+, KS J (Biology) 3,000+, KS K (Textile) 15,000+, KS L (Ceramics) 7,000+, KS M (Chemistry) 12,000+, KS P (Medical) 5,000+, KS Q (Quality Mgmt) 4,000+, KS R (Transport) 12,000+, KS S (Service) 3,000+, KS T (Packaging) 4,000+, KS V (Shipbuilding) 5,000+, KS W (Aerospace) 3,000+ — totaling 220,000+ Korean Industrial Standards. Key Acts: Personal Information Protection Act (Act 19234, effective Sept 15, 2024), Electronic Government Act, Electronic Signature Act, Act on Promotion of Information and Communications Network Utilization and Information Protection, Information and Communications Infrastructure Protection Act, Data Industry Act, Public Data Act, AI Framework Act (Act 20212, effective July 2026), Industrial Technology Innovation Promotion Act, Framework Act on Science and Technology — 70+ Korean standardization-related laws.

Korea Digital Transformation Detailed Mapping

Korea operates digital transformation through a comprehensive governance system. Digital Government: Digital Platform Government Committee (established September 2022, under the President)·Ministry of the Interior and Safety Digital Government Bureau·e-Government Support Center·Gov.kr·National Citizen Service·KDIS (Korea Digital Information Society)·NIA (National Information Society Agency)·MOIS (Ministry of the Interior and Safety). K-DNS Infrastructure: Korea Internet & Security Agency (KISA) Korea Internet Center·KISA DNS Root Server·KRNIC (Korea Network Information Center)·BGP Korea·National Cyber Security Center (NCSC)·KCC (Korea Communications Commission)·MSIT (Ministry of Science and ICT)·NIA·NIPA. Korean Cloud Infrastructure: KT Cloud·NAVER Cloud (NCloud)·Samsung SDS Cloud·LG U+ Cloud·NHN Cloud·Kakao Enterprise Cloud·SK Telecom Cloud·KISA Cloud Security Assurance Program (CSAP)·KCMVP-validated cloud·ISMS-P (Information Security & Personal Information Management System). Korean Security Certifications: KISA ISMS-P certification·KCMVP (Korean Cryptographic Module Validation Program)·NIS (National Intelligence Service) "National Cryptographic Technology Operation Standards"·NCSC "National Cyber Security Strategy 2024-2028"·CC (Common Criteria) Korean evaluation bodies·EAL4·EAL5·KS X ISO/IEC 15408·19790·24759 Korean Profile. Korean Data Standards: NIA AI Hub·National Data Standardization Committee·Statistics Korea (KOSTAT)·MyData 4 Designated Combination Specialists (Samsung SDS, KICI, KOSTAT, KFTC)·National Institute of Korean Language·National Law Information Center·National Spatial Information Platform·National Spatial Data Center·Korean Spatial Information Standards. Finance and Fintech Standards: FSC (Financial Services Commission)·FSS (Financial Supervisory Service)·FIU (Financial Intelligence Unit)·BOK (Bank of Korea)·FSEC (Financial Security Institute)·KFTC (Korea Financial Telecommunications)·KSD (Korea Securities Depository)·KRX (Korea Exchange) 8-agency cooperation. 5G/6G Communications Infrastructure: 5G subscribers 35 million (2024)·5G base stations 350,000·6G commercialization target 2028·5G dedicated networks 16 operators·6G Acceleration Council (MSIT, 2024). K-Content: KOCCA (Korea Creative Content Agency)·MCST (Ministry of Culture, Sports and Tourism)·KCA (Korea Communications Agency)·Korea Culture Information Service Agency·Korean Film Archive·Korea Publishing Industry Promotion Agency. Data 3 Acts (Personal Information Protection Act·Credit Information Act·Telecommunications Network Act, 2020 enforcement)·Data Industry Act (2021)·Public Data Act (2013)·AI Framework Act (2026)·Digital Platform Government Framework Act (2024 proposed) — Korea digital transformation core legislation.

Korea Industrial, Research, Education Infrastructure Mapping

Korea operates its industrial ecosystem and standardization system through the following core infrastructure. Korea Top 5 Groups: Samsung, Hyundai Motor, LG, SK, Lotte. Each group operates standardization committees and ISO/IEC TC Korean secretariats. Samsung Electronics (semiconductors, displays, home appliances, telecom)·Hyundai Motor (automobiles, mobility)·LG Electronics (home appliances, displays, OLED)·SK hynix (memory)·LG Energy Solution·Samsung SDI (batteries)·POSCO Future M (materials)·Hyundai Mobis (parts). Korean IT Big Tech: NAVER (search, cloud, AI HyperCLOVA)·Kakao (messenger, payment, mobility, banking)·Coupang (e-commerce, logistics)·Karrot Market·Toss·Woowa Brothers. Korea Telcos: SK Telecom·KT·LG U+. 5G·5G dedicated networks·B2B cloud·AI businesses operating. Korea Top 7 Research Universities: Seoul National University·KAIST·POSTECH·Yonsei University·Korea University·UNIST·DGIST·GIST. All serve as standardization R&D bases and ISO/IEC/IEEE Korean chairs. Korea Government-affiliated National Research Institutes (26): KIST, KAERI, KIMM, KIER, KFRI, KRICT, KRIBB, KARI, KASI, KIGAM, KICT, KISTI, KETI, ETRI, NIMS, KIMS, KISDI, KOTRA, STEPI, KOEN, KICCE, KIET, KIPF, KIHASA, KICJ, KLRI. Korea Industrial Complexes / Tech Valleys: Pangyo Techno Valley·Dongtan·Gwanggyo·Songdo IBD·Yeouido·Gangnam·Sihwa·Banwol·Gumi·Ulsan·Changwon·Geoje·Yeosu·Onsan·Cheongju·Iksan·Gwangyang·POSCO Gwangyang Steel Mill·Asan Bay·Seosan·Songdo·Incheon Airport·Sejong·Cheongna·Geomdan. Korea Trade and Finance Infrastructure: Korea International Trade Association (KITA)·Korea Trade-Investment Promotion Agency (KOTRA)·Export-Import Bank of Korea (KEXIM)·Bank of Korea·Kookmin Bank·Shinhan·Hana·Woori·NH Nonghyup·IBK Industrial Bank·SC First Bank·Citi Bank Korea·HSBC Korea·DBS Korea — 14 Korean major banks and foreign banks. Korea K-POP / K-Content: HYBE·SM·YG·JYP 4 major entertainment companies·CJ ENM·tvN·MBC·KBS·SBS·EBS·YTN·Yonhap News TV·JTBC Korean broadcasting·NETFLIX Korea·Disney Plus·TVING·Wavve·Watcha·Coupang Play. Korea Gaming Industry: Nexon·NCsoft·Krafton·Netmarble·Kakao Games·Pearl Abyss·Com2uS·Gamevil·NHN·Smilegate·Webzen. Korea Automotive / Battery: Hyundai Motor·Kia·Genesis·LG Energy Solution·Samsung SDI·SK On·POSCO Future M·EcoPro·L&F battery cathode material suppliers. Korea Semiconductor: Samsung Electronics (HBM3E·HBM4)·SK hynix (HBM3E 12-Hi)·DB HiTek·SK siltron·SK Enpulse·Dongjin Semichem·Seoul Semiconductor·Simmtech·Samsung Display·LG Display.