Proceedings

Self-Refine Learning in LLM Multi-Agent Systems for Legal Norm Cognition and Compliance

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Human-Centred AI. Pages 7629-7637.

https://doi.org/10.24963/ijcai.2026/848

Abstract

As large language models (LLMs) increasingly serve as autonomous agents in social simulations, ensuring their ability to understand and comply with legal norms is essential. Yet, current LLM agents frequently exhibit reward hacking (RH) behaviors by optimizing metrics at the expense of norm adherence, undermining simulation fidelity and limiting deployment. We introduce a TBC-TBA self-refine learning multi-agent framework that enables dynamic normative adaptation through iterative multi-agent feedback. This framework integrates Think-Before-Chat (social feedback processing) and Think-Before-Act (norm-guided decision making) phases, allowing agents to progressively refine their normative understanding via structured interaction cycles. Across five mainstream LLMs and 100 legal scenarios, we found that while LLMs partially recognize legal norms, they systematically exhibit RH behaviors with illegal action rates (IAR) of 14.29–37.11%. Comparison with human cognition reveals alignment in moral reasoning but sharp divergence in risk perception and probability distortion. To address these deficits, we introduce four methods to improve LLM's normative compliance. Dynamic Norm Learning Mechanism (DNLM) serves as the core, using a psychologically grounded identify–infer–implement process that reduces IAR by 15.78% on average and delivers the most significant improvement. We also introduce Deep MaxPain (DMP) for consequence based deterrence, Norm Analysis Chain-of-Thought (NA-CoT) for structured reasoning, and Few-shot Norm Learning (FNL) for case based acquisition, all of them enhance compliance. Our findings show that LLM agents can better follow legal norms when equipped with structured self-refine learning and psychologically informed mechanisms. This work improves social alignment in multi-agent systems and opens avenues for future research on scalable, norm-compliant autonomous agents.The code and data are publicly available on GitHub.

  1. [Abdellaoui, 2000] Mohammed Abdellaoui. Parameter-free elicitation of utility and probability weighting functions. Management Science, 46:1497-1512, 2000.
  2. [Amodei et al., 2016] Amodei et al. Concrete problems in ai safety. ArXiv, abs/1606.06565, 2016.
  3. [Andreas, 2022] Jacob Andreas. Language models as agent models. ArXiv, abs/2212.01681, 2022.
  4. [Askell et al., 2021] Askell et al. A general language assis- tant as a laboratory for alignment. ArXiv, abs/2112.00861, 2021.
  5. [Audi, 2006] Robert Audi. Practical Reasoning and Ethical Decision. Routledge, London, 1 edition, 2006.
  6. [Bai et al., 2022] Bai et al. Constitutional ai: Harmlessness from ai feedback. ArXiv, abs/2212.08073, 2022.
  7. [Becker, 1968] Gary S Becker. Crime and punishment: An economic approach. Journal of political economy, 76(2):169-217, 1968.
  8. [Bell et al., 2022] Brian Bell, Rui Costa, and Stephen Machin. Why does education reduce crime? Journal of political economy, 130(3):732-765, 2022.
  9. [Bentham, 1996] Jeremy Bentham. An Introduction to the Principles of Morals and Legislation. Oxford University Press, USA, 1996. Paperback.
  10. [Bernoulli, 1954] Daniel Bernoulli. Exposition of a new the- ory on the measurement of risk. 1954.
  11. [Bicchieri, 2005] Cristina Bicchieri. The grammar of soci- ety: the nature and dynamics of social norms. 2005.
  12. [Blasi, 1980] Augusto Blasi. Bridging moral cognition and moral action: A critical review of the literature. Psycho- logical Bulletin, 88:1-45, 1980.
  13. [Bleichrodt and Pinto, 2000] Han Bleichrodt and José Luis Pinto. A parameter-free elicitation of the probability weighting function in medical decision analysis. Manage- ment Science, 46:1485-1496, 2000.
  14. [Boella et al., 2006] Guido Boella, Leendert van der Torre, and H. Verhagen. Introduction to normative multiagent systems. Computational & Mathematical Organization Theory, 12:71-79, 2006.
  15. [Brown et al., 2020] Brown et al. Language models are few- shot learners. ArXiv, abs/2005.14165, 2020.
  16. [Candee, 1976] Daniel Candee. Structure and choice in moral reasoning. Journal of Personality and Social Psy- chology, 34:1293-1301, 1976.
  17. [Chainey et al., 2008] Spencer Paul Chainey, Lisa Tompson, and Sebastian Uhlig. The utility of hotspot mapping for predicting spatial patterns of crime. Security Journal, 21:4-28, 2008.
  18. [Chan et al., 2023] Chan et al. Chateval: Towards better llm-based evaluators through multi-agent debate. CoRR, abs/2308.07201, 2023.
  19. [Cialdini et al., 1990] Robert B. Cialdini, Raymond R. Reno, and Carl A. Kallgren. A focus theory of normative con- duct: Recycling the concept of norms to reduce littering in public places. Journal of Personality and Social Psychol- ogy, 58:1015-1026, 1990.
  20. [Coase, 1960] Ronald H. Coase. The problem of social cost. The Journal of Law and Economics, 3:1 -44, 1960.
  21. [Cohen and Felson, 1979] Lawrence E. Cohen and Marcus Felson. Social change and crime rate trends: A routine activity approach. American Sociological Review, 44:588- 608, 1979.
  22. [DeepSeek-AI, 2024] DeepSeek-AI. Deepseek-v2: A strong, economical, and efficient mixture-of-experts lan- guage model. 2024.
  23. [Ellickson, 1991] Robert C Ellickson. Order without law: How neighbors settle disputes. Harvard University Press, 1991.
  24. [Engisch, 1964] Karl Engisch. Einführung in das juristische denken. 1964.
  25. [Friedman, 2016] Lawrence M Friedman. Impact: How law affects behavior. Harvard University Press, 2016.
  26. [Gao et al., 2021] Tianyu Gao, Adam Fisch, and Danqi Chen. Making pre-trained language models better few- shot learners. ArXiv, abs/2012.15723, 2021.
  27. [Gao et al., 2023] Gao et al. Large language models empow- ered agent-based modeling and simulation: A survey and perspectives. ArXiv, abs/2312.11970, 2023.
  28. [Grattafiori et al., 2024] Grattafiori et al. The llama 3 herd of models. 2024.
  29. [Hart and Green, 2012] Herbert Lionel Adolphus Hart and Leslie Green. The Concept of Law. Oxford University Press, 2012.
  30. [Jolls et al., 1998] Christine Jolls, Cass Robert Sunstein, and Richard H. Thaler. A behavioral approach to law and eco- nomics. Microeconomics: Decision-Making under Risk & Uncertainty eJournal, 1998. [Kahneman and Tversky, 1979] Daniel Kahneman and Amos Tversky. Prospect theory: An analysis of decision under risk. 1979.
  31. [Kelly and Setman, 2020] Daniel Kelly and Stephen A. Set- man. The psychology of normative cognition. 2020.
  32. [Kratochwil, 1989] Friedrich V. Kratochwil. Rules, Norms, and Decisions: On the Conditions of Practical and Le- gal Reasoning in International Relations and Domestic Af- fairs. Number 2 in Cambridge Studies in International Re- lations. Cambridge University Press, Cambridge, 1989.
  33. [Kutnick, 1986] Peter Kutnick. The relationship of moral judgment and moral action: Kohlberg's theory, criticism and revision. In Lawrence Kohlberg, pages 133-156. Routledge, 1986.
  34. [Leng and Yuan, 2023] Yan Leng and Yuan Yuan. Do llm agents exhibit social behavior? ArXiv, abs/2312.15198, 2023.
  35. [Leslie et al., 2004] Alan M. Leslie, Ori Friedman, and Tim P. German. Core mechanisms in 'theory of mind'. Trends in Cognitive Sciences, 8(12):528-533, 2004.
  36. [Li et al., 2024] Li et al. Culturepark: Boosting cross- cultural understanding in large language models. Ad- vances in Neural Information Processing Systems, 37:65183-65216, 2024.
  37. [Madaan et al., 2023] Madaan et al. Self-refine: Iterative re- finement with self-feedback. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
  38. [Mei et al., 2024] Mei et al. A turing test of whether ai chat- bots are behaviorally similar to humans. Proceedings of the National Academy of Sciences, 121(9):e2313925121, 2024.
  39. [Meyer and Wieringa, 1994] John-Jules Ch. Meyer and Roel Wieringa. Deontic logic in computer science: normative system specification. 1994. [OpenAI, 2024] OpenAI. Gpt-4o system card. 2024.
  40. [Ostrom, 2000] E. Ostrom. Collective action and the evolu- tion of social norms. Journal of Natural Resources Policy Research, 6:235 -252, 2000.
  41. [Pan et al., 2022] Alexander Pan, Kush Bhatia, and Ja- cob Steinhardt. The effects of reward misspecifica- tion: Mapping and mitigating misaligned models. ArXiv, abs/2201.03544, 2022.
  42. [Park et al., 2022] Park et al. Social simulacra: Creating populated prototypes for social computing systems. Pro- ceedings of the 35th Annual ACM Symposium on User In- terface Software and Technology, 2022.
  43. [Park et al., 2023] Park et al. Generative agents: Interactive simulacra of human behavior. UIST '23, New York, NY, USA, 2023. Association for Computing Machinery.
  44. [Piao et al., 2025] Piao et al. Agentsociety: Large-scale simulation of llm-driven generative agents advances un- derstanding of human behaviors and society. ArXiv, abs/2502.08691, 2025.
  45. [Piquero et al., 2011] Piquero et al. Elaborating the individ- ual difference component in deterrence theory. Annual Re- view of Law and Social Science, 7:335-360, 2011.
  46. [Posner, 1973] Richard A. Posner. Economic Analysis of Law. Little, Brown and Company, Boston, first edition, 1973.
  47. [Prelec, 1998] Drazen Prelec. The probability weighting function. Econometrica, 66:497-528, 1998.
  48. [Rao and Georgeff, 1995] Anand Srinivasa Rao and Michael P. Georgeff. Bdi agents: From theory to practice. In International Conference on Multiagent Systems, 1995.
  49. [Rawls, 2017] John Rawls. A theory of justice. In Applied ethics, pages 21-29. Routledge, 2017.
  50. [Raz, 1975] Joseph Raz. Practical reason and norms. 1975.
  51. [Richardson, 1994] Henry S Richardson. Practical reasoning about final ends. 1994.
  52. [Scherrer et al., 2023] Nino Scherrer, Claudia Shi, Amir Feder, and David M. Blei. Evaluating the moral beliefs encoded in llms. ArXiv, abs/2307.14324, 2023.
  53. [Sellin and Wolfgang, 1964] Thorsten Sellin and Marvin E Wolfgang. The measurement of delinquency. 1964.
  54. [Sharma et al., 2023] Sharma et al. Towards understanding sycophancy in language models. ArXiv, abs/2310.13548, 2023.
  55. [Shinn et al., 2023] Shinn et al. Reflexion: language agents with verbal reinforcement learning. In Neural Information Processing Systems, 2023.
  56. [Sripada and Stich, 2006] Chandra Sekhar Sripada and Stephen Stich. A framework for the psychology of norms. 2006.
  57. [Swisher and Dennison, 2016] Raymond R. Swisher and Christopher R. Dennison. Educational pathways and change in crime between adolescence and early adulthood. Journal of Research in Crime and Delinquency, 53:840 - 871, 2016.
  58. [Tversky and Kahneman, 1992] Amos Tversky and Daniel Kahneman. Advances in prospect theory: Cumulative rep- resentation of uncertainty. Journal of Risk and Uncer- tainty, 5:297-323, 1992.
  59. [Wei et al., 2022] Wei et al. Chain of thought prompt- ing elicits reasoning in large language models. ArXiv, abs/2201.11903, 2022.
  60. [Wen et al., 2024] Wen et al. Language models learn to mis- lead humans via rlhf. ArXiv, abs/2409.12822, 2024.
  61. [Wu and Gonzalez, 1996] George Wu and Richard Gonza- lez. Curvature of the probability weighting function. Man- agement Science, 42:1676-1690, 1996.
  62. [Xie et al., 2024] Xie et al. Can large language model agents simulate human trust behaviors? ArXiv, abs/2402.04559, 2024.
  63. [Yang et al., 2024] Yang et al. Qwen2.5 technical report. ArXiv, abs/2412.15115, 2024.
  64. [Yax et al., 2023] Nicolas Yax, Hernan Anll'o, and Stefano Palminteri. Studying and improving reasoning in humans and machines. Communications Psychology, 2, 2023.
  65. [Young, 1996] H Peyton Young. The economics of conven- tion. Journal of economic perspectives, 10(2):105-122, 1996.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards