1. Home
  2. Explore
  3. Computer Science
  4. Analog Computing Resurgence

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Analog Computing Resurgence

Analog Computing and the Rise of Neural Networks

Analog Computers: Fundamentals

Analog computers operate using continuous physical quantities (e.g., voltage, current) rather than discrete binary digits. A voltage oscillating in a circuit can serve as an analog for a physical phenomenon — for instance, the position of a mass on a spring over time. By connecting wires in specific configurations, an analog computer can be programmed to solve differential equations.

  • Example: Damped mass-spring system — The oscilloscope displays the position of the mass over time. Varying damping, spring constant, or mass changes amplitude and oscillation duration in real time.

  • Example: Lorenz system — A model of atmospheric convection exhibiting chaos. The Lorenz attractor (butterfly shape) is visualized, and parameters can be adjusted to see effects immediately.

Advantages of Analog Computing

  • Speed: Analog computers complete many computations extremely fast.

  • Energy efficiency: They consume very little power compared to digital equivalents.

  • Simple operations:

    • Adding two currents: simply connect two wires (digital addition of two 8-bit numbers requires ~50 transistors).

    • Multiplying two numbers: pass a current through a resistor; voltage across it equals I×RI \times RI×R — essentially a multiplication (digital multiplication requires ~1,000 transistors switching zeros and ones).

Disadvantages of Analog Computing

  • Not general-purpose: Cannot run software like Microsoft Word.

  • Lack of exact repeatability: Continuous inputs prevent exact values; repeating the same calculation never yields identical results.

  • Component variation: Manufacturing tolerances (resistors, capacitors) introduce ~1% error typically.

Key takeaway: Analog computers are powerful, fast, and energy-efficient, but also single-purpose, non-repeatable, and inexact — which largely explains why digital computers replaced them once viable.


The Rise of Artificial Neural Networks

The Perceptron (1958)

Frank Rosenblatt built the perceptron, a machine designed to mimic how neurons fire in the brain.

  • Neuron model:

    • A neuron either fires (1) or does not (0).

    • Inputs come from other neurons, each with an adjustable weight (positive = excitatory, negative = inhibitory).

    • The neuron fires if the weighted sum of inputs exceeds a bias threshold; otherwise it does not.

  • Rosenblatt's perceptron architecture:

    • Input: 400 photocells arranged in a 20×20 pixel grid. Each pixel's brightness (activation) is between 0 and 1.

    • All input neurons connect to a single output neuron via adjustable weights.

    • Output neuron fires if the weighted sum (a vector dot product) exceeds the bias.

  • Training algorithm:

    • Initialize all weights to zero.

    • For each training image:

      • If the output is correct, no change.

      • If the output is wrong (e.g., should have fired but didn't), add the input activations to the weights.

      • If it fired when it shouldn't, subtract the input activations from the weights.

    • This algorithm converges if the two categories are linearly separable.

  • Capabilities and hype:

    • Could distinguish rectangles from triangles, different letters, and reportedly even cats from dogs (though later disputed).

    • The New York Times famously claimed the perceptron "will be able to walk, talk, see, write, reproduce itself, and be conscious of its existence."

    • Reality: The perceptron was severely limited — it could not actually tell dogs from cats.

  • The first AI winter: In 1969, Minsky and Papert's book criticized the perceptron's limitations. This led to a bust period for neural networks and AI. Rosenblatt died in a sailing accident on his 43rd birthday.

Multi-Layer Networks: ALVINN (1980s)

A resurgence occurred in the 1980s when researchers at Carnegie Mellon created ALVINN, one of the first self-driving cars.

  • Architecture: A neural network with a hidden layer of artificial neurons between input and output layers.

    • Input: 30×32 pixel images of the road (shown as 60×64 in the demonstration).

    • Hidden layer: 4 neurons, each connected to every input via adjustable weights.

    • Output: 32 neurons determining steering angle.

    • Movement between layers uses matrix multiplication: input activations × weights.

  • Training: A human drove, providing correct steering angles. All weights were adjusted via backpropagation (a method for updating weights in multi-layer networks).

  • Results: The network learned to recognize road markings — visible in the weight visualizations as patterns emerged. The output steering angle converged to match human driving.

  • Limitation: Top speed was only 1–2 km/h because the computer was too slow to perform matrix multiplications faster.

The Second AI Lull (1990s)

Despite progress, neural networks struggled with seemingly simple tasks like distinguishing cats from dogs. Researchers debated whether the problem was software (bad models of intelligence) or hardware (insufficient computing power). This led to another downturn in AI.

The ImageNet Revolution (2006–2012)

Researcher Fei-Fei Li hypothesized that neural networks needed more data. From 2006 to 2009, she created ImageNet — a database of 1.2 million human-labeled images, the largest at the time.

  • ImageNet Large Scale Visual Recognition Challenge (2010–2017):

    • Software competed to classify images into 1,000 categories (including 90 dog breeds).

    • A neural network for this contest would have an output layer of 1,000 neurons, one per category.

    • Performance measured by top-5 error rate — how often the correct category was not among the network's top five guesses.

  • Progress:

    • 2010: Best top-5 error rate 28.2% (nearly 1/3 wrong).

    • 2011: 25.8%.

    • 2012: AlexNet (University of Toronto) achieved 16.4% — a dramatic improvement.

AlexNet and the Deep Learning Breakthrough

AlexNet set itself apart by size and depth:

  • 8 layers

  • 500,000 neurons total

  • 60 million weights and biases to adjust

  • Each image required 700 million math operations

  • Training innovation: Used GPUs (graphical processing units) — traditionally for graphics — to perform fast parallel computations.

Key insight from AlexNet paper (cited over 100,000 times): The scale of the neural network is key to success. More computation yields better performance.

  • Aftermath: Top-5 error rate plummeted:

    • 2015: 3.6% (better than human performance). This network had 100 layers of neurons.

    • The trend is clear: ever larger neural networks require ever more computation.


Why Digital Computing Faces Limits

Energy Consumption

Training a single neural network consumes electricity comparable to the yearly usage of three households.

The Von Neumann Bottleneck

Virtually all modern digital computers store data in memory and access it over a bus. When performing huge matrix multiplications, most time and energy is spent fetching weight values from memory, not on actual computation.

The End of Moore's Law

For decades, transistor count on a chip doubled every ~2 years. Now transistor size approaches the size of an atom, creating fundamental physical barriers to further miniaturization.


The Analog Comeback: Perfect Storm for Analog Computers

Digital computers are hitting physical limits, while neural networks (which rely heavily on matrix multiplication) are exploding in popularity. Crucially, neural networks do not require high precision — a 96% confidence vs. 98% confidence for "chicken" makes no practical difference. This tolerance for variability overcomes one of analog computing's traditional drawbacks.

Mythic AI: Analog Chips for Neural Networks

A startup in Texas, Mythic AI, has designed analog chips specifically to run neural networks.

  • Application examples:

    • Augmented/virtual reality: quickly capture user pose and render in virtual world.

    • Depth estimation from a single webcam (heat map: bright = close, dark = far).

    • Security cameras, autonomous systems, manufacturing inspection (e.g., spotting bad Frito-Lay chips on conveyor belts).

  • How it works:

    • Repurpose digital flash storage cells (normally used as on/off switches storing 0 or 1) as variable resistors.

    • By placing a precise number of electrons on the floating gate, the cell's resistance is set to any value.

    • When a small voltage is applied, current I=V/R=V×GI = V / R = V \times GI=V/R=V×G, where GGG is conductance (reciprocal of resistance).

    • This single cell performs multiplication: voltage (activation) × conductance (weight) = current (product).

    • Cells are wired so currents from multiple multiplications add together — completing a matrix multiplication in one step.

  • Performance claims:

    • Chip does 25 trillion math operations per second at ~3 watts of power.

    • Comparable digital systems (GPUs) can do 25–100 trillion ops/sec but consume 50–100 watts and cost thousands of dollars.

    • Note: digital systems are general-purpose; Mythic's chip is specialized for AI inference.

Challenge: Signal Distortion

If matrix multiplications are performed entirely in the analog domain, the signal becomes too distorted after ~50 sequential operations. The solution is to convert between analog and digital domains between processing blocks: analog → digital → next block → analog → and so on. This preserves signal integrity.


Historical Parallel: Rosenblatt's Analog Perceptron

When Rosenblatt first designed his perceptron, he used a digital IBM computer but found it too slow. He then built a custom analog computer with variable resistors and small motors to adjust them. His core ideas — neural networks working better in analog — may have been ahead of their time.


The Future: Analog as a Starting Point?

While digital technology has dominated music, pictures, video, and computing for 50 years, analog may be better suited for modern tasks. The human brain itself is a hybrid: digital in that neurons either fire or not, but analog in that thinking occurs everywhere, all at once. True artificial intelligence — machines that think like humans — may require the power of analog computing.


Summary Comparison: Analog vs. Digital for AI

Property

Analog Computer

Digital Computer

Operation

Continuous voltages/currents

Discrete zeros and ones

Speed for matrix multiplication

Extremely fast (single step)

Slower (fetch from memory, compute)

Power efficiency

Very low (watts)

High (tens to hundreds of watts)

Precision

Low (~1% error)

High (exact bit-level accuracy)

Repeatability

Poor (component variation)

Excellent

Generality

Single-purpose (e.g., differential equations, neural networks)

General-purpose (any software)

Manufacturing

Sensitive to component tolerances

Highly standardized

Best suited for

AI inference, specialized tasks

General computing, training, high-precision work

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent