Neural Mass Action