<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>A Linear Primal-Dual Multi-Instance SVM for Big Data Classifications</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>12/01/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10316103</idno>
					<idno type="doi">10.1109/ICDM51629.2021.00012</idno>
					<title level='j'>2021 IEEE International Conference on Data Mining (ICDM)</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Lodewijk Brand</author><author>Lauren Zoe Baker</author><author>Carla Ellefsen</author><author>Jackson Sargent</author><author>Hua Wang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Multi-instance learning (MIL) is an area of machine learning that handles data that is organized into sets of instances known as bags. Traditionally, MIL is used in the supervised-learning setting and is able to classify bags which can contain any number of instances. This property allows MIL to be naturally applied to solve the problems in a wide variety of real-world applications from computer vision to healthcare. However, many traditional MIL algorithms do not scale efficiently to large datasets. In this paper we present a novel Primal-Dual Multi-Instance Support Vector Machine (pdMISVM) derivation and implementation that can operate efficiently on large scale data. Our method relies on an algorithm derived using a multi-block variation of the alternating direction method of multipliers (ADMM). The approach presented in this work is able to scale to large-scale data since it avoids iteratively solving quadratic programming problems which are generally used to optimize MIL algorithms based on SVMs. In addition, we modify our derivation to include an additional optimization designed to avoid solving a least-squares problem during our algorithm; this optimization increases the utility of our approach to handle a large number of features as well as bags. Finally, we apply our approach to synthetic and real-world multi-instance datasets to illustrate the scalability, promising predictive performance, and interpretability of our proposed method. We end our discussion with an extension of our approach to handle non-linear decision boundaries. Code and data for our methods are available online at: https://github.com/minds-mines/pdMISVM.jl.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>Multi-instance learning (MIL) is a sub-area of machine learning in which training and testing data are organized in sets called bags. What makes MIL challenging is that labels associated with these data are frequently provided at the baglevel, but not the instance-level. This is also known as weakly supervised learning in the literature. Algorithms that adhere to this type of weakly supervised learning paradigm are naturally suited to a wide variety of real world problems that contain limited labeled data. For example, images can be represented</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Single Instance Learning Multi-Instance Learning</head><p>Positive Instances</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Negative Instances</head><p>Positive Bags</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Negative Bags</head><p>Fig. <ref type="figure">1</ref>. An illustrative comparison of the single instance and multi-instance learning paradigms. Algorithms that operate on multi-instance data must contend with the fact that instances are rarely individually-labeled. Instead, labels are generally provided at the bag-level. Thus, the goal of a multiinstance learning algorithm is to learn to identify instances, within a given bag, that indicate a particular class membership.</p><p>by a bag of patches, documents can be organized into sentences, patients can be represented by a collection of medical records, to name a few. However, since each bag can have an arbitrary number of instances, standard machine learning approaches that rely on fixed-length vector representations cannot be applied to the data directly. Significant research efforts have been made to design algorithms that can handle this type of data.</p><p>In the past twenty years, a large number of MIL algorithms <ref type="bibr">[1]</ref>- <ref type="bibr">[8]</ref> have been proposed. These approaches have been applied to many different topics ranging from drug activity prediction <ref type="bibr">[9]</ref>, content-based image retrieval <ref type="bibr">[10]</ref>, medical image analysis <ref type="bibr">[11]</ref>, document classification <ref type="bibr">[12]</ref>, among many other application areas <ref type="bibr">[13]</ref>. Recently, deep learning-based MIL methods <ref type="bibr">[14]</ref>- <ref type="bibr">[16]</ref> have also been proposed to handle multi-instance data. While these methods have demonstrated their effectiveness in solving a variety of real-world problems by multi-instance learning, their limitations have also been discussed in literature <ref type="bibr">[17]</ref>, <ref type="bibr">[18]</ref>. For example, a recent survey paper <ref type="bibr">[18]</ref> notes that current state-of-the-art MIL approaches are sensitive to the construction of instances within a bag. Specifically, they determine that the performance of MIL methods are sensitive to witness rate, e.g., the proportion of positive instances in positive bags, as well as whether the algorithm operates on the instance or bag level. This has also been observed in older MIL survey papers <ref type="bibr">[17]</ref> and requires that new algorithms be tested on a range of different datasets and applications. In addition to dataset-specific performance, the authors of these survey papers highlight that performance improvements in the training time of MIL algorithms, especially those that rely on instance-level information, are necessary for further adoption.</p><p>In this work, we focus specifically on scaling SVM-based MIL algorithms, as they have shown consistent performance and can be further extended to non-linear decision boundaries via the kernel trick. Popular SVM-based MIL approaches such as miSVM/MISVM <ref type="bibr">[1]</ref>, NSK <ref type="bibr">[19]</ref>, and sMIL/sbMIL <ref type="bibr">[2]</ref> have been proposed to handle multi-instance data and have demonstrated promising performance, even when compared against modern MIL deep-learning architectures such as miNet/MINet <ref type="bibr">[20]</ref>. While these approaches have performed well, and can be extended to solve a variety of real-world problems, they are not widely used in practice as they do not scale well to large datasets. Furthermore, many of these approaches are not equipped with capabilities to interpret the results of their predictions. These two shortcomings, speed of model training and model interpretability of multi-instance learning methods, are the focus of this work.</p><p>For the remainder of this manuscript we present a novel method that extends a multi-instance SVM to large scale data. Our approach uses the multi-block alternating direction method of multipliers (ADMM) to avoid iteratively solving the quadratic programming problems that arise from standard SVM-based MIL approaches. The scientific contributions of this work are as follows: -A novel MIL algorithm derivation, named the Primal-Dual Multi-Instance SVM (pdMISVM) method, and an associated implementation that scales linearly as the number of bags increases. -An inexact variation of our approach, based on the optimal line search method, that scales linearly as the number of features increases. -Experimental results showcasing the promising predictive performance, scalability, and interpretability of our approach on baseline multi-instance data and real-world image data compared against other MIL algorithms. -An extension of our approach that allows for the inclusion of an arbitrary kernel function and a proof-of-concept experiment on synthetic data verifying our derivation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. METHODS</head><p>In this section we begin with a sketch for the steps required for the standard multi-instance SVM (MISVM) derivation initially presented by Andrews et al. <ref type="bibr">[1]</ref>. Then, following the multi-block ADMM framework <ref type="bibr">[21]</ref>- <ref type="bibr">[23]</ref>, we construct the augmented Lagrangian which will be used to derive the solution to the proposed pdMISVM method; this is followed by a step-by-step derivation to optimize the proposed objective. Finally, we extend our approach to handle a large number of features through an application of the optimal line search method <ref type="bibr">[24]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Notation</head><p>In this manuscript we represent matrices as M, vectors as m, and scalars as m. The i-th row and j-th column of M are m i and m j , respectively. Similarly, m i j is the scalar value indexed by the i-th row and j-th column of M. The matrix M p corresponds to the p-th column-block of M. Given a K &#215; N matrix M, {m, i} = arg max m ,i (M) gives the rowby-column coordinates for the maximum element in M. The row and column indices are given by arg max m ,i (M) m and arg max m ,i (M) i , respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Extending the MISVM to K-classes</head><p>In the binary multi-instance classification problem, the MIL algorithm is presented with a collection of bags and labels represented by the set {X i , y i } : i &#8712; 1, . . . , N where y i &#8712; {-1, 1}, X i &#8712; R d&#215;ni designates a bag containing n i instances, and {x 1 , . . . , x ni } &#8712; X i represent each instance within the i-th bag. Following the instance-centric approach advocated by Andrew's et al. <ref type="bibr">[1]</ref> MISVM model, where a single "witness" instance determines the class of a bag, we define the decision function for a multi-instance binary classifier as</p><p>where w, b are the hyperplane and intercept for the MISVM.</p><p>The MISVM objective devised by Andrews et al. is</p><p>where C is a hyperparameter that determines the level of regularization on the learned hyperplane and &#958; i are slack variables. The constraints in Eq. ( <ref type="formula">2</ref>) are incorporated via a Lagrangian function</p><p>and is solved with respect to the dual variables (&#945; i ) using off-the-shelf quadratic programming solvers or heuristic algorithms like sequential minimal optimization <ref type="bibr">[25]</ref> which takes advantage of a limited number of support vectors. Although the MISVM formulation from Andrews et al. is widely used in MIL literature, it is generally limited to binary classification problems.</p><p>In order to design a method suitable for multi-class multiinstance classification, we extend the decision function presented in Eq. (1) to K-classes via &#375;i = arg max m ,i</p><p>where W &#8712; R d&#215;K , b &#8712; R K , &#375;i &#8712; {1, . . . , K} represents the hyperplanes, intercepts, and labels for K classes. Motivated by the results of <ref type="bibr">[26]</ref> where it is argued that all-in-one formulations for K-class SVMs provide superior predictive performance, when compared to one-vs-all approaches, we construct the following Weston &amp; Watkins <ref type="bibr">[27]</ref> MISVM extension to Eq. ( <ref type="formula">2</ref>)</p><p>where w y , b y is the hyperplane-intercept pair associated with the i-th bag's class label, (&#8226;) + = max(0, &#8226;) is the hinge loss function, and y m i &#8712; {-1, 1} indicates if the i-th bag belongs to the m-th class. Similar to Eq. ( <ref type="formula">2</ref>), the K-class formulation above can be transformed into a quadratic programming problem and solved. Although, this approach is known <ref type="bibr">[26]</ref> not to scale well as the number of bags increases. To address this issue we propose a novel primal-dual algorithm based on the multi-block ADMM <ref type="bibr">[23]</ref> to optimize Eq. <ref type="bibr">(5)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. A Primal-Dual Multi-Instance SVM</head><p>Incorporating the constraints of Eq. ( <ref type="formula">5</ref>) into the objective gives the unconstrained optimization</p><p>which is difficult to solve given the coupling across w k , b m , and the max(&#8226;) operations. Following the multi-block ADMM approach we introduce the following constraints, inspired by <ref type="bibr">[24]</ref>, <ref type="bibr">[28]</ref>, and rewrite Eq. ( <ref type="formula">6</ref>) as</p><p>to decouple the primal variables. Then, the augmented Lagrangian function of Eq. ( <ref type="formula">7</ref>) is</p><p>where W, b, E, Q, T, R, U are the primal variables, &#923;, &#931;, &#920;, &#937;, &#926; are the dual variables, and &#956; &gt; 0 is a tuning parameter. Equation ( <ref type="formula">8</ref>) is then differentiated with respect to each primal variable to derive Algorithm 1. The primal-dual updates terminate when the total difference between the constraints incorporated via the augmented Lagrangian terms are less than a predefined tolerance.</p><p>W &amp; b update. Removing all terms from Eq. ( <ref type="formula">8</ref>) that do not include W and decoupling across columns of W gives the following K problems</p><p>where i indicates the column blocks in X (and the corresponding columns of U and &#926;) that belong to the m-th class and N is the total number of bags belonging to the m-th class. Taking the derivative of Eq. ( <ref type="formula">9</ref>) with respect to w m and setting the result equal to zero gives the closed form solution</p><p>which can be calculated via a least-squares solver to avoid an inverse calculation. Similarly, differentiating Eq. ( <ref type="formula">9</ref>) elementwise with respect to b m , setting the result equal to zero, gives the update</p><p>E update. Dropping terms from Eq. ( <ref type="formula">8</ref>), that do not contain E and decoupling element-wise gives K &#215; N problems</p><p>where <ref type="formula">12</ref>) can be differentiated with respect to e m i via the sub-gradient method, and solved in three cases</p><p>Q &amp; R update. Keeping only terms with Q in Eq. ( <ref type="formula">8</ref>) and decoupling element-wise gives K &#215; N problems</p><p>Taking the derivative of Eq. ( <ref type="formula">14</ref>) with respect to q m i , setting the result equal to zero, and solving for q m i gives the update</p><p>Following the same steps for each r m i &#8712; R we derive the element-wise updates</p><p>T &amp; U update. Keeping terms in Eq. ( <ref type="formula">8</ref>) containing T and decoupling across K and N gives the following</p><p>which can be further decoupled element-wise for each</p><p>Taking the derivative of Eq. ( <ref type="formula">18</ref>) with respect to t m i,j , setting the result equal to zero, and solving for t m i,j , gives the updates</p><p>This same strategy is applied to derive the element-wise updates of U, giving</p><p>where</p><p>The associated dual variable updates are provided in Algorithm 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Scaling to a Large Number of Features</head><p>Although the updates derived in Section II-C provide a suitable algorithm as the number of bags increase, the leastsquares solver used to update W in Eq. ( <ref type="formula">10</ref>) has computational complexity 2 and scales quadratically as the number of features increase; this limits the scalability of our approach to bags only. Additionally, since &#956; is updated every iteration, the least-squares solver must be invoked at every iteration. To handle this issue, we propose an alternative optimal line search method <ref type="bibr">[24]</ref> to update W instead. W Update, inexact. The partial derivative of Eq. ( <ref type="formula">9</ref>) with respect to w k gives</p><p>which can be used to create the minimization</p><p>in terms of s m instead of w m . Differentiating Eq. ( <ref type="formula">22</ref>) with respect to s m , setting the result equal to zero, and solving for s m gives</p><p>Recognizing that the denominator of Eq. ( <ref type="formula">23</ref>) is equivalent to</p><p>allows for Eq. ( <ref type="formula">23</ref>) to be calculated efficiently in</p><p>Combining, Eq. ( <ref type="formula">21</ref>) and Eq. ( <ref type="formula">23</ref>) can then be used to update w m via</p><p>This "inexact" update option avoids solving the least squares problem present in Eq. <ref type="bibr">(10)</ref> and is provided as an option on Line 6 of Algorithm 1 to extend our method to handle a large number of features.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. EXPERIMENTS</head><p>In this section we explore the performance of our exact and inexact pdMISVM implementations. We first test our method against an array of standard MIL benchmarks to explore how our implementations compare against other MIL methods.  Algorithm 1 The pdMISVM method to optimize Eq. ( <ref type="formula">8</ref>) Update wm &#8712; W by Eq. ( <ref type="formula">10</ref>), or Eq. ( <ref type="formula">25</ref>) inexact Update e m p &#8712; E by Eq. (</p><p>Update q m p &#8712; Q by Eq. ( <ref type="formula">15</ref>)</p><p>12:</p><p>Update r m p &#8712; R by Eq. ( <ref type="formula">16</ref>)</p><p>13:</p><p>for j &#8712; np do 14:</p><p>Update t m p,j &#8712; T by Eq. (</p><p>Update u m p,j &#8712; U by Eq. (</p><p>end for 17:</p><p>y Xi + 1by)).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>18:</head><p>end for</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>19:</head><p>Update &#956; = &#961;&#956; 20: end while 21: return (wm, . . . , wK ) &#8712; W and (b1, . . . , bK ) &#8712; b.</p><p>We follow the baseline experiments with an investigation into increasingly complex natural scene data to determine the performance characteristics of our approach. Then, we conduct experiments with synthetic data to illustrate the scalability of our approach and experimentally verify the expected computational complexity/performance characteristics of our approach compared to others. We follow with a discussion of the interpretability of our method on three multi-instance datasets derived from two well-known baseline datasets. Finally, we present an extension of our primal-dual derivation to handle arbitrary kernel functions. We experimentally verify this extended derivation on synthetic data and identify a limitation of our approach to be addressed in future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Settings &amp; Data</head><p>We compare our method against eight MIL learning algorithms: (1) a single-instance learning (SIL) approach that assigns the bags' labels to all instances during training and returns the maximum response for each bag/class-pair at test time for the testing bags' instances; (2) the miSVM and (3) MISVM algorithms <ref type="bibr">[1]</ref> that assume that at least one instance per bag is positive to classify a bag as positive; (4) the NSK algorithm <ref type="bibr">[19]</ref>, a bag-based method, that maps the entire bag to a single-instance by way of a kernel function; (5) the sMIL and ( <ref type="formula">6</ref>) sbMIL <ref type="bibr">[2]</ref> algorithms which expect that only a small number of instances within a bag are classified as positive and combine instance-level and bag-level relationships to make a prediction. We also compare our approach against two end-toend MIL algorithms, (7) miNet and ( <ref type="formula">8</ref>) MINet <ref type="bibr">[20]</ref>, based on deep neural-network (DNN) architectures.</p><p>These methods are compared against the proposed pdMISVM (Ours) method, and the inexact variation, described in Algorithm 1. The grid search and performance calculations for each method-dataset pair are conducted using the MLJ library <ref type="bibr">[29]</ref> and are included with our code. <ref type="foot">1</ref> All experiments were run on an Intel Xeon processor running at 2.20GHz using 126GB of RAM, running Ubuntu 18.04.4 LTS. The competing SVM-based methods are implemented using a library<ref type="foot">foot_1</ref> written by Doran et al. <ref type="bibr">[30]</ref> while the DNN methods are implemented using the code<ref type="foot">foot_2</ref> provided as a companion to the paper by Wang et al. <ref type="bibr">[20]</ref>. Methods that take longer than one-thousand seconds to train during a single cross-validation are considered "timed-out" (T/O) and their performance metrics are not provided.</p><p>Each method is compared against a synthetic dataset and ten multi-instance datasets that are normalized to have zero mean and unit variance. The synthetic dataset contains 10 to 1,000 bags with three to five instances per bag and 10 to 1,000 features per instance. The first instance per bag is constructed from two normally-distributed clusters with a standard deviation of one; the second to fifth instances per bag contain uniform random noise.</p><p>The MUSK-2 <ref type="bibr">[9]</ref>, Elephant, Fox, and Tiger <ref type="bibr">[1]</ref> datasets are standard small scale MIL evaluation datasets and are widely cited in the MIL literature. The MUSK-2 dataset is designed to classify chemical compounds as either "musk" or "non-   musk" which describes the chemical properties of a given compound; bags within this dataset are representative of the possible conformations of the labeled compound. The MUSK-2 dataset contains 39 positive and 63 negative bags with 166 features per instance. The Elephant, Fox and Tiger datasets are derived from the Corel image dataset <ref type="bibr">[31]</ref> and each contain 100 positive and 100 negative bags with 143 non-zero features per instance.</p><p>The MNIST-bags <ref type="bibr">[15]</ref> dataset contains 100 positive and 100 negative bags where a bag is made up of a random number of 28 &#215; 28 greyscale images taken from the MNIST dataset. A bag is given a positive label if it contains a '9' and negative label if it does not. For our experiments the average number of bags is ten, thus the witness rate for positive bags is 10%, on average. This low witness rate makes this a challenging dataset for the chosen MIL algorithms.</p><p>The SIVAL dataset was specifically designed for contentbased image retrieval (CBIR) and contains natural scene images consisting of 25 categories with 60 images per category Fig. <ref type="figure">3</ref>. Confusion matrix of the inexact pdMISVM approach tested on the SIVAL-25-deep dataset created from the patch-wise application of a convolutional neural network as a pre-processing step. Results are derived from a six-fold cross-validation experiment across all 1,463 bags.</p><p>for a total of 1,500 bags. In this work we use the processed dataset provided in the initial work of Rahmani et al. <ref type="bibr">[32]</ref> and create a novel dataset derived from the raw SIVAL images. In the original processed SIVAL dataset, the images are segmented into 30 or 31 instances, depending on the picture, consisting of 30 features each. In total there are 47,414 instances across the entire SIVAL dataset. In order to explore the prediction and runtime performance of the compared methods, we construct a few subsets of this dataset containing a predetermined number of classes. Specifically, we construct the SIVAL-3, SIVAL-5, SIVAL-10, and SIVAL-25 datasets each containing three, five, ten, and twenty-five classes from the SIVAL dataset, respectively.</p><p>In addition, we construct the "SIVAL-25-deep" dataset, which is inspired by the "hybrid" approach detailed by Zheng et al. <ref type="bibr">[33]</ref> which investigates the ongoing shift from SIFT-based descriptors <ref type="bibr">[34]</ref> to convolutional neural networks for generating image descriptors. To create this multi-instance dataset we extract patches from the raw Fig. <ref type="figure">4</ref>. Time to train our method and other MIL methods on synthetic multiinstance data where the number of bags increase. Both the exact and inexact end up training faster than the competing methods once the number of synthetic bags is greater than eight-hundred.</p><p>SIVAL images using the proposal generator (eta=0.2, minScore=0.04, maxBoxes=200) provided in the OpenCV library. <ref type="foot">4</ref> These patches are fed a pre-trained AlexNet <ref type="bibr">[36]</ref> convolutional neural network where the second to last fully-connected layer (F10) is used to represent each instance by 4,096 features. We note that more complex/newer deep neural architectures, and other proposal generators, could be used to create this patch-level embedding but leave this to future work. This process is repeated for every image (where object proposals are detected by EdgeBox) and results in 1,463 bags for a total of 80,561 instances. The SIVAL-25-deep dataset is our attempt at a modernization of the standard SIVAL dataset; the pipeline used to generate this benchmark is provided with our code.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Classification Performance</head><p>In Tables I and II we provide the classification performance of our approach compared against the other MIL algorithms. Our goal is to verify that our approach matches the performance of the other MIL algorithms. For each datasetmethod pair we report the accuracy (ACC) and balanced accuracy (BACC) results across ten six-fold cross validation experiments. We can see from Table I that our method gives comparable performance on the MUSK-2, Elephant, and Tiger datasets; this applies for both the exact and inexact implementations. Interestingly, the inexact implementation of our approach outperforms all other methods on both the Fox and MNIST-Bags datasets. In Table <ref type="table">II</ref> the exact method only slightly outperforms the next best performing method on the SIVAL-3 dataset; this impressive performance result does not hold for the inexact version. Although, the inexact method performs better (in comparison) when the number of classes/bags increase. The inexact method shows surprisingly impressive results on SIVAL-25-deep dataset which are recorded just within the time-budget; this significant performance improvement can be seen very clearly in the comparison between the Fig. <ref type="figure">5</ref>. Elapsed time to train the exact and inexact methods on synthetic multi-instance data as the number of features is varied. As expected, the exact approach performs poorly as the number of features increases but the inexact method continues to scale linearly. confusion matrices in Figures <ref type="figure">2</ref> and<ref type="figure">3</ref>. It's clear from these results that both the exact and inexact methods are capable of providing competitive performance results on a variety of multi-instance datasets.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Bag/Feature Scalability</head><p>The key contribution of this work is that the derived algorithms described in Section II-C and Section II-D scale to large datasets. This can clearly be seen in the SIVAL-25 column of Table <ref type="table">II</ref> where our methods are the only ones that are able to fit a model within one-thousand seconds. In order to further validate this finding, in Figure <ref type="figure">4</ref> we report training time results on a synthetic multi-instance dataset where we increase the number of bags as described in Section III-A. Our approach scales well with respect to the number of bags which illustrates the importance of our primal-dual derivation. This conclusion is especially clear when our method is compared against SVM-based MIL methods which rely on repeatedly solving quadratic programming problems.</p><p>Although the initial pdMISVM derivation scales well with respect to bags, it does not scale to the number of features when it is large. This is due to the fact that the update for each w k in Eq. ( <ref type="formula">10</ref>) requires solving a least squares problem which scales quadratically as the number of features increase. To address this limitation, we proposed an optimal line search method to improve the scalability of our approach in Eq. ( <ref type="formula">25</ref>). We conduct a timing experiment between the exact and inexact methods using synthetic data where the number of features are increased to see if our inexact variation provides improved runtime performance. We can see in Figure <ref type="figure">5</ref> that the proposed inexact method significantly reduces the training time of our approach as the number of features increase.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Model Interpretability</head><p>In addition to the promising predictive performance and scalability of our method, we note that instance-based methods such as ours come with an additional benefit: interpretability. Instance-based methods such as miSVM, MISVM, and the Fig. <ref type="figure">6</ref>. Learned class-specific hyperplanes of the pdMISVM method on the MNIST-bags dataset plotted in a 28 &#215; 28 grid. Left: Learned coefficients for predicting whether a bag contains the MNIST handwritten digit '9'. Right: The learned coefficients for predicting whether a bag does not contain the MNIST digit '9'. Fig. <ref type="figure">7</ref>. Instance identification results on the first five testing bags of our method on the MNIST-bags dataset with the detectors in Figure <ref type="figure">6</ref>. Our approach correctly classifies the first, second and third bags. Although the first bag is classified correctly the "9"s are not properly identified.</p><p>proposed pdMISVM method, identify an explicit instance within a bag that is responsible for the predicted label. We use this phenomenon to explore the limitations of our method on the MNIST-bags dataset and showcase patches identified during the SIVAL experiment across a number of different classes.</p><p>For the MNIST-bags dataset we plot the learned positive and negative class coefficients associated with the two learned hyperplanes in Figure <ref type="figure">6</ref> (e.g. w 1 and w 2 ). In addition, we plot four randomly chosen testing bags and what instance was chosen by the multi-instance decision function for the positive class hyperplane in Figure <ref type="figure">7</ref>. On the left-hand side of Figure <ref type="figure">6</ref>, we can see that our method can roughly detect the loop at the top of the '9' although it is clear from this interpretation that the our approach will not be able to handle even moderate translation or rotation if it is only provided with raw-pixel values. Additionally, even though our method correctly classifies the first bag, it incorrectly identifies the '4' as the witness instance; we can see that a '4' appears to be contaminating the learned coefficients displayed in Figure <ref type="figure">6</ref>. In order to solve this problem it is likely that additional preprocessing will be required to extract more descriptive features from instances within the MNIST-bags dataset beyond raw pixels for our method to be effective.</p><p>In order to illustrate how effective feature extraction can aid in the interpretability of our method, we extend our discussion to the SIVAL-25 and SIVAL-25-deep datasets. In Figure <ref type="figure">8</ref>, we provide image patches identified by our approach on images chosen from the SIVAL-25 dataset. We can see that our method identifies distinctive visual characteristics in each of the classes. For example, the bag representing a "Banana" is identified by a distinctive patch along the length of the fruit while in the "Apple" image our approach identifies the round patch on top of the fruit. Similarly, in Figure <ref type="figure">9</ref> we present the neural-network embedded patches extracted via the EdgeBox detection algorithm and the identified patches. We can clearly see in Figure <ref type="figure">9</ref> that our approach is able to accurately localize the most distinctive parts of the object, at the patch-level, within the image. For example, the medal is recognized by the "gold" part while the "bowl" of the spoon is recognized.</p><p>Remarkably, the results in Figures <ref type="figure">8</ref> and<ref type="figure">9</ref> show that when our method is given a set of sufficiently descriptive object proposals/patches, paired with a bag-level label, our method can accurately locate objects within an image. This is one of the significant advantages of instance-based MIL methods over traditional single-instance learning methods that require all instances to be labeled. We anticipate that this framework could be extended to investigate and interpret the effectiveness of pre-trained neural networks on an assortment of datasets that can be formulated as MIL problems. We plan to further investigate different aspects of our approach under different Fig. <ref type="figure">9</ref>. Instance identification on the SIVAL-25-deep dataset across different classes. In each set of three pictures the leftmost is the original image, the middle shows the bag of patches extracted by the EdgeBox detector <ref type="bibr">[35]</ref>, and the final image highlights the patch identified by our approach for classifying the image. object proposal methods <ref type="bibr">[37]</ref>, <ref type="bibr">[38]</ref>, neural architectures <ref type="bibr">[39]</ref>, and applications <ref type="bibr">[12]</ref>, <ref type="bibr">[13]</ref>, <ref type="bibr">[40]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E. A Kernel Extension</head><p>Although the proposed pdMISVM formulation and implementations are shown to work well on a variety of MIL datasets, they are limited to classifying data that is linearly separable. In order for our method to be able to handle nonlinear decision boundaries, it requires the addition of a kernel. To this end, we briefly sketch out a kernel extension to the W variable update proposed in Section II-C. We verify this addition in an experiment with synthetic data that can only be correctly classified by a nonlinear method. W update (with kernel) Starting with Eq. ( <ref type="formula">9</ref>) and replacing all columns of X i with feature vectors calculated by an arbitrary kernel function &#966;(X i ) = &#934; i , taking its derivative with respect to w m , and solving for w m gives Since the kernel function applied to each X i may return feature vectors that are infinitely long, it may be impossible to calculate the inverse required to express w m in Eq. <ref type="bibr">(27)</ref>. In order to solve this issue we use the following trick <ref type="bibr">[41]</ref> (P -1 + m T R -1 m) -1 m T R -1 = Pm T (mPm T + R) -1   to rewrite w T m equivalently, as</p><p>The updated w m in Eq. ( <ref type="formula">28</ref>) can then be used to update w T m &#966;(X i ) and w m 2 2 = tr w T m w m directly, as the kernel function occurs as an inner product in both cases and can be computed. We implement the kernel version of the pdMISVM method and compare it against the linear version in Figure <ref type="figure">10</ref>; we can see this extension successfully extends our approach to correctly classify data that is not linearly separable. Unfortunately, the update in Eq. ( <ref type="formula">28</ref>) is computationally expensive as it requires a least squares calculation that scales quadratically with respect to the total number of bags in the training dataset. We plan to address this limitation in our future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. CONCLUSION</head><p>In this work we propose a Primal-Dual Multi-Instance SVM method that is able to scale to large multi-instance datasets. Our SVM-based approach is able to handle data that grows in terms of bags as well as features since it avoids solving a quadratic programming problem that limits the adoption of traditional SVM-based MIL techniques. Throughout the manuscript, we provide detailed derivations, implementations, and experimental results which illustrate the utility of our approach on both synthetic and real-world datasets. In addition, we provide analyses that investigate the interpretability of our method on benchmark multi-instance datasets and develop an extension to the SIVAL dataset as part of this study. Finally, using the same primal-dual framework, we derive and implement a kernel extension of our approach that is able to learn non-linear decision boundaries on synthetic multiinstance data and identify areas for future work.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>https://github.com/minds-mines/pdMISVM.jl</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>https://github.com/garydoranjr/misvm</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2"><p>https://github.com/yanyongluan/MINNs</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_3"><p>https://github.com/opencv/opencv</p></note>
		</body>
		</text>
</TEI>
