attribute-based transfer learning for object categorization with zero/one training samples meina kan...

49
Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Upload: hubert-simmons

Post on 25-Dec-2015

242 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Attribute-Based Transfer Learning for Object Categorization with zero/one Training

Samples

Meina Kan2010-12-17

Page 2: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Outline• 作者介绍• 背景介绍

– Transfer Learning

• Attribute-Based Transfer Learning– Attribute model: Author-Topic Model

– Target Classifier: Category-Topic Model

– Method to Transfer Learning Knowledge Transfer by Synthesis of Training Examples Knowledge Transfer by Information Parameter Priors

• 实验结果

Page 3: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

作者 (1/2)• Xiaodong Yu (homepage)

– EductionPh.D Candidate at ECE, MarylandMaster: National University of Singapore, 2001Bachelor: University of Science and Technology of China,1999

– Research InterestComputer Vision & Machine LearningCurrent: research on integrating vision and language for object,

activity, scene recognitionThesis: Bridging the Semantic Gap: Image and Video

Understanding by Integrating Vision and Language

– PublicationJournal: PR 09, Multimedia Tools and App 07, IJCG 06Conference: ECCV 10, 08, ICPR 08, BMVC 07

Page 4: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

作者 (2/2)• Yiannis Aloimonos (homepage)

– EducationDiplome: University of Athens( 雅典 ), Greece, 1981M.S.: University of Rochester( 罗契斯特 ), New York,1984Ph.D: University of Rochester, New York, 1987

– Professional Experience1986~present: Computer Vision Laboratory, University of Maryland, Assistant

Professor , Associate Professor ,Professor1993~1994: Visiting Professor, Royal Institute of Technology, Stockholm( 斯特

哥尔摩 ), Sweden( 瑞典 )

– Current Research on Active Visionthe problem of segmenting a scene into different surfaces through the

integration of visual cues. This is the heart of the vision processes underlying the perception of space and objects.

the interpretation and understanding of action

Page 5: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Abstract• This paper studies the one-shot and zero-shot learning problems, where each object

category has only one training example or has no training example at all.

• We approach this problem by transferring knowledge from known categories (a.k.a source categories) to new categories (a.k.a target categories) via object attributes. Object attributes are high level descriptions of object categories, such as color, texture, shape, etc. Since they represent common properties across different categories, they can be used to transfer knowledge from source categories to target categories effectively.

• Based on this insight, we propose an attribute-based transfer learning framework in this paper. We first build a generative attribute model to learn the probabilistic distributions of image features for each attribute, which we consider as attribute priors. These attribute priors can be used to (1) classify unseen images of target categories (zeroshot learning), or (2) facilitate learning classifiers for target categories when there is only one training examples per target category (one-shot learning). We demonstrate the effectiveness of the proposed approaches using the Animal with Attributes data set and show state-of-the-art performance in both zero-shot and one-shot learning tests.

Page 6: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

摘要• 本文研究了 one-shot 和 zero-shot learning 问题。

– One-shot learning :每类只有一个训练样本– Zero-shot learning :没有训练样本

• 我们通过迁移学习解决这个问题– 通过物体属性 (object attribute) 将源类别 (or known) 上得到的知识迁移到目标类别

上– 物体属性是对物体类别的高级描述,比如颜色,纹理,形状等。他们是不同类别

的共有属性,可以用来将源类别的信息迁移到目标类别上• 我们提出了一个基于属性的迁移学习框架

– 首先建立一个产生式模型,针对每个属性学习它对应的图像特征的概率分布,这将被视作先验

– 属性先验可以用来 对没有训练样本的分类问题 (zero-shot learning) 促进只有一个训练样本的分类问题 (one-shot learning)

• 我们的方法在 Animal with Attributes 数据集的 zero-shot 和 one-shot 任务上取得了 state-of-the-art 的性能

Page 7: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Outline• 作者介绍• 背景介绍

– Transfer Learning

• Attribute-Based Transfer Learning– Attribute model: Author-Topic Model

– Target Classifier: Category-Topic Model

– Transfer Learning Knowledge Transfer by Synthesis of Training Examples Knowledge Transfer by Information Parameter Priors

• 实验结果

Page 8: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

背景介绍— Transfer Learning• Different learning processes between traditional

machine learning and transfer learning

大象 马 羚羊

Page 9: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

背景介绍— Transfer Learning

• One-Shot Learning– Only one training example per category

• Zero-Shot Learning– No training example for the target category

• Solutions– 将在源类别上得到的知识迁移到目标类别上– 相当于增加了目标类别的训练样本

Page 10: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

背景介绍— Transfer Learning• 物体分类上的 knowledge transfer 方法可以分成三类

– By sharing either features or model parameters, or context information

– Considering ontological knowledge of object similarity

– Employing the object attributesSemantic knowledge: high-level descriptions about properties of object

categories such as color, texture, shape, parts, context.Method proposed in this paper belongs to this group

Page 11: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Outline• 作者介绍• 背景介绍

– Transfer Learning

• Attribute-Based Transfer Learning– Attribute model: Author-Topic Model

– Target Classifier: Category-Topic Model

– Method to Transfer Learning Knowledge Transfer by Synthesis of Training Examples Knowledge Transfer by Information Parameter Priors

• 实验结果

Page 12: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Attribute-Based Transfer Learning Framework

• Different learning processes between – (a) traditional machine learning and

– (b) transfer learning proposed in this paper.

(a) (b)

Attribute: represent common properties across different categories

Page 13: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

• An example– people who have never seen a zebra ( 斑马 ) still

could reliably identify an image of zebra if we tell them that “a zebra is a wild quadrupedal ( 四脚的 ) with distinctive white and black strips ( 黑白相间条纹 ) living on African savannas ( 非洲草原 )”.

– Since they have prior knowledge about the related object attributes, e.g., quadrupedal, white and black strips, African savannas, they can transfer them to facilitate prediction of unseen categories.

Attribute-Based Transfer Learning Framework

Page 14: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

• 3 key components in an attribute-based transfer learning system– Attribute model

属性和图像特征之间的联合概率密度分布

– Target classifier

– Method to transfer attribute prior

Attribute-Based Transfer Learning Framework

Page 15: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Attribute-Based Transfer Learning• Framework

(a)Attribute Model: Author-Topic Model(b)Target Classifier: Category-Topic Model(c) Target Classifier with transfered knowledge

Page 16: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Attribute Model• Employ Author-Topic model as attribute model

– Relationship of Category-Attribute is similar to that of Document-Author.

Visual words: quantized image feature

Document with authors: w

Topics: z

Words: ω

Image with attributes

Theme: co-occurred image feature

Page 17: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Attribute Model

• AT model is a generative model– aj : a list of attributes of Image j

– x: one attribute modeled by a discrete distribution of K topics, which

parameterized by a K-dim vector

– z: one topic modeled by a discrete distribution of W codewords, which

parameterized by a W-dim vector

– w: one word

– Symmetric Dirichlet priors are placed on θ and ϕ, with

Page 18: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

• 离散概率密度函数 和 本身服从 Symmetric Dirichlet 分布• 我们需要求解

Attribute Model

Page 19: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Attribute Model• Goal

– Joint Distribution

– For discrete we needIdentify the values of θ and ϕ given training corpus

• How?– Gibbs sampling

Sampling (x, z, ω), since ω are observed data, they can be used directly, rather than sampling

( , , ) ( ) ( | ) ( | , ) ( ) ( | ) ( | )p x z p x p z x p x z p x p z x p z

Page 20: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Attribute Model• Gibbs sampling

– Sampling (x, z, ω)Only need to sample (x, z)since ω are observed data, they can be used directly, rather than

samplingSampling density:

More details found in: Learning author-topic models from text corpora. TIS 09.

Page 21: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Attribute Model• Gibbs sampling

– Sampling (x, z, ω)

– Posterior mean

corresponding to the attribute model

: probability of topic k on attribute l

: probability of work v on topic k

Page 22: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Attribute-Based Transfer Learning• Framework

(a)Attribute Model: Author-Topic Model(b)Target Classifier: Category-Topic Model(c) Target Classifier with transfered knowledge

Page 23: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Target Classifier• Target Classifier

– SVM

– AT model if attribute list is unique in each category

– Category-Topic Model

Page 24: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

• Category-Topic Model– 只有一个属性的 AT model(label information)

– For a test image , by choosing the target classifier that yields the highest likelihood

Target Classifier

π:

Φ:

Page 25: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Target Classifier• Author-Topic model

– 如果每类的属性列表是唯一的 (unique) 的, AT model也可以用作 Target Classifierclassify a new image by maximum likelihood criterion

– 假设我们从源类别学习到了 A 个属性

– 分类

Pseudo weight:

This pseudo weight can be viewed as the prior of πm before we see the real training examples of the new category

Page 26: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Target Classifier• Target Classifier

– SVMHave to see some training examples of target categories

– AT model if attribute list is unique in each categoryCan be used to deal with zero-shot learningIneffective for one-shot learning

– Category-Topic ModelHave to see some training examples of target categoriesCan not be used in zero-shot learning

Page 27: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Attribute-Based Transfer Learning• Framework

(a)Attribute Model: Author-Topic Model(b)Target Classifier: Category-Topic Model(c)Target Classifier with transferred knowledge

Page 28: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Method to Transfer• Problems

– Cannot be applied in zero-shot learning

– Ineffective in one-shot learning

• Method to Transfer– Knowledge Transfer by Synthesis of Training Examples

– Knowledge Transfer by Information Parameter Priors

Page 29: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Method to Transfer• Knowledge Transfer :合成训练样本– 合成目标类别的训练样本

首先,从源类别学习属性模型然后,对于每个目标类别,用前面的产生过程产生

S 个训练样本。其参数为估计得到参数为目标类别相关的属性的,其中的参数 ˆθ and ˆφ

– S 反映了对 attribute prior 的 confidence可以用来调节 attribute prior 和目标类别的新样本之

间的平衡

Page 30: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Method to Transfer• Knowledge Transfer : Informative Parameter Priors

– Give parameters of the CT models in the target classifiers informative priors

(b): π and ϕ are given symmetric Dirichlet Distribution as prior. The base measure is uniform distribution and be neglected

(c): π and ϕ are given Dirichlet Distribution as prior. μ and η are the base measure

1 1 1, , ,control vector

K K K

1 2( , , , )m m m mKcontrol vector (b)CT (c)CT+P

Page 31: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Method to Transfer• Knowledge Transfer : Informative Parameter Priors

Target Classifier with transferred knowledge

Page 32: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Method to Transfer• Importance of informative priors for zero-shot learning

– Category-Topic Model

Have to see some training samples of target category Otherwise, can only give symmetric Dirichlet prior Cannot be used in zero-shot learning

– Category-Topic Model with informative priors

give Dirichlet prior Can be used in zeros-shot & one-shot learning

Page 33: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Outline• 文章介绍• 背景介绍

– Transfer Learning

– Author-Topic Model

• Attribute-Based Transfer Learning– Attribute Model and Target Classifier

Category-Topic Model

– Transfer Learning Knowledge Transfer by Synthesis of Training Examples Knowledge Transfer by Information Parameter Priors

• 实验

Page 34: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

实验• 数据库和图像特征

– Animals with Attributes (AwA)This dataset provides a plattform to benchmark transfer-learning

algorithms, in particular attribute base classification30475 images from 50 animal categories85 attributes per category, 38 non-visual, 47 visualCategory-attribute relationship: 50*85 matrix M

– 特征4 types of features: SIFT, rgSIFT , Local color histogram, local

self-similarity histogram, about 5000 features per imageEach type of feature: 1000 words by k-mean clusteringFeatures in images are quantized into one of the codeword

Page 35: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

实验• 实验设置

– TasksSource categories: 40, Target categories: 10Zero-shot learning, One-shot Learning

– Baseline AlgorithmDirect Attribute Prediction (DAP)

State-of-the-art method for zero-shot learning on AwA For zero-shot learning : DAP + MAP For one-shot learning : DAP + 1NN

SVM SVM + synthesized training samples

– 参数AT model: K0=10 unshared topics per attribute

CT model: 100 topicsSVM: C-SVC with χ2 kernel

Page 36: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

实验• 实验设置

– 评测Zero-shot learning

AT & DAP are trained using the first 100 images of each source category CT & SVM+S are trained on these synthesized samples

» Use AT model to generate S={10,20,100} synthesized examples for each target category

CT with informative prior (CT+P)

» ϕ and π learned in AT model as prior in CT+POne-shot learning

CT & SVM are trained with synthesized samples /informative prior+ first M={1,5,10} images of each target category

AT model is trained with 100 images of each source category + first M images of each target category

DAP+NN: attributes of first M images for NN classifiers

In both Zeros-shot and One-shot tests, all classifiers are tested over the last 100 images of each target category

Page 37: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

实验 :Test 1• using all attributes for SVM+S, CT+S, CT+P

• 结论– A better attribute model

– A better method of knowledge transfer for one-shot

– A better target classifier

– Performance of CT+S > CT+P CT+P can be viewed as online version of CT+S

– More real training samples, less improvement due to prior knowledge

(1) SVM+S (2)CT+S (3)CT+P

Page 38: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

实验• Illustrations of attribute model

Page 39: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

实验 :Test 2• Non-visual Attributes is important in the transfer learning

Top: with all attributesBottom: with visual attributes only

Page 40: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

实验 :Test 3• Effectiveness of the Knowledge of attribute in

the transfer learning

Top: with ground truth attributesBottom: with attributes selected randomly for each target category

Page 41: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Conclusion• 提出了一种基于物体属性的迁移学习框架

– 使用产生式模型来描述属性相关的特征的分布– Category-Topic model 作为 Target Classifier

– 两种迁移 attribute prior 的方法• Personal View

– 用 object attribute 作为迁移知识的载体– 将 object attribute 的概率分布作为先验加入到 target classifier

• Future work– More evaluations

– Compare with methods not using attribute

– Employ spatial constraints

– Select informative attributes for particular category

Page 42: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Thanks for Attention

Page 43: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

附录• Discrete Distribution

• Dirichlet Distribution

• Gibbs Sampling

Page 44: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Discrete probability distribution• Discrete probability distribution

– A probability distribution is called discrete if its cumulative distribution function only increases in jumps.

– More precisely, a probability distribution is discrete if there is a finite or countable set whose probability is 1.

– Discrete distributions are characterized by a probability mass function p such that

Page 45: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Dirichlet Distribution• Dirichlet Distribution

– often used as prior distributions in Bayesian statistics

– returns the belief that the probabilities of K rival events are xi given that each event has been observed αi − 1 times.

– symmetric Dirichlet distributionall of the elements making up the vector have the same value.often used when there typically is no prior knowledge favoring one

component over another. can be parametrized by a single scalar value α, called the concentration

parameter.

Page 46: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17
Page 47: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Gibbs Sampling• Gibbs Sampling

– an algorithm to generate a sequence of samples from the joint probability distribution of two or more random variables.

– The purpose of such a sequence is to approximate the joint distribution; to approximate the marginal distribution of one of the variables…..

– applicable when the joint distribution is not known explicitly or is difficult to sample from directly, but the conditional distribution of each variable is known and is easy (or at least, easier) to sample from.

Page 48: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Gibbs Sampling– Gibbs sampling is particularly well-adapted to

sampling the posterior distribution of a Bayesian network

– Sampling process

The samples can approximate the joint distribution of all variables

Page 49: Attribute-Based Transfer Learning for Object Categorization with zero/one Training Samples Meina Kan 2010-12-17

Attribute-Based Transfer Learning• Framework

(a)Attribute Model: Author-Topic Model(b)Target Classifier: Category-Topic Model(c) Target Classifier with transferred knowledge

(a) (b) (c)