9. Relative Attributesの学習法
属性mのランキングスコアを算出するための重みwmを
学習する。
rm (xi ) w x T
m i
ランキングスコア 画像iから抽出した
特徴ベクトル
以下の条件を満たすように!
(i, j ) Om : wT xi wT x j
m m
(i, j ) Sm : wT xi wT x j
m m
10. Relative Attributesの学習法
属性mのランキングスコアを算出するための重みwmを
学習する。
rm (xi ) w x T
m i
ランキングスコア 画像iから抽出した
特徴ベクトル
以下の条件を満たすように!
(i, j ) Om : wT xi wT x j 1 ij
m m ij 0
マージン
(i, j ) Sm : wT xi wT x j ij
m m ij 0
11. Relative Attributesの学習法
サポートベクターマシン(SVM)
*
m
1
w arg min w m C
2
2
ij
2
ij
wm 2
以下の条件を満たすように!
(i, j ) Om : wT (xi x j ) 1 ij
m ij 0
(i, j ) Sm : wT (xi x j ) ij
m ij 0
13. Zero-Shot Learning From Relationships
学習画像データの無いカテゴリを学習!
N S U
全カテゴリ数 学習画像有り 学習画像無し
カテゴリ数 カテゴリ数
S(Seen)カテゴリ:
• 画像+カテゴリ間の各m個のAttributesの相対関係
• ex. 「ライオンは犬より大きく、虎と同じくらい。象より小さい」
U(Unseen)カテゴリ:
• Sカテゴリとの各Attributesの相対関係
Attribute mについて
c (s) (u )
c (s)
c c(u )
q
(s)
c
r
c (ps ) cqu )
(
p q r
UカテゴリqはSカテゴリpより小さ UカテゴリqはSカテゴ UカテゴリqはSカテゴ
くSカテゴリrより大きい リpより大きい リpより小さい
15. Zero-Shot Learning From Relationships
学習の手順(Seenカテゴリ)
1. 各Seenカテゴリについて、Relative Attributesを学習
rm (xi ) w x
T
m i
学習
16. Zero-Shot Learning From Relationships
学習の手順(Seenカテゴリ)
1. 各Seenカテゴリについて、Relative Attributesを学習
rm (xi ) w x
T
m i
学習
2. 各Seenカテゴリの画像から、属性ベクトルを算出
~ r (x ),, r (x ),, r (x )T
xi 1 i m i M i
17. Zero-Shot Learning From Relationships
学習の手順(Seenカテゴリ)
1. 各Seenカテゴリについて、Relative Attributesを学習
rm (xi ) w x T
m i
学習
2. 各Seenカテゴリの画像から、属性ベクトルを算出
~ r (x ),, r (x ),, r (x )T
xi 1 i m i M i
3. Seenカテゴリの分布をガウス分布で近似
c (ps ) N (μ (ps ) , Σ(ps ) )
c (s ) に属する ~i の平均
p x c (s ) に属する ~i の共分散
p x
18. Zero-Shot Learning From Relationships
学習の手順(Unseenカテゴリ)
4. 各Unseenカテゴリの分布を以下に従いガウス分布で近似
c (ps ) cqu ) cr( s ) の時、
(
1 (s)
μ (u )
qm ( μ pm μrm) )
(s
2
c (ps ) cqu ) の時、
(
μqm) μ (pm d m
(u s)
1 S (s)
Σ (ju ) Σi
cqu ) cr( s ) の時、
(
S i 1
μqm) μrm) d m
(u (s
それ以外(関連が記述されない場合)
1
μ (u )
qm rm (xi )
S iS
19. Zero-Shot Learning From Relationships
学習の手順(Unseenカテゴリ)
4. 各Unseenカテゴリの分布を以下に従いガウス分布で近似
c (ps ) cqu ) cr( s ) の時、
(
1 (s)
μ (u )
qm ( μ pm μrm) )
(s
2
属性mについてカテゴリpの平均と
カテゴリrの平均の中間
20. Zero-Shot Learning From Relationships
学習の手順(Unseenカテゴリ)
4. 各Unseenカテゴリの分布を以下に従いガウス分布で近似
c (ps ) cqu ) cr( s ) の時、
(
1 (s)
μ (u )
qm ( μ pm μrm) )
(s
2
c (ps ) cqu ) の時、
(
μqm) μ (pm d m
(u s)
1
d m rm (xi ) μ (pm
s)
S iS
属性mの強さについて、Seenカテゴリの全画
像とカテゴリpの平均との距離の平均
21. Zero-Shot Learning From Relationships
学習の手順(Unseenカテゴリ)
4. 各Unseenカテゴリの分布を以下に従いガウス分布で近似
c (ps ) cqu ) cr( s ) の時、
(
1 (s)
μ (u )
qm ( μ pm μrm) )
(s
2
c (ps ) cqu ) の時、
(
μqm) μ (pm d m
(u s)
cqu ) cr( s ) の時、
(
μqm) μrm) d m
(u (s
22. Zero-Shot Learning From Relationships
学習の手順(Unseenカテゴリ)
4. 各Unseenカテゴリの分布を以下に従いガウス分布で近似
c (ps ) cqu ) cr( s ) の時、
(
1 (s)
μ (u )
qm ( μ pm μrm) )
(s
2
c (ps ) cqu ) の時、
(
μqm) μ (pm d m
(u s)
cqu ) cr( s ) の時、
(
μqm) μrm) d m
(u (s
それ以外
1
μ (u )
qm rm (xi ) 属性mの強さについて、Seenカ
S iS テゴリの全画像の平均
23. Zero-Shot Learning From Relationships
学習の手順(Unseenカテゴリ)
4. 各Unseenカテゴリの分布を以下に従いガウス分布で近似
c (ps ) cqu ) cr( s ) の時、
(
1 (s)
μ (u )
qm ( μ pm μrm) )
(s
2
c (ps ) cqu ) の時、
(
μqm) μ (pm d m
(u s)
1 S (s)
Σ (ju ) Σi
cqu ) cr( s ) の時、
(
S i 1
μqm) μrm) d m
(u (s
全Seenカテゴリの共
分散行列の平均
それ以外
1
μ (u )
qm rm (xi )
S iS
24. Zero-Shot Learning From Relationships
認識
1. 入力画像から各属性の強さを算出し、属性ベクトルを算出
rm (xi ) wT xi
m
~ r (x ),, r (x ),, r (x )T
xi 1 i m i M i
2. 最も尤度の高いカテゴリを選ぶ
c* arg max P(~i | μ p , Σ p )
x
p1,, N
29. データセットとAttributes
T: tall-building
I : inside-city
S: street
H: highway
C: coast
O: open-country
M: mountain
F: forest
A: Alex Rodriguez
C: Clive Owen
H: Hugh Laurie
J : Jared Leto
M: Miley Cyrus
S : Scarlett Johansson
V: Viggo Mortensen
Z: Zac Efron
31. Zero-Shot Learning結果
ベースライン
Direct Attribute Prediction (DAP) model
C. H. Lampert et al., “Learning To Detect Unseed Object Class by
Between-Class Attribute Transfer”, CVPR2009
Score-based Relative Attributes (SRA)
wT
二値の属性に対して学習した m x i をスコアとし、あとは本手法と同じ
学習方法
Seenカテゴリ数:6、Unseenカテゴリ数:2
Seenカテゴリから4つのペアを用いて属性のランクを学習
Unseenカテゴリは各属性の近傍2つのSeenカテゴリを選択し
て学習
訓練画像: 各カテゴリ30枚
40. Relative Attributesによる表現例(OSR)
Binary
Image Relative descriptions
descriptions
more natural than tallbuilding, less natural than forest
not natural more open than tallbuilding, less open than coast
not open more perspective than tallbuilding
perspective
not natural more natural than insidecity, less natural than highway
not open more open than street, less open than coast
perspective more perspective than highway, less perspective than
insidecity
more natural than tallbuilding, less natural than
natural
mountain
open
more open than mountain
perspective
less perspective than opencountry
41. Relative Attributesによる表現例(PubFig)
Binary
Image Relative descriptions
descriptions
more White than AlexRodriguez
White more Smiling than JaredLeto, less Smiling than
not Smiling ZacEfron
VisibleForehead more VisibleForehead than JaredLeto, less
VisibleForehead than MileyCyrus
more White than AlexRodriguez, less White
White
than MileyCyrus
not Smiling
less Smiling than HughLaurie
not
more VisibleForehead than ZacEfron, less
VisibleForehead
VisibleForehead than MileyCyrus
more Young than CliveOwen, less Young than
ScarlettJohansson
not Young
more BushyEyebrows than ZacEfron, less
BushyEyebrows
BushyEyebrows than AlexRodriguez
RoundFace
more RoundFace than CliveOwen, less RoundFace
than ZacEfron