Urgent.News

What's breaking now, across thousands of outlets.

Tech

Compression is prediction

Compression and language modeling share a fundamental objective: reducing data size by identifying and leveraging patterns and redundancies. In this piece, we explore the core concepts of data compression and draw parallels with language modeling. There exist numerous methods to shrink data, ranging from minification to more advanced techniques.

Minification, for instance, eliminates unnecessary characters in code, but true compression hinges on exploiting redundancy. Consider the string "AAAAAAAAABBBBCCDAAADDDDDDDDD," which contains an abundance of repetitive characters. By encoding the string as "A9B4C2D1A3D9," we achieve a 57 percent reduction in size, going from 28 characters to 12 characters.

This is just one example of a compression technique called run-length encoding. Modern compression tools employ a trio of components: transforms, models, and entropy coders. While transforms and models deserve attention, our focus lies in entropy coders. Arithmetic coding serves as a prime illustration of how improved probabilities contribute to more efficient compression.

By representing an entire dataset with a single number, arithmetic coding can achieve remarkable compression ratios. To demonstrate, let's encode the string "ABABAAC" using arithmetic coding. First, we determine the probabilities of each symbol (character) based on their frequency in the string, yielding 0.571 for "A," 0.286 for "B," and 0.143 for "C."

Next, we divide the range from 0 to 1 into segments corresponding to each symbol's probability. As we process each symbol in the string, we progressively narrow down the range, ultimately arriving at a compact range that encodes the entire message. This compact representation requires fewer bits than the original string, exemplifying the power of arithmetic coding in data compression.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Also reported by 1 other outlet

Read the original at ngrok.com →

More in Tech

China's semiconductor industry is rapidly catching up. There are three key factors behind its ultra-high-speed growth. China's semiconductor industry has achieved remarkable growth over the past decade, with its market size increasing from 65.4 billion yuan in 2012 to 359.9 billion yuan in 2021, at a compound annual growth rate of 17.5 percent. The growth rate far exceeds the global average of 7.4 percent during the same period. The domestic semiconductor industry has also made significant progress in technology development. In 2020, China's 28nm process technology, which is considered a mid-to-high-end level, reached mass production. The country's chip design sector has also seen rapid growth, with the number of design companies increasing from 542 in 2012 to 2,218 in 2021. China's semiconductor industry has grown rapidly due to three major factors. First, the Chinese government has provided strong policy support. Since 2014, China has launched a series of policies to support the development of the semiconductor industry. These include the "Made in China 2025" plan, the "Semiconductor Industry Development Plan (2014-2020)", and the "Special Fund for the Development of the Integrated Circuit Industry". These policies have provided significant financial support, with the total investment estimated to be over 300 billion yuan. Second, China has made significant investments in research and development. In 2020, China's semiconductor industry invested 17.5 billion yuan in research and development, accounting for 5.5 percent of its sales revenue. This is significantly higher than the global average of 2.5 percent. Third, China's semiconductor industry has a large and growing market. China is the world's largest consumer of semiconductors, accounting for over 30 percent of global demand. This has provided a huge market for domestic semiconductor companies to grow and develop. China's rapid growth in the semiconductor industry has significant implications for the global industry. It is expected that China's semiconductor market will continue to grow rapidly, driven by the increasing demand for chips in 5G, artificial intelligence, and other emerging technologies. However, the industry also faces challenges, including a shortage of talent and a lack of core technologies. Despite these challenges, China's semiconductor industry is expected to continue to grow rapidly, driven by strong policy support, significant investments in research and development, and a large and growing market.

More from Tuesday 11 August →