A Conversation with Professor Rakesh Kumar
Bitcoin mining is the cornerstone to the bitcoin framework and has helped make it today’s most popular cryptocurrency. The competition for verifying transactions is fierce. Any advantage can lead to significant gains in profits for that particular miner.
Finding these advantages has been the focus of a team in the Electrical and Computer Engineering department at the University of Illinois at Urbana-Champaign. Matthew Vilim, Henry Duwe and Professor Rakesh Kumar have been exploring how approximation mining circuits, which trade off reliability with area and delay, affect a miner’s hash rate and, therefore, profits. In a peer-reviewed study, approximation was shown to potentially increase mining profits by up to 30%. The paper will premier at the Design and Automation Conference in San Francisco this June.
CoinReport had the pleasure to review an early draft of the paper and speak with Professor Kumar. In our interview below, Professor Kumar discusses approximation, the team’s study and its implications for bitcoin mining.
CoinReport: Can you tell us a bit about your academic background?
Prof. Kumar: I am an Associate Professor in the Electrical and Computer Engineering department at the University of Illinois at Urbana-Champaign where I direct a research group of around ten students focusing on different aspects of computer architecture, low power and error resilient computer systems, and approximate computing. My research group includes Matthew Vilim and Henry Duwe, the students who led this work on approximate bitcoin mining.
CoinReport: What got you interested in cryptocurrencies?
Prof. Kumar: While I have always been intrigued by the idea of cryptocurrencies, two relatively recent developments spurred my recent interest in the topic:
First, cryptocurrencies and blockchain have started being talked about as a way to enable an internet-of-everything future. The idea is that if different devices in our lives (e.g., cars, watches, washing machines) need to communicate and transact with each other as well as the internet while still being sufficiently distrustful of each other, trustless communication and transaction protocols such as blockchain may become key. For an academic researcher like me, this is very interesting because this enhances the generality and potential impact of any work on efficient hardware supporting blockchain and cryptocurrency.
Second, mining economics has phased out CPUs and GPUs – mining is largely being done using ASICs and FPGAs. This allows an easier path for a researcher to make an impact since it is very difficult to convince a CPU or GPU manufacturer to make changes to their design to support one application. The question that we started asking in our group is: what role can hardware play in making blockchain protocol and associated applications, such as cryptocurrencies, more efficient and secure? Our work on approximate bitcoin mining is our first step in that direction.
CoinReport: Can you walk our readers through approximation? Why is this valuable to bitcoin mining?
Prof. Kumar: Many applications have inherent error tolerance. So, even when they are run on hardware that is not guaranteed to produce correct results all the time, their output tends to be acceptable. As a common example, many signal processing applications (e.g., image, video, audio,) tend to be tolerant to hardware errors to a significant degree.
The key insight behind approximate computing is that hardware that is not required to guarantee correct results all the time can be built to be much smaller, faster, and lower power compared to a hardware that is not allowed to produce any errors during operation. The exact degree of benefits depend on the number of errors allowed during operation. So, the more error tolerant an application, the more efficient can the hardware designed for that application. Such hardware that is allowed errors during operation is called approximate hardware.
The primary observation of our work is that bitcoin mining is error tolerant. Two characteristics of the mining process make it error tolerant:
First, mining is an embarrassingly parallel application. Each nonce can be be used to generate bitcoin hashes independently. So, even if one of the hashes is erroneous, it does not affect other hashes. So, the effect of any error is contained.
Second, bitcoin mining is an inherently probabilistic application. An error in a hash computation simply reduces the probability of the hash being valid. So, as long as an approximate bit coiner miner can be built to be a lot faster, smaller, or lower power than today’s mining hardware, the overall profit can be increased even if the probability of a given hash computation to be valid is reduced. This is because smaller and faster miners allow much higher hash rate in the same chip area, while a lower power miner reduces the cost of mining. There is some probability of an approximate miner to broadcast an invalid proof-of-work, but this will be immediately detected by the network and discarded. So, the blockchain is never corrupted.
CoinReport: Have others previously studied the effects of approximation on bitcoin mining?
- a) put more hashing engines in the chip area
- b) run the miners at much higher frequency.
This increased mining profits by over 15%.
To get more profits, we run the resulting miners at overscaled frequencies. These are frequencies higher than the time it takes for an approximate adder to complete addition. Under such frequencies (we call this operational approximation to distinguish this from functional approximation, i.e., replacing the adders with their approximate version), an adder occasionally sees timing errors in addition to the errors caused due to functional approximation. Frequency overscaling further increases the hashrate of a miner. This increases mining profits to over 30% compared to the baseline miner designs.
CoinReport: The results of the paper have shown that approximation can increase profits for bitcoin miners. How do you see the bitcoin community incorporating this research into their mining processes?
Prof. Kumar: Mining is an area where new ideas can make an immediate impact. This is because mining economics dictates the need for new ASIC designs every so often. So, new ideas can be incorporated in a near-future spin. More importantly, economics dictates that every ASIC design be as cost-efficient as possible since even a small improvement in efficiency can lead to a large competitive advantage.
I hope that approximation is incorporated in future ASIC designs to improve profitability. Furthermore, I hope that the mining industry, which is famously secretive, becomes more receptive to research coming out of academia on low power and high throughput computing, since research can help them directly with profitability.
CoinReport: How does it feel to be presenting at the Design and Automation Conference in June?
Prof. Kumar: I am looking forward to presenting this work to a broader community of hardware designers. We have only scratched the surface when it comes to optimizing bitcoin mining hardware. I think that careful application of hardware techniques such as near-threshold voltage computing, asynchronous computing, and adaptive power management has potential to increase mining profits much further. Hopefully, this work will spur such activity in the hardware design community. More broadly, cryptocurrencies and blockchain have an important role to play in enabling internet-of-everything. My hope is that at least some hardware designers will start investigating the role hardware can play in supporting cryptocurrencies and trustless communication protocols such as blockchains.
Photo courtesy of Prof. Kumar