Shetland Geology
English articles > Article

Why didn't anyone ever do it right?

Updated 2026-11-27 08:50 UTC ยท Machine translation

Have you thought about the question: how does a hundred-page book, or a picture of tens of millions of pixels, fit these big information into a limited "brain capacity"?

The answer is compression. Combining a large pile (which can be understood as the smallest unit in AI to process information, a word, a small piece of image may be a token) into fewer, more refined expressions. It sounds simple, but it is an extremely critical, long-neglected link throughout AI.

Imagine you're a news editor, with a hundred stories about the same event, and enough for a summary. What would you do? It's probably not gonna mess up a hundred articles on average. Together, nobody can read what's written like that. You'll find out which information is duplicated and which is exclusive, and you'll keep it as a matter of priority and reduce the repetition.

But now the mainstream AI model is compressing, and that's the kind of brutal operation that averages. This study by the Chinese University of Hong Kong and the Token Foundation (under Ali Baba) team is on the subject.

**I. Neglected bottlenecks: where is the hard to compress?**

Let's start with the status quo. The current mainstream compression approach is broadly divided into three categories.

The first is called

Pooling*: an operation that combines multiple values into one, the simplest way to obtain a direct average.

This approach does not look at the relationship between tokens at all, and each token has the same weight, which is divided by a number in a simple and rough combination.

The second is to put together all the Token features and then map them into a vector using a fixed weight matrix. This weight matrix is fixed when it is trained, regardless of the input, in the same way.

The third one is a little clever, called, given the importance of each token, with a weighted average. But the problem is that this score is counted for every token, without considering "who and who are talking the same thing."

These three methods have a common hard wound: They all use only tokens, that is to say, which information is repetitive and which are complementary.

First tier *: This refers to the characteristics of each data point, such as the numerical size of each token.

Second-level relevance*: the relationship between index positions and data points, such as how similar and redundant the two tokens are.

Back to the example of the pre-edited summary: if you were an editor who would only "averagely mix" -- 90 out of 100 stories were repeating the same fact, only 10 mentioned exclusive details, and the average result was that the voice of exclusive details would be completely drowned by 90 duplicates. This is what happens if we do not consider the redundancy between tokens: the repetition of information reinforces each other and the unique information of real value is diluted.

It's not a small, harmless problem. Two scenarios were mentioned as reliant in particular on high-quality compression: one was the output of a large number of images token to be condensed into a few and fed to language models. In both scenarios, where the compression chain is wrong, the downstream cannot be remedied, and the information is completely lost once it is averaged.

**II, Change your mind.: Let Token make his own return**

The research team suggested a method called

TTR-Compressor*: Full name (regressor at test), a new method for using the solution of the regression problem to indicate the compression result.

It's not really complicated to say the core line: instead of asking "how the weighted average sums up this pile of token," it's a different question, "If these tokens are going to come up with a return question, what's the factor to come up with?"

How? The paper assigned two things to each token: a return key, a return target value. Keys are a problem.

Ridge return*: a return approach that incorporates a regularized penalty on the basis of a general linear regression, with the aim of preventing too extreme a coding result that is often used to deal with scenarios of correlation between variables.

The derived regression factor is the compression of this token sequence.

What's the key design in this? It's the issue of return that naturally contains something called, which accurately records the similarities between the two.

Gram Matrix*: A matrix of two internals in a set of vectors, which is used to measure semantic similarities between tokens.

It is this matrix that allows TTR-Compressor to pool and project things that are not possible: When multiple tokens are highly similar and their content is redundant, retrospect solvers automatically allow them to "offset each other" some of their influence, instead of increasing the weight of the redundant content as added.

Here's an analogy. Assuming that you had a 10-person meeting, nine were in full agreement and one presented a different view. If a simple vote is taken by head (equivalent to an average pool), the weight of that unique voice is only one tenth and can easily be ignored. But if an experienced facilitator was making a record of the meeting, he would realize that "the nine people said the same thing, and only one time would suffice, but the views of the tenth person would have to be recorded alone" and that, in the last record, that unique voice would have been significantly more than a tenth. That's exactly what TTR-Compressor did: to identify, through the Gram Matrix, what tokens are saying about the same thing, so that their combined influence is reduced, not linear.

A specific digital example was given to illustrate this point. Assuming that there are three identical tokens and one completely different tokens, the total impact of the three repeat tokens is 3:1, intuitive but not "no" effect, if the traditional token is added to the pool. And with the combined return of TTr-Compressor, the ratio became 3:2, and the group that repeated it, though numerous, had been significantly reduced in relative influence, and the unique token had the right to speak well above the human head ratio. The paper proves that even if the number of duplicate tokens tends to be endless, their combined impact will be locked up by a fixed ceiling and will not grow indefinitely. This theoretical result, which is strictly derived from a mathematical certificate in the paper, is not the result of a brainshot design.

**iii. How this return problem was constructed**

It's not enough to have the idea of a joint return. The details are designed to be successful. The paper contained several key engineering options, each with clear trade-offs.

The first option is to normalize the key. The key to return must be a token feature after integration and cannot be used directly as an original feature. Why? One of the papers was produced, after which the model's performance on the search mission fell from 50.92 per cent to 25.31 per cent, almost to the waist.

There are two reasons for this. The first is that if the key is not integrated and the target value is calculated by linear projection, the projection parameter becomes a fixed answer of "a little ton of food" and, whatever the token is entered, the return result is pulled to this fixed vector, completely losing the meaning of "single solution for each input." Second, from a numerical point of view, if some of the token features are particularly large (e.g., some abnormal values) and not uniform, similar metrics in the Gram Matrix will be dominated by these big values, which will then be compared to "who's big" instead of "who's content is like".

It's like comparing the two CVs to the same degree of similarity, and if you do not first resize the fonts, but measure the "contents" directly by the size of the text, the CV in bold fonts seems to have a particularly large amount of information, but it's just an image of a layout that has nothing to do with the actual CV. Normalization means first that all CVs are translated into uniform numbers and that the comparison returns to the content itself.

The second option is not to be artificially set to fix the parametrics, but to let the model learn by itself.

The paper changed the original standard to a learning item.

The third option is that return target values can be integrated into local context information. The paper provides a contribution that allows each token's target value to reflect not only himself, but also the information of its neighbours. This small change has resulted in a considerable increase of about one percentage point in the search mission and more than four percentage points in the OCR-related indicators for the image compression mission.

** iv. Solving efficiency: how does this work?**

A theoretically beautiful method, which, if counted too slowly, would not work in the actual system. It's also a problem that the papers have spent a lot of time on.

Directly solves the problem of return by desolving a linear equation group of dxd, where d is a characteristic dimension, usually a thousand or more. For high-dimensional characteristics, this calculation is inexhaustible.

The solution is to use it.

For an even form*: another equivalent expression of the same optimisation problem, which here refers to the problem of solving the original dimension of the characteristic dimension into the token quantitative dimension.

The key observation is that, in a compressed scene, the number of token Ts (e.g. 64 tokens in a text block, or 2 x 2/3 x 3 area of the image) to be compressed is usually much smaller than the characteristic dimensiond (in thousands of motion). So the paper turns the problem into a small linear system that solves a TXT.

Cholesky decomposition*: an efficient numeric decomposition method for symmetric symmetry matrices, often used to accelerate the solution of linear equations.

This conversion lowers from O (Td?+d?) to O (T?d+T?), and when T is much smaller than d, this is an increase in efficiency at the quantitative level. The comparison of efficiency tables given in the paper is clear: only two d of learning parameters per compressor for the whole TTR-Compressor is required, which is equivalent to simple attention weighting, far less than the Td?

It reminds me of a day-to-day experience: assuming you're going to measure the height of 10,000 students across the school, it would be a disaster if you were not to compare each student to another 999. But if you find out that you're actually going to have to group up by class, like 30 classes, and then you're going to have to compare the averages and the groups, then the numbers fall. TTR-Compressor's solution to a couple is very similar: using the structural characteristic of "the number of tokens to be compressed is much smaller than the characteristic dimensions", it turns a very heavy calculation into a much smaller, quick problem. Without this conversion, the time cost of training a large model would simply become unrealistic by continuing to use primitive high-level solvency solutions.

**V. Validation in two real scenes**

The theory alone was not enough, and the paper was tested in two completely different applications.

The first scene was a distraction.

Rare attention*: A mechanism that allows large models to process long text with a focus on only part of the relevant content blocks, rather than the whole context, to reduce the cost of calculating.

In this scene, the compressed summary vector is used as a "retrieving key" to help the model determine which block to focus on in the context. The team compared four compressions to a 345 million parametric language model: average pool, fusion projection, attention weighting pool, and TTR-Compressor. All models have trained around 30 billion tokens on data sets.

The results are quite varied. On the basis-test search mission, the average ponding received only 29.71 points, the collage projection and attention-weighted pooling were around 39 points, while TTR-Compressor went directly to 50.92 points, and the volume enhancement version was 51.44 points. More importantly, this advantage is maintained as the context stretches from 8K at the time of training to 32K, indicating that the generalization capacity of this compression is stronger, rather than the advantage of a hard back to remember in the distribution of training.

The second scenario is visual token merger.

This is a routine operation in which high-resolution images are cut into thousands of small pieces by a visual encoder, each of which corresponds to a token, which is too expensive to feed so many tokens directly to a language model, so it is a common practice to combine compression, often by combining 2x2 or 3x3 adjacent areas into one token.

Research team approach and TTR-Compressor. The results showed that, at a combined ratio of 2x2, TTR-Compressor had increased the average score for MMA from 54.93 to 55.92, plus volume enhancement to 56.03. The advantage was further amplified by a combination of 3x3 higher compression: the MLP combined score fell to 52.27, TTR-Compressor maintained 54.30, and the volume version reached 54.85.

One particular detail here is worth mentioning: the 54.85 achieved by TTR-Compressor in 3x3 (i.e. by compressing nine tokens to one) is very close to the 54.93 achieved by MLP in 2x2 (4 to one). In other words, TTR-Compressor reached almost the same level of understanding by using only 44.4 per cent of the MLP visual token. What does that mean in actual deployment? This means that the same picture is processed, and the number of tokens that the model needs to process can be cut down by more than half, with little loss of quality.

The most visible place for upgrading is in text-intensive tasks. Like what?

** VI. Efficiency has not been sacrificed**

A common concern is that this more "smart" method is using computing efficiency for accuracy? Thesis was devoted to a comparison of practical training time-consuming.

While average quenching is indeed the fastest in a thinly focused experiment (trained with 8 H100 GPUs), the training of TTR-Compressor and fusion projectors and attention-weighted quenching is largely at the same level, with a small difference between 21 and 23 hours. In visual token combined experiments (trained with 16 H100 GPUs), TTR-Compressor and standard MLPs are almost equal in time, and TTRs are slightly slower when 2x2 merges, but under 3x3 higher compressions, TTRs are faster than MLPs. This suggests that the advantages of the methodology are not derived from a stack of calculations, but from a real structural design advantage.

The delayed testing at the reasoning stage confirmed this. Under the various context lengths of 8K to 512K, prefilling and decodering of all methods of compression (including TTR-Compressor) are similar and are all significantly faster than full-scale attention mechanisms without any diluted treatment.

** vii. Dismantling the contribution of each design option**

The digestion experiments in the papers were very detailed and deserve special mention because they answered a very practical question: It works. Which part is working?

Five options were tested for the parameterization of target values: constant, linear, MLP, dual linear, and their respective volume enhancement versions. As a result, constants were found to be the worst performance of the target, with an average score of 53.56, which suggests that the return target must contain information on the actual content of the token, otherwise the whole issue of return becomes irrelevant and degradation becomes the average of a fixed pattern. The linear target is better than the constant target, and this simple improvement has brought about a marked increase. Interestingly, in return for a more complex MLP or even a two-linear structure, the upgrading has been limited, with some combinations adding a slight drop in the after-score scores. What really brought the greatest increase was the local collage of the linear target, which received the highest score of 54.85.

This result is indeed instructive: the stacking of more complex nervous network structures (MLPs, dual linear) is not necessarily more effective than obtaining correct local spatial information. What really matters is not "to calculate the target value with a complex function," but "to let the target value know what's going on around here." This reminds us that blindly increasing model capacity is not necessarily in the right direction when designing similar systems, and that sometimes it is more cost-effective to provide the model with more contextualized information than to deepen the number of network layers.

** In the back**

After reading this paper, there's a detail that I've been thinking about: it distinguishes between "extra-circle learning" and "internal-circle search." The model training stage learned that "it is useful to compress what kind of regression problem" and that each specific compression is carried out in a precise, closed solution that does not need to be optimized at the reasoning stage by a gradient reduction, as is often the case with training methods. This design completely decouples "what to learn" and "how to calculate" by training a parameterized return template instead of a set of specific numerical answers, which are used to solve an exact answer on the spot every time you encounter a new input.

This approach is in fact challenging a default assumption that we may not be aware of: can it be done by "learning a map function"? The paper says that compression can also be "learning a problem, and then solving it once for each input." This shift sounds abstract, but it brings real benefits that are concrete and measurable, with an increase of more than a dozen percentage points in the search accuracy and more than half of the number of visual tokens saved.

There is also a very impressive theory in the paper that strictly proves that the impact of repetitive evidence diminishes as the number of repetitions increases, and gives a clear mathematical superb. This is not an empirical observation, but an official proposition that is included in the appendix. A engineering approach can achieve this degree of theoretical concoction, which is not common in this area.

The question that is not answered in this paper is: will the efficiency advantage of solving a couple disappear when the compressed token number T begins to approach the characteristic dimensiond? In that scenario, can this be done? This is probably a topic for follow-up.