paper-with-me

Papers

Code Simulation Challenges for Large Language Models

2024-01-17 · Emanuele La Malfa, Christoph Weinhuber, Orazio Torre, Fangru Lin, Samuele Marro, Anthony Cohn, Nigel Shadbolt, Michael Wooldridge

Many reasoning, planning, and problem-solving tasks share an intrinsic algorithmic nature: correctly simulating each step is a sufficient condition to solve them correctly. This work studies to what extent Large Language Models (LLMs) can simulate coding and algorithmic tasks to provide insights into general capabilities in such algorithmic reasoning tasks. We introduce benchmarks for straight-line programs, code that contains critical paths, and approximate and redundant instructions. We further assess the simulation capabilities of LLMs with sorting algorithms and nested loops and show that a routine's computational complexity directly affects an LLM's ability to simulate its execution. While the most powerful LLMs exhibit relatively strong simulation capabilities, the process is fragile, seems to rely heavily on pattern recognition, and is affected by memorisation. We propose a novel off-the-shelf prompting method, Chain of Simulation (CoSm), which instructs LLMs to simulate code execution line by line/follow the computation pattern of compilers. CoSm efficiently helps LLMs reduce memorisation and shallow pattern recognition while improving simulation performance. We consider the success of CoSm in code simulation to be inspirational for other general routine simulation reasoning tasks.

📄 PDF Abstract BibTeX arXiv:2401.09074

Code (1)

emanuelelm/codesimulation 공식 구현

Similar Papers 제목 키워드 기반

Large Language Models Empowered Agent-based Modeling and Simulation: A Survey and Perspectives

2023-12-19 · Chen Gao, Xiaochong Lan, Nian Li, Yuan Yuan 외

Agent-based modeling and simulation has evolved as a powerful tool for modeling complex systems, offering insights into emergent behaviors and interactions among diverse agents. Integrating large language models into age…

Action GenerationLanguage ModelingLanguage ModellingLarge Language Model

Very Large-Scale Multi-Agent Simulation in AgentScope

2024-07-25 · Xuchen Pan, Dawei Gao, Yuexiang Xie, Yushuo Chen 외

Recent advances in large language models (LLMs) have opened new avenues for applying multi-agent systems in very large-scale simulations. However, there remain several challenges when conducting multi-agent simulations w…

Genie Sim 3.0 : A High-Fidelity Comprehensive Simulation Platform for Humanoid Robot

2026-01-05 · Chenghao Yin, Da Huang, Di Yang, Jichao Wang 외 arxiv

The development of robust and generalizable robot learning models is critically contingent upon the availability of large-scale, diverse training data and reliable evaluation benchmarks. Collecting data in the physical w…

EcoLANG: Efficient and Effective Agent Communication Language Induction for Social Simulation

2025-05-11 · Xinyi Mou, Chen Qian, Wei Liu, Xuanjing Huang 외

Large language models (LLMs) have demonstrated an impressive ability to role-play humans and replicate complex social dynamics. While large-scale social simulations are gaining increasing attention, they still face signi…

Sentence

LLM-Augmented Agent-Based Modelling for Social Simulations: Challenges and Opportunities

2024-05-08 · Onder Gurcan

As large language models (LLMs) continue to make significant strides, their better integration into agent-based simulations offers a transformational potential for understanding complex social systems. However, such inte…