12 karma · joined Apr 8, 2020 (6y ago) · 13 submissions
comment 5y ago · link · parent
Are you finding NiLang? - an embedded domain specific language in Julia for creating reversible functions. Meanwhile, it has one of the best performance in automatic differentiation (AD).
I find reversible programming particularly useful in the reverse mode AD, where reversing the tape is required in order to use intermediate information to compute gradients. The Bennett's time space trade-off is particularly useful. Traditional AD also have something similar called treeverse to trace back states, however, it involves nasty implicit stack operations and can not utilize reversibility. Reversible computing is way more elegant.
comment 5y ago · link · parent
As the coarse graining process goes, the ratio between computing time and garbadge space size increases exponentially. Erasing space is more energy efficient when E_compute/E_erase > N_uncompute/N_erase, where E and N are energy and number of instructions.
BUT, it is very likely to have a reversible computing device like GPU that can do part of works. The key point is: most reversible computing devices CAN erase information, although with energy cost. We just need to switch between uncomputing and erasing at the right place. e.g NiLang is an eDSL that lives in function level, while most other reversible programming languages are standalone.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 6y ago · link · parent
The source code is available here: https://github.com/JuliaReverse/NiGraphEmbedding.jl
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
Various benchmarks (including those in the paper) show NiLang is much better than Zygote to differentiate scalar functions. And Zygote is much faster than TF and PyTorch.
2. Tensor level
Zygote, TF and PyTorch are much better than NiLang, because NiLang's matrix multiplication is not fully optimized, it is much slower than BLAS. (One can wrap BLAS into NiLang, but that does not measure NiLang's programming language level AD performance anymore)
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
Search “Reversible Computing” and “Reversible programming” for more discussions about reversible programming in Hacker news.
13.
Show HN: Differentiate Everything with a Reversible Programming Language(arxiv.org ↗)
4 points · by GiggleLiu · 6y ago · 1 comment