IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2506.22708.html

FairMarket-RL: LLM-Guided Fairness Shaping for Multi-Agent Reinforcement Learning in Peer-to-Peer Markets

Author

Listed:
  • Shrenik Jadhav
  • Birva Sevak
  • Srijita Das
  • Akhtar Hussain
  • Wencong Su
  • Van-Hai Bui

Abstract

Peer-to-peer (P2P) trading is increasingly recognized as a key mechanism for decentralized market regulation, yet existing approaches often lack robust frameworks to ensure fairness. This paper presents FairMarket-RL, a novel hybrid framework that combines Large Language Models (LLMs) with Reinforcement Learning (RL) to enable fairness-aware trading agents. In a simulated P2P microgrid with multiple sellers and buyers, the LLM acts as a real-time fairness critic, evaluating each trading episode using two metrics: Fairness-To-Buyer (FTB) and Fairness-Between-Sellers (FBS). These fairness scores are integrated into agent rewards through scheduled {\lambda}-coefficients, forming an adaptive LLM-guided reward shaping loop that replaces brittle, rule-based fairness constraints. Agents are trained using Independent Proximal Policy Optimization (IPPO) and achieve equitable outcomes, fulfilling over 90% of buyer demand, maintaining fair seller margins, and consistently reaching FTB and FBS scores above 0.80. The training process demonstrates that fairness feedback improves convergence, reduces buyer shortfalls, and narrows profit disparities between sellers. With its language-based critic, the framework scales naturally, and its extension to a large power distribution system with household prosumers illustrates its practical applicability. FairMarket-RL thus offers a scalable, equity-driven solution for autonomous trading in decentralized energy systems.

Suggested Citation

  • Shrenik Jadhav & Birva Sevak & Srijita Das & Akhtar Hussain & Wencong Su & Van-Hai Bui, 2025. "FairMarket-RL: LLM-Guided Fairness Shaping for Multi-Agent Reinforcement Learning in Peer-to-Peer Markets," Papers 2506.22708, arXiv.org.
  • Handle: RePEc:arx:papers:2506.22708
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2506.22708
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Zhou, Yue & Wu, Jianzhong & Long, Chao, 2018. "Evaluation of peer-to-peer energy sharing mechanisms based on a multiagent simulation framework," Applied Energy, Elsevier, vol. 222(C), pages 993-1022.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Pia Szichta & Ingela Tietze, 2020. "Sharing Economy in der Elektrizitätswirtschaft: Treiber und Hemmnisse [Title sharing economy in the electricity sector: drivers and barriers]," Sustainability Nexus Forum, Springer, vol. 28(3), pages 109-125, December.
    2. Zhou, Yuekuan & Lund, Peter D., 2023. "Peer-to-peer energy sharing and trading of renewable energy in smart communities ─ trading pricing models, decision-making and agent-based collaboration," Renewable Energy, Elsevier, vol. 207(C), pages 177-193.
    3. Lyu, Cheng & Jia, Youwei & Xu, Zhao, 2021. "Fully decentralized peer-to-peer energy sharing framework for smart buildings with local battery system and aggregated electric vehicles," Applied Energy, Elsevier, vol. 299(C).
    4. Min-Hwi Kim & Dong-Won Lee & Deuk-Won Kim & Young-Sub An & Jae-Ho Yun, 2021. "Energy Performance Investigation of Bi-Directional Convergence Energy Prosumers for an Energy Sharing Community," Energies, MDPI, vol. 14(17), pages 1-17, September.
    5. Ma, Li & Wang, Lingfeng & Liu, Zhaoxi, 2021. "Multi-level trading community formation and hybrid trading network construction in local energy market," Applied Energy, Elsevier, vol. 285(C).
    6. Lefeng, Shi & Shengnan, Lv & Chunxiu, Liu & Yue, Zhou & Cipcigan, Liana & Acker, Thomas L., 2020. "A framework for electric vehicle power supply chain development," Utilities Policy, Elsevier, vol. 64(C).
    7. Hutty, Timothy D. & Brown, Solomon, 2024. "P2P trading of heat and power via a continuous double auction," Applied Energy, Elsevier, vol. 369(C).
    8. Byeongtae Ahn, 2022. "Implementation and Early Adoption of an Ethereum-Based Electronic Voting System for the Prevention of Fraudulent Voting," Sustainability, MDPI, vol. 14(5), pages 1-16, March.
    9. João Mello & Cristina de Lorenzo & Fco. Alberto Campos & José Villar, 2023. "Pricing and Simulating Energy Transactions in Energy Communities," Energies, MDPI, vol. 16(4), pages 1-22, February.
    10. Mahuze, Richard A. & Amadeh, Ali & Yuan, Bo & Zhang, K. Max, 2025. "Collaborative optimization framework for capacity planning of a prosumer-based peer-to-peer electricity trading community," Applied Energy, Elsevier, vol. 384(C).
    11. Wang, Zibo & Yu, Xiaodan & Mu, Yunfei & Jia, Hongjie, 2020. "A distributed Peer-to-Peer energy transaction method for diversified prosumers in Urban Community Microgrid System," Applied Energy, Elsevier, vol. 260(C).
    12. Sara Khan & Uzma Amin & Ahmed Abu-Siada, 2024. "P2P Energy Trading of EVs Using Blockchain Technology in Centralized and Decentralized Networks: A Review," Energies, MDPI, vol. 17(9), pages 1-17, April.
    13. Davarzani, Sima & Pisica, Ioana & Taylor, Gareth A. & Munisami, Kevin J., 2021. "Residential Demand Response Strategies and Applications in Active Distribution Network Management," Renewable and Sustainable Energy Reviews, Elsevier, vol. 138(C).
    14. Yuki Matsuda & Yuto Yamazaki & Hiromu Oki & Yasuhiro Takeda & Daishi Sagawa & Kenji Tanaka, 2021. "Demonstration of Blockchain Based Peer to Peer Energy Trading System with Real-Life Used PHEV and HEMS Charge Control," Energies, MDPI, vol. 14(22), pages 1-12, November.
    15. Ahl, Amanda & Yarime, Masaru & Tanaka, Kenji & Sagawa, Daishi, 2019. "Review of blockchain-based distributed energy: Implications for institutional development," Renewable and Sustainable Energy Reviews, Elsevier, vol. 107(C), pages 200-211.
    16. Vikash Kumar Saini & Chandra Shekhar Purohit & Rajesh Kumar & Ameena S. Al-Sumaiti, 2023. "Proof of Work Consensus Based Peer to Peer Energy Trading in the Indian Residential Community," Energies, MDPI, vol. 16(3), pages 1-25, January.
    17. Soto, Esteban A. & Bosman, Lisa B. & Wollega, Ebisa & Leon-Salas, Walter D., 2021. "Peer-to-peer energy trading: A review of the literature," Applied Energy, Elsevier, vol. 283(C).
    18. Sun, Zhixiang & Li, Zhigang & Xue, Yixun & Chang, Xinyue & Li, Huajian & Zheng, J.H., 2025. "Price-function-free energy pricing in Bilevel peer-to-peer energy markets considering network security," Applied Energy, Elsevier, vol. 391(C).
    19. Reis, Inês F.G. & Gonçalves, Ivo & Lopes, Marta A.R. & Antunes, Carlos Henggeler, 2020. "A multi-agent system approach to exploit demand-side flexibility in an energy community," Utilities Policy, Elsevier, vol. 67(C).
    20. Abdullah M. Alabdullatif & Enrico H. Gerding & Alvaro Perez-Diaz, 2020. "Market Design and Trading Strategies for Community Energy Markets with Storage and Renewable Supply," Energies, MDPI, vol. 13(4), pages 1-31, February.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2506.22708. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.