journal article·2025-08-11Open access

Analyzing LLM Sentencing Variability in Theft Indictments Across Gender, Family Status and the Value of the Stolen Item

Karol Struniawski, Ryszard Kozera, Aleksandra Konopka

Applied Sciences· Volume 15· Issue 16

Abstract

As large language models (LLMs) increasingly enter high-stakes decision-making contexts, questions arise about their suitability in domains requiring normative judgment, such as judicial sentencing. This study investigates whether LLMs exhibit bias when tasked with sentencing decisions in Polish criminal law, despite clear legal norms that prohibit considering extralegal factors. The simulated sentencing scenarios for theft offenses use two leading open-source LLMs (LLaMA and Mixtral) and systematically vary three defendant characteristics: gender, number of children, and the value of the stolen item. While none of these variables should legally affect sentence length under Polish law, our results reveal statistically significant disparities, particularly in how female defendants with children are treated. The non-parametric tests (Kruskal–Wallis and Mann–Whitney U) and correlation analysis were applied to quantify these effects. Our findings raise concerns about the normative reliability of LLMs and their alignment with principles of fairness and legality. From a jurisprudential perspective, we contrast the implicit logic of LLM sentencing with theoretical models of adjudication, including Dworkin’s moral interpretivism and Posner’s pragmatism. This work contributes to ongoing debates on the integration of AI in legal systems, highlighting both the empirical risks and the philosophical limitations of computational legal reasoning.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Artificial Intelligence in Law · Law, Economics, and Judicial Systems · Judicial and Constitutional Studies

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Institute of Information Technology, Warsaw University of Life Sciences—SGGW, ul. Nowoursynowska 159, 02-776 Warsaw, Poland

School of Physics, Mathematics and Computing, The University of Western Australia, 35 Stirling Highway, Crawley, Perth, WA 6009, Australia

References (37)

Show source-provided references
1. JusticeAI: A Large Language Models Inspired Collaborative and Cross-Domain Multimodal System for Automatic Judicial Rulings in Smart Courts10.1109/ACCESS.2024.3491775 ↗
2. Justice on Trial: How Artificial Intelligence is Reshaping Judicial Decision-Making
3. Raghav, A., Janjua, L.R., Lal, S., Arora, M.K., and Hammouch, H. (2025). Artificial Intelligence for Strengthening the Rule of Law and Justice Delivery System. Artificial Intelligence in Peace, Justice, and Strong Institutions, IGI Global.10.4018/979-8-3693-9395-6.ch003 ↗
4. Case Law as Data: Prompt Engineering Strategies for Case Outcome Extraction with Large Language Models in a Zero-Shot Setting10.5204/lthj.3623 ↗
5. Nigam, S., Sharma, A., Khanna, D., Shallum, N., Ghosh, K., and Bhattacharya, A. (2024). Legal Judgment Reimagined: PredEx and the Rise of Intelligent AI Interpretation in Indian Courts. Findings of the Association for Computational Linguistics ACL 2024, Association for Computational Linguistics.10.18653/v1/2024.findings-acl.255 ↗
6. (2024). Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024 laying down harmonised rules on artificial intelligence and amending Regulations (EC) No 300/2008, (EU) No 167/2013, (EU) No 168/2013, (EU) 2018/858, (EU) 2018/1139 and (EU) 2019/2144 and Directives 2014/90/EU, (EU) 2016/797 and (EU) 2020/1828 (Artificial Intelligence Act). Off. J. Eur. Union, 202, 1–160. Available online: https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32024R1689.
7. Addressing the risks of generative AI for the judiciary: The accountability framework(s) under the EU AI Act10.1016/j.clsr.2024.106067 ↗
8. Niriella, M.A.D.S.J.S. (2025). Artificial Intelligence and Sentencing Practices: Challenges and Opportunities for Fairness and Justice in the Criminal Justice System in Sri Lanka. Int. Ann. Criminol., 1–51.10.1017/cri.2024.24 ↗
9. La inteligencia artificial en la justicia: Protocolos para la presentación y la valoración de prueba digital obtenida mediante IA
10. Thomas, A. (2024). Exploring the Power of AI-Driven Decision Making in the Judicial Domain: Case Studies, Benefits, Challenges, and Solutions. Using Traditional Design Methods to Enhance AI-Driven Decision Making, IGI Global.10.4018/979-8-3693-0639-0.ch015 ↗
11. Simmons, G. Moral Mimicry: Large Language Models Produce Moral Rationalizations Tailored to Political Identity. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop).
12. Bias and Fairness in Large Language Models: A Survey10.1162/coli_a_00524 ↗
13. Torres, N., Ulloa, C., Araya, I., Ayala, M., and Jara, S. (2024, January 28–30). Injecting Bias through Prompts: Analyzing the Influence of Language on LLMs. Proceedings of the 2024 43rd International Conference of the Chilean Computer Science Society (SCCC), Temuco, Chile.10.1109/SCCC63879.2024.10767653 ↗
14. How do judges use large language models? Evidence from Shenzhen10.1093/jla/laae009 ↗
15. Singh, D., Kumar, K.I.P., Nijhawan, G., Veena, C., Rajalakshmi, B., and Geetha, B.T. (2024, January 6–7). Ensuring Transparency and Fairness in AI DecisionMaking Processes Influenced by large language Models. Proceedings of the 2024 IEEE 13th International Conference on Communication Systems and Network Technologies (CSNT), Jabalpur, India.10.1109/CSNT60213.2024.10545998 ↗
16. Kamruzzaman, M., Shovon, M.M.I., and Kim, G.L. (2023). Investigating Subtler Biases in LLMs: Ageism, Beauty, Institutional, and Nationality Bias in Generative Models. arXiv.10.18653/v1/2024.findings-acl.530 ↗
17. The Changing Forms of Racial/Ethnic Biases in Sentencing10.1177/0022427887024001005 ↗
18. Ye, J., Wang, Y., Huang, Y., Chen, D., Zhang, Q., Moniz, N., Gao, T., Geyer, W., Huang, C., and Chen, P.Y. (2024). Justice or Prejudice? Quantifying Biases in LLM-as-a-Judge. arXiv.
19. Bai, X., Wang, A., Sucholutsky, I., and Griffiths, T.L. (2024). Measuring Implicit Bias in Explicitly Unbiased Large Language Models. arXiv.
20. Dworkin, R. (1977). Taking Rights Seriously, Harvard University Press.
21. Posner, R.A. (2008). How Judges Think, Harvard University Press.
22. Park, Y. (2025). Optimal two-stage group sequential designs based on Mann-Whitney-Wilcoxon test. PLoS ONE, 20.10.1371/journal.pone.0318211 ↗
23. Methodology and Application of the Kruskal-Wallis Test10.4028/www.scientific.net/AMM.611.115 ↗
24. Fisher, R.A. (1992). Statistical Methods for Research Workers. Breakthroughs in Statistics, Springer.10.1007/978-1-4612-4380-9_6 ↗
25. The Proof and Measurement of Association between Two Things10.2307/1412159 ↗
26. Gender Effects Across Place: A Multilevel Investigation of Gender, Race/Ethnicity, and Region in Sentencing10.1177/2153368718767495 ↗
27. The Offense-Specific Nature of Gender and Familial Responsibility in United States Federal Sentencing, 2010–201610.1177/08874034211021899 ↗
28. Gender dynamics in the sentencing of white-collar offenders
29. Minson, S. (2019). Explanation 3: Sentencers Are Not Permitted, or Are Unable, to Consider the Welfare of Children of Defendant Mothers. Maternal Sentencing and the Rights of the Child, Springer International Publishing.10.1007/978-3-030-32738-5_6 ↗
30. Minson, S. (2020). The Importance of Motherhood in Sentencing Decisions. Mothering from the Inside, Emerald Publishing Limited.10.1108/978-1-78973-343-320201004 ↗
31. Modulating and Limiting Punishment through the Application of the Proportionality Principle: A Perspective from Botswana10.1080/18918131.2019.1661939 ↗
32. Chen, C., and Chekam, G.A. (2021). Algorithms and Media Ethics in the AI Age. Handbook of Global Media Ethics, Springer International Publishing.10.1007/978-3-319-32103-5_16 ↗
33. Dirgová Luptáková, I., Pospíchal, J., and Huraj, L. (2024). Beyond Code and Algorithms: Navigating Ethical Complexities in Artificial Intelligence. Software Engineering Methods in Systems and Network Systems, Springer Nature.10.1007/978-3-031-54813-0_30 ↗
34. Cheong, B.C. (2024). Transparency and accountability in AI systems: Safeguarding wellbeing in the age of algorithmic decision-making. Front. Hum. Dyn., 6.10.3389/fhumd.2024.1421273 ↗
35. Wendler, C., Veselovsky, V., Monea, G., and West, R. (2024). Do Llamas Work in English? On the Latent Language of Multilingual Transformers. arXiv.10.18653/v1/2024.acl-long.820 ↗
36. Li, Z., Shi, Y., Liu, Z., Yang, F., Payani, A., Liu, N., and Du, M. (2024). Language Ranker: A Metric for Quantifying LLM Performance Across High and Low-Resource Languages. arXiv.10.1609/aaai.v39i27.35038 ↗
37. Jiang, A.Q., Sablayrolles, A., Roux, A., Mensch, A., Savary, B., Bamford, C., Chaplot, D.S., Casas, D.d.l., Hanna, E.B., and Bressand, F. (2024). Mixtral of Experts. arXiv.