Law Informs Code: A Legal Informatics Approach to Aligning Artificial Intelligence with Humans
Not on the map. Why?
Abstract (arXiv)
We are currently unable to specify human goals and societal values in a way that reliably directs AI behavior. Law-making and legal interpretation form a computational engine that converts opaque human values into legible directives. "Law Informs Code" is the research agenda embedding legal knowledge and reasoning in AI. Similar to how parties to a legal contract cannot foresee every potential contingency of their future relationship, and legislators cannot predict all the circumstances under which their proposed bills will be applied, we cannot ex ante specify rules that provably direct good AI behavior. Legal theory and practice have developed arrays of tools to address these specification problems. For instance, legal standards allow humans to develop shared understandings and adapt them to novel situations. In contrast to more prosaic uses of the law (e.g., as a deterrent of bad behavior through the threat of sanction), leveraged as an expression of how humans communicate their goals, and what society values, Law Informs Code. We describe how data generated by legal processes (methods of law-making, statutory interpretation, contract drafting, applications of legal standards, legal reasoning, etc.) can facilitate the robust specification of inherently vague human goals. This increases human-AI alignment and the local usefulness of AI. Toward society-AI alignment, we present a framework for understanding law as the applied philosophy of multi-agent alignment. Although law is partly a reflection of historically contingent political power - and thus not a perfect aggregation of citizen preferences - if properly parsed, its distillation offers the most legitimate computational comprehension of societal values available. If law eventually informs powerful AI, engaging in the deliberative political process to improve law takes on even more meaning.
Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Builds on 99 of its 379 references that are in the map. First posted on arXiv 14 Sep 2022.
Builds on
99 of 379 references.
References · 99
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2020Learning to summarize from human feedbackcited by 2,562
- 2016Equality of Opportunity in Supervised Learningcited by 2,000
38 more
- 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,873
- 2020Reformer: The Efficient Transformercited by 1,658
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2018Model Cards for Model Reportingcited by 1,068
- 2017Constrained Policy Optimizationcited by 928
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2020Aligning AI With Shared Human Valuescited by 706
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2021Dynabench: Rethinking Benchmarking in NLPcited by 447
- 2018Scalable agent alignment via reward modeling: a research directioncited by 438
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
- 2021Unsolved Problems in ML Safetycited by 291
- 2019Way Off-Policy Batch Deep Reinforcement Learning of Implicit Human Preferences in Dialogcited by 283
- 2018Human-level performance in first-person multiplayer games with population-based deep reinforcement learningcited by 260
- 2022Autoformalization with Large Language Modelscited by 252
- 2017Inverse Reward Designcited by 246
- 2022The Alignment Problem from a Deep Learning Perspectivecited by 246
- 2019Adversarial Policies: Attacking Deep Reinforcement Learningcited by 209
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2021What Will it Take to Fix Benchmarking in Natural Language Understanding?cited by 200
- 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 199
- 2020"Other-Play" for Zero-Shot Coordinationcited by 194
- 2021Reframing Instructional Prompts to GPTk's Languagecited by 176
- 2018A Survey and Critique of Multiagent Deep Reinforcement Learningcited by 173
- 2020Adversarial Filters of Dataset Biasescited by 159
- 2022Prompting Decision Transformer for Few-Shot Policy Generalizationcited by 143
- 2019Principles alone cannot guarantee ethical AIcited by 134
- 2018Categorizing Variants of Goodhart's Lawcited by 132
- 2020Reward-rational (implicit) choice: A unifying formalism for reward learningcited by 119
- 2019Optimal Policies Tend to Seek Powercited by 115
- 2021Lawformer: A Pre-trained Language Model for Chinese Legal Long Documentscited by 115
- 2019Using Natural Language for Reward Shaping in Reinforcement Learningcited by 114
- 2022Pile of Law: Learning Responsible Data Filtering from the Law and a 256GB Open-Source Legal Datasetcited by 113
- 2020LEGAL-BERT: The Muppets straight out of Law Schoolcited by 111
50 most cited of 99 All 99 (JSON)
Built on by
Citing papers per year: 2023: 11; 2024: 5; 2025: 4; 2026: 3.
23 papers.
Sort:
By area:
- 2023A Survey of Large Language Modelscited by 2,537
- 2023LanguageMPC: Large Language Models as Decision Makers for Autonomous Drivingcited by 188
- 2023Drive Like a Human: Rethinking Autonomous Driving with Large Language Modelscited by 158
- 2023Drive as You Speak: Enabling Human-Like Interaction with Large Language Models in Autonomous Vehiclescited by 100
- 2023MindAgent: Emergent Gaming Interactioncited by 87
- 2023Receive, Reason, and React: Drive as You Say with Large Language Models in Autonomous Vehiclescited by 72
- 2023A Short Survey of Viewing Large Language Models in Legal Aspectcited by 51
- 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenizationcited by 32
- 2025AI Alignment at Your Discretioncited by 20
- 2023Large Language Models as Corporate Lobbyistscited by 13
- 2025A Pragmatic View of AI Personhoodcited by 12
- 2024Learning and Sustaining Shared Normative Systems via Bayesian Rule Induction in Markov Gamescited by 11
11 more
- 2023Legal Summarisation through LLMs: The PRODIGIT Projectcited by 10
- 2024Legal Minds, Algorithmic Decisions: How LLMs Apply Constitutional Principles in Complex Scenarioscited by 7
- 2024Exploring the Nexus of Large Language Models and Legal Systems: A Short Surveycited by 6
- 2024Dynamic Normativity: Necessary and Sufficient Conditions for Value Alignmentcited by 3
- 2025Bye-bye, Bluebook? Automating Legal Drudgery With AI-Augmented Rule Followingcited by 3
- 2023Justifiable Artificial Intelligence: Engineering Large Language Models for Legal Applicationscited by 2
- 2023A Case for AI Safety via Lawcited by 0
- 2025A Neuro-Symbolic Framework for Accountability in Public-Sector AIcited by 0
- 2026De Jure: Iterative LLM Self-Refinement for Structured Extraction of Regulatory Rulescited by 0
- 2026Statutory AI: Aligning Large Language Models With Legal Normscited by 0
- 2026Where Reliability Lives: Experimental Localisation of Behavioural Properties in an Agent Systemcited by 0
- 2026Where Reliability Lives: Experimental Localisation of Behavioural Properties in an Agent System2 Sep 2026
- 2026Statutory AI: Aligning Large Language Models With Legal Norms13 Jun 2026
- 2026De Jure: Iterative LLM Self-Refinement for Structured Extraction of Regulatory Rules2 Apr 2026
- 2025A Neuro-Symbolic Framework for Accountability in Public-Sector AI13 Dec 2025
- 2025A Pragmatic View of AI Personhood30 Oct 2025
- 2025Bye-bye, Bluebook? Automating Legal Drudgery With AI-Augmented Rule Following5 May 2025
- 2025AI Alignment at Your Discretion10 Feb 2025
- 2024Legal Minds, Algorithmic Decisions: How LLMs Apply Constitutional Principles in Complex Scenarios29 Jul 2024
- 2024Dynamic Normativity: Necessary and Sufficient Conditions for Value Alignment16 Jun 2024
- 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenization27 May 2024
- 2024Exploring the Nexus of Large Language Models and Legal Systems: A Short Survey1 Apr 2024
- 2024Learning and Sustaining Shared Normative Systems via Bayesian Rule Induction in Markov Games20 Feb 2024
11 more
- 2023Justifiable Artificial Intelligence: Engineering Large Language Models for Legal Applications27 Nov 2023
- 2023Receive, Reason, and React: Drive as You Say with Large Language Models in Autonomous Vehicles12 Oct 2023
- 2023LanguageMPC: Large Language Models as Decision Makers for Autonomous Driving4 Oct 2023
- 2023Drive as You Speak: Enabling Human-Like Interaction with Large Language Models in Autonomous Vehicles19 Sep 2023
- 2023MindAgent: Emergent Gaming Interaction18 Sep 2023
- 2023Legal Summarisation through LLMs: The PRODIGIT Project4 Aug 2023
- 2023A Case for AI Safety via Law31 Jul 2023
- 2023Drive Like a Human: Rethinking Autonomous Driving with Large Language Models14 Jul 2023
- 2023A Survey of Large Language Models31 Mar 2023
- 2023A Short Survey of Viewing Large Language Models in Legal Aspect16 Mar 2023
- 2023Large Language Models as Corporate Lobbyists3 Jan 2023
- 2023A Survey of Large Language Modelscited by 2,537
- 2023MindAgent: Emergent Gaming Interactioncited by 87
- 2023A Short Survey of Viewing Large Language Models in Legal Aspectcited by 51
- 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenizationcited by 32
- 2025AI Alignment at Your Discretioncited by 20
- 2023Large Language Models as Corporate Lobbyistscited by 13
- 2024Learning and Sustaining Shared Normative Systems via Bayesian Rule Induction in Markov Gamescited by 11
- 2023Legal Summarisation through LLMs: The PRODIGIT Projectcited by 10
- 2024Legal Minds, Algorithmic Decisions: How LLMs Apply Constitutional Principles in Complex Scenarioscited by 7
- 2024Exploring the Nexus of Large Language Models and Legal Systems: A Short Surveycited by 6
- 2025Bye-bye, Bluebook? Automating Legal Drudgery With AI-Augmented Rule Followingcited by 3
- 2023Justifiable Artificial Intelligence: Engineering Large Language Models for Legal Applicationscited by 2
12 most cited of 15 All 15 (JSON)
- 2026De Jure: Iterative LLM Self-Refinement for Structured Extraction of Regulatory Rules2 Apr 2026
- 2025A Neuro-Symbolic Framework for Accountability in Public-Sector AI13 Dec 2025
- 2025Bye-bye, Bluebook? Automating Legal Drudgery With AI-Augmented Rule Following5 May 2025
- 2025AI Alignment at Your Discretion10 Feb 2025
- 2024Legal Minds, Algorithmic Decisions: How LLMs Apply Constitutional Principles in Complex Scenarios29 Jul 2024
- 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenization27 May 2024
- 2024Exploring the Nexus of Large Language Models and Legal Systems: A Short Survey1 Apr 2024
- 2024Learning and Sustaining Shared Normative Systems via Bayesian Rule Induction in Markov Games20 Feb 2024
- 2023Justifiable Artificial Intelligence: Engineering Large Language Models for Legal Applications27 Nov 2023
- 2023MindAgent: Emergent Gaming Interaction18 Sep 2023
- 2023Legal Summarisation through LLMs: The PRODIGIT Project4 Aug 2023
- 2023A Case for AI Safety via Law31 Jul 2023
12 newest of 15 All 15 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025AI Agents and the Law
- 2026Towards a New Grammar of Reasoning for Artificial Legal Intelligence and the Mecelle as Its Semantic Protocol
- 2026Alignment as Jurisprudence
- 2026The Measurement Gap in the Automation of EU Law: Benchmarking Doctrinal Legal Reasoning under the EU AI Act
- 2026Bridging Legal Interpretation and Formal Logic: Faithfulness, Assumption, and the Future of AI Legal Reasoning
- 2026Legislating World-Model-Based Planning with Legal Reasoning
- 2025The Law-Following AI Framework: Legal Foundations and Technical Constraints. Legal Analogues for AI Actorship and technical feasibility of Law Alignment
- 2026Ordinary, Reasonable Chatbots: Do AI Models Track Human Legal Judgments?