MechAgents: Large language model multi-agent collaborations can solve mechanics problems, generate new data, and integrate knowledge

Bo Ni,Markus J. Buehler
2023-11-14
Abstract:Solving mechanics problems using numerical methods requires comprehensive intelligent capability of retrieving relevant knowledge and theory, constructing and executing codes, analyzing the results, a task that has thus far mainly been reserved for humans. While emerging AI methods can provide effective approaches to solve end-to-end problems, for instance via the use of deep surrogate models or various data analytics strategies, they often lack physical intuition since knowledge is baked into the parametric complement through training, offering less flexibility when it comes to incorporating mathematical or physical insights. By leveraging diverse capabilities of multiple dynamically interacting large language models (LLMs), we can overcome the limitations of conventional approaches and develop a new class of physics-inspired generative machine learning platform, here referred to as MechAgents. A set of AI agents can solve mechanics tasks, here demonstrated for elasticity problems, via autonomous collaborations. A two-agent team can effectively write, execute and self-correct code, in order to apply finite element methods to solve classical elasticity problems in various flavors (different boundary conditions, domain geometries, meshes, small/finite deformation and linear/hyper-elastic constitutive laws, and others). For more complex tasks, we construct a larger group of agents with enhanced division of labor among planning, formulating, coding, executing and criticizing the process and results. The agents mutually correct each other to improve the overall team-work performance in understanding, formulating and validating the solution. Our framework shows the potential of synergizing the intelligence of language models, the reliability of physics-based modeling, and the dynamic collaborations among diverse agents, opening novel avenues for automation of solving engineering problems.
Artificial Intelligence,Disordered Systems and Neural Networks,Materials Science,Computation and Language,Machine Learning
What problem does this paper attempt to address?
The problem this paper attempts to address is how to reduce or eliminate the reliance on human experts when solving mechanical problems using numerical methods. Specifically, the authors propose a framework based on multi-agent collaboration (referred to as MechAgents) that solves mechanical problems, generates new data, and integrates knowledge through the dynamic interaction of multiple large language models (LLMs). ### Main Issues Addressed by the Paper: 1. **Reducing reliance on human experts**: Traditional numerical simulation techniques (such as the finite element method) for solving mechanical problems typically require deep technical expertise and experience. These tasks are currently mainly performed by human experts. 2. **Increasing automation**: Existing machine learning methods, while capable of solving end-to-end problems, often lack physical intuition and struggle to flexibly incorporate mathematical or physical insights. 3. **Enhancing problem-solving capabilities**: By leveraging multi-agent collaboration, the ability to solve complex mechanical problems, including elasticity and hyperelasticity issues, is improved. ### Solution: - **Multi-agent collaboration**: Form a team of multiple agents, each responsible for different tasks such as planning, problem formulation, code writing, program execution, and result evaluation. - **Self-correction mechanism**: Achieve self-correction and mutual correction through continuous dialogue between agents, thereby improving the overall performance of the team. - **Dynamic division of labor**: Introduce the concept of division of labor from sociology, allowing each agent to focus on specific tasks, thus enhancing efficiency and accuracy. ### Experimental Validation: - **Two-agent team**: Demonstrated how two agents can solve linear and hyperelastic problems through a self-correction mechanism. - **Multi-agent team**: By introducing more agents and a division of labor mechanism, the problem-solving capability and degree of automation were further improved, especially in handling complex tasks. ### Conclusion: The paper demonstrates the potential of a multi-agent collaboration framework in solving mechanical problems. By combining the intelligence of language models, the reliability of physical modeling, and the dynamic collaboration between agents, it opens up new avenues for the automated solution of engineering problems.