Better HN
topnewbestaskshowjobs
Log inSign up

emacs28

345 karma · joined Oct 18, 2021 (5y ago) · 84 submissions

Submissions

comment 1y ago · link · parent

First author here. The hardware architectures are realistic - we developed & evaluated real example hardware implementations for them, validated on FPGA, and they achieved state-of-the-art ResNet performance in a deep learning accelerator system implementation compared to prior accelerators evaluated on similar FPGAs. See the associated accelerator system source code here:

https://github.com/trevorpogue/algebraic-nnhw

The hardware architectures focused on in the paper are systolic array designs, an efficient type of hardware design for matrix multiplication (e.g., the Google TPU uses this), as opposed to more SIMD-like vector architectures like GPUs. It may be possible to extend the proposed KMM algorithm to other types of hardware architectures also in future work. Regarding floating point - this work is applicable for integer matrix multiplication acceleration, it may be possible to extend the concept to floating point data types in future work also.

2.

Karatsuba Matrix Multiplication and Its Efficient Hardware Implementations(arxiv.org ↗)

139 points · by emacs28 · 1y ago · 22 comments

3.

Karatsuba Matrix Multiplication and Its Efficient Hardware Implementations(arxiv.org ↗)

5 points · by emacs28 · 1y ago · discuss

4.

Strassen Multisystolic Array Hardware Architectures(arxiv.org ↗)

1 points · by emacs28 · 1y ago · discuss

5.

Karatsuba Matrix Multiplication and Its Efficient Hardware Implementations(arxiv.org ↗)

2 points · by emacs28 · 1y ago · discuss

comment 2y ago · link · parent

It produces identical/bit-equivalent results as conventional/naive matrix multiplication for integer/fixed-point data types

comment 2y ago · link · parent

For everyone discussing the reduced accuracy/numerical stability of the algorithms in floating-point, this is true. But note that the application of the algorithms in the work is explored for fixed-point MM/quantized integer NN inference, not floating-point MM/inference. Hence, there is no reduction in accuracy for that application of it compared to using conventional fixed-point MM.

comment 2y ago · link · parent

> you have to build hardware that matches the dimensions of the algorithm

Yes the benefits are realized in custom hardware designs as opposed to software, however, the hardware architectures work for multiplying matrices of arbitrary dimensions by splitting up larger matrices into smaller tiles, then summing up the tile products to form the final larger matrix products (i.e. GEMM)

comment 2y ago · link · parent

Thanks, good summary. Regarding numerical stability, the application is for fixed-point arithmetic, and therefore numerical stability is not an issue (the result is identical compared to using the conventional inner-product)

comment 2y ago · link · parent

IMHO, for fixed-point MM accelerators, there is no catch, I think it's an overlooked algorithm. It's based on an algorithm by Winograd who coincidentally also proposed another unrelated algorithm that later became very popular for CNN acceleration which would take some visibility away from this other algorithm by Winograd... But that is speculative

11.

Show HN: Matrix Multiplication with Half the Multiplications(github.com ↗)

310 points · by emacs28 · 2y ago · 77 comments

12.

Show HN: AI with Half the Multiplications(github.com ↗)

2 points · by emacs28 · 2y ago · discuss

13.

Matrix multiplication hardware architectures requiring half the multipliers(github.com ↗)

1 points · by emacs28 · 2y ago · discuss

14.

Show HN: Matrix Multiplication with Half the Multiplications(github.com ↗)

18 points · by emacs28 · 2y ago · discuss

15.

Systolic arrays(github.com ↗)

1 points · by emacs28 · 2y ago · discuss

16.

Hardware research(github.com ↗)

1 points · by emacs28 · 2y ago · discuss

17.

Fast Inner-Product Algorithms and Architectures for DNN Accelerators(ieeexplore.ieee.org ↗)

1 points · by emacs28 · 2y ago · discuss

18.

Double the performance per MAC unit in ML accelerators(arxiv.org ↗)

1 points · by emacs28 · 3y ago · discuss

19.

Fast DNN Accelerator Architectures(arxiv.org ↗)

1 points · by emacs28 · 3y ago · discuss

comment 3y ago · link · parent

Personally I love my overpriced Samsung z fold, I don't use a laptop anymore (just a desktop), I can easily read double-column research articles wherever I am, it's great for drawing diagrams, and all of that without having to remember both your phone and a tablet everywhere you go.

comment 3y ago · link · parent

CCX stands for Core Complex

CCD stands for Core Complex Die (and neither terms refer to the IO die)

comment 3y ago · link · parent

This can be resolved by changing the cells' format from General to Text. This makes the cells display the text exactly as entered. Select the relevant cells -> right click on them -> Format Cells... -> Text -> Ok

comment 3y ago · link · parent

One good approach could be to base the architecture on the TPU v1 from [1]. There are also open-source accelerators you could get inspiration from, for example [2][3]. If you want to do less work/not hand code the RTL yourself then you could look into methods for automatically mapping OpenCL to an FPGA accelerator architecture (or a service like [3] provides pre-designed architectures for multiple FPGAs).

[1] https://arxiv.org/abs/1704.04760

[2] https://github.com/jofrfu/tinyTPU

[3] https://github.com/tensil-ai/tensil

comment 3y ago · link · parent

The best productivity hack is to get a keyboard with programmable QMK firmware and remap the keys however/wherever you want.

comment 4y ago · link · parent

When in Emacs I use a custom command that converts lowercase underscore-separated words to uppercase after typing the word out in lowercase so I don't have to use shift or capslock.
123