IDEAS home Printed from https://ideas.repec.org/p/mpg/wpaper/2024_01.html
   My bibliography  Save this paper

Integrating machine behavior into human subject experiments: A user-friendly toolkit and illustrations

Author

Listed:
  • Christoph Engel

    (Max Planck Institute for Research on Collective Goods)

  • Max R. P. Grossmann

    (University of Cologne)

  • Axel Ockenfels

    (University of Cologne, Max Planck Institute for Research on Collective Goods)

Abstract

Large Language Models (LLMs) have the potential to profoundly transform and enrich experimental economic research. We propose a new software framework, “alter_ego†, which makes it easy to design experiments between LLMs and to integrate LLMs into oTree-based experiments with human subjects. Our toolkit is freely available at github.com/mrpg/ego. To illustrate, we run differently framed prisoner’s dilemmas with interacting machines as well as with human machine interaction. Framing effects in machine-only treatments are strong and similar to those expected from previous human-only experiments, yet less pronounced and qualitatively different if machines interact with human participants.

Suggested Citation

  • Christoph Engel & Max R. P. Grossmann & Axel Ockenfels, 2023. "Integrating machine behavior into human subject experiments: A user-friendly toolkit and illustrations," Discussion Paper Series of the Max Planck Institute for Research on Collective Goods 2024_01, Max Planck Institute for Research on Collective Goods.
  • Handle: RePEc:mpg:wpaper:2024_01
    as

    Download full text from publisher

    File URL: https://www.coll.mpg.de/pdf_dat/2024_01online.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Yiting Chen & Tracy Xiao Liu & You Shan & Songfa Zhong, 2023. "The emergence of economic rationality of GPT," Proceedings of the National Academy of Sciences, Proceedings of the National Academy of Sciences, vol. 120(51), pages 2316205120-, December.
    2. Dufwenberg, Martin & Gächter, Simon & Hennig-Schmidt, Heike, 2011. "The framing of games and the psychology of play," Games and Economic Behavior, Elsevier, vol. 73(2), pages 459-478.
    3. Fischbacher, Urs & Gachter, Simon & Fehr, Ernst, 2001. "Are people conditionally cooperative? Evidence from a public goods experiment," Economics Letters, Elsevier, vol. 71(3), pages 397-404, June.
    4. Anna Dreber & Tore Ellingsen & Magnus Johannesson & David Rand, 2013. "Do people care about social context? Framing effects in dictator games," Experimental Economics, Springer;Economic Science Association, vol. 16(3), pages 349-371, September.
    5. John J. Horton, 2023. "Large Language Models as Simulated Economic Agents: What Can We Learn from Homo Silicus?," NBER Working Papers 31122, National Bureau of Economic Research, Inc.
    6. Smith, Vernon L, 1976. "Experimental Economics: Induced Value Theory," American Economic Review, American Economic Association, vol. 66(2), pages 274-279, May.
    7. Steve Phelps & Yvan I. Russell, 2023. "Investigating Emergent Goal-Like Behaviour in Large Language Models Using Experimental Economics," Papers 2305.07970, arXiv.org.
    8. John J. Horton, 2023. "Large Language Models as Simulated Economic Agents: What Can We Learn from Homo Silicus?," Papers 2301.07543, arXiv.org.
    9. Friederike Mengel, 2018. "Risk and Temptation: A Meta‐study on Prisoner's Dilemma Games," Economic Journal, Royal Economic Society, vol. 128(616), pages 3182-3209, December.
    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. Masiliūnas, Aidas & Nax, Heinrich H., 2020. "Framing and repeated competition," Games and Economic Behavior, Elsevier, vol. 124(C), pages 604-619.
    2. Fosgaard, Toke R. & Hansen, Lars Gårn & Wengström, Erik, 2014. "Understanding the nature of cooperation variability," Journal of Public Economics, Elsevier, vol. 120(C), pages 134-143.
    3. Jiafu An & Difang Huang & Chen Lin & Mingzhu Tai, 2024. "Measuring Gender and Racial Biases in Large Language Models," Papers 2403.15281, arXiv.org.
    4. Nunzio Lor`e & Babak Heydari, 2023. "Strategic Behavior of Large Language Models: Game Structure vs. Contextual Framing," Papers 2309.05898, arXiv.org.
    5. Bauer, Kevin & Liebich, Lena & Hinz, Oliver & Kosfeld, Michael, 2023. "Decoding GPT's hidden "rationality" of cooperation," SAFE Working Paper Series 401, Leibniz Institute for Financial Research SAFE.
    6. Gächter, Simon & Kölle, Felix & Quercia, Simone, 2022. "Preferences and perceptions in Provision and Maintenance public goods," Games and Economic Behavior, Elsevier, vol. 135(C), pages 338-355.
    7. Philip Brookins & Jason DeBacker, 2024. "Playing games with GPT: What can we learn about a large language model from canonical strategic games?," Economics Bulletin, AccessEcon, vol. 44(1), pages 25-37.
    8. Fosgaard, Toke R. & Hansen, Lars G. & Wengström, Erik, 2019. "Cooperation, framing, and political attitudes," Journal of Economic Behavior & Organization, Elsevier, vol. 158(C), pages 416-427.
    9. Kevin Leyton-Brown & Paul Milgrom & Neil Newman & Ilya Segal, 2023. "Artificial Intelligence and Market Design: Lessons Learned from Radio Spectrum Reallocation," NBER Chapters, in: New Directions in Market Design, National Bureau of Economic Research, Inc.
    10. Desmet, Pieter T.M. & Engel, Christoph, 2021. "People are conditional rule followers," Journal of Economic Psychology, Elsevier, vol. 85(C).
    11. Thorsten Chmura & Christoph Engel & Markus Englerth, 2013. "Selfishness As a Potential Cause of Crime. A Prison Experiment," Discussion Paper Series of the Max Planck Institute for Research on Collective Goods 2013_05, Max Planck Institute for Research on Collective Goods.
    12. Martinsson, Peter & Medhin, Haileselassie & Persson, Emil, 2016. "Framing and Minimum Levels in Public Good Provision," Working Papers in Economics 656, University of Gothenburg, Department of Economics.
    13. Bodo Sturm & Joachim Weimann, 2006. "Experiments in Environmental Economics and Some Close Relatives," Journal of Economic Surveys, Wiley Blackwell, vol. 20(3), pages 419-457, July.
    14. Antoni Bosch-Domènech & Joaquim Silvestre, 2017. "The role of frames, numbers and risk in the frequency of cooperation," International Review of Economics, Springer;Happiness Economics and Interpersonal Relations (HEIRS), vol. 64(3), pages 245-267, September.
    15. Ansink, Erik & Bouma, Jetske, 2013. "Framed field experiments with heterogeneous frame connotation," MPRA Paper 43975, University Library of Munich, Germany.
    16. Loukas Balafoutas & Helena Fornwagner, 2017. "The limits of guilt," Journal of the Economic Science Association, Springer;Economic Science Association, vol. 3(2), pages 137-148, December.
    17. Toke Reinholt Fosgaard & Lars Gårn Hansen & Erik Wengström, 2017. "Framing and Misperception in Public Good Experiments," Scandinavian Journal of Economics, Wiley Blackwell, vol. 119(2), pages 435-456, April.
    18. Zengqing Wu & Run Peng & Xu Han & Shuyuan Zheng & Yixin Zhang & Chuan Xiao, 2023. "Smart Agent-Based Modeling: On the Use of Large Language Models in Computer Simulations," Papers 2311.06330, arXiv.org, revised Dec 2023.
    19. Valerio Capraro & David G. Rand, 2018. "Do the Right Thing: Experimental evidence that preferences for moral behavior, rather than equity or efficiency per se, drive human prosociality," Judgment and Decision Making, Society for Judgment and Decision Making, vol. 13(1), pages 99-111, January.
    20. Robert Ullmann & Christoph Watrin, 2008. "Comparing Direct and Indirect Taxation: The Influence of Framing on Tax Compliance," European Journal of Comparative Economics, Cattaneo University (LIUC), vol. 5(1), pages 23-56, June.

    More about this item

    Keywords

    Software for experiments; large language models; humanmachine interaction; framing;
    All these keywords.

    JEL classification:

    • C91 - Mathematical and Quantitative Methods - - Design of Experiments - - - Laboratory, Individual Behavior
    • C92 - Mathematical and Quantitative Methods - - Design of Experiments - - - Laboratory, Group Behavior
    • D91 - Microeconomics - - Micro-Based Behavioral Economics - - - Role and Effects of Psychological, Emotional, Social, and Cognitive Factors on Decision Making
    • O33 - Economic Development, Innovation, Technological Change, and Growth - - Innovation; Research and Development; Technological Change; Intellectual Property Rights - - - Technological Change: Choices and Consequences; Diffusion Processes
    • L86 - Industrial Organization - - Industry Studies: Services - - - Information and Internet Services; Computer Software

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:mpg:wpaper:2024_01. 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: Marc Martin (email available below). General contact details of provider: https://edirc.repec.org/data/mppggde.html .

    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.