Abstract
Current multi-agent emergent communication research often treats numerical values as discrete categorical labels, hindering an agent's ability to generalize to unseen quantities. This paper proposes a two-stage training framework inspired by human cognitive development. By first instilling a pre-linguistic "number sense" and subsequently training agents on relational arithmetic tasks, agents develop an emergent language that reflects the intrinsic order of numbers. Experimental results on the NumWorld dataset demonstrate that this approach enables high-accuracy generalization to out-of-distribution quantities for both counting and arithmetic tasks.
Introduction
In the field of multi-agent emergent communication, researchers study how AI agents develop their own languages to solve collaborative tasks. Historically, this research has focused heavily on qualitative attributes, such as an object's shape or color. However, agents notoriously struggle with quantitative concepts. Standard training regimes often result in agents treating "five" and "six" as unrelated symbols, much like "red" and "blue," failing to capture the underlying numerical continuum. This lack of structural understanding prevents agents from generalizing their knowledge to quantities outside their training set.
The NumGame Framework
To address these challenges, the authors introduce NumGame, a referential game involving a Speaker and a Listener. The Speaker observes visual scenes and transmits discrete messages to the Listener, who must then infer the total quantity or the result of an arithmetic operation.
The training process follows a two-stage curriculum inspired by human cognitive development:
- NumSen (Number Sense Pretraining): Before language acquisition, the Speaker's vision encoder is pretrained to estimate quantities. This stage mimics human psychology by distinguishing between subitizing (exact recognition of small sets: 1-4) and magnitude estimation (approximate recognition of larger sets using powers of 2).
- NumRel (Numerical Relations): Agents are trained to communicate and perform arithmetic (addition, subtraction, maximization). Crucially, the authors employ a "soft label" technique where the loss function accounts for numerical distance, penalizing "near misses" less severely than distant errors. This forces the model to recognize the ordered nature of the number line.
Experimental Setup: NumWorld
The study utilizes NumWorld, a synthetic dataset where images contain varying numbers of objects (1 to 32). To rigorously test generalization, the dataset is strictly partitioned:
- Sen: Quantities used for pre-linguistic vision training.
- Lang: Quantities used for language and arithmetic training.
- OOD (Out-of-Distribution): Strictly withheld quantities (e.g., 13, 18, 25) used to evaluate zero-shot and few-shot generalization.
Results and Discussion
The proposed framework significantly outperforms baseline models that treat numbers as isolated classes. In the primary evaluation on the OOD dataset, the full two-stage method (+NumSenRel) achieved a remarkable 97% accuracy in counting unseen quantities, massively outperforming the baseline approach which scored only 71%. This suggests that the pre-linguistic number sense provides a foundation that allows agents to extrapolate counting rules to novel visual inputs.
In the more challenging arithmetic tasks, the performance gap was even more pronounced. When performing calculations on unseen numbers, the full method maintained an 83% accuracy rate. In contrast, the baseline approach, which lacked the structured pretraining and relational loss, completely collapsed, achieving only 18% accuracy.
Beyond raw accuracy, the researchers analyzed the structure of the emergent language using Adjusted Mutual Information (AMI). The full method achieved an AMI of 0.86 for counting and 0.83 for calculating. These high scores prove that the agents developed a highly stable and systematic numerical language. Furthermore, the agents naturally adopted a lexicographic order where the alphabetical sequence of their messages mirrored the ascending numerical order of the quantities represented. This indicates that the arithmetic objective acted as a powerful inductive bias for learning the relational structure of numbers.
Conclusion
By combining human-inspired pre-linguistic training with relational arithmetic tasks, AI agents can move beyond simple label mapping to a genuine understanding of numerical concepts. This work highlights the importance of curriculum design and inductive biases in developing robust, generalizable emergent communication protocols. Future research will explore more complex mathematical operations and the specific grammatical structures of these emergent numerical languages.
Summary updated