Skip to main content
QUICK REVIEW

[Paper Review] Visual Learning of Arithmetic Operations

Yedid Hoshen, Bezalel Peleg|arXiv (Cornell University)|Jun 7, 2015
Neural Networks and ApplicationsComputer Science20 references14 citations
TL;DR

This paper proposes an end-to-end visual learning framework using a simple feed-forward neural network to learn arithmetic operations—specifically addition and subtraction—directly from images of 7-digit numbers, without explicit supervision on numbers or operators. The model achieves high accuracy in predicting the sum or difference as a visual output, demonstrating that basic arithmetic can be learned purely through visual pattern recognition with minimal architectural complexity.

ABSTRACT

A simple Neural Network model is presented for end-to-end visual learning of arithmetic operations from pictures of numbers. The input consists of two pictures, each showing a 7-digit number. The output, also a picture, displays the number showing the result of an arithmetic operation (e.g., addition or subtraction) on the two input numbers. The concepts of a number, or of an operator, are not explicitly introduced. This indicates that addition is a simple cognitive task, which can be learned visually using a very small number of neurons. Other operations, e.g., multiplication, were not learnable using this architecture. Some tasks were not learnable end-to-end (e.g., addition with Roman numerals), but were easily learnable once broken into two separate sub-tasks: a perceptual extit{Character Recognition} and cognitive extit{Arithmetic} sub-tasks. This indicates that while some tasks may be easily learnable end-to-end, other may need to be broken into sub-tasks.

Motivation & Objective

  • To investigate whether arithmetic operations can be learned purely from visual input and output images without explicit symbolic supervision.
  • To evaluate the feasibility of end-to-end training for visual arithmetic tasks using a simple neural network architecture.
  • To determine which arithmetic operations (e.g., addition, multiplication) are learnable under this visual learning protocol.
  • To analyze the limitations of end-to-end learning when sub-tasks like OCR and arithmetic are combined.
  • To explore whether visual learning can generalize to non-visual cognitive tasks through frame prediction.

Proposed method

  • A feed-forward fully-connected neural network with three hidden layers (256 ReLU units each) and an output layer using sigmoid activation to generate image-like predictions.
  • Input consists of two 15×60 pixel images of 7-digit numbers in standard font, with output being the image of the arithmetic result (e.g., sum).
  • The network is trained using L2 loss (sum of squared differences) between predicted and ground-truth output images over 150,000 training examples.
  • A theoretical analysis constructs a network that implicitly learns addition by detecting digit templates and computing carry propagation via indicator functions in hidden layers.
  • The hidden layer nodes are designed to detect digit presence at each position and compute cumulative sums with carry logic using thresholded indicator functions.
  • The output layer uses a combination of indicator nodes to select the correct digit at each position based on the sum and carry, modeled via a piecewise logical condition.

Experimental results

Research questions

  • RQ1Can a neural network learn addition purely from visual input and output images without explicit supervision on numbers or operators?
  • RQ2Is end-to-end visual learning of arithmetic operations feasible with a simple feed-forward network architecture?
  • RQ3Why does end-to-end training fail for certain tasks like addition with Roman numerals, even when sub-tasks are individually learnable?
  • RQ4Can multiplication be learned using the same visual end-to-end protocol as addition?
  • RQ5What architectural and representational constraints limit the end-to-end learnability of cognitive tasks in visual frame prediction?

Key findings

  • The neural network successfully learned addition and subtraction with high accuracy using only visual input and output images, without explicit number or operator definitions.
  • The model generalized well to unseen number pairs and was robust to strong image noise, indicating effective visual feature learning.
  • Multiplication was not successfully learned under the same architecture, suggesting higher complexity or architectural incompatibility.
  • End-to-end training failed for addition with Roman numerals, despite both OCR and arithmetic sub-tasks being individually learnable, highlighting the challenge of joint optimization.
  • A theoretical analysis showed that a network can be constructed to perform visual addition by detecting digit templates and computing carry propagation via thresholded indicator functions.
  • The results suggest that some cognitive tasks, particularly those involving structured arithmetic, can be learned visually through frame prediction, even without symbolic supervision.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.