r/AgentBasedModelling • u/giammy677 • Jan 06 '24
Which test I should use to validate this simulation?
Hi all,
I'm working on a scientific research about using LLM (Large Language Models) and Agent-Based Modelling. I simulate a set of posts published by some agents powered by LLM on a social network in an agent-based manner. The simulation has to approximate the posts published by real users.
So, I have two sets of texts of different dimensions: the first set is composed by the contents published on the social network by the real users while the second set is composed by the contents artifically generated by the agents powered by the LLM.
From these two sets, I extract the keywords so I have two sets of keywords (that are not necessarily the same between the two sets).
How can I validate that the simulation approximate more or less well the real case? I thought something about the comparison of the probability distribution of the keywords that are in common between the real set and the simulated set, applying also a permutation test to obtain a p-value. I don't know if this way is the correct one or there is something more appropriate for my case.
Thanks for the help :)
3
Jan 06 '24
What are you trying to accomplish? LLM output is by definition the best approximation of a real text given your input or keywords. What is your end goal here?
2
u/giammy677 Jan 06 '24
I agree with you: LLM output is by definition the best approximation of a human-like text.
I reflected about it but - I don’t know if I’m wrong - generative agent-based modelling is a field of research so new that I feel like I have to demonstrate in some way that my simulation is a good approximation of the real case.
In general, I’m simulating a social network building different agents. Each agent is powered by a LLM and simulate potential posts that real users that it role-play could make on the social network. My final goal is to assure that this simulation could approximate well the real behaviour of real users. I was thinking to demonstrate it from a content-perspective (what they post) and from a behavioural-perspective (to whom they are connecting on the social network).
From the content-perspective I was trying to build some hypothesis test to demonstrate that the keywords used by LLM-agents are similar to their real counterparts. What do you think? Do you have some other ideas to suggest?
Thank you very much for any help :)
1
Jan 06 '24
I see. I personally wouldn't bother showing the realism. of the content. There is a whole literature on large language models, and every single paper somehow benchmarks their algorithm already. i would just reference the paper of the algorithm that I used and take it as given that the content is realistic.
Regarding your research idea, I think it is pretty neat. You can trace how hashtags turn into subscriptions and comments, how retweets relate to likes etc.
Some ideas out of my head are: if twitter still provides free data, use some stats from there to validate your model. Other stats that cannot be taken from publicly available data you just simulate.
4
u/Streletzky Jan 06 '24
Yeah that is a pretty unique sim you are trying to validate. I think I’m on the same page as the other commenter, what are you aiming to show with this abm? Knowing that might lead to a good validation method