News for hackers. Stuff that matters.
Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by fheinsen on Thursday October 09, 2025 @09:59AM (#45527808)
Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by dang on Thursday October 16, 2025 @03:53PM (#45609949)
We'll add that link to the toptext as well. Thanks!
Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by Alive-in-2025 on Thursday October 16, 2025 @05:32PM (#45610940)
Thank you for things like this, it significantly enhances news.yc to make these kinds of tweaks and choices.
Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by cs702 on Thursday October 16, 2025 @04:43PM (#45610448)
This is basically a Pytorch library for executing computations over dynamic ranges that exceed Float64's limits, including on GPUs.

I can see how it could be useful when you really need it. Thank you for sharing it on HN.

I tried the sample code for estimating Lyapunov exponents in parallel. It worked on the first try, and it was much faster than existing methods, as advertised. It's nice to come across something that works as advertised on the first try!

The high-dynamic-range RNN stuff may be interesting to others, but it's not for me. In my book, Transformers have won. Nowadays it's so easy to whip-up a small Transformer with a few lines of Python, and it will work well on anything you throw at it.

Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by fheinsen on Thursday October 16, 2025 @07:22PM (#45611868)
To the best of our knowledge, this is the first time anyone has successfully trained a non-diagonal RNN computed in parallel, via prefix scan, without requiring any form of stabilization. We abstained from claiming as much out of an abundance of caution.
Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by cs702 on Friday October 17, 2025 @11:03AM (#45617616)
Hmm... you may be right. I don't think I've seen that before either.
Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by LolWolf on Thursday October 16, 2025 @06:04PM (#45611247)
Hmm, how does this compare to things like

https://github.com/cjdoris/LogarithmicNumbers.jl

or

https://github.com/cjdoris/HugeNumbers.jl

(Apart from the PyTorch impl)

In particular, it feels like storing the complete complex number is a bit silly since we know, a priori, that the number exponentiates to ±1, so, wouldn't this mean that we have wasted 31 bits? (=32-1 since only one bit is needed for the sign.)

That being said, this representation is very useful for certain scenarios, of course, when you know that the dynamic range of your number is very large, but, as far as I can tell, it's not exactly super novel, unless I'm missing something!

Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by fheinsen on Thursday October 16, 2025 @07:21PM (#45611863)
The manuscript formally defines GOOMs as a set of mathematical objects, shows that floating-point formats are a special case of GOOMs, and notes that they extend prior work on logarithmic number systems (LNSs), which go back to at least the early 1970's. That is, LNSs are a special case of GOOMs too. Defining and naming GOOMs enables reasoning about all possible special cases in the abstract. In practice, each implementation makes different trade-offs.

The formal definition stops short of inducing an isomorphism between GOOMs and R, to allow for the possibility of transformations that leverage the structure of the complex plane, e.g., deep learning models that process data in C and apply a final transformation from C to GOOMs, thereby allowing the data to be exponentiated to R. The library in this repository makes implementing such a model trivial, because it ensures that backpropagation works seamlessly over C, over GOOMs, and across mappings between C, GOOMs, and floats.

Take a look at the selective-resetting algorithm in the manuscript too. To the best of our knowledge, it's a new algorithm, but we opted not to claim as much, out of an abundance of caution. You will appreciate reading about it.

Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by LolWolf on Saturday October 18, 2025 @03:56PM (#45629957)
ok I think I see where you’re going, though many (if not most) of the special cases and properties here seem to be essentially a consequence of each of these systems.

I’ll take a peek at the algorithm which I did admittedly skip, but curious if it gains us something !

Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by drpixie on Thursday October 16, 2025 @07:01PM (#45611720)
A different approach to the same problem: see https://posithub.org/ or https://en.wikipedia.org/wiki/Unum_(number_format)
Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by fheinsen on Thursday October 16, 2025 @07:23PM (#45611874)
Yes. See this comment for context: https://news.ycombinator.com/item?id=45611863
Re:A Mathematical Framework for Scalable, Parallel, High-Dyn... by satisfice on Thursday October 16, 2025 @10:59PM (#45612931)
Does it mean I can use the word “zillion” in a professional scientific context?