Emergence of machine language: towards symbolic intelligence with neural networks

Yuqi Wang, Xu-Yao Zhang, Cheng‐Lin Liu, Tieniu Tan, Zhaoxiang Zhang

TL;DR

This paper introduces "machine language," a novel discrete representation learned by AI agents through a collaborative "speak, guess, and draw" game. This approach aims to bridge the gap between human symbolic reasoning and machine continuous representations, leading to more interpretable and robust AI systems.

What Problem Does This Paper Address?

Current AI systems often rely on either discrete symbols (like human language) or continuous features (used by neural networks). While continuous features excel at high-dimensional tasks and achieve impressive accuracy, they suffer from a lack of interpretability, poor generalization, and vulnerability to attacks. Discrete symbols, on the other hand, offer interpretability and robust reasoning but are less adept at capturing complex, continuous data. This paper addresses the challenge of reconciling these two paradigms by proposing a "machine language" that combines the strengths of both, aiming for AI that is both powerful and understandable.

Methods

The core of the proposed method is a "speak, guess, and draw" (SGD) game played by two AI agents: a speaker (Agent A) and a listener (Agent B).

  • Spontaneous Emergence: The machine language emerges organically through the agents' interactions, without relying on pre-existing human language knowledge or explicit annotations. This is inspired by the natural evolution of early human languages.
  • Encoder-Decoder Architecture: A neural network model is employed, with the speaker acting as an encoder and the listener as a decoder.
  • The speaker processes an input image using a Convolutional Neural Network (CNN) to extract features, which are then fed into a Recurrent Neural Network (RNN) with Long Short-Term Memory (LSTM) units to generate a variable-length sequence of discrete symbols – the machine language.
  • The listener receives this symbolic sequence and uses another RNN to produce a "query" vector.
  • Collaborative Tasks: Agent B (listener) uses this query to perform two main tasks:
  • Guessing: Identify the target image from a batch of distractors, having not seen the original image.
  • Drawing: Visually reconstruct the original image based on its understanding of the machine language.
  • Learning Objective: The agents are trained using rewards for successful task completion and punishments for failure. A regularization task is also introduced to encourage language flexibility by ensuring consistent listener queries across different symbolic representations of the same image.

Datasets

The experiments were conducted on five datasets:

  • MNIST
  • Animal
  • Sequence
  • VOC
  • COCO

These datasets represent a range of image types and complexities, allowing for evaluation across different domains.

Key Insights and Ideas

  • AI Can Develop Its Own Language: The most significant insight is that AI agents can spontaneously develop a functional, symbolic language through cooperative interaction, even without explicit human linguistic input.
  • Bridging Symbolic and Sub-symbolic AI: The proposed "machine language" offers a concrete pathway to integrate the interpretability and reasoning of symbolic AI with the powerful perceptual capabilities of deep neural networks.
  • Interpretability and Robustness: The discrete nature of the emergent machine language is shown to be more interpretable and robust to noise and adversarial attacks compared to continuous features, a critical step towards trustworthy AI.
  • Compositionality for Generalization: The paper suggests that the compositional nature of this emergent language can lead to better generalization, especially in out-of-distribution scenarios, by allowing AI to combine learned symbols to represent novel concepts.

Key Results

  • Improved Guessing Accuracy: The training accuracy plot (Figure 1c, left) shows a clear and consistent improvement in the listener agent's ability to guess the correct image as training progresses, demonstrating the effectiveness of the learned machine language.
  • Superior to Random Guessing: The test accuracy plot (Figure 1c, right) indicates that the agents' performance significantly surpasses random guessing across all tested datasets, highlighting the utility of the emergent language.
  • Robustness Demonstrated: Experiments showed that discrete machine language representations were more robust to noise and adversarial perturbations compared to continuous features, maintaining higher classification accuracy.

Limitations and Future Work

  • Limited Scope of Language: The current "machine language" is limited to a vocabulary of 26 English characters and a specific range of sequence lengths. Future work could explore richer vocabularies and more complex grammatical structures.
  • Simplicity of the Game: The "speak, guess, and draw" game, while effective, is a simplified scenario. Expanding to more complex multi-agent interactions and tasks would be a natural next step.
  • Interpretability of Symbols: While the language is discrete and thus more interpretable than raw continuous features, the specific semantic meaning of individual symbols is not explicitly defined or guaranteed to be human-understandable. Further research could focus on aligning machine language symbols with human concepts.
  • Generalization to Unknown Categories: The paper posits better generalization for out-of-distribution scenarios but acknowledges that direct comparisons for known categories might show little difference. Further investigation into the extent and mechanisms of this generalization is warranted.

Summary updated

BibTeX
@inproceedings{wang2024emergence,
  author = {Yuqi Wang and Xu-Yao Zhang and Cheng‐Lin Liu and Tieniu Tan and Zhaoxiang Zhang},
  title = {{Emergence of machine language: towards symbolic intelligence with neural networks}},
  booktitle = {National},
  year = {2024},
  doi = {10.1093/nsr/nwad317},
}
Figure