[论文翻译] Clustering by Passing Messages Between Data Points

[论文翻译] Clustering by Passing Messages Between Data Points

论文题目:Clustering by Passing Messages Between Data Points
论文来源:Clustering by Passing Messages Between Data Points
翻译人:BDML@CQUT实验室

Clustering by Passing Messages Between Data Points

Brendan J. Frey* and Delbert Dueck

通过在数据点之间传递消息进行聚类

Brendan J. Frey* and Delbert Dueck

Abstract

Clustering data by identifying a subset of representative examples is important for processing sensory signals and detecting patterns in data. Such ‘exemplars’ can be found by randomly choosing an initial subset of data points and then iteratively refining it, but this only works well if that initial choice is close to a good solution. We describe a new method called ‘affinity propagation’, which takes as input measures of similarity between pairs of data points. Real-valued messages are exchanged between data points until a high-quality set of exemplars and corresponding clusters gradually emerges. We used affinity propagation to cluster images of faces, detect genes in microarray data, identify representative sentences in this manuscript and identify cities that are efficiently accessed by airline travel. Affinity propagation found clusters with much lower error than those found by other methods, and it did so in less than one-hundredth the amount of time.

摘要

通过识别代表性样本的子集对数据进行聚类,对于处理感觉信号和检测数据中的模式非常重要。这种“范例”可以通过随机选择数据点的初始子集,然后迭代地细化它来找到,但只有当初始选择接近一个好的解决方案时,这种方法才有效。我们描述了一种称为“相似性传播”的新方法,它将数据点对之间的相似性作为输入度量。实值消息在数据点之间交换,直到一组高质量的示例和相应的集群逐渐出现。我们使用亲和传播技术对人脸图像进行聚类,检测微阵列数据中的基因,识别本文中的代表性句子,并识别航空旅行能够有效访问的城市。亲和力传播发现的聚类误差比其他方法要低得多,而且它所用的时间不到1%。

正文

Clustering data based on a measure of similarity is a critical step in scientific data analysis and in engineering systems. A common approach is to use the data to learn a set of centers such that the sum of squared errors between data points and their nearest centers is small. When the centers are selected from actual data points, they are called ‘exemplars’. The popular k-centers clustering technique begins with an initial set of randomly-selected exemplars and iteratively refines this set so as to decrease the sum of squared errors. k-centers clustering is quite sensitive to the initial selection of exemplars, so it is usually re-run many times with different initializations in an attempt to find a good solution. However, this only works well when the number of clusters is small and chances are good that at least one random initialization is close to a good solution. We take a quite different approach and introduce a method that simultaneously considers all data points as potential exemplars. By viewing each data point as a node in a network, we devised a method that recursively transmits real-valued messages along edges of the network until a good set of exemplars and corresponding clusters emerges. As described later, messages updated using simple formulas that search for minima of an appropriately-chosen energy function. At any point in time, the magnitude of each message reflects the current affinity that one data point has for choosing another data point as its exemplar, so we call our method ‘affinity propagation’. Fig. 1A illustrates how clusters gradually emerge during the message-passing procedure.

基于相似性度量的数据聚类是科学数据分析和工程系统中的关键步骤一种常见的方法是使用数据来学习一组中心,这样数据点与其最近的中心之间的误差平方和很小。当从实际数据点中选择中心时,它们被称为“样本”。流行的k-centers从随机选择的初始样本集开始,迭代地细化该集合,以减少平方误差之和。k-centers对样本的初始选择非常敏感,因此通常会用不同的初始化方法多次重新运行,试图找到一个好的解决方案。但是,只有在集群数量较少且至少有一个随机初始化接近一个好的解决方案的可能性很高时,这种方法才有效。我们采用了一种完全不同的方法,并引入了一种同时将所有数据点视为潜在范例的方法。通过将每个数据点视为网络中的一个节点,我们设计了一种沿着网络边缘递归传输实值消息的方法,直到出现一组好的样本和相应的簇。如后所述,消息更新使用简单的公式,搜索适当选择的能量函数的最小值。在任何时间点,每个消息的大小都反映了一个数据点选择另一个数据点作为其示例的当前亲和力,因此我们将我们的方法称为“亲和力传播”。图1A示出了在消息传递过程中集群是如何逐渐出现的。

Affinity propagation takes as input a collection of real-valued similarities between data points, where the similarity s(i, k) indicates how well the data point with index k is suited to be the exemplar for data point i. When the goal is to minimize squared error, each similarity is set to a negative squared error (Euclidean distance): for points xiand xk, s(i, k) = −||xi− xk||2. In fact, the method described here can be applied when the optimization criterion is much more general. Later, we describe tasks where similarities are derived for pairs of images, pairs of microarray measurements, pairs of English sentences and pairs of cities.When an exemplar-dependent probability model is available, s(i, k) can be set to the log-likelihood of data point i given that its exemplar is point k. Alternatively, when appropriate, similarities may be set by hand.

相似性传播将数据点之间的实值相似性集合作为输入,其中相似度s(i,k)表示索引为k的数据点适合作为数据点i的样本。当目标是最小化平方误差时,每个相似性被设置为负平方误差(欧几里得距离):对于点xi和 xk,s(i,k)=-–|| xi−xk || 2。事实上,本文所述的方法可以在优化准则更一般的情况下应用。随后,我们将描述在这些任务中,从成对的图像、成对的微阵列测量、成对的英语句子和成对的城市中得出相似性。当样本相关概率模型可用时,s(i,k)可设置为数据点i的对数似然,假设其样本为点k。或者,在适当的情况下,可手动设置相似性。

Rather than requiring that the number of clusters be pre-specified, affinity propagation takes as input a real number s(k, k) for each data point k so that data points with larger values of s(k, k) are more likely to be chosen as exemplars. These values are referred to as ‘preferences’. The number of identified exemplars (number of clusters) is influenced by the values of the input preferences, but also emerges from the message-passing procedure. If a priori, all data points are equally suitable as exemplars, the preferences should be set to a common value – this value can be varied to produce different numbers of clusters. The shared value could be the median of the input similarities (resulting in a moderate number of clusters) or their minimum (resulting in a small number of clusters).

与要求预先指定簇的数目不同,亲合传播将每个数据点k的实数s(k,k)作为输入,以便更有可能选择s(k.k)值较大的数据点作为示例。这些值称为“首选项”。已识别的样本数(集群数)受输入首选项值的影响,但也会从消息传递过程中产生。如果先验的话,所有的数据点都同样适合作为范例,那么首选项应该设置为一个共同的值——这个值可以改变以产生不同数量的集群。共享值可以是输入相似性的中间值(产生适度数量的集群)或其最小值(产生少量集群)。

There are two kinds of message exchanged between data points and each takes into account a different kind of competition. Messages can be combined at any stage to decide which points are exemplars and, for every other point, which exemplar it belongs to. The ‘responsibility’ r(i, k), sent from data point i to candidate exemplar point k, reflects the accumulated evidence for how well-suited point k is to serve as the exemplar for point i, taking into account other potential exemplars for point i (Fig. 1B). The ‘availability’ a(i, k), sent from candidate exemplar point k to point i, reflects the accumulated evidence for how appropriate it would be for point i to choose point k as its exemplar, taking into account the support from other points that point k should be an exemplar (Fig. 1C). To begin with, the availabilities are initialized to zero: a(i, k) = 0. Then, the responsibilities are computed using the rule
在这里插入图片描述
In the firstiteration, sincetheavailabilitiesarezero, r(i, k)is set to the input similarity between point i and point k as its exemplar, minus the largest of the similarities between point i and other candidate exemplars. This competitive update is data-driven and does not take into account how many other points favor each candidate exemplar. In later iterations, when some points are effectively assigned to other exemplars, their availabilities will drop below zero as prescribed by the update rule below. These negative availabilities will decrease the effective values of some of
the input similarities s(i, k0) in the above rule, removing the corresponding candidate exemplars from competition. For k = i, the responsibility r(k, k) is set to the input preference that point k be chosen as an exemplar, s(k, k), minus the largest of the similarities between point i and all other candidate exemplars. This ‘self-responsibility’ reflects accumulated evidence that point k is an exemplar, based on its input preference tempered by how ill-suited it is to be assigned to another exemplar.

数据点之间有两种类型的消息交换,每种类型都考虑到不同类型的竞争。可以在任何阶段组合消息,以确定哪些点是示例,对于其他每个点,它属于哪些示例。从数据点i发送到候选样本点k的“责任”r(i,k)反映了点k作为点i的样本非常适合的累积证据,同时考虑了点i的其他潜在样本(图1B)。从候选示例点k发送到点i的“可用性”a(i,k)反映了关于点i选择点k作为其示例是多么合适的累积证据,同时考虑到来自其他点的支持,即点k应该是示例(图1C)。首先,可用性初始化为零:a(i,k)=0。然后,使用规则(1)计算责任。在第一次迭代中,由于重航性为零,r(i,k)设为点i和点k之间的输入相似性作为其样本,减去点i和其他候选样本之间的相似度中的最大值。这个竞争性的更新是数据驱动的,没有考虑到有多少其他点有利于每个候选示例。在以后的迭代中,当一些点被有效地分配给其他示例时,它们的可用性将下降到零以下,正如下面的更新规则所规定的那样。这些负有效性将降低上述规则中某些输入相似性s(i,k0)的有效值,从而从竞争中删除相应的候选样本。作为样本k的最大相似点,k=i的最大相似点。这种“自我责任”反映了累积的证据,表明k点是一个范例,基于它的输入偏好,它被分配给另一个范例有多不合适。

Whereas the above responsibility update lets all candidate exemplars compete for ownership of a data point, the following availability update gathers evidence from data points as to whether each candidate exemplar would make a good exemplar:
在这里插入图片描述
The availability a(i, k) is set to the self-responsibility r(k, k) plus the sum of the positive responsibilities candidate exemplar k receives from other points. Only the positive portions of incoming responsibilities are added, because it is only necessary for a good exemplar to explain some data points well (positive responsibilities), regardless of how poorly it explains other data points (negative responsibilities). If the self-responsibility r(k, k) is negative (indicating that point k is currently better suited as belonging to another exemplar rather than being an exemplar itself), the availability of point k as an exemplar can be increased if some other points have positive responsibilities for point k being their exemplar. To limit the influence of strong incoming positive responsibilities, the total sum is thresholded so that it cannot go above zero. The ‘self-availability’ a(k, k) is updated differently:
在这里插入图片描述
This message reflects accumulated evidence that point k is an exemplar, based on the positive responsibilities sent to candidate exemplar k from other points.

尽管上述职责更新允许所有候选示例争夺数据点的所有权,但以下可用性更新从数据点收集证据,以确定每个候选示例是否会成为一个好的示例:(2)。可用性a(i,k)被设置为自我责任r(k,k)加上候选范例k从其他点接收到的积极责任之和。只添加了引入责任的积极部分,因为一个好的范例只需要很好地解释一些数据点(积极的责任),而不管它解释其他数据点(负责任)有多差。如果自我责任r(k,k)为负(表明k点目前更适合作为另一个样本而不是样本本身),那么如果其他一些点对k点作为其样本具有积极的责任,则k点作为样本的可用性可以增加。为了限制强有力的积极责任的影响,总金额被设为阈值,使其不能超过零。“自可用性”a(k,k)的更新方式有所不同:(3)。此消息反映了累积的证据,表明k点是一个范例,基于从其他点发送给候选范例k的积极责任。

The above update rules require only simple, local computations that are easily implemented, and messages need only be exchanged between pairs of points with known similarities. At any point during affinity propagation, availabilities and responsibilities can be combined to identify exemplars. For point i, the value of k that maximizes a(i, k) + r(i, k) either identifies point i as an exemplar if k = i, or identifies the data point that is the exemplar for point i. The message-passing procedure may be terminated after a fixed number of iterations, after changes in the messages fall below a threshold, or after the local decisions stay constant for some number of iterations. When updating the messages, it is important that they be dampened to avoid numerical oscillations that arise in some circumstances. Each message is set to λ times its value from the previous iteration plus 1−λ times is prescribed updated value, where the damping factor λ is between 0 and 1. In all of our experiments, we used a damping factor of λ = 0.5 and each iteration of affinity propagation consisted of i) updating all responsibilities given the availabilities, ii) updating all availabilities given the responsibilities, and iii) combining availabilities and responsibilities to monitor the exemplar decisions and terminate the algorithm when these decisions did not change for ten iterations.

上面的更新规则只需要简单的、易于实现的局部计算,并且消息只需要在具有已知相似性的点对之间进行交换。在亲和性传播过程中的任何时候,可用性和责任都可以组合起来以识别样本。对于点i,使a(i,k)+r(i,k)最大化的k值要么将点i标识为示例(如果k=i),要么标识作为点i的示例的数据点。消息传递过程可以在经过固定次数的迭代后终止,在消息的更改降到阈值以下时,或者在局部决策保持一定数量的迭代之后。在更新消息时,重要的是要抑制消息,以避免在某些情况下出现数值振荡。每个消息被设置为λ乘以其上一次迭代的值加上1−λ倍为规定的更新值,其中阻尼系数λ在0和1之间。在我们的所有实验中,我们使用阻尼因子λ=0.5,亲和力传播的每次迭代包括i)更新给定可用性的所有职责,ii)更新给定职责的所有可用性,以及iii)结合可用性和责任来监控样本决策并终止当这些决策在十次迭代中没有改变时的算法。

Fig.1A shows the dynamics of affinity propagation applied to 25 two-dimensional data points , using negative squared error as the similarity. One advantage of affinity propagation is that the number of exemplars need not be specified beforehand. Instead, the appropriate number of exemplars emerges from the messagepassing method and depends on the input exemplar preferences. This enables automatic model selection, based on a prior specification of how preferable each point is as an exemplar. Fig. 1D shows the effect of the value of the common input preference on the number of clusters. This relationship is nearly identical to the relationship found by exactly minimizing the squared error.

图1显示了应用于25个二维数据点的动态特性,使用负平方误差作为相似性。亲和力传播的一个优点是不需要预先指定样本的数量。取而代之的是,适当数量的示例从messagepassing方法中产生,并取决于输入示例首选项。这使得自动选择模型成为可能,这是基于对每个点作为一个范例的优先程度的预先说明。图1D示出了公共输入偏好的值对集群数量的影响。这种关系几乎与通过精确最小化平方误差得到的关系相同。

在这里插入图片描述
Fig. 1. How affinity propagation works. (A) Affinity propagation is illustrated for two-dimensional data points, where negative Euclidean distance (squared error) was used to measure similarity. Each point is colored according to the current evdence that it is a cluster center (exemplar). The darkness of the arrow directed from point i to point k corresponds to the strength of the transmitted message that point i belongs to exemplar point k. (B) ‘Responsibilities’ r(i, k) are sent from data points to candidate exemplars and indicate how strongly each data point favors the candidate exemplar over other candidate exemplars. © ‘Availabilities’ a(i, k) are sent from candidate exemplars to data points and indicate to what degree each candidate exemplar is available as a cluster center for the data point. (D) The effect of the value of the input preference (common for all data points) on the number of identified exemplars (number of clusters) is shown. The value that was used in (A) is also shown, which was computed from the median of the pairwise similarities.

图1。亲和力传播是如何工作的。(A) 以二维数据点为例,用负欧几里德距离(平方误差)度量相似性。每个点都是根据当前的证据来着色的,它是一个聚类中心(范例)。从点i指向点k的箭头的暗度对应于传输消息的强度,即点i属于样本点k。(B)“职责”r(i,k)从数据点发送到候选样本,并指示每个数据点对候选样本的支持程度超过其他候选样本。(C) “可用性”a(i,k)从候选样本发送到数据点,并指示每个候选样本在多大程度上可用作数据点的集群中心。(D) 显示了输入偏好值(对所有数据点通用)对已识别样本数(集群数)的影响。还显示了(A)中使用的值,该值是根据成对相似性的中位数计算的。

We next studied the problem of clustering images of faces using the standard optimization criterion of squared error. We used both affinity propagation and k-centers clustering to identify exemplars among 900 grayscale images extracted from the Olivetti face database (2). Affinity propagation found exemplars with much lower squared error than the best of 100 runs of k-centers clustering (Fig. 2A), which took about the same amount of computer time. We asked whether a huge number of random restarts of k-centers clustering could achieve the same squared error. Fig. 2B shows the error achieved by one run of affinity propagation and the distribution of errors achieved by 10,000 runs of k-centers clustering, plotted against the number of clusters. Affinity propagation uniformly achieved much lower error in over two orders of magnitude less time. Another popular optimization criterion is the sum of absolute pixel differences (which better tolerates outlying pixel intensities), so we repeated the above procedure using this error measure.As shown in Fig. 2C, affinity propagation again uniformly achieved lower error.

接着,我们研究了用标准的平方误差优化准则对人脸图像进行聚类的问题。我们使用亲和传播和kcenters聚类来识别从奥利维蒂人脸数据库(2)中提取的900幅灰度图像样本。亲和力传播发现样本的平方误差远低于k-中心聚类(图2A)100次中最好的一次,后者花费了大约相同的计算机时间。我们询问大量随机重启k-中心聚类是否可以获得相同的平方误差。图2B示出了通过一次亲和力传播所获得的误差,以及通过10000次k-中心聚类所获得的误差分布,并根据簇的数量绘制。亲和传播在两个数量级以上的时间内均匀地获得了更低的误差。另一个流行的优化标准是绝对像素差的总和(它可以更好地容忍离群的像素强度),因此我们使用这个误差度量重复上述过程。如图2C所示,亲和传播再次均匀地获得较低的误差。

Many tasks require the identification of exemplars among sparsely-related data,i.e., where most similarities are either unknown or large and negative. To examine affinity propagation in this context, we addressed the task of clustering putative exons to find genes, using the sparse similarity matrix derived from microarray data and reported in (3). In that work, 75,066 segments of DNA (60 bases long) corresponding to putative exons were mined from the genome of mouse Chromosome 1.Their transcription levels were measured across 12 tissue samples and the similarity between every pair of putative exons (data points) was computed. The measure of similarity between putative exons was based on their proximity in the genome and the degree of coordination of their transcription levels across the 12 tissues. To account for putative exons that are not exons (e.g., introns), an additional artificial exemplar was included and the similarity of each other data point to this ‘non-exon
exemplar’ was determined using statistics taken over the entire data set. The resulting 75,067×75,067 similarity matrix (2) consisted of 99.73% similarities with values of −∞, corresponding to distant DNA segments that could not possibly be part of the same gene. We applied affinity propagation to this similarity matrix, but since messages need not be exchanged between point i and k if s(i, k) = −∞, each iteration of affinity propagation required exchanging messages between only a tiny subset (0.27%) of data point pairs.

许多任务需要在稀疏相关的数据中识别样本,也就是说,在这些数据中,大多数相似性要么是未知的,要么是大而负面的。为了研究这种背景下的亲和力传播,我们利用从微阵列数据中获得的稀疏相似性矩阵(见第(3)节)提出了聚类假设外显子以寻找基因的任务。在这项研究中,我们从小鼠1号染色体的基因组中提取了75066段DNA片段(60碱基长),这些片段与假定的外显子相对应。在12个组织样本中测量了它们的转录水平,并计算了每对假定外显子(数据点)之间的相似性。假设外显子之间的相似性是基于它们在基因组中的接近程度以及它们在12种组织中转录水平的协调程度。对于假设的不是外显子的外显子(例如,内含子),还包括一个额外的人工样本,并使用对整个数据集的统计数据来确定其他数据点与该“非外显子样本”的相似性。得到的75067×75067相似矩阵(2)与∞值的相似度为99.73%,对应的是不可能是同一基因一部分的远缘DNA片段。我们将相似性传播应用到这个相似性矩阵中,但是由于如果s(i,k)=-∞时,不需要在点i和k之间交换消息,所以亲合传播的每次迭代只需要在数据点对的一小部分(0.27%)之间交换消息。

在这里插入图片描述
Fig. 2. Clustering faces. Exemplars minimizing the standard squared error measure of similarity were identified from 900 normalized face images (2). For a common preference of −600, affinity propagation found 62 clusters and the average squared error was 108. For comparison, the best of 100 runs of k-centers clustering with different random initializations achieved a worse average squared error of 119. (A) The 15 images with highest squared error under either affinity propagation or k-centers clustering are shown in the top row. The middle and bottom rows show the exemplars assigned by the two methods and the boxes show which of the two methods performed better for that image, in terms of squared error. Affinity propagation found higher-quality exemplars. (B) The average squared error achieved by a single run of affinity propagation and 10,000 runs of k-centers clustering, versus the number of clusters. The colored bands show different percentiles of squared error and the number of exemplars corresponding to the result from (A) is indicated.© The above procedure was repeated using the sum of absolute errors as the measure of similarity, which is also a popular optimization criterion.

图2。聚集人脸。从900幅标准化人脸图像中识别出最小化相似度标准平方误差的样本(2)。对于−600的共同偏好,亲和传播发现62个簇,平均平方误差为108。作为比较,在100次k-中心聚类中,使用不同随机初始化的最佳聚类结果的平均平方误差为119。(A) 最上面一行显示了在亲和传播或k-中心聚类下误差最大的15幅图像。中间和底部的行显示了由这两种方法指定的示例,方框显示了从平方误差来看,这两种方法中哪一种对该图像的性能更好。亲和传播发现了更高质量的样本。(B) 一次亲和力传播和10000次k-centers聚类所获得的平均平方误差与集群数量的关系。彩色条带显示了不同百分比的平方误差,并指出了与(A)结果相对应的样本数量。(C) 以绝对误差之和作为相似性度量,重复上述过程,这也是一种流行的优化准则。

Fig. 3A illustrates the identification of gene clusters and the assignment of some data points to the non-exon exemplar. The reconstruction errors for affinity propagation and k-centers clustering are compared in Fig. 3B. For each number of clusters, affinity propagation was run once and took 6 minutes, while k-centers clustering was run 10,000 times and took 208 hours. To address the question of how well these methods perform in detecting bona fide gene segments, Fig. 3C plots the true positive (TP) rate against the false positive (FP) rate, using the labels provided in the REFSEQ database (4). Affinity propagation achieved significantly higher
TP rates, especially at low FP rates, which are most important to biologists. At a FP rate of 3%, affinity propagation achieved a TP rate of 39%, whereas the best k-centers clustering result was 17%. For comparison, at the same FP rate, the best TP rate for hierarchical agglomerative clustering (6) was 19%, and the engineering tool described in (3), which accounts for additional biological knowledge, achieved a TP rate of 43%.

图3A示出了基因簇的识别和将一些数据点分配给非外显子样本。图3B比较了亲和传播和k-中心聚类的重建误差。对于每个数量的聚类,亲和传播运行一次,耗时6分钟;而k-中心聚类运行10000次,耗时208小时。为了解决这些方法在检测真实基因片段方面的表现如何的问题,图3C使用REFSEQ数据库(4)中提供的标签绘制了真阳性(TP)率和假阳性(FP)率。亲和力繁殖获得了显著较高的TP率,尤其是在低FP率下,这对生物学家来说是最重要的。当FP率为3%时,亲和繁殖的TP率为39%,而k-中心聚类的最佳结果为17%。作为比较,在相同的FP率下,分层聚集聚类(6)的最佳TP率为19%,而(3)中描述的工程工具(它解释了额外的生物学知识)实现了43%的TP率。

在这里插入图片描述
Fig. 3. Detecting genes. Affinity propagation was used to detect putative exons(data points) comprising genes from mouse Chromosome 1. Here, squared error is not appropriate as a measure of similarity, but instead similarity values were derived from a cost function measuring proximity of the putative exons in the genome and co-expression of the putative exons across 12 tissue samples (2). (A) A small portion of the data and the emergence of exemplars during each iteration of affinity propagation are shown. In each picture, the 100 boxes outlined in black correspond to 100 data points (there were 75,066 putative exons in total) and the 12 colored blocks in each box indicate the transcription levels of the corresponding DNA segment in 12 tissue samples. The box on the far left corresponds to an artificial data point with infinite preference that is used to account for non-exon regions (e.g., introns). Lines connecting data points indicate potential assignments, where gray lines indicate assignments that currently have weak evidence and solid lines indicate assignments that currently have strong evidence. (B) Performance on minimizing the reconstruction error of genes, for different numbers of detected exemplars. For each number of clusters, affinity propagation took 6 minutes, while 10,000 runs of k-centers clustering took 208 hours on the same computer. In each case, affinity propagation achieved a significantly lower reconstruction error than k-centers clustering. © A plot of true positive rate versus false positive rate for detecting exons (using labels from REFSEQ (4)) shows that affinity propagation also performs better at detecting biologically-verified exons than k-centers clustering.

图3。检测基因。用亲和繁殖技术检测小鼠1号染色体基因的外显子(数据点)。在这里,平方误差不适合作为相似性的度量,但是相似性值是从测量基因组中假定外显子的接近性和假设外显子在12个组织样本中的共表达的成本函数推导出来的(2)。(A) 在亲和力传播的每次迭代中显示了一小部分数据和样本的出现。在每张图片中,100个黑框对应100个数据点(总共有75066个假定外显子),每个框中的12个彩色块表示12个组织样本中相应DNA片段的转录水平。最左边的方框对应于一个具有无限偏好的人工数据点,用于解释非外显子区域(如内含子)。连接数据点的线表示潜在的赋值,其中灰线表示当前证据较弱的赋值,实线表示当前具有强证据的赋值。(B) 在最小化基因重建误差方面的性能,对于不同数量的检测样本。对于每个数量的集群,亲和性传播需要6分钟,而在同一台计算机上运行10000次k-centers集群需要208小时。在每种情况下,亲和力传播比k-中心聚类的重建误差要低得多。(C) 一个检测外显子的真阳性率与假阳性率的曲线图(使用参考文献(4)中的标签)表明,亲和力传播在检测生物验证的外显子方面也比k-中心聚类法更好。

Affinity propagation’s ability to operate using non-standard optimization criteria makes it suitable for exploratory data analysis using unusual measures of similarity. Unlike metric-space clustering techniques such as k-means clustering (1), affinity propagation can be applied to problems where the data does not lie in a continuous space. In fact, it can be applied to problems where the similarities are not symmetric (i.e., s(i, k) 6= s(k, i)) and to problems where the similarities do not satisfy the triangle inequality (i.e., s(i, k) < s(i, j) + s(j, k)). To identify a small number of sentences in this manuscript that summarize other sentences, we treated each sentence as a ‘bag of words’ (5) and computed the similarity of sentence i to sentence k based on the cost of encoding the words in sentence i using the words in sentence k. 97% of the resulting similarities (2,6) were not symmetric. The preferences were adjusted to identify different numbers of representative exemplar sentences (6) and the solution with four sentences is shown in Fig. 4A.

亲和力传播使用非标准优化准则进行操作的能力使得它适合使用不寻常的相似性度量进行探索性数据分析。与度量空间聚类技术(如k-means聚类(1))不同,亲和传播可以应用于数据不在连续空间中的问题。实际上,它可以应用于相似度不对称的问题[即s(i,k)≠s(k,i)],以及相似度不满足三角不等式的问题[即s(i, k)<s(i,j)+ s(j,k)]。为了在该手稿的草稿中识别出概括其他句子的少量句子,我们将每个句子视为“单词袋”(6),并根据在句子i中,使用句子k中的单词,对单词进行编码的成本来计算句子i与句子k的相似度。我们发现97%的结果相似度(2、3)不是对称的。 调整参考度以识别(使用λ= 0.8)不同数量的代表性exemplar语句(2),图4A显示了具有四个语句的解决方案。
在这里插入图片描述
Fig. 4. Identifying key sentences and air travel routing. Affinity propagation can be used to explore the identification of exemplars using non-standard optimization criteria. (A) A matrix of similarities between pairs of sentences in this manuscript was constructed by matching words. Four exemplar sentences were identified by affinity propagation and are shown. (B) Affinity propagation was applied to a similarity matrix derived from air travel efficiency (measured by estimated travel time) between the 456 busiest commercial airports in Canada and USA – the travel times for both direct flights (shown in blue) and indirect flights (not shown) including the mean transfer time of up to a maximum of one stop-over, were used as negative similarities (2). © The seven exemplars identified by affinity propagation are color-coded and the assignments of other cities to these exemplars is shown. Cities located quite near to exemplar cities may be members of other more distant exemplars due to the lack of direct flights between them (e.g., Atlantic City is 100km from Philadelphia, but is closer in flight time to Atlanta). (D) The inset shows that the Canada-USA border roughly divides the Toronto and Philadelphia clusters, due to a larger availability of domestic flights compared to international flights. However, this is not the case on the west coast as shown in (E), because extraordinarily frequent airline service between V ancouver and Seattle connects Canadian cities in the north-west to Seattle.

图4。识别关键句子和空中旅行路线。亲和力传播可用于探索使用非标准优化准则识别样本。(A) 在这篇手稿中,一对句子之间的相似性矩阵是通过匹配单词来构建的。通过亲和力传播识别了四个例句,并给出了实例。(B) 亲和力传播应用于根据加拿大和美国456个最繁忙的商业机场之间的航空旅行效率(用估计的旅行时间衡量)得出的相似矩阵——直飞航班(蓝色显示)和间接航班(未显示)的旅行时间,包括最多1个的平均中转时间中途停留,被用作负相似性(2)。(C) 亲和力传播识别出的七个样本用颜色编码,并显示了其他城市对这些样本的分配。由于缺乏直飞航班,距离样本城市较近的城市可能是其他较远城市的成员(例如,大西洋城距离费城100公里,但在飞行时间上更接近亚特兰大)。(D) 插图显示,由于国内航班比国际航班更多,加拿大-美国边境大致分为多伦多和费城两个组团。然而,在西海岸,情况并非如此,如(E)所示,因为V ancouver和西雅图之间非常频繁的航空服务将加拿大西北部的城市与西雅图连接起来。

We also applied affinity propagation to explore the problem of identifying a restricted number of Canadian and American cities that are most easily accessible by large subsets of other cities, in terms of estimated commercial airline travel time. Each data point was a city and the similarity s(i, k) was set to the negative time it takes to travel from city i to city k by airline, including estimated stop-over delays (2). Due to headwinds, the transit time was in many cases different depending on the direction of travel, so that 36% of the similarities were asymmetric. Further, for 97% of city pairs i and k, there was a third city j such that the triangle inequality was violated, because the trip from i to k included a long stop-over delay in city j so it took longer than the sum of the durations of the trips from i to j and j to k. If the number of ‘most accessible cities’ is constrained to be seven (by adjusting the input preference appropriately), the cities shown in Fig. 4B-E were identified. It is interesting that several major cities were not selected, either because heavy international travel makes them inappropriate as easily accessible domestic destinations(e.g., New Y ork City, Los Angeles) or because their neighborhoods can more efficiently access other destinations (e.g., Atlanta, Philadelphia and Minneapolis St. Paul account for Chicago’s destinations, while avoiding potential airport delays).

我们还应用亲和力传播来探索确定有限数量的加拿大和美国城市的问题,这些城市最容易被其他大城市的子集所访问,根据估计的商业航空旅行时间。每个数据点都是一个城市,相似度s(i,k)被设置为乘飞机从城市i到城市k所需的负时间,包括估计的中途停留延误(2)。由于逆风,在许多情况下,运输时间因旅行方向不同而不同,因此36%的相似性是不对称的。此外,对于97%的城市对i和k,存在第三个城市j,使得三角不等式被违反,因为从i到k的行程包括城市j的长时间停留延迟,所以它花费的时间比从i到j和从j到k的行程持续时间之和长。如果“最容易到达的城市”的数量被限制为7(通过适当调整输入偏好),图4B-E中所示的城市被识别。有趣的是,有几个主要城市没有被选中,要么是因为大量的国际旅行使得它们不适合作为容易到达的国内目的地(例如,纽约约克城,洛杉矶),要么是因为它们的社区可以更有效地到达其他目的地(例如亚特兰大、费城和明尼阿波利斯圣保罗账户)芝加哥的目的地,同时避免潜在的机场延误)。

Affinity propagation can be viewed as a method that searches for minima of an energy function (7) that depends on a set of N hidden labels, c1, . . . , cN corresponding to the N data points. Each label indicates the exemplar to which the point belongs, so that s(i, ci) is the similarity of data point i to its exemplar. ci= i is a special case indicating that point i is itself an exemplar, so that s(i, ci) is the input preference for point i. Not all configurations of the labels are valid; a configuration c is valid when for every point i, if some other point i0has chosen i as its exemplar (i.e., ci0 = i), then i must be an exemplar (i.e., ci= i). The energy of a valid configuration is E© = −PN i=1s(i, ci). Exactly minimizing the energy is computationally intractable, since a special case of this minimization problem is the NP-hard k-median problem (8). However, the update rules for affinity propagation correspond to fixed-point recursions for minimizing a Bethe free energy (9) approximation. Affinity propagation is most easily derived as an instance of the max-sum algorithm in a factor graph (10) describing the constraints on the labels and the energy function (6).

亲和传播可以看作是一种寻找能量函数(7)的极小值的方法,它依赖于一组N个隐藏标签,c1。,对应N个数据点。每个标签都表示点所属的范例,因此s(i,ci)是数据点i与其范例的相似性。ci=i是一种特殊情况,表明i点本身就是一个范例,因此s(i,ci)是i点的输入偏好。不是所有标签的配置都有效;配置c是有效的,当对于每个点i,如果其他点i0选择i作为其范例(即ci0=i),那么i必须是一个范例(即ci=i)。有效组态的能量为E(c)=−PN i=1s(i,ci)。精确地最小化能量在计算上是困难的,因为这个最小化问题的一个特例是NP难k-中值问题(8)。然而,亲合传播的更新规则对应于最小化Bethe自由能(9)近似的不动点递归。亲和力传播作为因子图(10)中描述标签约束和能量函数(6)的最大和算法的实例最容易导出。

In some degenerate cases, the energy function may have multiple minima with corresponding multiple fixed points of the update rules, and these may prevent convergence. For example, if s(1,2) =s(2,1) and s(1,1) =s(2,2), then the solutions c1=c2= 1 and c1=c2= 2 both achieve the same energy. In this case, affinity propagation may oscillate, with both data points alternating between being exemplars and non-exemplars. In practice, we found that oscillations could always be avoided by adding a tiny amount of noise to the similarities to prevent degenerate situations or increasing the damping factor.

在某些退化情形下,能量函数可能具有多个极小值,且更新规则的多个不动点可能会阻止收敛。例如,如果s(1,2)=s(2,1)和s(1,1)=s(2,2),则解c1=c2=1和c1=c2=2都获得相同的能量。在这种情况下,亲和性传播可能会振荡,两个数据点在样本和非样本之间交替。在实践中,我们发现通过在相似点上添加少量噪声来防止退化情况或增加阻尼因子,总是可以避免振荡。

Affinity propagation has several advantages over related techniques. Methods such as k-centers clustering (1), k-means clustering (1) and the expectation maximization (EM) algorithm (11) store a relatively small set of estimated cluster centers at each step. These techniques are improved upon by methods that begin with a large number of clusters and then prune them (12), but they still rely on random sampling and make hard pruning decisions that cannot be recovered from.In contrast, by simultaneously considering all data points as candidate centers and gradually identifying clusters, affinity propagation is able to avoid many of the poor solutions caused by unlucky initializations and hard decisions. Markov chain Monte Carlo techniques (13) randomly search for good solutions, but do not share affinity propagation’s advantage of considering many possible solutions all at once.

与相关技术相比,亲和传播有几个优点。诸如k-中心聚类(1)、k-均值聚类(1)和期望最大化(EM)算法(11)在每一步存储一个相对较小的估计聚类中心集。这些技术通过从大量的簇开始,然后对它们进行修剪的方法得到了改进(12),但是它们仍然依赖于随机抽样,并且做出无法恢复的硬修剪决策。相反,通过同时将所有数据点视为候选中心并逐步识别簇,亲和传播能够避免由于不吉利的初始化和艰难的决策而导致的许多糟糕的解决方案。考虑到马尔可夫链(Carlo)随机传播的优点,随机搜索的优势不在13。

Hierarchical agglomerative clustering (14) and spectral clustering (15) solve the quite different problem of recursively comparing pairs of points to find partitions of the data. These techniques do not require that all points within a cluster be similar to a single center and are thus not well-suited to many tasks. In particular, two points that should not be in the same cluster may be grouped together by an unfortunate sequence of pairwise groupings.

层次聚集聚类(14)和谱聚类(15)解决了递归比较点对以找到数据分区的完全不同的问题。这些技术并不要求一个簇内的所有点都类似于一个中心,因此不太适合许多任务。特别是,不应该在同一个簇中的两个点可能会被一个不幸的成对分组序列组合在一起。

In (8), it was shown that the related metric k-median problem could be relaxed to form a linear program with a constant factor approximation. There, the input was assumed to be metric, i.e., non-negative, symmetric and satisfying the triangle inequality. In contrast, affinity propagation can take as input general non-metric similarities. Importantly, affinity propagation also provides a conceptually novel approach that works well in practice. Whereas the linear programming relaxation is hard to solve and sophisticated software packages need to be applied (e.g., CPLEX), affinity propagation makes use of intuitive message updates that can be implemented in a few lines of code (6).

在(8)中,我们证明了相关的度量k-中值问题可以用常数因子近似来松弛成线性规划。其中,假设输入是度量的,即非负的、对称的、满足三角不等式的输入。相反,亲和传播可以将一般非度量相似性作为输入。重要的是,亲和传播还提供了一种概念上新颖的方法,在实践中效果良好。虽然线性规划松弛很难解决,并且需要应用复杂的软件包(例如,CPLEX),但亲和传播利用了可以在几行代码中实现的直观消息更新(6)。

Affinity propagation is related in spirit to techniques recently used to obtain record-breaking results in quite different disciplines (16). The approach of recursively propagating messages in a ‘loopy graph’ has been used to approach Shannon’s limit in error-correcting decoding (17,18), solve random satisfiability problems with an order of magnitude increase in size (19), solve instances of the NP-hard 2D phase unwrapping problem (20) and efficiently estimatedepth from pairs of stereo images (21). Yet, to our knowledge, affinity propagation is the first method to make use of this idea to solve the age-old, fundamental problem of clustering data. Because of its simplicity, general applicability, and performance, we believe affinity propagation will prove to be of broad value in science and engineering.

亲和力传播在精神上与最近在不同学科中获得破纪录结果的技术有关(16)。在“循环图”中递归传播消息的方法已被用于逼近纠错解码中的香农极限(17,18),解决大小增加一个数量级的随机可满足性问题(19),解决NPhard二维相位展开问题(20)和有效估计立体图像对深度的实例(21)。然而,据我们所知,亲和力传播是利用这种思想来解决古老的、基本的数据聚类问题的第一种方法。由于它的简单性,普遍适用性和性能,我们相信亲和传播将被证明在科学和工程中具有广泛的价值。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值