arXiv:2611.08314cs.LGNov 2026

Manuscript Offprint

arXiv:2611.08314

Interpretable many-body interaction laws for collective motion from few trajectories

Timon S. Gutleb

Abstract

Models of collective motion usually reduce social interactions to pairwise forces, despite empirical evidence for many-body effects. We introduce the directional atomic cluster expansion (dACE), which adapts the atomic cluster expansion (ACE) of interatomic potentials to self-propelled agents. dACE provides a systematically improvable, exactly equivariant expansion of an agent's acceleration that splits uniquely into 1-, 2-, 3-body and higher contributions, along with a self term for the agent's own past motion that is fitted so that it does not absorb the interactions. On simulated collectives in two and three dimensions with known rules, dACE recovers the interaction law body order by body order from little data, while the neural model SocialNet, the current closest competitor, needs more data, has much larger errors on many-body or chiral rules and is restricted to 2D. On real data sets of tracked zebrafish and golden shiners, the laws learned by dACE agree better between disjoint halves of the data than SocialNet's. The learned laws are interpretable, and in the shiners the 3-body term opposes the pairwise response as neighbourhoods get dense. Finally, we show that next-step prediction accuracy mostly measures self-propulsion and noise rather than the interactions, and suggest more robust combinations of error measures for interaction learning.

Keywords: collective motion, swarms, interaction rules, many-body interactions, atomic cluster expansion (ACE), self-propelled particles, zebrafish, golden shiners

1 Introduction

Many animals move collectively, from insect swarms and fish schools to bird flocks and ungulate herds [1], and robotic swarms are engineered to behave similarly [2]. Understanding the rules by which individuals respond to one another is a central question: in biology, to compare species and test evolutionary hypotheses, and in robotics, to design swarms and to defensively anticipate the behaviour of black-box swarms whose rules are not known.

The classical way to model collective motion is to prescribe social forces between pairs of individuals, such as short-range repulsion, alignment and long-range attraction, and to sum or average them over a neighbourhood [3, 4, 5, 6, 7]. Studies that fit such models to tracked trajectories often fix the functional forms in advance and infer only weights, ranges and the neighbourhood model [8, 9]. Pairwise models are interpretable and cheap, but there is mounting evidence that interactions in animal groups do not reduce to sums or averages of pairwise forces. In golden shiner schools, the force on a fish with two neighbours contains substantial three-body contributions beyond the average of the two pairwise forces [10], and marching locusts, the textbook case of a density-driven alignment transition [11], respond to a virtual swarm in ways that no alignment force captures [12]. Robotic swarms, whose rules are designed rather than evolved, have even less reason to be restricted to pairwise rules. What is missing is a systematic way to learn interaction rules of arbitrary body order from trajectory data, without prescribing their form, and to determine how much each body order contributes.

Methods that learn interaction rules without fixing their form include non-parametric inference of pairwise radial kernels [13, 14], force maps and reconstructions built on pairwise or averaged pairwise contributions [10, 15], sparse regression over prescribed libraries [16], and neural networks, among them networks on interaction graphs [17], neural models of pairs of fish [18] and of influence between animals [19], networks that design interaction rules for desired collective patterns [20] and symbolic models distilled from graph networks [21]. Of the learned models tested on animal groups, only the deep attention network of Heras et al. [22], developed to predict the turns of zebrafish in groups of 60 to 100 and released as SocialNet with an option to predict accelerations, handles large groups and has public code, so we compare with it in 2D (as it does not support 3D). SocialNet's nonlinear aggregation mixes all orders of interaction, so the contribution of each body order is not directly accessible, and, as we show, it needs more data than dACE. Data, however, is scarce in this field, since extracting reliable trajectories of many individuals remains difficult despite much work on tracking [23, 24], and three-dimensional field data require enormous effort and dedicated campaigns [25, 26].

In atomic physics and computational chemistry, the analogous problem of learning many-body interatomic potentials for interacting particles has a rich history of polynomial and body-ordered models [27, 28]. The atomic cluster expansion (ACE) [29] made body-ordered models of atoms efficient at high body order, as a complete, systematically improvable linear expansion in symmetry-adapted basis functions of an atom's neighbourhood [30, 31]. It underlies some of the most accurate interatomic potentials [32, 33] and the highly successful MACE networks [34]. Recently, the self-interaction-free (pure) formulation of Ho, Gutleb and Ortner [35] made the coefficients of each body order separately identifiable while retaining efficiency.

In this paper we introduce the directional atomic cluster expansion (dACE), a pure, exactly equivariant expansion for self-propelled interacting agents in 2D and 3D with a staged self term for their own past motion (Sections 2 and 2.5). We test it on simulated collectives with known 2-, 3- and 4-body rules and on tracked zebrafish and golden shiners, against SocialNet (Sections 3 to 4), and close with lessons for learning interaction laws in general and directions for future work (Section 5). We also release an open-source Julia implementation, dACE.jl [36].

References (44)