skip to content
← Scientific Spaces English

The Elements of DeltaNet's Core Inverse Matrix Are Always in [-1, 1]

From "A Brief History of Linear Attention: From Imitation and Innovation to Feeding Back", we can see that the parallel form of DeltaNet involves an inverse matrix of the form . Recently, reader @Arch123 pointed out that experiments show the elements of this inverse matrix are always in , and asked whether this can be mathematically proved or disproved.

In this post, we will prove through two different approaches that this conclusion strictly holds.

Problem Formulation #

First, let us state the problem precisely. Let there be a matrix , where each is a column vector with a norm not exceeding 1, is a lower triangular mask matrix defined as

is the identity matrix, and . What we want to prove is:

Let , and denote its inverse matrix as . Writing out explicitly gives

Since each has a norm not exceeding 1, it is obvious that each element of is in ; what we want to prove is that each element of is also in .

Mathematical Induction #

Since this inverse matrix arises in DeltaNet, it definitely has a clear model context. Leveraging this background might help us prove it more quickly, but we will leave that discussion to the next section. In this section, we will still approach it as a purely mathematical problem.

Diagonal Properties #

In "Efficient Inversion Method for 'Diagonal + Low-Rank' Triangular Matrices", we have already seen that lower triangular matrices have some excellent properties: first, they are closed under matrix multiplication; second, they satisfy the property that "the diagonal of the inverse matrix equals the inverse of the diagonal," which can also be extended to block lower triangular matrices, namely, "the diagonal blocks of the inverse matrix equal the inverses of the diagonal blocks."

From this, we haveand, where slices are understood in the NumPy sense. This property inspires us to use mathematical induction on . Assuming the conclusion holds for any matrix satisfying the condition, then for the matrix , we only need to consider the following two block partitionings:

Then, according to and , we can prove that in , except for the bottom-left , all other elements lie in , so it only remains to prove that .

Adjugate Matrix #

To prove , we consider using the adjugate matrix to express explicitly. Since is a lower triangular matrix with all ones on the diagonal, its determinant is 1. Thus, according to the matrix inversion formula via the adjugate matrix, we have

This is obtained from a lower triangular matrix by turning all superdiagonal elements into 1, so computing the determinant is slightly more complicated, but not overly so. Because the last column has only two non-zero elements, expanding the determinant along the last column turns it into the subtraction of two -order determinants, a feature that once again guides us toward mathematical induction.

Product Form #

We can try calculating the first few cases by hand:

From this, we can conjecture that

Readers are invited to prove this conjecture on their own using mathematical induction. Assuming that this conjecture has been proved, then according to the condition , we obtain , and hence

This completes the proof of , and consequently, by mathematical induction, always holds.

Double Computation #

The direct proof in the previous section might seem rather "brute-force". Later, @zhxlin from the FLA group reminded me that we can return to the original context of this inverse matrix—DeltaNet—and compute DeltaNet in two different ways, obtaining an explicit expression for the inverse matrix by comparing the results, thereby completing a relatively concise proof.

Inverse Matrix Formulation #

As we know, the recurrent form of DeltaNet is

where . Looking first at the second equality, let us define , and then

Therefore,

Defining , the above equation is equivalent to , or , which is where the inverse matrix comes from; it is key to parallel computation in DeltaNet and subsequent works such as GDN and KDA.

Recurrence Expansion #

Looking now at the first equality, expanding it step by step directly gives

Here, , with the convention that .

Substituting the above equation into the definition of gives

Comparing Results #

Denoting again , then gives ; comparing this with the equation above, we can read off

Thus, we only need to prove that , which follows immediately from together with established in the first proof:

Therefore, the desired conclusion holds.

Summary #

In this post, I have presented two proofs of the boundedness of the core inverse matrix in DeltaNet.