A Reconfigurable Convolution-in-Pixel CMOS Image Sensor Architecture

summary

The gist

The paper proposes a novel Processing-In-Pixel (PIP) CMOS image sensor architecture that significantly improves image reading speed and reduces power consumption by performing convolution operations…

In short

The paper proposes a novel Processing-In-Pixel (PIP) CMOS image sensor architecture to enhance Convolutional Neural Network (CNN) performance on resource-limited devices. By performing convolution operations before column readout using Pulse Width Modulation (PWM) and pixel splicing, the architecture significantly boosts computing efficiency up to 11.65 TOPS/W, three times higher than conventional methods, while drastically reducing power consumption.

Key concepts

Processing-In-Pixel (PIP) Architecture
This design moves the first layer of a CNN's computation directly onto the sensor itself. Instead of sending raw data to a separate processor for initial processing, the sensor handles parts of the convolution operation before reading out pixels. This improves resource utilization and makes AI tasks much more efficient on small devices.
MAC Operation via PWM and Pixel Splicing
The multiplication-accumulation (MAC) operation required for convolution is achieved using two techniques: Pulse Width Modulation (PWM) to control the exposure time of photodiodes based on kernel weights, and pixel splicing to link adjacent pixels. This allows for massive parallel convolution calculations across the entire pixel array simultaneously.
Convolution Mechanism
The MAC operation involves controlling how long the photodiode is exposed based on the weight value in a convolution kernel. Pixel splicing then averages these multiplication results from neighboring pixels, effectively accumulating the products to produce the final output charge Q on each node, which represents the average of photocurrent multiplied by kernel weights.

Terminology used across episodes

This episode discusses

The paper

A Reconfigurable Convolution-in-Pixel CMOS Image Sensor Architecture · Read on arXiv

Ruibing Song, Kejie Huang, Zongsheng Wang, Haibin Shen

Zhejiang University

DOI: 10.1109/TCSVT.2022.3179370

Transcript

Introduction to the show: ident: Electrical Engineering. The day in electrical engineering: signals, systems and the hardware that carries them.

Rosa: We're looking at the paper: "A Reconfigurable Convolution-in-Pixel CMOS Image Sensor Architecture".

Title and authors: Rosa: The authors are Song, Huang, Wang, and Shen on this paper about the Reconfigurable Convolution-in-Pixel CMOS Image Sensor Architecture > Reference:two thousand one hundred one point zero three three zero eight#pg1 <ref:2101.03308#pg1,Reconfigurable Convolution-in-Pixel CMOS Image Sensor Architecture>. It’s interesting because they are proposing a way to handle the challenge of making Artificial Intelligence run on these resource-limited end sensing devices > Reference:two thousand one hundred one point zero three three zero eight#pg1 <ref:2101.03308#pg1,resource-limited end sensing devices>.

Dev: They are specifically addressing the issue that conventional schemes have this low fill-factor problem, which limits how much data you can actually process efficiently > Reference:two thousand one hundred one point zero three three zero eight#pg2 <ref:2101.03308#pg1>.

Taro: If it's reconfigurable, does that mean we can change how it processes different layers of a neural network on the fly? I mean, like switching from one type of convolution to another without redesigning the whole hardware > Reference:two thousand one hundred one point zero three three zero eight#pg2 <ref:2101.03308#pg1>.

Rosa: Exactly. They suggest this architecture moves the operations of the first layer to the sensor to improve resource utilization and computing efficiency of the deep learning accelerators > Reference:two thousand one hundred one point zero three three zero eight#pg2 <ref:2101.03308#pg1>.

Dev: So, they are trying to make sure that those digital accelerators aren't sitting idle when they should be working hard on the first part of the network computation > Reference:two thousand one hundred one point zero three three zero eight#pg2 <ref:2101.03308#pg1>.

The paper's summary: Rosa: So, what they are summarizing is this novel PIP architecture which moves the first layer operations to the sensor to boost resource utilization and computing efficiency for the digital learning accelerators > Reference:two thousand one hundred one point zero three three zero eight#pg2 <ref:2101.03308#pg1>. They show that this approach can enable highly efficient convolution computation in pixels which improves both fill-factor and computing efficiency > Reference:two thousand one hundred one point zero three three zero eight#pg2 <ref:2101.03308#pg1>.

Dev: And they achieve the actual multiplication and accumulation operation by using Pulse Width Modulation, or PWM, and pixel splicing > Reference:two thousand one hundred one point zero three three zero eight#pg3 <ref:2101.03308#pg1>. That’s the mechanism they use to get that math done on the sensor > Reference:two thousand one hundred one point zero three three zero eight#pg4 <ref:2101.03308#pg1>.

Taro: Pixel splicing sounds like a way to link up adjacent pixel units so they can average out the multiplication results, which means you’re doing accumulation right there on the sensor > Reference:two thousand one hundred one point zero three three zero eight#pg4 <ref:2101.03308#pg1>. That's a clever way to handle it without sending everything off-chip > Reference:two thousand one hundred one point zero three three zero eight#pg5 <ref:2101.03308#pg1>.

Rosa: Right, and this setup allows for massive parallel convolution operations across the entire pixel array > Reference:two thousand one hundred one point zero three three zero eight#pg5 <ref:2101.03308#pg1>. It’s all about getting that computation done in parallel > Reference:two thousand one hundred one point zero three three zero eight#pg3 <ref:2101.03308#pg1>.

Dev: But then they have this mixed architecture idea, where it’s usually hard to do everything with just PIP or PIS schemes > Reference:two thousand one hundred one point zero three three zero eight#pg3 <ref:2101.03308#pg1>. They suggest that an analog computing circuit always-on to do something before the digital part performs the heavy recognition in the digital domain > Reference:two thousand one hundred one point zero three three zero eight#pg3 <ref:2101.03308#pg1>.

Taro: So, they aren't just one solution; they’re looking at a mixed architecture where you might have analog sensing and then a digital part for recognition > Reference:two thousand one hundred one point zero three three zero eight#pg3 <ref:2101.03308#pg1>. That seems like a way to balance the needs of different layers in the network > Reference:two thousand one hundred one point zero three three zero eight#pg2 <ref:2101.03308#pg1>.

The paper's improvements: Rosa: One big improvement they point out is that this architecture can support various convolution kernels through a proposed kernel splicing method > Reference:two thousand one hundred one point zero three three zero eight#pg5 <ref:2101.03308#pg1>. This means you can use different kernel sizes, like five by five, seven by seven, or nine by nine convolutions with the same hardware circuits > Reference:two thousand one hundred one point zero three three zero eight#pg4 <ref:2101.03308#pg1>.

Dev: That’s significant because it means they don't need a completely different chip for every single kernel size variation > Reference:two thousand one hundred one point zero three three zero eight#pg4 <ref:2101.03308#pg1>. They can use the same hardware to handle different kernel shapes > Reference:two thousand one hundred one point zero three three zero eight#pg5 <ref:2101.03308#pg1>.

Taro: That ability to switch those convolution operations at the array level sounds like a real advantage for handling varying network requirements > Reference:two thousand one hundred one point zero three three zero eight#pg3 <ref:2101.03308#pg1>. It suggests more flexibility in deployment > Reference:two thousand one hundred one point zero three three zero eight#pg5 <ref:2101.03308#pg1>.

Rosa: They also discuss performance metrics where they show this architecture can support a computing efficiency up to eleven point six five TOPS per watt at an eight bit weight configuration > Reference:two thousand one hundred one point zero three three zero eight#pg5 <ref:2101.03308#pg1,computing efficiency up to 11>. That’s three times higher than conventional schemes, which is a solid number to look at > Reference:two thousand one hundred one point zero three three zero eight#pg5 <ref:2101.03308#pg1>.

Dev: And they give a concrete example of this efficiency when they test a seven by seven kernel with stride two and an output channel size of sixty four at sixty frames per second > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>. They show it consumes only five hundred twenty-nine point twenty-nine micro watts of power and achieves that efficiency > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>.

Taro: If we're talking about a sixty four channel output and sixty frames per second, that’s high throughput for this kind of sensor > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>. It shows the speed capability they are aiming for in real-world scenarios > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>.

Conclusion: Rosa: So, to wrap up, this paper on the Reconfigurable Convolution-in-Pixel CMOS Image Sensor Architecture shows that by doing convolution before the column readout circuit, you can significantly improve image reading speed with much lower power consumption > Reference:two thousand one hundred one point zero three three zero eight#pg1 <ref:2101.03308#pg1,Reconfigurable Convolution-in-Pixel CMOS Image Sensor Architecture>. They are demonstrating high linearity in simulation, with R squared values above zero point nine eight for various illuminances when comparing readout voltage and weight values > Reference:two thousand one hundred one point zero three three zero eight#pg8 <ref:2101.03308#pg1>.

Dev: And they show that the mean root mean square error for the first-layer output is negligible when the signal to noise ratio is more than forty decibels > Reference:two thousand one hundred one point zero three three zero eight#pg11 <ref:2101.03308#pg1>. That means for good image quality, you don't have to worry too much about noise from this method > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>.

Taro: What I'm still thinking is what happens when the world misbehaves in real-world trials; they show noise analysis where after subtraction by digital circuits, the noise can be estimated by a formula involving Qp shot minus Qn shot and other terms > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>. That’s just the mathematical description of the error sources they are dealing with > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>.

Rosa: They also note that the power consumption of this sensor circuit depends on things like the frame rate and the convolution kernel size > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>. And when you keep the kernel size constant, the power consumption increases with the frame rate > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>.

Dev: The energy consumption for a single frame for a seven by seven kernel and stride two is estimated at only eight point eight two joules, which shows a fifteen times reduction in energy consumption compared to a traditional column-by-column system > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>. That fifteen times reduction is what makes this architecture suitable for applications with tight power constraints > Reference:two thousand one hundred one point zero three three zero eight#pg12 <ref:2101.03308#pg1>.

Taro: So, it's a viable path for resource-limited devices, but the authors themselves flag that the total computing amount is calculated by multiplying the size of the output array, number of input channels, number of output channels, frame rate and then by the computing amount for one kernel > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>. That’s a lot to calculate for real deployment > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>.

Rosa: So, that's the "A Reconfigurable Convolution-in-Pixel CMOS Image Sensor Architecture" we've been discussing today > Reference:two thousand one hundred one point zero three three zero eight#pg5 <ref:2101.03308#pg1,A Reconfigurable Convolution-in-Pixel CMOS Image Sensor Architecture>. It’s a solid paper showing how to put the first layer convolution in-sensor to improve efficiency and speed > Reference:two thousand one hundred one point zero three three zero eight#pg2 <ref:2101.03308#pg1>.

Dev: It’s certainly a step forward for making AI run more efficiently on sensors, but we still need to see it work consistently when the system runs under real-world conditions > Reference:two thousand one hundred one point zero three three zero eight#pg9 <ref:2101.03308#pg1>.

More episodes

← Home