Learning Image-Specific Attributes by Hyperbolic Neighborhood Graph Propagation
Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence. Main track. Pages 3989-3995.
https://doi.org/10.24963/ijcai.2019/554
Keywords
- Machine Learning: Classification
- Machine Learning: Semi-Supervised Learning
- Computer Vision: Recognition: Detection, Categorization, Indexing, Matching, Retrieval, Semantic Interpretation
Abstract
As a kind of semantic representation of visual object descriptions, attributes are widely used in various computer vision tasks. In most of existing attribute-based research, class-specific attributes (CSA), which are class-level annotations, are usually adopted due to its low annotation cost for each class instead of each individual image. However, class-specific attributes are usually noisy because of annotation errors and diversity of individual images. Therefore, it is desirable to obtain image-specific attributes (ISA), which are image-level annotations, from the original class-specific attributes. In this paper, we propose to learn image-specific attributes by graph-based attribute propagation. Considering the intrinsic property of hyperbolic geometry that its distance expands exponentially, hyperbolic neighborhood graph (HNG) is constructed to characterize the relationship between samples. Based on HNG, we define neighborhood consistency for each sample to identify inconsistent samples. Subsequently, inconsistent samples are refined based on their neighbors in HNG. Extensive experiments on five benchmark datasets demonstrate the significant superiority of the learned image-specific attributes over the original class-specific attributes in the zero-shot object classification task.
- [Akata et al., 2016] Zeynep Akata, Florent Perronnin, Zaid Harchaoui, and Cordelia Schmid. Label-embedding for image classification. IEEE TPAMI, 38(7):1425-1438, 2016.
- [Chen et al., 2018] Long Chen, Hanwang Zhang, Jun Xiao, Wei Liu, and Shih-Fu Chang. Zero-shot visual recog- nition using semantics-preserving adversarial embedding networks. In CVPR, 2018.
- [Farhadi et al., 2009] Ali Farhadi, Ian Endres, Derek Hoiem, and David Forsyth. Describing objects by their attributes. In CVPR, 2009.
- [Ganea et al., 2018] Octavian-Eugen Ganea, Gary Bécigneul, and Thomas Hofmann. Hyperbolic en- tailment cones for learning hierarchical embeddings. In ICML, 2018.
- [Gaur and Manjunath, 2017] Utkarsh Gaur and BS Manju- nath. Weakly supervised manifold learning for dense se- mantic object correspondence. In ICCV, 2017.
- [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recog- nition. In CVPR, 2016.
- [Jang et al., 2018] Jinhyeok Jang, Hyunjoong Cho, Jaehong Kim, Jaeyeon Lee, and Seungjoon Yang. Facial at- tribute recognition by recurrent learning with visual fix- ation. IEEE Trans. Cybern., 2018.
- [Kakaletsis et al., 2018] Efstratios Kakaletsis, Olga Zoidi, Ioannis Tsingalis, Anastasios Tefas, Nikos Nikolaidis, and Ioannis Pitas. Label propagation on facial images using similarity and dissimilarity labelling constraints. In ICIP, 2018.
- [Kodirov et al., 2017] Elyor Kodirov, Tao Xiang, and Shao- gang Gong. Semantic autoencoder for zero-shot learning. In CVPR, 2017.
- [Kumar Verma et al., 2018] Vinay Kumar Verma, Gundeep Arora, Ashish Mishra, and Piyush Rai. Generalized zero- shot learning via synthesized examples. In CVPR, 2018.
- [Lampert et al., 2014] Christoph H Lampert, Hannes Nick- isch, and Stefan Harmeling. Attribute-based classification for zero-shot visual object categorization. IEEE TPAMI, 36(3):453-465, 2014.
- [Lankford, 1969] Philip M Lankford. Regionalization: the- ory and alternative algorithms. Geographical Analysis, 1(2):196-212, 1969.
- [LeCun et al., 2015] Yann LeCun, Yoshua Bengio, and Ge- offrey Hinton. Deep learning. Nature, 521(7553):436, 2015.
- [Liu et al., 2018] Yang Liu, Quanxue Gao, Jin Li, Jungong Han, and Ling Shao. Zero shot learning via low-rank em- bedded semantic autoencoder. In IJCAI, 2018. IJCAI
- [Mahajan et al., 2018] Dhruv Mahajan, Ross Girshick, Vig- nesh Ramanathan, Kaiming He, et al. Exploring the limits of weakly supervised pretraining. In ECCV, 2018.
- [Nickel and Kiela, 2017] Maximillian Nickel and Douwe Kiela. Poincaré embeddings for learning hierarchical rep- resentations. In NIPS, 2017.
- [Nitta and Kuroe, 2018] Tohru Nitta and Yasuaki Kuroe. Hyperbolic gradient operator and hyperbolic back- propagation learning algorithms. IEEE TNNLS, 29(5):1689-1702, 2018.
- [Parikh and Grauman, 2011] Devi Parikh and Kristen Grau- man. Relative attributes. In ICCV, 2011.
- [Patterson and Hays, 2012] Genevieve Patterson and James Hays. Sun attribute database: Discovering, annotating, and recognizing scene attributes. In CVPR, 2012.
- [Roy et al., 2018] Debaditya Roy, Sri Rama Murty Ko- dukula, et al. Unsupervised universal attribute modelling for action recognition. IEEE TMM, 2018.
- [Shepard, 1968] Donald Shepard. A two-dimensional inter- polation function for irregularly-spaced data. In ACM Na- tional Conference, 1968.
- [Tay et al., 2018] Yi Tay, Luu Anh Tuan, and Siu Cheung Hui. Hyperbolic representation learning for fast and ef- ficient neural question answering. In ACM WSDM, 2018.
- [Toussaint, 1980] Godfried T Toussaint. The relative neigh- bourhood graph of a finite planar set. Pattern Recognition, 12(4):261-268, 1980.
- [Welinder et al., 2011] Peter Welinder, Steve Branson, Takeshi Mita, Catherine Wah, et al. The caltech-ucsd birds-200-2011 dataset. Technical Report CNS-TR-2011- 001, California Institute of Technology, 2011.
- [Xian et al., 2018a] Yongqin Xian, Christoph H Lampert, Bernt Schiele, and Zeynep Akata. Zero-shot learning-a comprehensive evaluation of the good, the bad and the ugly. IEEE TPAMI, 2018.
- [Xian et al., 2018b] Yongqin Xian, Tobias Lorenz, Bernt Schiele, and Zeynep Akata. Feature generating networks for zero-shot learning. In CVPR, 2018.
- [Xu et al., 2017] Xing Xu, Fumin Shen, Yang Yang, Dongxi- ang Zhang, Heng Tao Shen, and Jingkuan Song. Matrix tri- factorization with manifold regularizations for zero-shot learning. In CVPR, 2017.
- [Zhang et al., 2018a] Zhao Zhang, Lei Jia, Mingbo Zhao, Guangcan Liu, Meng Wang, and Shuicheng Yan. Kernel- induced label propagation by mapping for semi-supervised classification. IEEE Transactions on Big Data, 2018.
- [Zhang et al., 2018b] Zhao Zhang, Fanzhang Li, Lei Jia, Jie Qin, Li Zhang, and Shuicheng Yan. Robust adaptive em- bedded label propagation with weight learning for induc- tive classification. IEEE TNNLS, 29(8):3388-3403, 2018.
- [Zhou, 2017] Zhi-Hua Zhou. A brief introduction to weakly supervised learning. National Science Review, 5(1):44-53, 2017.
- [Zoidi et al., 2018] Olga Zoidi, Anastasios Tefas, Nikos Nikolaidis, and Ioannis Pitas. Positive and negative label propagations. IEEE Trans. Circuits Syst. Video Technol., 28(2):342-355, 2018.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
With the rapid development of machine learning techniques and explosive growth in big data, computer vision has made tremendous progress in recent years [LeCun et al., 2015]. As a kind of semantic information, visual attributes received a lot of attention and have been used in various computer vision tasks, such as zero-shot classification (ZSC) [Lampert et al., 2014] and action recognition [Roy et al., 2018].
Attributes are typical nameable properties for describing objects [Farhadi et al., 2009]. They can be the color or shape, or they can be a certain part or a manual description of objects. For example, object elephant has attributes big and long nose, object zebra has attributes striped and tail. Generally, attributes can be detected by recognition systems, and they can be understood by humans. In computer vision tasks, attributes are shared by multiple objects, and thus they can transfer semantic information between different classes [Lampert et al., 2014]. The essential of attribute-based learning model is that attributes are introduced as an intermediate layer to cascade the feature layer and the label layer.
∗Corresponding Author

However, in most of recent attribute-based research, the attribute representation is weakly-supervised in two aspects [Akata et al., 2016]. One is the inexact supervision [Zhou, 2017]. Existing attribute representation is class-specific (i.e. each class has an attribute representation) due to the high cost of manual annotation for each image. Therefore, classspecific attributes (CSA) are not exact for all the images because of the individual diversity. The other is the inaccurate supervision [Zhou, 2017]. Attributes contain noise because of the attribute collecting process.
Supervised learning has achieved great success by learning from high quality labeled data with strong supervision information [Zhou, 2017]. Motivated from this, in this paper, we propose to learn image-specific attributes (ISA) from the original weakly-supervised class-specific attributes by hyperbolic neighborhood graph (HNG) propagation. To emphasize similar samples and suppress irrelevant samples, hyperbolic distance is adopted to construct the graph, owing to its intrinsic property of exponentially expansion relative to the Euclidean distance. In the constructed HNG, neighbor samples should have the same attributes, and a sample is subject to caution when its attribute representation is different from that of its neighbors. Therefore, we define neighborhood consistency for each sample to identify the inconsistent samples. After that, inconsistent samples will be refined depending on the attributes of their neighbors. Based on the HNG and neighborhood consistency, image-specific attributes for each sample can be learned from the original weakly-supervised classspecific attributes, and subsequently be leveraged in various attribute-based vision tasks.
Fig. 1 illustrates the proposed image-specific attribute learning model. Image-specific attributes are learned from the original class-specific attributes by hyperbolic neighborhood graph. In Fig. 1, red attributes in ISA indicate the refinement of corresponding attributes in CSA. It is obvious that the learned ISA is more accurate than the original CSA for the displayed images.
The main contributions of this paper can be summarized as follows:
- We propose an image-specific attribute learning model to learn image-specific attributes from the original weaklysupervised class-specific attributes.
- Considering the advantages of hyperbolic geometry and relative neighborhood graph, we design the hyperbolic neighborhood graph to characterize the relationship between samples for subsequent attribute identification and refinement.
- We apply the learned image-specific attributes to zeroshot classification task. Experimental results demonstrate the superiority of the learned ISA over the original CSA.
2 RelatedWorks
2.1 Attribute Representation
Attributes, as a kind of popular visual semantic representation, can be the appearance, a component or the property of objects [Farhadi et al., 2009]. Attributes have been used as an intermediate representation to share information between objects in various computer vision tasks. In zero-shot learning fields, Lampert et al. [Lampert et al., 2014] proposed the direct attribute prediction model, which categorizes zero-shot visual objects by using attribute-label relationship as the assistant information in a probability prediction model. Akata et al. [Akata et al., 2016] proposed the attribute label embedding model, which learns a compatibility function from image features to attribute-based label embeddings. In other fields, Parikh et al. [Parikh and Grauman, 2011] proposed relative attributes to describe objects. Jang et al. [Jang et al., 2018] presented a recurrent learning-based facial attribute recognition model that mimics human observers' visual fixation.
Attributes can be annotated by expert systems or crowdsourcing. Most of the existing attributes are class-specific due to the high cost of annotating per sample. When assigning class-specific attribute representation to samples, attribute noise will be unavoidable because of the individual diversity. In this case, we propose to learn the exact image-specific attributes from the original weakly-supervised class-specific attributes to enhance the semantic representation.
2.2 Learning fromWeakly-Supervised Data
For most vision tasks, it is easy to get a huge amount of weakly-supervised data, whereas only a small percentage of data can be annotated due to the human cost [Zhou, 2017]. In attribute-based tasks, class-specific attributes are weaklysupervised when assigning class-level attributes to samples. To exploit weakly-supervised data, Guar et al. [Gaur and Manjunath, 2017] proposed to extract the implicit semantic object part knowledge by the means of utilizing feature neighborhood context. Mahajan et al. [Mahajan et al., 2018] presented a unique study of transfer learning to predict hashtags on billions of weakly supervised images. Some weaklysupervised label propagation algorithms are improved by introducing specific constraints ([Zhang et al., 2018b; Kakaletsis et al., 2018]), adopting the kernel strategy ([Zhang et al., 2018a]), or considering additional information from negative labels ([Zoidi et al., 2018]). In this work, we propose to design the hyperbolic neighborhood graph to learn supervised information from the weakly-supervised class-specific attributes.
2.3 Hyperbolic Geometry
Hyperbolic geometry is a non-Euclidean geometry with a constant negative Gaussian curvature. A significant intrinsic property in hyperbolic geometry is the exponential growth, instead of the polynomial growth as in euclidean geometry. As illustrated in Figure 2(a), the number of intersections within a distance of d from the center rises exponentially, and the line segments have equal hyperbolic length. Therefore, hyperbolic geometry outperforms euclidean geometry in some special tasks, such as learning hierarchical embedding [Ganea et al., 2018], question answer retrieval [Tay et al., 2018] and hyperbolic neural networks [Nitta and Kuroe, 2018]. In this work, we adopt the hyperbolic distance to construct the graph, and consequently, similar samples will be emphasized and irrelevant samples will be suppressed.
3 Approach
In this section, we present the formulation of learning imagespecific attributes by a tailor-made hyperbolic neighborhood graph.
3.1 Notations
Let N be the number of samples in dataset S = {(xi, yi)}Ni=1 , which is also the number of vertices in the graph. L is the number of the labels in S. A ∈ {0, 1}M×L is the initial class-specific attribute representation for each label, where M denotes the dimension of attribute representation. ˜A ∈ {0, 1}M×N is the learned image-specific attribute representation for each sample.
3.2 Image-Specific Attribute Learning
In this work, we take a graph-based approach to learn the image-specific attributes. The proposed approach is conducted in four steps: 1) calculating hyperbolic distance between samples; 2) constructing hyperbolic neighborhood graph; 3) identifying inconsistent samples; 4) refining the attributes of inconsistent samples.
Calculation of Hyperbolic Distance
We construct a graph to characterize the relationship between samples. Due to the negative curvature of hyperbolic geometry, hyperbolic distance between points increases exponentially relative to euclidean distance. In hyperbolic geometry, the distance between irrelevant samples will be exponentially greater than the distance between similar samples. Therefore, hyperbolic distance is adopted to construct the graph. The relationship between samples represented in the hyperbolicbased graph can emphasize similar samples and suppress irrelevant samples.
Poincar´e disk [Nickel and Kiela, 2017], as a representative model of hyperbolic geometry, is employed to calculate the hyperbolic distance. Poincar´e disk model (Bn , gp) is defined by the manifold Bn = {x ∈ Rn : ‖x‖ < 1} equipped with the following Riemannian metric:
where ge is the Euclidean metric tensor with components In of Rn .
The induced hyperbolic distance between two samples xi, xj ∈ Bn is given by:
Hyperbolic Neighborhood Graph
To measure the proximity of samples in dataset S, we design a hyperbolic neighborhood graph, which is tailor-made based on the relative neighborhood graph [Toussaint, 1980] by introducing hyperbolic geometry.
Let G = (V,E) be a hyperbolic neighborhood graph with vertices v ∈ V , the set of samples in S, and edges (vi, vj) ∈ E corresponding to pairs of neighboring vertices vi and vj. To evaluate whether two vertices vi and vj are neighbors of each other, we adopt the definition of "relatively close" [Lankford, 1969]. The pair vi and vj are neighbors if:
where d(·, ·) is the hyperbolic distance defined in (2).
Intuitively, two vertices vi and vj are neighbors if, and only if, in the triangle composed of vertices vi, vj and any other vertex vk, the side between vi and vj is not the longest side. Figure 2(b) illustrates the HNG constructed from a set of points. The solid edge indicates that the end vertices of the edge are neighbors, and the dotted edge indicates that the end vertices are not neighbors. For example, the vertices a and b are neighbors, while the vertices a and c are not neighbors because the edge (a, c) is longer than both edges (a, b) and (c, b).

Identification of Inconsistent Samples
After constructing the hyperbolic neighborhood graph, we define neighborhood consistency as the confidence degree for each vertex. Neighborhood consistency is the similarity between the attribute value of one sample and that of expected attribute value from its neighbor samples. In HNG, samples should be neighborhood consistent, i.e., each sample has the similar attributes to its neighbors. Therefore, we can calculate the neighborhood consistency of each sample based on it and its neighbors' attribute values.
Given the hyperbolic distance assigned to each edge, we first calculate the weights of all the associated edges for each vertex. Suppose that vertex v has k neighbor vertices which are associated with k edges {ei}ki=1 , and the hyperbolic distances corresponding to the edges are {hi}ki=1 . The relative weights of each edge for vertex v are calculated based on Inverse Distance Weighting [Shepard, 1968] as follows:
where p is an arbitrary positive real number (usually sets to 1 or 2). For each vertex, the weight wi of the associated edge ei is inversely related to its distance hi, and the sum of the weights of all associated edges is equal to 1.
Each vertex in HNG represents a sample derived from dataset S. For vertex v, suppose its corresponding sample is (xv, yv) with the attribute representation av. Assume that in the graph, vertex v has k neighbor vertices {vi}ki=1 with the attribute representation {avi }ki=1 , and it has k associated edges {ei}ki=1 with the weights {wi}ki=1 . Then, the neighborhood consistency of vertex v can be calculated as follows:
where av ∈ {0, 1} is the attribute value of vertex v. zv is the expected attribute value of v, which is calculated based on the attributes of its neighbor vertices:
1 https://www.mathworks.com/matlabcentral/fileexchange/34417pentagonal-tiling-of-the-poincare-disc
where ∑ki=1 wi = 1.
After calculating the neighborhood consistency of vertex v, we can identify whether the corresponding sample xv is neighborhood consistent based on the neighborhood consistency J(v) as follows:
where θ is a hyperparameter that constraints the consistency degree when identifying inconsistent samples.
Refinement of Attributes for Inconsistent Samples
After identifying inconsistent samples, we can learn the image-specific attributes by refining the initial weaklysupervised class-specific attributes. We keep the attributes of consistent samples and refine the attributes of inconsistent samples. Considering that the initial class-specific attribute a ∈ {0, 1}, we directly alter the attribute value from 0 to 1 or from 1 to 0 for inconsistent samples.
Our formalization allows associating keeping consistent samples and refining inconsistent examples when playing on the hyperparameter θ. There are two errors in the processing of identification and refinement. One is the false positive (FP) error that consistent samples are identified as inconsistent samples by mistake, and the other is the false negative (FN) error that inconsistent samples can not be identified. The closer θ is to 0, the fewer inconsistent samples can be identified, and thus the FP error will decrease and the FN error will increase. The closer θ is to 1, the more consistent samples will be identified to be inconsistent by mistake, and thus the FP error will increase and the FN error will decrease. Therefore, we can constrain θ to balance these two errors.
The algorithm of image-specific attribute learning model is given in Algorithm 1.
3.3 ISA for Zero-Shot Classification
After obtaining the image-specific attribute representation ˜A∈ {0, 1}M×N for training data S = {(xi, yi)}Ni=1 , we can easily apply it to existing zero-shot classification methods. We learn a function f :X→ ˜A which maps image features to attribute embeddings by optimizing following empirical risk:
where L() is the loss function and Ω() is the regularization term. W ∈ RM×d is the parameter of mapping function defined by various specific zero-shot classification methods [Xian et al., 2018a].
At test stage, image features of test samples are mapped to attribute embedding space via the learned function f. Given the attribute representation {ai}Ki=1 of test labels (#K), test sample x is classified as follows:
where dist(·, ·) denotes the cosine distance metric.
Algorithm 1 Image-Specific Attribute Learning Model
Input:
Image features;
Class-specific attributes A={ai}Li=1 for each label.
Output:
Image-specific attributes ˜A={˜ai}Ni=1 for each sample.
// Construct Hyperbolic Neighborhood Graph
- 1: Calculate the hyperbolic distance between each sample pair by Eq.(2);
- 2: Construct hyperbolic neighborhood graph by Eq.(3); // Identify Inconsistent Samples
- 3: Calculate weights of the edges in HNG by Eq.(4);
- 4: Calculate the neighborhood consistency of each vertex in HNG by Eq.(5);
- 5: Identify inconsistent examples by Eq.(7);
// Refine Attributes for Inconsistent Samples
- 6: Refine attributes of the inconsistent samples.
3.4 Complexity
In this work, all the attributes are handled using the same graph constructed based on the image features. Therefore, the complexity of the attribute learning algorithm is O(G), i.e. the complexity of constructing theHNG.When constructing the graph, we first calculate the distance between all pairs of samples, which requires O(N 2 ) operations. Then we filter the edges based on (3), which requires O(N) operations. Thus, the complexity of constructing the graph is O(N 3 ).
4 Experiments
To evaluate the effectiveness of learned image-specific attributes, we conduct experiments of zero-shot object classification task on five benchmark datasets.
4.1 Settings
Datasets. Experiments are conducted on five zero-shot classification benchmark datasets: (1) Animal with Attribute (AwA) [Lampert et al., 2014], (2) Animal with Attribute 2 (AwA2) [Xian et al., 2018a], (3) attribute-Pascal-Yahoo (aPY) [Farhadi et al., 2009], (4) Caltech-UCSD Bird 2002011 (CUB) [Welinder et al., 2011], and (5) SUN Attribute Database (SUN) [Patterson and Hays, 2012]. ResNet101 [He et al., 2016] is used to extract deep features for experiments. We use 85, 85, 64, 312 and 102-dimensional attribute representation for AwA, AwA2, aPY, CUB and SUN datasets, respectively. Statistic information of these datasets is summarized in Table 1.
Evaluation protocol. We follow the experimental settings proposed in [Xian et al., 2018a] for all the compared methods to get the fair comparison results. We use the mean class accuracy, i.e. per-class averaged top-1 accuracy, as the criterion of assessment. Mean class accuracy is calculated as follows:
where K is the number of test classes, Yu is the set comprised of all the test labels.
| Datasets | Attributes | Classes | Images |
|---|---|---|---|
| AwA | 85 | 40 + 10 | 19832 + 4958 |
| AwA2 | 85 | 40 + 10 | 23527 + 5882 |
| aPY | 64 | 20 + 12 | 5932 + 1483 |
| CUB | 312 | 150 + 50 | 7057 + 1764 |
| SUN | 102 | 645 + 72 | 10320 + 2580 |
| Methods | AwA | AwA2 | aPY | CUB | SUN |
|---|---|---|---|---|---|
| DAP | 44.1 | 46.1 | 33.8 | 40.0 | 39.9 |
| ALE | 59.9 | 62.5 | 39.7 | 54.9 | 58.1 |
| SAE | 53.0 | 54.1 | 8.3 | 33.3 | 40.3 |
| MFMR | 64.89 | 61.96 | 30.77 | 51.45 | 51.88 |
| SEZSL | 68.2 | 66.3 | - | 54.1 | 61.2 |
| SPAEN | 58.5 | - | 24.1 | 55.4 | 59.2 |
| LESAE | 66.1 | 68.4 | 40.8 | 53.9 | 60.0 |
| XIAN | 68.2 | - | - | 57.3 | 60.8 |
| Ours | 71.25 | 70.64 | 41.37 | 58.55 | 63.59 |
4.2 ComparedMethods
We compare our model to following representative zero-shot classification baselines. (1) Four popular ZSC baselines. DAP [Lampert et al., 2014] utilizes attribute representation as intermediate layer to cascade visual features and labels. ALE [Akata et al., 2016] learns the compatibility function between visual features and attribute embeddings. SAE [Kodirov et al., 2017] learns a low dimensional semantic representation of visual features. MFMR [Xu et al., 2017] learns a projection based on matrix tri-factorization with manifold regularization. (2) Four latest ZSC baselines. SEZSL [Kumar Verma et al., 2018] generates novel exemplars from seen and unseen classes to conduct the classification. SPAEN [Chen et al., 2018] tackles the semantic loss problem for the embeddingbased zero-shot tasks. LESAE [Liu et al., 2018] learns a lowrank mapping to link visual features and attribute representation. XIAN [Xian et al., 2018b] synthesizes CNN features conditioned on class-level semantic information for zero-shot classification.
4.3 Comparison with the State-of-the-Art
To evaluate the proposed image-specific attribute learning model, we compare it to several state-of-the-art ZSL baselines. The zero-shot classification results on five benchmark datasets are shown in Table 2. It is obvious that the proposed method achieves the best results on all datasets. Specifically, the accuracies on five datasets (i.e. AwA, AwA2, aPY, CUB and SUN) are increased by 3.05%, 2.24%, 0.57%, 1.25%, 2.39%, respectively (1.90% on average) comparing to the strongest competitor. In zeroshot visual object classification tasks, attributes are adopted as the intermediate semantic layer for transferring information between seen classes and unseen classes. Hence, ability of accurately recognizing attributes governs the performance of the entire zero-shot classification system. In this work, the proposed method achieves the state-of-the-art performance, which demonstrates the superiority of the learned image-specific attributes over the original class-specific attributes.
| Methods | Graph | AwA | AwA2 | aPY | CUB | SUN |
|---|---|---|---|---|---|---|
| SAE+CSA SAE+ISA | HCG | 53.0 54.94 | 54.1 54.53 | 8.3 8.33 | 33.3 37.29 | 40.3 43.54 |
| SAE+ISA | ENG | 57.63 | 55.06 | 8.33 | 35.21 | 42.08 |
| SAE+ISA | HNG | 56.44 | 56.8 | 8.33 | 38.01 | 46.68 |
| MFMR+CSA | HCG | 64.89 | 61.96 | 30.77 | 51.45 | 51.88 |
| MFMR+ISA | 65.17 | 62.64 | 33.46 | 54.34 | 56.53 | |
| MFMR+ISA | ENG | 69.00 | 62.17 | 31.38 | 54.62 | 56.67 |
| MFMR+ISA | HNG | 69.49 | 64.97 | 35.40 | 56.61 | 58.26 |
4.4 Ablation Analysis
We conduct ablation analysis to further evaluate the effectiveness of the learned image-specific attributes.
Evaluation on Learned Image-Specific Attributes
In the first ablation experiment, we evaluate the learned image-specific attributes on two baselines (i.e. SAE and MFMR). We compare the original class-specific attributes with the image-specific attributes learned by hyperbolic neighborhood graph, hyperbolic complete graph (HCG) and euclidean neighborhood graph (ENG), respectively. The comparison results are exhibited in Table 3.
Hyperbolic geometry has a constant negative curvature, where hyperbolic distance increases exponentially relative to euclidean distance. Comparing to the euclidean neighborhood graph, HNG can emphasize the influence of similar samples and suppress irrelevant samples. Therefore, we construct hyperbolic neighborhood graph to characterize samples in the hyperbolic geometry. From Table 3, we can see that ISA leaned by HNG outperforms ENG on all datasets except the AwA dataset for SAE. Since the number of images per class in AwA dataset is much greater than CUB and SUN datasets, most of the neighbor samples in AwA may come from the same class, which have the same attributes. Therefore, fewer samples in AwA would be detected as inconsistent samples, and consequently, the improvement on AwA dataset is not significant comparing to that on CUB and SUN datasets.
Another key component of the proposed model is adopting relative neighborhood graph instead of complete graph to characterize samples. Neighborhood graph is constructed based on the relative relation, which can extract the perceptual relevant structure of data. FromTable 3, it is obvious that
(a) humpback whale
(b) antelope
| Attributes | CSA | CSA | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| black | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 |
| white | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| brown | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 |
| stripes | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| big | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| flys | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| walks | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 |
| forest | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| ground | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 |
| water | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 |

HNG outperforms HCG on all the datasets, which demonstrates that the relative neighborhood graph has an advantage over the complete graph in describing the proximity between samples.
Visualization of Learned Image-Specific Attributes
In the second ablation experiment, we illustrate some learned image-specific attributes of images randomly selected from AwA2 dataset in Fig. 3. We compare the learned imagespecific attributes with the original class-specific attributes, and numbers in red indicate the refinement of original attributes. Original class-specific attributes are usually noisy due to annotation errors in vision tasks and diversity of individual images. When assigning them to images, the attributes for specific image are inexact because of the individual diversity. For example, normally, humpback whales are black and live in the water. However, when their tails are photographed from below, they are white (as shown in the fourth image in Fig. 3(a)). And in some images, they may appear on the ground (as shown in the third image in Fig. 3(a)). From Fig. 3, we can see that the learned image-specific attributes are more exact and reliable than the original class-specific attributes. In other words, learned image-specific attributes contain stronger supervision information.
Parameter Sensitivity Analysis
In the third ablation experiment, we analyze the influence of the hyperparameter θ. The results are shown in Fig. 4. In the proposed model, θ controls the processing of identifying inconsistent samples. Specifically, the closer θ is to 1, the easier samples are identified as neighborhood inconsistent, and thus the false positive error will increase and the false negative error will decrease. From Fig. 4(b), we can see that the classification accuracies rise first and then decline as θ increases from 0 to 1. The accuracies reach the peak when θ is close to 0.7. In conclusion, θ balances the false positive error and the false negative error, and consequently influences the quality of the learned image-specific attributes.
5 Conclusion
In this paper, a novel hyperbolic neighborhood graph is designed to learn the image-specific attributes. Considering the intrinsic property of hyperbolic geometry that distance increases exponentially, we adopt hyperbolic distance to construct the graph for characterizing samples. After identifying inconsistent samples based on defined neighborhood consistency, we refine the original class-specific attributes to obtain the image-specific attributes. Experimental results demonstrate the advantages of the learned ISA over the original CSA from both accuracy evaluation and visual interpretability in the zero-shot classification task. In this work, we assume that attributes are independent of each other and handled separately. In the future, we will consider the interdependence between attributes and handle attributes of inconsistent samples in a unified framework.
Acknowledgments
This work was supported in part by NSFC under Grant 61373063 and Grant 61872188, in part by the Project of MIIT under Grant E0310/1112/02-1, in part by the Collaborative Innovation Center of IoT Technology and Intelligent Systems of Minjiang University under Grant IIC1701, in part by ARC under Grant FT130100746, Grant LP150100671 and Grant DP180100106, and in part by China Scholarship Council.
@inproceedings{ijcai2019p554,
title = {Learning Image-Specific Attributes by Hyperbolic Neighborhood Graph Propagation},
author = {Xu, Xiaofeng and Tsang, Ivor W. and Cao, Xiaofeng and Zhang, Ruiheng and Liu, Chuancai},
booktitle = {Proceedings of the Twenty-Eighth International Joint Conference on
Artificial Intelligence, {IJCAI-19}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Sarit Kraus},
pages = {3989--3995},
year = {2019},
month = {8},
note = {Main track},
doi = {10.24963/ijcai.2019/554},
url = {https://doi.org/10.24963/ijcai.2019/554},
}
TY - CPAPER TI - Learning Image-Specific Attributes by Hyperbolic Neighborhood Graph Propagation AU - Xu, Xiaofeng AU - Tsang, Ivor W. AU - Cao, Xiaofeng AU - Zhang, Ruiheng AU - Liu, Chuancai T2 - Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI-19 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2019 SP - 3989 EP - 3995 DO - 10.24963/ijcai.2019/554 UR - https://doi.org/10.24963/ijcai.2019/554 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: