Giter Site home page Giter Site logo

social_simulation's Introduction

๐Ÿ™Œ Unveiling the Truth and Facilitating Change: Towards Agent-based Large-scale Social Movement Simulation

This is the repository for the preprint paper: Unveiling the Truth and Facilitating Change: Towards Agent-based Large-scale Social Movement Simulation.
The webpage can be visited at https://xymou.github.io/social_simulation/.

Table of Contents

Abstract

Social media has emerged as a cornerstone of social movements, wielding significant influence in driving societal change. Simulating the response of the public and forecasting the potential impact has become increasingly important. However, existing methods for simulating such phenomena encounter challenges concerning their efficacy and efficiency in capturing the behaviors of social movement participants. In this paper, we introduce a hybrid framework for social media user simulation, wherein users are categorized into two types. Core users are driven by Large Language Models, while numerous ordinary users are modeled by deductive agent-based models. We further construct a Twitter-like environment to replicate their response dynamics following trigger events. Subsequently, we develop a multi-faceted benchmark SoMoSiMu-Bench for evaluation and conduct comprehensive experiments across real-world datasets. Experimental results demonstrate the effectiveness and flexibility of our method.

Methodology

fm To handle the challenges in conducting large-scale online social movement simulation, this paper introduces a novel hybrid framework for social media user simulation.

RQ1: How to Simulate Large-scale Social Movement Participants?

User engagement in social networks often exhibits a Pareto distribution, where the bulk of content originates from a small fraction of individuals. Thus, those more active and influential such as opinion leaders should be modeled finely, while the silent majority can be controlled by simpler models. The overall framework is illustrated in the Figure, where social media users are divided into core users and ordinary users. The two types of users are driven by different models, to address the cost and efficiency issues of using thousands of LLMs.

  • Core users are empowered by large language models.
  • Ordinary users are driven by conventional agent-based models, such as the Bounded Confidence Model.

RQ2: How to accurately simulate core users and replicate their behaviors within the community?

We build an agent architecture by empowering LLMs with the necessary capabilities for core user simulation. An overview of the agent's architecture is illustrated in the left part of the Figure. Empowered by LLMs, the agent is equipped with a profile module, a memory module, and an action module.

  • Profile Module: each agent's profile contains Demographics, Social Traits and Communication Roles initialized from real data.
  • Memory Module: a memory module is integrated to manipulate memories of agents, including three operations - memory writing, memory retrieval and memory reflection.
  • Action Module: We consider actions that are highly related to information and attitude propagation, including: post, retweet, reply, like, and do nothing.

RQ3: How to Evaluate the Effectiveness of the Simulation?

To comprehensively evaluate the effectiveness of simulation, we consider both micro-level evaluation and macro-level evaluation, focusing on individual user alignment and systemic outcomes respectively.

  • Micro Alignment Evaluation: simulate in single rounds by providing authentic contextual information to each core user agent and assess their decision-making, in terms of stance, content and behavior.
  • Macro System Evaluation: quantify the attitude distribution in a complete multi-round simulation, considering both static attitude distribution and time series of the average attitude.

Dataset

To be in compliance with Twitterโ€™s terms of service, we can not publish the raw data. Instead, we only disclose the original tweet ids, from which you can filter out the users you want to study, to minimize the privacy risk.

For user list we used in our paper, we can only provide the ids id_link.

Code

Coming soon... (Our paper is under review, we will release code as soon as possible once accepted.)

  • For LLM-empowered core users, part of the implementation is based on AgentVerse, many thanks to THUNLP for the open-source resource.
  • For ordinary users supported by conventional ABMs, we use the mesa library to implement the agent-based models.

Citation

Please consider citing this paper if you find this repository useful:

@article{mou2024unveiling,
      title={Unveiling the Truth and Facilitating Change: Towards Agent-based Large-scale Social Movement Simulation}, 
      author={Xinyi Mou and Zhongyu Wei and Xuanjing Huang},
      year={2024},
      journal = {arXiv preprint arXiv: 2402.16333},
}

social_simulation's People

Contributors

xymou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.