Approximate Computing Is Dead; Long Live Approximate Computing - - PowerPoint PPT Presentation

approximate computing is dead long live approximate
SMART_READER_LITE
LIVE PREVIEW

Approximate Computing Is Dead; Long Live Approximate Computing - - PowerPoint PPT Presentation

Approximate Computing Is Dead; Long Live Approximate Computing Adrian Sampson Cornell Hardware Programming Quality Domains Hardware Programming No more approximate functional units. Quality Domains Narrower bit widths are just as


slide-1
SLIDE 1

Approximate Computing Is Dead; Long Live Approximate Computing

Adrian Sampson Cornell

slide-2
SLIDE 2

Hardware Programming Quality Domains

slide-3
SLIDE 3

Hardware Programming Quality Domains No more approximate functional units.

slide-4
SLIDE 4
slide-5
SLIDE 5

# 0.2 0.4 0.6 0.8 1

MSSIM

0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8

PDP (pJ)

#10 -3

ACA ETAIV RCAapx Type 1 RCAapx Type 2 RCAapx Type 3 Fixed-Point trunc. Fixed-Point round.

better accuracy better efficiency

Narrower bit widths are
 just as good or better

[Barrois et al., DATE 2017]

approximate adders from the literature just varying the adder width

slide-6
SLIDE 6

Hardware Programming Quality Domains No more approximate functional units. No more voltage overscaling.

slide-7
SLIDE 7

Dual-voltage approximate CPU

[ASPLOS 2012]

Fetch Decode Reg Read Execute Memory WB

  • Br. Predictor

Instruction Cache ITLB Decoder Register File Integer FU FP FU Data Cache DTLB Register File

replicated functional units dual-voltage SRAM arrays

slide-8
SLIDE 8

fft imagefill jmeint lu mc raytracer smm sor zxing ALU cache FPU multiplier registers together

(a)

slide-9
SLIDE 9

Hardware Programming Quality Domains No more approximate functional units. No more voltage overscaling. In general, no more fine-grained approximate operations.

slide-10
SLIDE 10
  • 70pJ

25pJ 6pJ Control I-Cache Access Register File Access Add

The Horowitz imbalance

a name I made up for this talk [ISSCC 2014]

slide-11
SLIDE 11
  • Graph H for hardware of
  • y

routers (R) nodes (N) links (L)

Constraint-based programming
 for spatial architectures

[Nowatzki et al., PLDI 2013]

  • +
  • x

y z

slide-12
SLIDE 12

Hardware Programming Quality Domains No more approximate functional units. No more voltage overscaling. In general, no more fine-grained approximate operations. No more automatic approximability analysis.

slide-13
SLIDE 13

✓ ✗

int a = ...; int p = ...; @Approx p = a; a = p;

EnerJ type qualifiers

[PLDI 2011]

slide-14
SLIDE 14

int a = ...; int p = ...; @Approx

EnerJ type qualifiers

[PLDI 2011]

Let’s insert these automatically!

slide-15
SLIDE 15

Hardware Programming Quality Domains No more approximate functional units. No more voltage overscaling. In general, no more fine-grained approximate operations. No more automatic approximability analysis. No more generic unsound compiler transformations.

slide-16
SLIDE 16

Loop perforation

[Sidiroglou-Douskos et al., FSE 2011]

for (int i = 0; i < max; i++) { // whatever } i += 2

slide-17
SLIDE 17

Hardware Programming Quality Domains No more approximate functional units. No more voltage overscaling. In general, no more fine-grained approximate operations. No more automatic approximability analysis. No more generic unsound compiler transformations. No more weak statistical guarantees.

slide-18
SLIDE 18

∀x f(x) is good

Traditional guarantee

slide-19
SLIDE 19

Statistical guarantee

Pr [f(x) is good] ≥ T

slide-20
SLIDE 20

Statistical guarantee, in reality

Prx∼D [f(x) is good] ≥ T

anticipated input distribution

slide-21
SLIDE 21

x probability

slide-22
SLIDE 22

x probability

high quality low quality

slide-23
SLIDE 23

x probability

slide-24
SLIDE 24

x probability

Adversarial distribution

slide-25
SLIDE 25
slide-26
SLIDE 26

Hardware Programming Quality Domains No more approximate functional units. No more voltage overscaling. In general, no more fine-grained approximate operations. No more automatic approximability analysis. No more generic unsound compiler transformations. No more weak statistical guarantees. No more sadness about the imperfection of quality metrics.

slide-27
SLIDE 27

Application Description Error metric FFT Scientific kernels from the SciMark2 benchmark Mean entry difference SOR Mean entry difference MonteCarlo Normalized difference SparseMatMult Mean normalized difference LU Mean entry difference ZXing Smartphone bar code decoder 1 if incorrect, 0 if correct jMonkeyEngine Mobile/desktop game engine Fraction of correct decisions normalized to 0.5 ImageJ Raster image manipulation Mean pixel difference Raytracer 3D image renderer Mean pixel difference

slide-28
SLIDE 28

Hardware Programming Quality Domains No more approximate functional units. No more voltage overscaling. In general, no more fine-grained approximate operations. No more automatic approximability analysis. No more generic unsound compiler transformations. No more weak statistical guarantees. No more sadness about the imperfection of quality metrics. No more benchmark-oriented research?

slide-29
SLIDE 29

Application Description Error metric FFT Scientific kernels from the SciMark2 benchmark Mean entry difference SOR Mean entry difference MonteCarlo Normalized difference SparseMatMult Mean normalized difference LU Mean entry difference ZXing Smartphone bar code decoder 1 if incorrect, 0 if correct jMonkeyEngine Mobile/desktop game engine Fraction of correct decisions normalized to 0.5 ImageJ Raster image manipulation Mean pixel difference Raytracer 3D image renderer Mean pixel difference

slide-30
SLIDE 30

https://arxiv.org/abs/1409.0575

Winning Classification Top-1 Error 0% 5% 10% 15% 20% 25% 30% 2010 2011 2012 2013 2014 2015 2016

ImageNet annual competition

slide-31
SLIDE 31

https://youtu.be/-gQMulb6T2o

Real-time graphics

slide-32
SLIDE 32

Hardware Programming Quality Domains No more approximate functional units. No more voltage overscaling. In general, no more fine-grained approximate operations. No more automatic approximability analysis. No more generic unsound compiler transformations. No more weak statistical guarantees. No more sadness about the imperfection of quality metrics. No more benchmark-oriented research?

slide-33
SLIDE 33

Notes and links: http://www.cs.cornell.edu/~asampson/blog/closedproblems.html