Building Altruistic and Moral AI Agent with Brain-inspired Affective Empathy Mechanisms

Feifei Zhao, Hui Feng, Haibo Tong, Zhengqiang Han, Enmeng Lu, Yinqian Sun, Yi Zeng · DOI

Abstract

Ensuring AI alignment with human values often relies on external constraints or reward shaping, which can fail in novel scenarios. This paper presents a brain-inspired Spiking Neural Network (SNN) that implements an affective empathy mechanism to drive intrinsic altruism. By modeling the Mirror Neuron System (MNS) and dopamine-regulated motivation circuits, the proposed agent learns to associate others' distress with its own negative emotional states. This "self-other resonance" creates an internal drive to help others, effectively aligning the agent's self-interest with prosocial behavior.

Introduction: The Challenge of Intrinsic Morality

A fundamental hurdle in AI safety is creating agents that act ethically without exhaustive rulebooks. Traditional methods like deontology (rule-following) or consequentialism (maximizing external rewards) often lack the flexibility of human morality. Human altruism is largely driven by empathy—a biological mechanism where perceiving another's pain triggers a similar internal state, motivating an individual to alleviate that distress. This research aims to replicate these neural circuits to foster "natural" altruistic behavior in AI.

Methodology: Brain-Inspired SNN Architecture

The researchers designed a multi-region SNN architecture that mimics the human brain's empathy circuits. The system is divided into two primary modules: the Affective Empathy Module and the Altruistic Decision-making Module.

The brain-inspired SNN architecture, featuring the Affective Empathy Module and the Altruistic Decision-making Module.

The architecture relies on several key biological principles:

  1. Mirror Neuron System (MNS): Located in the motor and perception regions, the MNS facilitates "self-other resonance." Using Spike-Timing-Dependent Plasticity (STDP), the agent learns to map the outward expressions of others' distress onto its own internal emotional representations.
  2. Dopamine Modulation: The model simulates the inhibitory link between the Anterior Cingulate Cortex (ACC) and the Ventral Tegmental Area (VTA). When the agent perceives another's distress, its "negative emotion" neurons fire, suppressing dopamine release ($DA_{in-emp}$).
  3. Intrinsic Motivation: Since the agent is designed to maximize its internal reward (dopamine), it becomes intrinsically motivated to stop the other agent's distress to restore its own reward levels.

Experimental Evaluation

The model was tested in three environments: a grid-world "Altruistic Rescue" task, a Multi-Agent Markov Snowdrift Game (MSG), and a physical robot interaction using Nao platforms.

In the rescue task, the agent must decide whether to pursue its own goal or divert to save another agent in a danger zone. The transition from self-centered behavior to empathic altruism is illustrated below:

Agent A transitions from experiencing its own distress to empathizing with Agent B, leading to altruistic moral behavior.

Key Insights

  • The Empathy Threshold: Behavioral shifts are non-linear. Agents with empathy levels ($F_e$) below 20% remain selfish, but once this threshold is crossed, they prioritize altruism.
  • Strategic Empathy: In social dilemmas like the Snowdrift Game, agents with moderate empathy levels developed sophisticated "delayed-clearing" strategies to avoid exploitation by "free-riders."
  • Cognitive Empathy as a Defense: To prevent manipulation by agents feigning distress, the authors integrated a cognitive empathy layer for perspective-taking, allowing the agent to distinguish genuine need from adversarial deception.

Results and Performance

The brain-inspired model significantly outperformed standard baselines. In the Snowdrift Game, it cleared an average of 8.5 snowdrifts, compared to 4.28 for Deep Q-Networks (DQN) and 6.2 for inequity aversion models. Furthermore, the model demonstrated high stability with a standard deviation in behavior of only 1.39, suggesting that intrinsic empathy provides more consistent moral alignment than external reward shaping. Computationally, the model is efficient, requiring only 16K parameters and ~70 MFLOPS per action.

Conclusion and Future Directions

This work demonstrates that biological empathy mechanisms can be effectively translated into SNNs to create intrinsically moral AI. While currently focused on the "Care/Harm" axis of morality, future work will explore more complex social dimensions like fairness and loyalty. Additionally, the team aims to scale these mechanisms to high-dimensional environments, integrating vision and language processing to allow robots to navigate complex real-world social interactions.

Summary updated

BibTeX
@article{zhao2025building,
  author = {Feifei Zhao and Hui Feng and Haibo Tong and Zhengqiang Han and Enmeng Lu and Yinqian Sun and Yi Zeng},
  title = {{Building Altruistic and Moral AI Agent with Brain-inspired Affective Empathy Mechanisms}},
  journal = {IEEE Transactions on Affective Computing},
  year = {2025},
  doi = {10.1109/taffc.2025.3627936},
}
Figure