码迷,mamicode.com
首页 > 其他好文 > 详细

(转)几种范数的解释 l0-Norm, l1-Norm, l2-Norm, … , l-infinity Norm

时间:2016-10-06 12:45:22      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:

 

几种范数的解释 l0-Norm, l1-Norm, l2-Norm, … , l-infinity Norm 

 

from Rorasa‘s blog

 

l0-Norm, l1-Norm, l2-Norm, … , l-infinity Norm

I’m working on things related to norm a lot lately and it is time to talk about it. In this post we are going to discuss about a whole family of norm.

What is a norm?

Mathematically a norm is a total size or length of all vectors in a vector space  or matrices. For simplicity, we can say that the higher the norm is, the bigger the (value in) matrix or vector is. Norm may come in many forms and many names, including these popular name: Euclidean distanceMean-squared Error, etc.

Most of the time you will see the norm appears in a equation like this:

技术分享 where 技术分享 can be a vector or a matrix.

For example, a Euclidean norm of a vector 技术分享 is 技术分享 which is the size of vector 技术分享

The above example shows how to compute a Euclidean norm, or formally called an 技术分享-norm. There are many other types of norm that beyond our explanation here, actually for every single real number, there is a norm correspond to it (Notice the emphasised word real number, that means it not limited to only integer.)

Formally the 技术分享-norm of 技术分享 is defined as:

技术分享  where 技术分享

That’s it! A p-th-root of a summation of all elements to the p-th power is what we call a norm.

The interesting point is even though every 技术分享-norm is all look  very similar to each other, their mathematical properties are very different and thus their application are dramatically different too. Hereby we are going to look into some of these norms in details.

 

l0-norm 

The first norm we are going to discuss is a 技术分享-norm. By definition, 技术分享-norm of 技术分享 is

技术分享

Strictly speaking, 技术分享-norm is not actually a norm. It is a cardinality function which has its definition in the form of 技术分享-norm, though many people call it a norm. It is a bit tricky to work with because there is a presence of zeroth-power and zeroth-root in it. Obviously any 技术分享 will become one, but the problems of the definition of zeroth-power and especially zeroth-root is messing things around here. So in reality, most mathematicians and engineers use this definition of 技术分享-norm instead:

技术分享

that is a total number of non-zero elements in a vector.

Because it is a number of non-zero element, there is so many applications that use 技术分享-norm. Lately it is even more in focus because of the rise of the Compressive Sensing scheme, which is try to find the sparsest solution of the under-determined linear system. The sparsest solution means the solution which has fewest non-zero entries, i.e. the lowest 技术分享-norm. This problem is usually regarding as a optimisation problem of 技术分享-norm or 技术分享-optimisation.

l0-optimisation

Many application, including Compressive Sensing, try to minimise the 技术分享-norm of a vector corresponding to some constraints, hence called “技术分享-minimisation”. A standard minimisation problem is formulated as:

技术分享 subject to 技术分享

However, doing so is not an easy task. Because the lack of 技术分享-norm’s mathematical representation, 技术分享-minimisation is regarded by computer scientist as an NP-hard problem, simply says that it’s too complex and almost impossible to solve.

In many case, 技术分享-minimisation problem is relaxed to be higher-order norm problem such as 技术分享-minimisation and 技术分享-minimisation.

l1-norm

Following the definition of norm, 技术分享-norm of 技术分享 is defined as

技术分享

This norm is quite common among the norm family. It has many name and many forms among various fields, namely Manhattan norm is it’s nickname. If the 技术分享-norm is computed for a difference between two vectors or matrices, that is

技术分享

it is called Sum of Absolute Difference (SAD) among computer vision scientists.

In more general case of signal difference measurement, it may be scaled to a unit vector by:

技术分享 where 技术分享 is a size of 技术分享.

which is known as Mean-Absolute Error (MAE).

l2-norm

The most popular of all norm is the 技术分享-norm. It is used in almost every field of engineering and science as a whole. Following the basic definition, 技术分享-norm is defined as

技术分享

技术分享-norm is well known as a Euclidean norm, which is used as a standard quantity for measuring a vector difference. As in 技术分享-norm, if the Euclidean norm is computed for a vector difference, it is known as a Euclidean distance:

技术分享

or in its squared form, known as a Sum of Squared Difference (SSD) among Computer Vision scientists:

技术分享

It’s most well known application in the signal processing field is the Mean-Squared Error (MSE) measurement, which is used to compute a similarity, a quality, or a  correlation between two signals. MSE is

技术分享

As previously discussed in 技术分享-optimisation section, because of many issues from both a computational view and a mathematical view, many 技术分享-optimisation problems relax themselves to become 技术分享– and 技术分享-optimisation instead. Because of this, we will now discuss about the optimisation of 技术分享.

l2-optimisation

As in 技术分享-optimisation case, the problem of minimising 技术分享-norm is formulated by

技术分享 subject to 技术分享

Assume that the constraint matrix 技术分享 has full rank, this problem is now a underdertermined system which has infinite solutions. The goal in this case is to draw out the best solution, i.e. has lowest 技术分享-norm, from these infinitely many solutions. This could be a very tedious work if it was to be computed directly. Luckily it is a mathematical trick that can help us a lot in this work.

By using a trick of Lagrange multipliers, we can then define a Lagrangian

技术分享

where 技术分享 is the introduced Lagrange multipliers. Take derivative of this equation equal to zero to find a optimal solution and get

技术分享

plug this solution into the constraint to get

技术分享

技术分享

and finally

技术分享

By using this equation, we can now instantly compute an optimal solution of the 技术分享-optimisation problem. This equation is well known as the Moore-Penrose Pseudoinverse and the problem itself is usually known as Least Square problem, Least Square regression, or Least Square optimisation.

However, even though the solution of Least Square method is easy to compute, it’s not necessary be the best solution. Because of the smooth nature of 技术分享-norm itself,  it is hard to find a single, best solution for the problem.

技术分享

In contrary, the 技术分享-optimisation can provide much better result than this solution.

l1-optimisation

As usual, the 技术分享-minimisation problem is formulated as

技术分享 subject to 技术分享

Because the nature of 技术分享-norm is not smooth as in the 技术分享-norm case, the solution of this problem is much better and more unique than the 技术分享-optimisation.

技术分享

However, even though the problem of 技术分享-minimisation has almost the same form as the 技术分享-minimisation, it’s much harder to solve. Because this problem doesn’t have a smooth function, the trick we used to solve 技术分享-problem is no longer valid.  The only way left to find its solution is to search for it directly. Searching for the solution means that we have to compute every single possible solution to find the best one from the pool of “infinitely many” possible solutions.

Since there is no easy way to find the solution for this problem mathematically, the usefulness of 技术分享-optimisation is very limited for decades. Until recently, the advancement of computer with high computational power allows us to “sweep” through all the solutions. By using many helpful algorithms, namely the Convex Optimisation algorithm such as linear programming, or non-linear programming, etc. it’s now possible to find the best solution to this  question. Many applications that rely on 技术分享-optimisation, including the Compressive Sensing, are now possible.

There are many toolboxes  for 技术分享-optimisation available nowadays.  These toolboxes usually use different approaches and/or algorithms to solve the same question. The example of these toolboxes are l1-magicSparseLab, ISAL1,

Now that we have discussed many members of norm family, starting from 技术分享-norm, 技术分享-norm, and 技术分享-norm. It’s time to move on to the next one. As we discussed in the very beginning that there can be any l-whatever norm following the same basic definition of norm, it’s going to take a lot of time to talk about all of them. Fortunately, apart from 技术分享-, 技术分享– , and 技术分享-norm, the rest of them usually uncommon and therefore don’t have so many interesting things to look at. So we’re going to look at the extreme case of norm which is a 技术分享-norm (l-infinity norm).

l-infinity norm

As always, the definition for 技术分享-norm is

技术分享

Now this definition looks tricky again, but actually it is quite strait forward. Consider the vector 技术分享, let’s say if 技术分享 is the highest entry in the vector  技术分享, by the property of the infinity itself, we can say that

技术分享 技术分享

 then

技术分享

then

技术分享

Now we can simply say that the 技术分享-norm is

技术分享

that is the maximum entries’ magnitude of that vector. That surely demystified the meaning of 技术分享-norm

Now we have discussed the whole family of norm from 技术分享 to 技术分享, I hope that this discussion would help understanding the meaning of norm, its mathematical properties, and its real-world implication.

Reference and further reading:

Mathematical Norm – wikipedia 

Mathematical Norm – MathWorld

Michael Elad – “Sparse and Redundant Representations : From Theory to Applications in Signal and Image Processing” , Springer, 2010.

 Linear Programming – MathWorld

Compressive Sensing – Rice University

 Edit (15/02/15) : Corrected inaccuracies of the content.

(转)几种范数的解释 l0-Norm, l1-Norm, l2-Norm, … , l-infinity Norm

标签:

原文地址:http://www.cnblogs.com/wangxiaocvpr/p/5933512.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!