Soviet Stochastic Computing
Abstract
A stochastic computer represents a number not by binary digits but by a probability: the share of 1s in a random stream of bits. Multiplying two such numbers then takes a single AND gate, because the probability that two independent streams both show a 1 is the product of their probabilities. The idea was published in 1967 by Brian Gaines in Britain and Wolfgang Poppelbaum in the United States, and in the Soviet Union two schools took it up: Valentin Yakovlev at the Leningrad railway engineering institute (LIIZhT) from 1970, and Boris Kiryanov at the Kazan Aviation Institute from 1969. Their machines never replaced conventional computers. What came into production was a by-product, a hardware random-number generator for the Unified System mainframes, the ES-6903, made at the Kazan computer plant from 1983.
Numbers as Probabilities
In a stochastic computer a value X up to a maximum is represented by the probability p = X/Xmax that a bit in a random sequence is 1. An AND gate fed with two uncorrelated streams multiplies their probabilities. An OR gate approximately adds them; with two extra streams of mutually exclusive random bits, the sum can be formed exactly at half scale. An inverter gives 1 − p, and an AND gate fed with a stream and copies of it delayed by a shift register raises p to a power. Integrators built like those of digital differential analysers, with feedback, perform subtraction, division, and square roots. Converters turn binary codes or analog voltages into random streams, by comparing them with random numbers, and back again, by counting.
The appeal was simplicity and robustness: a single gate does the work of a multiplier, and a flipped bit changes the result only slightly. The cost was speed and accuracy. The error falls only with the square root of the length N of the bit sequence, so each extra decimal digit of precision needs a hundred times more bits, and the streams must be kept uncorrelated, which makes good, fast, and simple random-number generators the central engineering problem.
The Leningrad School
In 1970 Valentin Yakovlev and R. F. Fedorov at LIIZhT presented a paper on using tunnel diodes in stochastic computers, which the school counts as its starting point. They published the monograph Stochastic Computing Machines in 1974; Yakovlev defended his doctoral dissertation on synchronous random-pulse computing devices in 1975, and in 1978 Fedorov, Yakovlev, and G. V. Dobris published Stochastic Information Converters. About twenty candidate dissertations were defended in the school, among them by students from East Germany and Poland; G. Pekh’s doctoral dissertation of 1990 dealt with stochastic devices for statistical testing methods.
The Kazan School
At the computer department of the Kazan Aviation Institute, Boris Kiryanov began a state-funded research project on “computing devices on the probabilistic principle” in 1969, defended a doctoral dissertation on hardware methods of stochastic computation in 1973, and summarised the theory in a monograph of 1975. A small stochastic model machine was built in 1974 to test the principles of stochastic computation and probabilistic simulation, and by 1976 the group had worked out methods for building the machines’ units and studied their accuracy, stability, and speed.
From 1976 the department concentrated on what turned out to be the practical part: a block for statistical modelling that generated random and pseudo-random numbers in hardware, with uniform, normal, exponential, or user-defined distributions, and fed them into a computer. A model won a bronze medal at the Exhibition of Economic Achievements in Moscow in 1981. The design bureau of the Kazan computer plant turned it into the ES-6903 random-number input device for the Unified System, whose specification was signed by the general designer Vitaly Przhiyalkovsky. It passed its state tests in 1982 and went into series production in 1983 (see Kazan Computer Plant). The group later designed random-number generators for the ES-1007 terminal computer, an on-board computer for a Minsk institute, personal computers, and a gate-array chip.
Dead End: Too Slow to Compete
Stochastic computing was a way to build arithmetic from cheap, unreliable components, and it lost because components stopped being expensive and unreliable. The binary computers it was meant to supplement became fast and cheap enough that the slow convergence of random bit streams could not compete. Kiryanov, V. M. Kuznetsov, and V. A. Pesoshin noted in 2014 that the hardware redundancy, “astronomical” thirty years earlier, had become tolerable with large-scale integration, and that stochastic operations could be made parallel. The work that survived was the random-number generation it had required.
📚 Sources
- Kiryanov, B. F., V. M. Kuznetsov, and V. A. Pesoshin: “Вычислительные машины и устройства на вероятностном принципе”, SoRuCom-2014, Russian Virtual Computer Museum (the representation by probabilities, AND multiplication, OR addition and the half-scale correction, inversion, powers, stochastic integrators, converters, random-number generators, the square-root error law; the Leningrad school: 1970 paper, 1974 and 1978 monographs, Yakovlev’s 1975 dissertation, about twenty candidate dissertations, Pekh 1990; the Kazan school: the project from 1969, Kiryanov’s dissertation 1973, the 1974 model, the 1975 monograph, theory by 1976, the statistical modelling block from 1976, the 1981 bronze medal, ES-6903 and Przhiyalkovsky, state tests 1982, series 1983, later generators, the outlook on parallel stochastic computing)
- Gaines, B. R.: “Stochastic computing”, Proceedings of the AFIPS Spring Joint Computer Conference (1967), 149ff.
- Poppelbaum, W. J., C. Afuso, and J. W. Esch: “Stochastic computing elements and systems”, Proceedings of the AFIPS Fall Joint Computer Conference (1967), 635ff.