I suggest to take a look at:

  
      

      arXiv.org
  

  
    

A Primer for Neural Arithmetic Logic Modules 4

  Neural Arithmetic Logic Modules have become a growing area of interest,
though remain a niche field. These units are small neural networks which aim to
achieve systematic generalisation in learning arithmetic operations such as {+,
-, *, \} while...