167 points · by thunderbong · 4y ago · 74 comments
https://upload.wikimedia.org/wikipedia/commons/8/81/Arithmet...
It's from here:
https://en.wikipedia.org/wiki/Arithmetic_coding
The ANS algorithm mentioned in the article has the theoretically-close-to-optimal compression ratio of arithmetic coding and the speed of Huffman coding (https://en.wikipedia.org/wiki/Huffman_coding)
If I'm not mistaken, that graphic demonstrates optimal prefix codes in general as opposed to what is unique about arithmetic coding.
Admittedly, I have not looked into arithmetic coding, but the graphic reminded me of huffman coding exercises in grad school to teach prefix coding.
Take a look at claims 1, 19 and 20 to see what is covered: https://patents.google.com/patent/US11234023B2/en
The application received 3 rejections before allowance, so it's not like the USPTO rubber-stamped it: https://patentcenter.uspto.gov/#!/applications/16456602/ifw/...
I'm not familiar with this technology and don't have time to take a closer look. But if I were to take a closer look, I'd check out what the examiner wrote in their allowance (Notice of Allowance and Fees Due) to see if they identified a specific feature that makes it patentable.
Thanks. That seems helpful.
To save people some digging and so it's easier to discuss, I've copied (actually retyped) something I found which seems relevant. At your second link, there's a document called "Notice of Allowance and Fees Due (PTOL-85)", and starting on p. 10, there's a section called "Reasons for Allowance", which reads:
----------
Reasons for Allowance
Claims 1 - 28 are allowed in light of the Examiner's Amendment and the Applicant's response filed on August 23, 2021.
The following is an Examiner's statement of reasons for allowance: Applicant has amended independent claim to incorporate detailed subject matter of the decoding process and apparatus.
The closest prior art Greenfield et al., (US 2016/0248440 A1), Li et al., (US 2015/0103902 A1) and Converse (US 2017/0164007 A1) do not disclose the claimed element, "during a first phase of the two-phase structure, selectively updating, depending on a determination of whether or not an output symbol from a previous iteration was generated, state of the RANS decoder using probability information for the output symbol from the previous iteration, the state of the RANS decoder being tracked using a value;" and "during the second phase of the two-phase structure, selectively generating, depending on a determination of whether or not the state of the RANS decoder includes sufficient information to generate an output symbol for a current iteration, the output symbol for the current iteration using the state of the RANS decoder, the state of the RANS decoder including sufficient information to generate the output symbol for the current iteration if the state of the RANS decoder is greater than a threshold". Therefore, the prior art references taken either alone or in combination fails to anticipate or fairly suggest the limitations of the independent claims. While using a range asymmetric number system (RANS) decoder was known at the time of the invention, Applicant's very specific claimed structure is considered patentable over the prior art of record.
----------
As a total layman, not knowing the tech here (or patents or law), it sounds promising to me, in the sense that it probably doesn't stop everyone from using RANS.
It mentions prior art and says "RANS" ... "was known" in conjunction with that. And it also says "very specific claimed structure", which also sounds like this doesn't cover all of RANS.
> state of the RANS decoder including sufficient information to generate the output symbol for the current iteration if the state of the RANS decoder is greater than a threshold
I am not a lawyer. That reads to me like a 'relaxation'/optimization of the decoder to allow for iterations that don't yield any symbols, but still transforms the decoder state which affects subsequent symbols.
It's interesting, but feels a bit obvious to me. IIRC zstd decoder spec explicitly describes a state machine that is updated as bytes are read and symbols emitted and it doesn't seem like a big leap to imagine some ops taking multiple iterations. Then again I'm not exactly drowning in novel compression algorithms that I invented myself, so...
I wonder if you'd work around it if you it 'transpose' the problem and consider it to be variable bytes-per-instruction but still one instruction-per-symbol.
As Timothy Lee says in the article, the problem with this type of patent is that it boxes in how you can use the original technology: you can freely tie your shoes with this shoelace, but if you use a double knot, now you infringe a patent.
In some ways, this mirrors the difference between copyleft and permissive copright licenses. By failing to patent the original invention, Duda made ANS useful and widely available, but he now has no leverage against Microsoft.
Except, he can challenge Microsoft's patent on prior art terms
That's called the aglet
(No, the Patent Office does not have a good reputation for rejecting prior-art-plus-a-few-minor-tweaks patent applications up front.)
(Source: I'm a former patent examiner.)
Frankly, it seems that most (nearly all) patents have only a trivial amount of money invested to create the idea, other than what the patent lawyer costs. For example, "playing checkers --- with a computer" patents. Ending all patents would not slow down innovation at all.
There is one exception, drug patenting, where billions are spent developing a drug and getting it approved.
As I've stated elsewhere in this thread, you don't have to be a dick about owning the patent. It's your patent, and you can do with it what you want. There are patent pools that are managed to ensure they can't be used for evil that you can donate your patent to if you can't afford the time to manage it.
Sadly the patent is woefully vague. I understand RANS and a lot of the optimisations used for doing it efficiently, but I don't understand that patent. It's just not clear enough for someone skilled in that field to know exactly what it is they're patenting.
Specifically rANS states are updated on a symbol by symbol basis. A query is made to get a range, that is looked up to determine the symbol for that range, and then the state is updated and possibly renormalised to fit in the desired range of valid states. There is no whether-or-not a previous symbol was decoded scenario. So I think they're talking at a higher level of block based decoding and using stats from the previous block for decoding the current block, and the possibility of a symbol in the current block not being observed in the previous one (ie escape codes, as used in PPM etc). However I'm really not sure. That's just me grasping at straws trying to think of something that makes sense.
In short, the patent fails the most basic test of being implementable by someone else having read the patent. It's deliberately vague, so they can then apply it to as much of the problem space as possible. That annoys me! As does patenting trivial modifications to rANS that aren't inventive. rANS is just a drop in replacement for the earlier (arithmetic) range-coders, albeit in reverse order. Therefore any tricks and techniques previously applied to range coders can also be applied to rANS. However being the first to do such a thing is no more an invention that the first person to use fiberglass or carbon-fiber in a boring every day item such as a chair. The new material is the invention, not being the first to use it in a particular manner that is obvious to all.
We only need a simple criterion: absent this patent, would this technology have been invented anyway (within a reasonable timeframe)? Yes, then don't award a patent. It's a bit subjective, but so is "substantiality".
By this criterion, would a certain drug have been invented if it was not expected to receive a patent. That is usually a clear no. It takes a lot of money and resources to develop new drugs but little to copy, therefore companies would stop doing research altogether.
Another example, would e-ink displays have been invented if it was not rewarded a patent? Absolutely yes, by multiple independent parties probably, thus should not deserve a patent.
I don't think there is a single software patent that would pass this criterion.
This would be the criteria of non-obviousness that already exists in US patent law. The problem is it seems like lots of patent agents seem to approve what lots of people "skilled in the art" would consider obvious (one-click checkout? shopping cart? really?!). Which then requires some level of litigation to have a lot of people "skilled in the art" to testify of the obviousness of the patent.
IMO a lot of these patent issues we see today could be solved if we had more patent agents and more skilled patent agents, but then we've got a ton of otherwise smart engineers and other kinds of people spending their days reviewing patents instead of actually making new things.
Tell us, how exactly do you think e-ink displays work? Because everytime I hear someone say exactly what you've said above, I've asked them to explain it and you know what, they talk about the rotating ball gyricon which is Xerox PARC's patent, or they talk about microcapsules (often googling it as they try to respond to me). I like to be specific since I work in the display industry and if you look at my comment history you'll see how disappointed I am with the lack of actual understanding of the technologies involved and the blaise reference to patents without knowing anything about what's limiting progress in electrophoretics. In short, physics is what is limiting it.
That doesn't seem very likely.
The 17yr patent clock ends up leaving a handful of years for a company to balance its books before expiry and the onslaught of generics.
Hence the ludicrous per-pill costs.
Those demonizing pharma have not done the homework.
Disclaimer: wife works in pharma.
Don't discount first mover advantage.
Without some protection for original research being published, genuine inventors are forced to keep their ideas secret and/or find other ways to protect them.
Nearly all big companies are involved in patent litigation, and unfortunately often it's and easy way to crush nascent competition.
Publication of "secrets" and general know-how can be incented via post-facto prize awards. Unlike patents, these don't forbid anyone from making use of the innovation unless they pay up. They replace a focus on enforcement - with publication often a mere afterthought in practice - with one on publication itself.
I'm not sure they would prevent ideas being kept secret for most forms of commercial research though. Publicly funded research should be available to everyone in any case IMHO.
I still see a role for patents in other spheres, although the current system seems deeply flawed.
The main problem to be addressed in how we ensure society as a whole benefits from original research. The original conception of patents was to grant limited rights for original ideas, as long as the work is published and does not remain secret.
Everyone shits on China for stealing ideas but at the same time the general culture there does not have the same respect for the idea of patenting an idea - for better or worse.
Personally I think there is a nice middle ground between those two
I just came off a project where one of the developers secured a patent for some data aggregation in Spark. I wasn't interested enough to read the patent because so many basic things about the system sucked.
If the patent system has to rely on corporations "not being dicks" it doesn't sound like a very functional system.
Serious patent and IP reform is long overdue.
For example, if Google ever gets into a patent war with Microsoft, would their 'free' licence be revoked? Does that mean the moment they'd use this coding they risk having their own patent portofolio be unenforceable? If so, they would have an interest in not using the technology from the 'free' licence, and software would be set back.