News: 1669991414

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Google frees nifty ML image-compression model... but it's for JPEG-XL

(2022/12/02)


A new application of machine learning looks both clever and handy, as opposed to the more normal properties of being somewhere between privacy-, copyright-, or life-endangering. But before you get too excited, you can't have it.

The true cost of ML applications varies. Many are free to use, which means they endanger the paid income of someone somewhere. Speech recognition puts poor people in [1]call centers out of work. [2]"AI" image generators deprive creative artists of their income, and [3]"AI" text generators threaten writers – in those few jobs which survived the web destroying print journalism, anyway.

Applying ML to image compression and decompression seems like a relatively safe use. Adding more smarts to image compression has felt like it was an inspired idea waiting for its moment ever since [4]Michael Barnsley invented [5]fractal image compression in 1987.

[6]

The new [7]attention center model does something different: It uses machine learning to attempt to identify which parts of an image will attract a human's attention first, so that it can selectively decompress those regions first.

Load the important bits first

If you're old enough to remember watching GIF images gradually appear, line by line, as they downloaded over a dial-up modem, you will immediately grasp the appeal. But now it's more about mobile and wireless connections, whose speed not only varies wildly but unpredictably.

The idea is that a low-res version of the whole image appears right at the start, and by the time that your visual cortex has decided where to point your pupils, that area of the image is already getting sharpened up. Then as your attention roams around the picture, the algorithm has guessed where your eyes will go next and fills in more detail in those bits next. Once those parts are fairly sharp, then the rest is filled in, the relatively boring bits last of all.

[8]

If it worked well enough, you probably wouldn't even notice it happened. The illusion would be that a perfectly sharp version appeared right at the start. We recommend playing with this [9]demonstration , so long as you have a Chrome-based browser and you enable its experimental JPEG-XL image renderer: go to chrome://flags , search for jxl and enable it.

[10]Google kills forthcoming JPEG XL image format in Chromium

[11]Third time's a harm? Microsoft tries to get twice-rejected encoding patent past skeptical examiners

[12]People outperform computer programs for 'compressing' pix

[13]Sick of AI engines scraping your pics for facial recognition? Here's a way to Fawkes them right up

The algorithm is described in a post titled [14]"Open sourcing the attention center model" on Google's open source blog… and there lies the irony, and that is the reason that the preceding paragraph used the conditional mode. Because this feature uses the new [15]JPEG-XL image format – the one that [16]Google said it would remove from future versions of Chrome back in October.

It would be unjustifiably and indefensibly cynical of us to suggest that because the format is to be removed from Chrome 110, that is why Google is willing to open source the tech, so we won't. ®

Get our [17]Tech Resources



[1] https://www.theregister.com/2022/09/20/google_dialogflow_outage/

[2] https://www.theregister.com/2022/09/03/in_brief_ai/

[3] https://www.theregister.com/2020/06/09/microsoft_ai_thirlwall/

[4] https://maths.anu.edu.au/people/academics/michael-barnsley

[5] https://users.cs.northwestern.edu/~agupta/_projects/image_processing/web/FractalImageCompression/index.html

[6] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2Y4ovMws1ILMV-xIhn1UP@AAAABQ&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[7] https://github.com/google/attention-center

[8] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44Y4ovMws1ILMV-xIhn1UP@AAAABQ&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[9] https://google.github.io/attention-center/

[10] https://www.theregister.com/2022/10/31/jpeg_xl_axed_chrome/

[11] https://www.theregister.com/2021/03/13/microsoft_ans_patent/

[12] https://www.theregister.com/2018/10/29/lossy_image_compression/

[13] https://www.theregister.com/2020/07/22/defeat_facial_recognition/

[14] https://opensource.googleblog.com/2022/12/open-sourcing-attention-center-model.html

[15] https://jpeg.org/jpegxl/

[16] https://www.theregister.com/2022/10/31/jpeg_xl_axed_chrome/

[17] https://whitepapers.theregister.com/



Disgusted Of Tunbridge Wells

Bloody hell, I know El Reg has shifted to the left, but the idea that jobs should be preserved at the expense of productivity is insane. What is this, 1811?

@Disgusted Of Tunbridge Wells

codejunky

"Bloody hell, I know El Reg has shifted to the left, but the idea that jobs should be preserved at the expense of productivity is insane. What is this, 1811?"

I think they lost a lot when they lost Tim Worstall.

Re: @Disgusted Of Tunbridge Wells

Anonymous Coward

Ahh, Tim Worstal and his "Fuck You" economics. Another MIA I don't miss at all.

Progressive loads prevented by front-end designers and coders

b0llchit

The idea is that a low-res version of the whole image appears right at the start, and by the time that your visual cortex has decided where to point your pupils, that area of the image is already getting sharpened up.

Can you please tell this to the web designers and coders who insist on requiring javascript to see the images? Many sites simply don't display any image without scripts and a lot do a very poor job at reimplementation of async loading which results in forced download of the whole image before putting it into the DOM for rendering.

So, in theory it is nice to have progressive images was it not for (very poor) designers and (bad) front-end coders to fuck things up.

/rant

Re: Progressive loads prevented by front-end designers and coders

Neil Barnes

Ah but at least those same designers already give us grey blobs where text and images might, at some future time, appear...

Shouldn't be too tricky.

DJO

...your visual cortex has decided where to point your pupils...

So it'll work on flesh tones first. Can't imagine that requires much smarts in the ML/AI department.

Re: Shouldn't be too tricky.

Snake

But JPEG already supports bandwidth-limited loading, the Progessive save pattern. 3 or 4 passes to decompress, allowing early low-res loading, progressing to high resolution through time.

So why are we so worried about recreating the wheel? Just allow & use progressive JPEG and be done with it.

You will find me drinking gin
In the lowest kind of inn,
Because I am a rigid Vegetarian.
-- G. K. Chesterton