Case-Based Reasoning
On the Role of Negative Precedent in Legal Outcome Prediction
Valvoda, Josef, Cotterell, Ryan, Teufel, Simone
Every legal case sets a precedent by developing the law in one of the following two ways. It either expands its scope, in which case it sets positive precedent, or it narrows it, in which case it sets negative precedent. Legal outcome prediction, the prediction of positive outcome, is an increasingly popular task in AI. In contrast, we turn our focus to negative outcomes here, and introduce a new task of negative outcome prediction. We discover an asymmetry in existing models' ability to predict positive and negative outcomes. Where the state-of-the-art outcome prediction model we used predicts positive outcomes at 75.06 F1, it predicts negative outcomes at only 10.09 F1, worse than a random baseline. To address this performance gap, we develop two new models inspired by the dynamics of a court process. Our first model significantly improves positive outcome prediction score to 77.15 F1 and our second model more than doubles the negative outcome prediction performance to 24.01 F1. Despite this improvement, shifting focus to negative outcomes reveals that there is still much room for improvement for outcome prediction models.
Medical Image Retrieval via Nearest Neighbor Search on Pre-trained Image Features
Gupta, Deepak, Loane, Russell, Gayen, Soumya, Demner-Fushman, Dina
Nearest neighbor search (NNS) aims to locate the points in high-dimensional space that is closest to the query point. The brute-force approach for finding the nearest neighbor becomes computationally infeasible when the number of points is large. The NNS has multiple applications in medicine, such as searching large medical imaging databases, disease classification, diagnosis, etc. With a focus on medical imaging, this paper proposes DenseLinkSearch an effective and efficient algorithm that searches and retrieves the relevant images from heterogeneous sources of medical images. Towards this, given a medical database, the proposed algorithm builds the index that consists of pre-computed links of each point in the database. The search algorithm utilizes the index to efficiently traverse the database in search of the nearest neighbor. We extensively tested the proposed NNS approach and compared the performance with state-of-the-art NNS approaches on benchmark datasets and our created medical image datasets. The proposed approach outperformed the existing approach in terms of retrieving accurate neighbors and retrieval speed. We also explore the role of medical image feature representation in content-based medical image retrieval tasks. We propose a Transformer-based feature representation technique that outperformed the existing pre-trained Transformer approach on CLEF 2011 medical image retrieval task. The source code of our experiments are available at https://github.com/deepaknlp/DLS.
Nearest Neighbor Classifier with Margin Penalty for Active Learning
Cao, Yuan, Gao, Zhiqiao, Hu, Jie, Yang, Mingchuan, Chen, Jinpeng
As deep learning becomes the mainstream in the field of natural language processing, the need for suitable active learning method are becoming unprecedented urgent. Active Learning (AL) methods based on nearest neighbor classifier are proposed and demonstrated superior results. However, existing nearest neighbor classifier are not suitable for classifying mutual exclusive classes because inter-class discrepancy cannot be assured by nearest neighbor classifiers. As a result, informative samples in the margin area can not be discovered and AL performance are damaged. To this end, we propose a novel Nearest neighbor Classifier with Margin penalty for Active Learning(NCMAL). Firstly, mandatory margin penalty are added between classes, therefore both inter-class discrepancy and intra-class compactness are both assured. Secondly, a novel sample selection strategy are proposed to discover informative samples within the margin area. To demonstrate the effectiveness of the methods, we conduct extensive experiments on for datasets with other state-of-the-art methods. The experimental results demonstrate that our method achieves better results with fewer annotated samples than all baseline methods.
Using Argumentation Schemes to Model Legal Reasoning
Bench-Capon, Trevor, Atkinson, Katie
Reasoning with legal cases, especially as conducted in common law jurisdictions such as the UK and USA, is a form of argumentation much studied in Artificial Intelligence and in computational argumentation. The formal procedure within which it is conducted and the extensive documentation which records the argument presented for each side and an assessment of these arguments make it a fruitful area for study. As described in [35], there may be several types of reasoning involved, including the use of rules, the balancing of factors, analogy and the use of policies to achieve particular purposes. All of these have been modelled in AI and Law, and this work suggests that reasoning with legal cases can been seen as going through a series of stages at which different reasoning styles are appropriate. This view will be elaborated in Section 2. One way of modelling a reasoning task [24] is to present it as a set of argumentation schemes [38]. In this paper we will use this method to articulate the reasoning required at each of the stages. Although legal reasoning is worthy of study in itself, we believe that the insights are also applicable to other, less formal, domains where it is necessary to balance reasons for and against particular options to come to a decision.
Nearest Neighbor Non-autoregressive Text Generation
Niwa, Ayana, Takase, Sho, Okazaki, Naoaki
Non-autoregressive (NAR) models can generate sentences with less computation than autoregressive models but sacrifice generation quality. Previous studies addressed this issue through iterative decoding. This study proposes using nearest neighbors as the initial state of an NAR decoder and editing them iteratively. We present a novel training strategy to learn the edit operations on neighbors to improve NAR text generation. Experimental results show that the proposed method (NeighborEdit) achieves higher translation quality (1.69 points higher than the vanilla Transformer) with fewer decoding iterations (one-eighteenth fewer iterations) on the JRC-Acquis En-De dataset, the common benchmark dataset for machine translation using nearest neighbors. We also confirm the effectiveness of the proposed method on a data-to-text task (WikiBio). In addition, the proposed method outperforms an NAR baseline on the WMT'14 En-De dataset. We also report analysis on neighbor examples used in the proposed method.
Case-Based Reasoning (CBR) for the Self-Improving Help Desk
In the AI-driven era, customer service has evolved to be more efficient and self-learning. AI systems help companies in a variety of ways including improving customer satisfaction ratings, reducing operational costs, and increasing revenue. AI has many other advantages for customer service that human agents cannot compete with -- it is always available, 24/7 and never gets tired or distracted. One of the leading AI systems in this area is CBR Systems' machine learning help desk system. Case Based Reasoning (CBR) is an AI technique that is increasingly used by customer service departments to improve their performance and help desk software providers to offer even more intelligent solutions for their customers.
K-nearest Neighbors in Scikit-learn - KDnuggets
K-nearest neighbors (KNN) is a type of supervised learning machine learning algorithm and can be used for both regression and classification tasks. A supervised machine learning algorithm is dependent on labeled input data which the algorithm learns on and uses its learnt knowledge to produce accurate outputs when unlabeled data is inputted. The use of KNN is to make predictions on the test data set based on the characteristics (labeled data) of the training data. The method used to make these predictions is by calculating the distance between the test data and training data, assuming that similar characteristics or attributes of the data points exist within close proximity. It allows us to identify and assign the category of the new data whilst taking into consideration its characteristics based on learned data points from the training data.
Information Extraction from Scanned Invoice Images using Text Analysis and Layout Features
Signal Processing: Image Communication manuscript No. (will be inserted by the editor) Abstract While storing invoice content as metadata comparison of 9 AC per manually processed invoice and to avoid paper document processing may be the future 2 AC per automated processing of one invoice based on trend, almost all of daily issued invoices are still surveys in 2004 and 2003 respectively. A 2016 report by printed on paper or generated in digital formats such the Institute of Finance and Management [2] suggested as PDFs. In this paper, we introduce the OCRMiner that the average cost to process an invoice was $12.90. The system on Scanned Receipt OCR and Information Extraction is designed to process the document in a similar way a (SROIE) at ICDAR 2019 [3] or the Mobile-Captured human reader uses, i.e. to employ different layout and Image Document Recognition for Vietnamese Receipts text attributes in a coordinated decision. Still, annotated benchmark invoice consists of a set of interconnected modules that start datasets are not generally available due to confidential with (possibly erroneous) character-based output from information, and the published papers do not offer a standard OCR system and allow to apply different detailed dataset descriptions and error analyses of the techniques and to expand the extracted knowledge at content. Moreover, although receipts and invoices have each step. Using an open source OCR, the system is some common attributes, their analyses differ vastly able to recover the invoice data in 90% for English and due to complex graphical layouts and richer content in 88% for the Czech set. In 2006, Lewis et al. [6] published the IIT 1 Introduction Complex Document Information Processing Test Collection (IIT-CDIP) based on the Legacy Tobacco Documents Automatic invoice processing systems gain significant Library, containing roughly 40 millions scanned interest of large companies who deal with enormous pages for evaluation of document information processing numbers of invoices each day, due to not only their tasks.
One-Nearest-Neighbor Search is All You Need for Minimax Optimal Regression and Classification
Recently, Qiao, Duan, and Cheng~(2019) proposed a distributed nearest-neighbor classification method, in which a massive dataset is split into smaller groups, each processed with a $k$-nearest-neighbor classifier, and the final class label is predicted by a majority vote among these groupwise class labels. This paper shows that the distributed algorithm with $k=1$ over a sufficiently large number of groups attains a minimax optimal error rate up to a multiplicative logarithmic factor under some regularity conditions, for both regression and classification problems. Roughly speaking, distributed 1-nearest-neighbor rules with $M$ groups has a performance comparable to standard $\Theta(M)$-nearest-neighbor rules. In the analysis, alternative rules with a refined aggregation method are proposed and shown to attain exact minimax optimal rates.