



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A set of lecture notes from a university course on data compression & modeling, specifically focusing on vector quantization. The notes cover topics such as vector quantization algorithms, lloyd's algorithm, tree-structured vector quantizers, mean-removed vector quantizers, gain-shape vector quantizers, and multi-stage vector quantizers. The notes also discuss various distortion measures and the concept of finite state vector quantizers.
Typology: Study notes
1 / 7
This page cannot be seen from the preview
Don't miss anything!




ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
Lecture 7:
Vector Quantization
School of Electrical and Computer Engineering
Georgia Institute of Technology
Spring, 2004
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
Notations & Terminology
β α
α β
d E
d E
}
,
{
I i S
S
i^
∈
=
α β
j
i
S
S
S
j
i
i^
≠
=
∩
⇒
if
disjoint
are
φ
A
S
i I ii
=
∪
∈,
}
) (
: {
I
i
S
i^
′
=
x
x
α
l
β α =
rate. the
determines
also
which
function"
length"
the is l
x
ˆ x
α
β
i
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
Vector Quantization
x
ˆ x
α
β
i
Framing
Nearest-neighborsearch
codeword
index
Tablelookup
Synthesis
codebook
codebook
Grouping data intowaveform blocks orfor analysis toproduce repre-sentation vectors
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
-^
-^
From Scalar to Vector - Advantages
Scalarquantizer
Vectorquantizer
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
Non-uniform Quantizer
-^
-^
-^
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
Use data rather than distribution to design the quantizer –i.e,, train the quantizer.
-^
Let
be a set of data from a
stationary source and
-^
The encoder
assigns every data point
to a region,
indexed
i
, which contains the subset
which can be considered a sample of the set
-^
The decoder uses
as the reproduction vector for
each region, incurring
as the distortion or
Empirical Design of Quantizer Codebook as the average distortion:
i
x^
i
i
d^
})) ( , (
{∑
Ω∈
β x
∑
∑ ∈^
Ω∈
I i^
i
i
d
x^
x
β
i
S^ i
x
x
α
j^
}
), ( {^
I i i^
∈
β
j
}
) (
and
: {^
I i
i^
∈ = Ω ∈ = Ω
x
x x
α
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
Iterative (Hill Climbing) Procedure
x
x
ˆ
:
,
:
), , (^
→
→
=
I
I
Q
β α β α m C
) , ( ) , ( ) , ( β α β α β α
′
′
≥
′
≥
D
D
D
NearestNeighbor Partitioning
Centroid Computation
Convergence check
(^1) + m C
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
The Lloyd Algorithm
-^
-^
-^
-^
I i i j q j
i^
{ x
j q i^
m C m C
j^
j
j q i^
x for
codeword
closest the of
index ) (^
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
1
log
2 |)
( |) (
1
| ,^ |
2 ,^2
2
2
2 2
−
−
=
^
∞
σ σ
ω π
ω
σ
σ
π π
ω^
x
j
IS
d e A X A X d
i
X
x
j
X
X^
IS
i^
i
i
i
d e A X A X d D
Ω −
−
=
=^
Ω∈
∞
−^
Ω∈
Ω∈
2 ,^2
2
2
2 2
log
2 |)
( | ) ( 1 |
,|
σ^ σ
ω π
ω
σ
σ
π π
ω
)
2
2
2
2 |)
( |) (
1
σ
ω π
ω
σ
π π
ω^
a R a^
p t
j^
d
e A
X
=
and
i
i^
α
2
,
2
,
2
2
2 |)
( | ) (
1
σ
σ
ω π
ω
σ
π π
ω^
a
R
a a
R a^
Ω∈
Ω∈
−^
Ω∈
=
=^
i
i
i
X^
p X
t
X^
p X t
j
X
d
e A
X
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
Each training token is compared to all the codewords in each iteration.Each training token is compared to two codewords in the respective regionduring each iteration.
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
00
10
00
10
Input vector
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
-^
-^
-^
-^
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
-^
While going with longer vectors will get closer to theperformance bound, the complexity and/or (practical) latencybecome a problem.
-^
May need to compromise by using smaller vectors (not to grouptoo many together) or breaking the vectors (even in the case ofa complete set of parameters that define a model) into smallerchunks.
Framing
Nearest-neighborsearch
codeword
index
Tablelookup
Synthesis
codebooks
codebooks
Complexity comparison?
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
-^
Often the mean of a vector may have different significance ineither statistics or in perception.
-^
Recall the structural component of information; mean can beconsidered a 1
st^
2 1
k
2 1
xk
x x^
x
k i
1
μ
2 1
rk
r r^
r^
1
i
r^
r
k
μ
r
j
r^
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
index
μ
index
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
-^
Similar to mean, the root mean square value of the vector canbe considered a 1
st^
order structure, used to scale the vector.
1 ( x
x
s^
−
g
2 1
xk
x x^
x^
k i
1
2
2
2
2
t
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 7, Slide #
Performance - PTVQ
1
2
3
4
5
6
7
8
9
RATE (bits/vector)
1.81.61.4 1.21.00.80.6 0.4Likelihood ratio distortion0.
Training performance
RATE (bits/vector)
Likelihood ratio distortion
1
2
3
4
5
6
7
8
9
1.81.61.41.21.0 0.80.60.40.
Testing performance