Docsity

Best k-term Approximation: Reducing Memory Requirements in Graphical Models - Prof. Volkan, Study notes of Statistics

Toggle sidebar
bg1
Sparse Approximation
October 23, 2008
Rice University
STAT 631 / ELEC 639: Graphical Models
Instructor:
Dr. Volkan Cevher
Scribe:
Ryan E. Guerra ([email protected]du)
1 Introduction
In graphical models, we often find that it is too computationally expensive or memory intensive to use the
full representation of a pdf in our calculation and algorithms. For instance, in belief-propagation schemes [2]
the size of the messages being passed can have a large impact on the performance of the algorithm. This
motivates the need for a more concise or compact representation of the information contained in a discrete
pdf. This discussion presents a method for finding a reduced-order representation called the best k-term
approximation.
2 Best k-term Approximation
In data compression literature [1], the general approach to compressing a signal vector x∈RNinvolves
selecting a certain basis set Ψ so that x=PN
i=1 ψisi, and sis the basis set coefficients for the signal. This
basis set is selected such that the information contained in the original signal can be concisely retained in a
subset of the coefficients si. A k-term approximation (kN) of sthen involves selecting kcoefficients in
sand discarding the rest as zero. Selection of which coefficients to keep and which to discard is determined
by minimizing the best k-term approximation error σk(x)X.
We define the norm kak`N
p= (Pi|ai|p)
1
pfor all pas a scalar measure of vector length where kak`N
0,the
length of the vector a, and kak`N
∞= max |ai|
Assuming for the sake of notation that xalready represents the coefficients of the signal in the appropriate
basis, the best k-term approximation error in a given norm `N
pis:w
σk(x)`N
p= min
z∈Σk
kx−zk`N
p(1)
where Σkis the set of all candidate k-term estimates. The best k-term approximation is then the vector
ˆ
xkthat minimizes this error.
b
xk= arg min
z∈Σk
kx−zk`N
p(2)
Much more work is focused around choosing appropriate basis sets and a sufficient kin order to obtain
a certain magnitude of error. This is beyond the scope of this discussion.
3 Best k-term Approximation to a PDF
Without loss of generality, we limit our discussion to a probability distribution function in one dimension.
Let us discretize the support of our pdf on a grid and index each discretized “bin” with θ1. . . θN. We then
draw random samples from our continuous pdf using any of the previously discussed methods and place
them in the corresponding bin. After a sufficient number of samples, this should give us a nice, discretized
representation of our pdf, p=1
zp[p(x=θ1), . . . , p(x=θN)] ∈RNwhere zpis the total number of samples
drawn.
1
pf3

Partial preview of the text

Download Best k-term Approximation: Reducing Memory Requirements in Graphical Models - Prof. Volkan and more Study notes Statistics in PDF only on Docsity!

Sparse Approximation

October 23, 2008 Rice University STAT 631 / ELEC 639: Graphical Models Instructor: Dr. Volkan Cevher

Scribe: Ryan E. Guerra ([email protected])

1 Introduction

In graphical models, we often find that it is too computationally expensive or memory intensive to use the full representation of a pdf in our calculation and algorithms. For instance, in belief-propagation schemes [2] the size of the messages being passed can have a large impact on the performance of the algorithm. This motivates the need for a more concise or compact representation of the information contained in a discrete pdf. This discussion presents a method for finding a reduced-order representation called the best k-term approximation.

2 Best k-term Approximation

In data compression literature [1], the general approach to compressing a signal vector x ∈ RN^ involves selecting a certain basis set Ψ so that x =

∑N

i=1 ψisi, and^ s^ is the basis set coefficients for the signal. This basis set is selected such that the information contained in the original signal can be concisely retained in a subset of the coefficients si. A k-term approximation (k  N ) of s then involves selecting k coefficients in s and discarding the rest as zero. Selection of which coefficients to keep and which to discard is determined by minimizing the best k-term approximation error σk(x)X.

We define the norm ‖a‖`Np = (

i |ai|

p) 1 p (^) for all p as a scalar measure of vector length where ‖a‖N 0 ,^ the length of the vector a, and ‖a‖N ∞ = max |ai| Assuming for the sake of notation that x already represents the coefficients of the signal in the appropriate basis, the best k-term approximation error in a given norm `Np is:w

σk(x)`Np = min z∈Σ k

‖x − z‖`Np (1)

where Σk is the set of all candidate k-term estimates. The best k-term approximation is then the vector xˆk that minimizes this error.

x̂ k = arg min z∈Σk

‖x − z‖`Np (2)

Much more work is focused around choosing appropriate basis sets and a sufficient k in order to obtain a certain magnitude of error. This is beyond the scope of this discussion.

3 Best k-term Approximation to a PDF

Without loss of generality, we limit our discussion to a probability distribution function in one dimension. Let us discretize the support of our pdf on a grid and index each discretized “bin” with θ 1... θN. We then draw random samples from our continuous pdf using any of the previously discussed methods and place them in the corresponding bin. After a sufficient number of samples, this should give us a nice, discretized representation of our pdf, p = (^) z^1 p [p(x = θ 1 ),... , p(x = θN )] ∈ RN^ where zp is the total number of samples drawn.

Let us assume that the basis for the approximation is simply the canonical basis, then we define our best k-term approximation as

̂ pk = arg min z∈Σk

‖p − z‖`Np (3)

where this Σk is the set of all vectors formed by replacing all but k entries in p with zeros, Np is an arbitrary norm, and p > 1. Let p[I(l)] be the vector p with entries ordered by magnitude, largest to smallest. A remarkable result is that the k terms that minimize expression (3) and that therefore uniquely define ̂pk are the first k terms in the p[I(l)]. This can be proved easily by contradiction: a selection of any lesser terms would yield a larger error σk(p)Np.

Since p̂k is not a pdf, we normalize it by letting q = (^) z^1 q ̂pk. An interesting consequence of this is that when we consider the divergence D(q‖p), in particular the Kullback-Leibler divergence, we find that KL(q‖p) = − ln(zq ), a proof of which is given in the appendix. Thus selecting the largest k terms in p for the approximation minimizes the KL-divergence, a rather desirable result. We can think of this intuitively as keeping the k terms that “encode” the most mass in p. This best k-term approximation allows us to substantially reduce the amount of memory required to represent a given pdf, which we will find useful when actually trying to implement message-passing schemes. The selection of k itself will depend heavily on the application at hand, and one’s desired level of error.

References

[1] A. Cohen, W. Dahmen, R. DeVore, “Compressed sensing and best k-term approximation”, preprint,

[2] C. Bishop, Pattern Recognition and Machine Learning, Cambridge, U.K., Springer Science 2006.

APPENDIX

Lemma 1: The Kullback-Leibler divergence of the best k-term approximation to a pdf is simply − log Zq. Define^1 :

p = [p 1 , p 2 ,... , pN ]T^ , pi ≥ 0 ,

q = 1 Zq

[p 1 , p 2 ,... , pk, 0 ,... , 0]T^.

In the above, p represents an unnormalized distribution, q represents the normalized and truncated version of p (q contains the first k terms of p). Zq is the normalization constant that ensures

i qi^ = 1. We now wish to show that KL(q||p) = − log(Zq ). We have defined are vectors such that p and q are sorted (the largest k non-zero terms are at the begining of the distribution) but this can trivially be extended to the unsorted case.

KL(q||p) =

i

qi log

qi pi

1 ≤i≤k

qi log

qi pi

k<i≤N

qi log

qi pi

(^1) this proof courtesy of Andrew Waters ([email protected])