KR20190008514A - Natural language processing with knn - Google Patents

Natural language processing with knn Download PDF

Info

Publication number
KR20190008514A
KR20190008514A KR1020180080694A KR20180080694A KR20190008514A KR 20190008514 A KR20190008514 A KR 20190008514A KR 1020180080694 A KR1020180080694 A KR 1020180080694A KR 20180080694 A KR20180080694 A KR 20180080694A KR 20190008514 A KR20190008514 A KR 20190008514A
Authority
KR
South Korea
Prior art keywords
vector
section
value
memory array
feature
Prior art date
Application number
KR1020180080694A
Other languages
Korean (ko)
Other versions
KR102608683B1 (en
Inventor
아비단 아케립
Original Assignee
쥐에스아이 테크놀로지 인코포레이티드
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 쥐에스아이 테크놀로지 인코포레이티드 filed Critical 쥐에스아이 테크놀로지 인코포레이티드
Publication of KR20190008514A publication Critical patent/KR20190008514A/en
Application granted granted Critical
Publication of KR102608683B1 publication Critical patent/KR102608683B1/en

Links

Images

Classifications

    • G06F17/28
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2413Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on distances to training or reference patterns
    • G06F18/24147Distances to closest patterns, e.g. nearest neighbour classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/048Activation functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Complex Calculations (AREA)

Abstract

A system for processing natural language comprises a memory array and a processor. The memory array is divided into a similarity section for storing a plurality of feature vectors, a SoftMax section for determining the probability of generation of the feature vectors, a value section for storing a plurality of modified feature vectors, and a marker section. In each column displayed by the marker section, the processor activates the memory array to perform, in parallel: similarity calculation in the similarity section between the feature vector, stored in the displayed column, and a vector question; SoftMax calculation in the SoftMax section for determining a SoftMax probability value related to the displayed feature vector; multiplication calculation in the value section for multiplying the related SoftMax probability value by each modified feature vector stored in the displayed column; and vector sum calculation in the value section for accumulating attention vectors of output of the multiplication calculation. The present invention is to analyze a large data set in a very rapid and efficient manner.

Description

KNN을 이용한 자연 언어 처리{NATURAL LANGUAGE PROCESSING WITH KNN}Natural language processing using KNN {NATURAL LANGUAGE PROCESSING WITH KNN}

관련 출원에 대한 상호 참조Cross-reference to related application

본 출원은 2017년 7월 16일에 출원된 미국 가출원 62/533,076 및 2018년 6월 18일에 출원된 미국 가출원 62/686,114에 대해 우선권을 주장하며, 이러한 문헌의 내용은 원용에 의해 본원에 통합된다.This application claims priority to U.S. Provisional Application No. 62 / 533,076, filed July 16, 2017, and U.S. Provisional Application No. 62 / 686,114, filed on June 18, 2018, the contents of which are incorporated herein by reference in their entirety do.

기술분야Technical field

본 발명은 일반적으로 연관 계산, 및 특히 연관 계산을 이용하는 데이터 마이닝 알고리즘에 관한 것이다.The present invention relates generally to data mining algorithms that use association calculations, and in particular association calculations.

데이터 마이닝은 대형 데이터세트에서 패턴을 발견하는 계산 프로세스이다. 이는 상이한 기술을 사용하여 데이터세트를 분석한다. 이러한 기법 중 하나는 분류이며, 이는 그룹 구성원이 알려져 있는 데이터세트의 아이템과 연관된 데이터에 기초하여 새로운 아이템의 그룹 구성원을 예측하는 데 사용되는 기술이다. k-최근접 이웃(k-Nearest Neighbors, k-NN) 알고리즘은 이에 제한되지는 않으나, 다른 수많은 응용 중에서도, 생물 정보학, 발화 인식, 이미지 처리, 통계적 추정, 패턴 인식과 같은 기계 학습 절차가 사용되는 많은 분야에서 사용되는 알려진 데이터 마이닝 분류 방법 중 하나이다.Data mining is a computation process that finds patterns in large data sets. It analyzes the data set using different techniques. One such technique is classification, a technique used to predict the group membership of a new item based on data associated with an item in a data set for which the group member is known. Although the k-nearest neighbors (k-NN) algorithm is not limited to this, among many other applications, machine learning procedures such as bioinformatics, speech recognition, image processing, statistical estimation, It is one of the known data mining classification methods used in many fields.

객체(예를 들어, 제품, 이미지, 얼굴, 음성, 텍스트, 비디오, 인간 조건, DNA 시퀀스 등)의 대형 데이터세트에서, 각각의 객체는 수많은 미리 정의된 클래스 중 하나와 연관될 수 있다 (예를 들어, 제품 클래스는 시계, 꽃병, 귀고리, 펜 등일 수 있다). 클래스의 수는 작거나 클 수 있고, 클래스와 연관되는 것 이외에 각각의 객체는 속성 세트(예를 들어, 제품의 경우: 크기, 무게, 가격 등)로 설명될 수 있다. 속성 각각은 수치 값(예를 들어, 제품 사이즈의 경우: 예컨대 너비 20. 5cm 등)으로 더 정의될 수 있다. 분류 절차의 목적은 객체의 속성의 값 및 데이터세트의 기분류된 객체와의 유사도에 기초하여 미분류 객체(클래스가 아직 정의되지 않음)의 클래스를 식별하는 것이다.In a large data set of objects (e.g., product, image, face, voice, text, video, human condition, DNA sequence, etc.), each object may be associated with one of a number of predefined classes For example, a product class can be a clock, a vase, an earring, a pen, etc.). The number of classes may be small or large, and besides being associated with a class, each object may be described by a set of attributes (e.g., size, weight, price, etc. for products). Each of the attributes may be further defined by a numerical value (e.g., in the case of product size: e.g., 20.5 cm wide). The purpose of the classification procedure is to identify classes of unclassified objects (classes are not yet defined) based on the values of the attributes of the objects and the similarity of the data sets to the pre-classified objects.

K-최근접 이웃 알고리즘은 먼저 도입된 객체 X(분류되지 않음)와 데이터세트의 각각의 모든 객체 사이의 유사도를 산출한다. 유사도는 거리가 작을수록 객체가 더 유사하도록 객체들 사이의 거리로 정의되며, 사용될 수 있는 몇 가지 알려진 거리 함수가 있다. 거리가 새로운 도입된 객체 X와 데이터세트의 모든 객체 사이에서 산출된 후에, X에 대한 k개의 최근접 이웃이 선택될 수 있으며, 여기서 k는 K-최근접 이웃 알고리즘의 사용자에 의해 정의된 미리 정의된 수이다. X는 k개의 최근접 이웃 중에서 가장 공통적인 클래스에 할당된다.The K-nearest neighbors algorithm first calculates the similarity between the introduced object X (unclassified) and every individual object in the data set. Similarity is defined as the distance between objects so that the smaller the distance, the more similar the object is, and there are some known distance functions that can be used. After the distance is computed between the new introduced object X and all objects of the data set, k nearest neighbors for X can be selected, where k is a predefined definition defined by the user of the K-nearest neighbor algorithm . X is assigned to the most common of the k nearest neighbors.

다른 알고리즘 중에서 K-최근접 이웃 알고리즘은 데이터세트의 가장 작거나 가장 큰, 즉 극한 k 아이템에 신속하게 액세스하기 위해 정렬되지 않은 대형 데이터세트를 매우 신속하고 효율적으로 분석해야 한다.Among other algorithms, the K-nearest neighbors algorithm must analyze very large and unsorted large data sets very quickly and efficiently to quickly access the smallest or largest, or extreme, k items of the data set.

데이터세트에서 이러한 k개의 가장 작은/가장 큰 아이템을 찾는 한 가지 방법은 숫자가 순서대로 배열되고 첫 번째(또는 마지막) k 숫자가 데이터세트의 원하는 k 아이템이 되도록 데이터세트를 먼저 정렬하는 것일 수 있다. 수많은 정렬 알고리즘이 본 기술분야에 공지되어 있으며 사용될 수 있다.One way to find these k smallest / largest items in a data set may be to sort the data sets first so that the numbers are arranged in order and the first (or last) k number is the desired k item in the data set . Numerous alignment algorithms are known and can be used in the art.

하나의 메모리 내 정렬 알고리즘은 2015년 1월 1일에 출원되었고 본 출원의 공동 양수인에게 양도된 미국 특허 출원 14/594,434에 설명되어 있다. 이 알고리즘은 처음에 제1 최소치(또는 최대치)을 찾고, 그 다음에 제2 최소치(또는 최대치)를 찾고, 이어서 데이터세트의 모든 숫자가 최소치에서 최대치로(또는 최대치에서 최소치로) 정렬될 때까지 프로세스를 반복함으로써 세트의 숫자를 정렬하는 데 사용될 수 있다. 미국 특허 출원14/594,434에 설명된 정렬 알고리즘의 계산 복잡도는 n이 세트의 크기일 때 O(n)이다 (세트 전체를 정렬하기 위한 n번의 반복이 있으므로). 계산이 k번째 반복에서 중지되면 (제1 k 최소치/최대치를 찾는 데 사용되는 경우), 복잡도는 O(k)일 수 있다.One in-memory alignment algorithm is described in US patent application Ser. No. 14 / 594,434, filed January 1, 2015, and assigned to a co-assignee of the present application. The algorithm first searches for a first minimum (or maximum), then a second minimum (or maximum), and then until all the numbers in the data set are sorted from minimum to maximum (or maximum to minimum) It can be used to sort the number of sets by repeating the process. The computational complexity of the sorting algorithm described in US patent application Ser. No. 14 / 594,434 is O (n) when n is the size of the set (since there are n iterations to sort the entire set). If the calculation is stopped at the kth iteration (if used to find the first k min / max), the complexity may be O (k).

본 발명의 바람직한 실시예에 따르면 자연 언어 처리를 위한 시스템이 제공된다. 이러한 시스템은 메모리 어레이 및 메모리 내(in-memory) 프로세서를 포함한다. 메모리 어레이는 행과 열을 갖고, 복수의 키(key) 또는 특징 벡터를 초기 저장하는 유사도 섹션, 키 또는 특징 벡터의 발생의 확률을 결정하기 위한 SoftMax 섹션, 복수의 수정된 특징 벡터를 초기 저장하는 값 섹션(value section), 및 마커 섹션으로 분할된다. 메모리 어레이의 하나 이상의 열에서의 연산이 처리될 하나의 특징 벡터와 연관된다. 메모리 내 프로세서는 마커 섹션에 의해 표시되는 각각의 열에서:According to a preferred embodiment of the present invention, a system for natural language processing is provided. Such systems include memory arrays and in-memory processors. The memory array has rows and columns and includes a similarity section for initially storing a plurality of keys or feature vectors, a SoftMax section for determining the probability of occurrence of a key or feature vector, a plurality of modified feature vectors for initial storage A value section, and a marker section. An operation on one or more columns of the memory array is associated with a feature vector to be processed. The in-memory processor is in each column indicated by the marker section:

각각의 표시된 열에 저장된 각각의 특징 벡터와 벡터 질의 사이의, 유사도 섹션에서의 유사도 연산;Calculating a similarity in a similarity section between each feature vector and a vector query stored in each displayed column;

각각의 표시된 특징 벡터에 대해 연관된 SoftMax 확률 값을 결정하는, SoftMax 섹션에서의 SoftMax 연산;A SoftMax operation in the SoftMax section that determines the associated SoftMax probability value for each displayed feature vector;

연관된 SoftMax 확률 값에, 각각의 표시된 열에 저장된 각각의 수정된 특징 벡터를 곱하는, 값 섹션에서의 곱셈 연산; 및A multiplication operation in a value section that multiplies the associated SoftMax probability value by each modified feature vector stored in each displayed column; And

곱셈 연산의 출력의 어텐션 벡터 합(attention vector sum)을 누적시키는, 값 섹션에서의 벡터 합 연산 ― 벡터 합은 추가적인 반복을 위해 새로운 벡터 질의를 생성하거나 최종 반복에서 출력 값을 생성하기 위해 사용될 것임 ―The vector sum in the value section, which accumulates the attention vector sum of the output of the multiplication operation - the vector sum will be used to generate a new vector query for further iteration or to generate an output value in the final iteration -

을 병렬적으로 수행하도록 메모리 어레이를 활성화한다.In parallel.

나아가 본 발명의 바람직한 실시예에 따르면, 메모리 어레이는, 자연 언어 처리 연산의 반복마다 하나씩 다수의 연산부를 포함하고, 각각의 연산부는 섹션들로 분할된다.Further in accordance with a preferred embodiment of the present invention, the memory array comprises a plurality of arithmetic units, one for each iteration of a natural language processing operation, and each arithmetic unit is divided into sections.

더욱이 본 발명의 바람직한 실시예에 따르면, 메모리 어레이는 SRAM, 비휘발성, 휘발성, 또는 비파괴 어레이이다.Moreover, in accordance with a preferred embodiment of the present invention, the memory array is an SRAM, non-volatile, volatile, or non-destructive array.

나아가 본 발명의 바람직한 실시예에 따르면, 메모리 어레이는 각각의 섹션의 열마다 하나씩 다수의 비트 라인 프로세서를 포함하고, 각각의 비트 라인 프로세서는 연관된 섹션의 데이터의 하나의 비트에 대해 동작한다.Further in accordance with a preferred embodiment of the present invention, the memory array includes a plurality of bit line processors, one for each column of each section, and each bit line processor operates on one bit of data of the associated section.

추가적으로 본 발명의 바람직한 실시예에 따르면, 시스템은 특징 벡터 및 수정된 특징 벡터를 생성하기 위한 신경 네트워크 특징 추출기를 더 포함한다.Additionally in accordance with a preferred embodiment of the present invention, the system further comprises a neural network feature extractor for generating feature vectors and modified feature vectors.

더욱이 본 발명의 바람직한 실시예에 따르면, 특징 벡터는 단어, 문장, 또는 문서의 특징을 포함한다.Furthermore, according to a preferred embodiment of the present invention, the feature vector comprises a word, a sentence, or a feature of a document.

그리고 본 발명의 바람직한 실시예에 따르면, 특징 벡터는 사전-트레이닝된 신경 네트워크의 출력이다.According to a preferred embodiment of the present invention, the feature vector is an output of a pre-trained neural network.

더욱이 본 발명의 바람직한 실시예에 따르면, 시스템은 초기 벡터 질의를 생성하기 위한 사전-트레이닝된 신경 네트워크를 더 포함한다.Furthermore, in accordance with a preferred embodiment of the present invention, the system further comprises a pre-trained neural network for generating an initial vector query.

나아가 본 발명의 바람직한 실시예에 따르면, 시스템은 초기 벡터 질의 및 어텐션 벡터 합으로부터 추가적인 질의를 생성하기 위한 질의 생성기를 더 포함한다.Further in accordance with a preferred embodiment of the present invention, the system further comprises a query generator for generating an additional query from the initial vector query and the attack vector sum.

더욱이 본 발명의 바람직한 실시예에 따르면, 질의 생성기는 신경 네트워크이다.Furthermore, according to a preferred embodiment of the present invention, the query generator is a neural network.

대안으로서 본 발명의 바람직한 실시예에 따르면, 질의 생성기는 메모리 어레이의 비트 라인 상에서 행렬 곱셈기로 구현된다.Alternatively, in accordance with a preferred embodiment of the present invention, the query generator is implemented as a matrix multiplier on the bit line of the memory array.

본 발명의 바람직한 실시예에 따르면 또한, 자연 언어 처리를 위한 방법이 제공된다. 이러한 방법은, 행과 열을 갖는 메모리 어레이를 구비하는 단계 ― 메모리 어레이는, 복수의 키 또는 특징 벡터를 초기 저장하는 유사도 섹션, 키 또는 특징 벡터의 발생의 확률을 결정하기 위한 SoftMax 섹션, 복수의 수정된 특징 벡터를 초기 저장하는 값 섹션, 및 마커 섹션으로 분할되고, 메모리 어레이의 하나 이상의 열에서의 연산이 처리될 하나의 특징 벡터와 연관됨 ―; 및 마커 섹션에 의해 표시되는 각각의 열에서 다음의 연산을 병렬적으로 수행하도록 메모리 어레이를 활성화하는 단계를 포함한다. 이러한 연산은: 각각의 표시된 열에 저장된 각각의 특징 벡터와 벡터 질의 사이의, 유사도 섹션에서의 유사도 연산; 각각의 표시된 특징 벡터에 대해 연관된 SoftMax 확률 값을 결정하는, SoftMax 섹션에서의 SoftMax 연산; 연관된 SoftMax 확률 값에, 각각의 표시된 열에 저장된 각각의 수정된 특징 벡터를 곱하는, 값 섹션에서의 곱셈 연산; 및 곱셈 연산의 출력의 어텐션 벡터 합을 누적시키는, 값 섹션에서의 벡터 합 연산을 포함한다. 벡터 합은 추가적인 반복을 위해 새로운 벡터 질의를 생성하거나 최종 반복에서 출력 값을 생성하기 위해 사용된다.According to a preferred embodiment of the present invention, there is also provided a method for natural language processing. The method includes the steps of: providing a memory array having rows and columns, the memory array comprising: a similarity section for initially storing a plurality of keys or feature vectors; a SoftMax section for determining a probability of occurrence of a key or feature vector; A value section for initially storing the modified feature vector, and a marker section, wherein the operation in one or more columns of the memory array is associated with a feature vector to be processed; And activating the memory array to perform the following operations in parallel in each column represented by the marker section. These operations include: calculating a similarity in a similarity section between each feature vector and a vector query stored in each displayed column; A SoftMax operation in the SoftMax section that determines the associated SoftMax probability value for each displayed feature vector; A multiplication operation in a value section that multiplies the associated SoftMax probability value by each modified feature vector stored in each displayed column; And a vector sum operation in the value section that accumulates the sum of the affine vectors of the outputs of the multiplication operations. The vector sum is used to generate a new vector query for additional iteration or to generate an output value at the final iteration.

나아가 본 발명의 바람직한 실시예에 따르면, 메모리 어레이는 각각의 섹션의 열마다 하나씩 다수의 비트 라인 프로세서를 포함하고, 방법은 각각의 비트 라인 프로세서가 연관된 섹션의 데이터의 하나의 비트에 대해 동작하는 단계를 더 포함한다.Further in accordance with a preferred embodiment of the present invention, the memory array comprises a plurality of bit line processors, one for each column of each section, and the method further comprises the step of each bit line processor operating on one bit of data of the associated section .

더욱이 본 발명의 바람직한 실시예에 따르면, 방법은 신경 네트워크를 이용하여 특징 벡터 및 수정된 특징 벡터를 생성하여 유사도 섹션 및 값 섹션에 각각 저장하는 단계를 더 포함한다.Furthermore, according to a preferred embodiment of the present invention, the method further comprises generating a feature vector and a modified feature vector using a neural network and storing the feature vector and the modified feature vector in a similarity section and a value section, respectively.

그리고 본 발명의 바람직한 실시예에 따르면, 방법은 사전-트레이닝된 신경 네트워크를 이용하여 초기 벡터 질의를 생성하는 단계를 더 포함한다.And in accordance with a preferred embodiment of the present invention, the method further comprises generating an initial vector query using a pre-trained neural network.

부가적으로 본 발명의 바람직한 실시예에 따르면, 방법은 초기 벡터 질의 및 어텐션 벡터 합으로부터 추가적인 질의를 생성하는 단계를 더 포함한다.Additionally in accordance with a preferred embodiment of the present invention the method further comprises generating an additional query from the initial vector query and the attack vector sum.

나아가 본 발명의 바람직한 실시예에 따르면, 추가적인 질의를 생성하는 것은 신경 네트워크를 활용한다.Further in accordance with a preferred embodiment of the present invention, generating additional queries utilizes a neural network.

마지막으로 본 발명의 바람직한 실시예에 따르면, 추가적인 질의를 생성하는 것은 메모리 어레이의 비트 라인 상에서 행렬 곱셈을 수행하는 것을 포함한다.Finally, in accordance with a preferred embodiment of the present invention, generating an additional query includes performing a matrix multiplication on the bit line of the memory array.

본 발명으로 간주되는 주제는 특히 본 명세서의 결론 부분에서 지적되고 명백하게 청구된다. 그러나, 본 발명은 그 목적, 특징, 및 이점과 함께 구성 및 동작 방법 모두가 첨부 도면과 함께 읽을 때 다음의 상세한 설명을 참조함으로써 가장 잘 이해될 수 있으며, 여기서:
도 1a 및 도 1b는 본 발명의 바람직한 실시예에 따라 구성되고 동작하여 일정한 시간 내에 k개의 극값을 계산하기 위한 메모리 계산 디바이스의 논리적 개략도 및 물리적 개략도이다.
도 2는 메모리 어레이에 저장된 데이터세트 C의 개략도이다;
도 3은 데이터세트 C의 예이다;
도 4 및 도 5는 계산에 사용되는 임시 저장부의 개략도이다;
도 6은 k-최소(k-Mins) 프로세서의 계산 단계를 설명하는 흐름도이다;
도 7-11은 도 3의 예시적인 데이터세트에 대해, 본 발명의 바람직한 실시예에 따라 구성되고 동작하는 k-최소치 프로세서의 계산 단계의 예의 도면이다;
도 12는 k-최소치 프로세서에 의해 사용되는 카운트 연산에서 사용하기 위한 효율적인 시프트의 일 실시예의 개략도이다;
도 13은 수많은 데이터 마이닝 사례의 이벤트 흐름의 개략도이다;
도 14는 다수의 비트 라인 프로세서를 갖는 메모리 어레이의 개략적인 도면이다;
도 15는 자연 언어 처리를 위해 단-대-단(end-to-end) 메모리 네트워크를 구현하도록 동작하고 구성되는 연관 메모리 레이아웃의 개략도이다;
도 16은 일정한 시간 내에 메모리 내에서 네트워크의 모든 홉(hop)을 구현하기 위한 연관 처리 유닛의 개략도이다.
설명의 단순성 및 명료성을 위해, 도면에 도시된 요소는 반드시 일정한 비율로 그려진 것은 아니라는 것이 이해될 것이다. 예를 들어, 요소 중 일부의 치수는 명료성을 위해 다른 요소에 비해 과장될 수 있다. 또한, 적절한 것으로 고려되는 경우, 대응하는 또는 유사한 요소를 나타내기 위해 참조 부호가 도면들 사이에서 반복될 수 있다.
The subject matter regarded as the invention is particularly pointed out and distinctly claimed in the concluding portion of the specification. The invention, however, both as to organization and method of operation, together with objects, features, and advantages thereof, may best be understood by reference to the following detailed description when read in conjunction with the accompanying drawings, in which:
Figures 1a and 1b are logical schematic and physical schematic diagrams of a memory computing device for constructing and operating in accordance with a preferred embodiment of the present invention to calculate k extremum values within a given time.
2 is a schematic diagram of a data set C stored in a memory array;
3 is an example of a data set C;
Figures 4 and 5 are schematic diagrams of the temporary storage used in the calculation;
6 is a flow chart illustrating the calculation steps of a k-min (k-Mins) processor;
Figures 7-11 are illustrative diagrams of the calculation steps of a k-minimum processor, constructed and operative in accordance with a preferred embodiment of the present invention, for the exemplary data set of Figure 3;
12 is a schematic diagram of one embodiment of an efficient shift for use in a count operation used by a k-minimum processor;
Figure 13 is a schematic of the event flow of numerous data mining instances;
14 is a schematic illustration of a memory array having a plurality of bit line processors;
15 is a schematic diagram of an associated memory layout operative and configured to implement an end-to-end memory network for natural language processing;
16 is a schematic diagram of an associated processing unit for implementing all the hops of the network in memory within a certain time.
It will be appreciated that for simplicity and clarity of illustration, elements shown in the figures are not necessarily drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements for clarity. Also, where considered appropriate, reference numerals may be repeated among the figures to indicate corresponding or analogous elements.

다음의 상세한 설명에서, 본 발명의 완전한 이해를 제공하기 위해 수많은 특정 세부 사항이 제시된다. 그러나, 본 발명은 이들 특정 세부 사항 없이 실시될 수 있음이 본 기술분야의 통상의 기술자에 의해 이해될 것이다. 다른 예에서, 공지된 방법, 절차, 및 구성 요소는 본 발명을 모호하게 않도록 상세히 설명되지 않았다.In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be understood by those of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, and components have not been described in detail so as not to obscure the present invention.

출원인은 공지된 정렬 메커니즘의 복잡도가 데이터세트 크기에 비례하므로, 데이터세트가 매우 클 때 k-최소치 값을 찾기 위해 데이터세트를 정렬하는 것은 효율적이지 않다는 것을 깨달았다. 데이터세트가 커짐에 따라, 데이터세트로부터 k-최소치 값을 취출하는 요청에 응답하는 유효 시간이 증가할 것이다.Applicants have realized that the complexity of the known alignment mechanism is proportional to the size of the data set, so it is not efficient to sort the data set to find the k-minimum value when the data set is very large. As the data set grows, the effective time to respond to a request to retrieve the k-min value from the data set will increase.

출원인은 연관 메모리 디바이스가 대형 데이터세트를 저장하는 데 사용될 수 있고, 이는 데이터세트 자체의 크기가 아니라 데이터세트의 객체의 크기에만 비례하는 일정한 계산 복잡도 (O(1))을 갖는 임의의 크기의 데이터세트에서 k-최소치 값을 찾는 메모리 내 방법을 제공할 수 있음을 또한 깨달았다.Applicants can use an associative memory device to store a large data set, which is not the size of the data set itself, but any size of data (e.g., data) having a constant computational complexity (O (1)) proportional to the size of the object of the data set In-memory method of finding a k-minimum value in a set.

이러한 일정한 복잡도를 제공할 수 있는 메모리 디바이스는 2009년 7월 16일에 출원된 미국 특허 출원 12/503,916, 현재는 미국 특허 제8,238,173호; 2015년 1월 1일에 출원된 미국 특허 출원 14/588,419; 2015년 1월 12일에 출원된 미국 특허 출원 14/594,434(미국 특허 제9,859,005호로 등록됨); 2014년 11월 27일에 출원된 미국 특허 출원 제14/555,638호(미국 특허 제9,418,719호로 등록됨); 및 2016년 5월 5일에 출원된 미국 특허 출원 제15/146,908호, 현재는 미국 특허 제9,558,812호에 설명되어 있으며, 이들 모두는 본 발명의 공통 양도인에게 양도되었다.A memory device capable of providing this constant complexity is disclosed in U.S. Patent Application 12 / 503,916, filed July 16, 2009, now U.S. Patent No. 8,238,173; U.S. Patent Application 14 / 588,419, filed January 1, 2015; U.S. Patent Application 14 / 594,434, filed January 12, 2015 (registered as U.S. Patent No. 9,859,005); U.S. Patent Application No. 14 / 555,638, filed November 27, 2014 (registered as U.S. Patent No. 9,418,719); And U.S. Patent Application No. 15 / 146,908, filed May 5, 2016, now U.S. Patent No. 9,558,812, all of which are assigned to the common assignee of the present invention.

출원인은 연관 계산이 일정한 계산 복잡도와 더불어, 요청당 최소 대기 시간으로 k-최소치 값을 찾는 신속하고 효율적인 방법을 제공할 수 있음을 또한 깨달았다. 또한, 연관 메모리의 데이터는 계산 중에 이동되지 않고, 계산 이전의 원래의 메모리 위치에 남아있을 수 있다.Applicants have also realized that associative computation can provide a fast and efficient method of finding the k-minimum value with minimum latency per request, with constant computational complexity. Also, the data in the associative memory is not moved during computation, but may remain in the original memory location before computation.

데이터세트 크기를 증가시키는 것은 k-최소치 질의의 계산 복잡도 및 응답 시간에 영향을 미치지 않을 수도 있다는 것이 이해될 수 있을 것이다.It will be appreciated that increasing the data set size may not affect the computational complexity and response time of the k-minimum query.

이제 도 1a 및 도 1b를 참조하며, 이들은 본 발명의 바람직한 실시예에 따라 구성되고 동작하는 메모리 계산 디바이스(100)의 개략도이다. 도 1a에 도시된 바와 같이, 디바이스(100)는 데이터세트를 저장하는 메모리 어레이(110), k-최소치 연산을 수행하기 위해 메모리 논리 소자 상에 구현된 k-최소치 프로세서(120), 및 메모리 어레이(110)에 저장된 데이터에 대해 k-최소치 프로세서(120)에 의해 이루어진 연산의 중간 및 최종 결과를 저장하기 위해 사용될 수 있는 k-최소치 임시 저장부(130)를 포함할 수 있다. 도 1b에서, k-최소치 프로세서(120) 및 k-최소치 임시 저장부(130)의 물리적 양태가 연관 메모리 어레이(140)에 도시되어 있다. 연관 메모리 어레이(140)는 k-최소치 프로세서(120)의 연산과 k-최소치 임시 저장부(130)의 저장을 결합한다. 메모리 어레이(110)는 이진수의 매우 대형 데이터세트를 저장할 수 있다. 각각의 이진수는 고정된 수의 비트로 구성되고 메모리 어레이(110)의 상이한 열에 저장된다. k-최소치 임시 저장부(130)는 메모리 어레이(110)에 저장된 정보의 복사본, 및 k-최소치 프로세서(120)에 의해 수행되는 계산 단계와 관련된 임시 정보를 저장하는 여러 개의 벡터, 뿐만 아니라 데이터세트에서 k개의 가장 낮은 값을 저장하는 k개의 열의 표시를 포함하는 최종 결과를 저장할 수 있다.Reference is now made to Figs. 1A and 1B, which are schematic diagrams of a memory computing device 100 constructed and operative in accordance with a preferred embodiment of the present invention. 1A, a device 100 includes a memory array 110 for storing a data set, a k-minimum processor 120 implemented on a memory logic element to perform k-minimum operation, Minimum temporary store 130 that may be used to store intermediate and final results of operations performed by k-minimum processor 120 on data stored in memory 110. [ In FIG. 1B, the physical aspects of k-minimum processor 120 and k-minimum temporary storage 130 are shown in associative memory array 140. The associative memory array 140 combines the operation of the k-minimum processor 120 with the storage of the k-minimum temporary storage 130. The memory array 110 may store a very large data set of binary numbers. Each binary number consists of a fixed number of bits and is stored in a different column of the memory array 110. The k-minimum temporary store 130 stores multiple copies of the information stored in the memory array 110 and temporary vectors associated with computation steps performed by the k-minimum processor 120, Lt; RTI ID = 0.0 > k < / RTI >

(본 명세서에서 전술한 미국 특허 출원에 설명된 바와 같이 부울 연산의 수행을 가능하게 하기 위해) 메모리 어레이(110) 및 연관 메모리 어레이(140)에 저장된 데이터는 열에 저장될 수 있는 것을 알 수 있다. 그러나, 명확성을 위해, 설명 및 도면은 숫자가 (행에) 수평으로 표시되는 정보의 논리적 보기를 제공한다. 실제 저장 및 계산은 수직으로 행해지는 것이 이해될 것이다.It will be appreciated that the data stored in the memory array 110 and the associated memory array 140 (to enable the execution of Boolean operations as described in the aforementioned U.S. patent application) may be stored in columns. However, for clarity, the description and drawings provide a logical view of the information whose numbers are displayed horizontally (in rows). It will be appreciated that the actual storage and computation is done vertically.

이제 참조되는 도 2는 메모리 어레이(110)에 저장된 데이터세트 C의 개략도이다. 전술한 바와 같이, 데이터세트 C의 행은 메모리 어레이(110)에 열로서 저장된다. 데이터세트 C는 q 행에 멀티 비트 이진수를 저장할 수 있다. 데이터세트 C의 각각의 이진수는 CP로 언급되며, 여기서 p는 이진수가 저장되는 메모리 에러이 C의 행 식별자이다. 각각의 수 CP은 m 비트

Figure pat00001
Figure pat00002
로 구성되며, 여기서
Figure pat00003
는 행 p에 저장된 이진수의 비트 i를 나타낸다. m(이진수를 포함하는 비트 수)의 값은 8, 16, 32, 64, 128 등일 수 있다.2, which is now referenced, is a schematic diagram of a data set C stored in memory array 110. [ As described above, the rows of data set C are stored as columns in the memory array 110. Data set C can store multi-bit binary numbers in q rows. Each of the binary number of the data set C is referred to as C P, where p is the row identifier of the memory ereoyi C is a binary number is stored. Each number C P is m bits
Figure pat00001
Figure pat00002
≪ / RTI >
Figure pat00003
Represents the bit i of the binary number stored in row p. The value of m (the number of bits including binary numbers) may be 8, 16, 32, 64, 128, and so on.

전술한 바와 같이 CP는 어레이 C의 행 (p)을 나타내며, 여기서 (p = 1...q)이고, Ci는 어레이 C의 열 (i)을 나타내며, 여기서 (i = 1...m)이고,

Figure pat00004
는 어레이 C의 셀(행 p와 열 i의 교집합)을 나타내며, 여기서 (p = 1...q; i = 1...m)이다. 도 2에서 행 3 열 2에 있는,
Figure pat00005
로 언급되는 아이템이 사각형으로 표시되어 있다.As described above, C P represents the row p of the array C, where (p = 1 ... q) and C i represents the column i of the array C, where i = 1 ... m)
Figure pat00004
(P = 1 ... q; i = 1 ... m) of the array C (intersection of row p and column i). In Figure 2, row 3 column 2,
Figure pat00005
Quot; is indicated by a rectangle.

이제 참조되는 도 3은 11개의 이진수, 즉 q = 11을 갖는 데이터세트 C의 예이다. 각각의 행에는 0에서 시작하여 10까지의 식별자로 라벨링된다. 예시적인 데이터세트 C의 이진수는 각각 8비트를 가지며, 비트는 비트 7 내지 비트 0으로 라벨링된 열에 저장되며, 이 예에서 m = 8이다. 각각의 이진수의 십진수 값이 각각의 행의 오른쪽에 나타내어져 있다. 이 예에서 찾아질 최소 이진수의 원하는 양은 4, 즉 k = 4로 설정될 수 있고, 도 3의 데이터세트에서 4개의 가장 작은 수는 (a) 행 9에 저장된 수 14; (b) 행 5에 저장된 수 56; (c) 행 1에 저장된 수 88; 및 (d) 행 4에 저장된 수 92인 것을 알 수 있다.3, which is now referenced, is an example of a data set C with eleven binary numbers, q = 11. Each row is labeled with an identifier ranging from 0 to 10. The binary numbers of the exemplary data set C each have 8 bits, and the bits are stored in a column labeled as bits 7 through 0, where m = 8 in this example. The decimal value of each binary number is shown to the right of each row. The desired amount of minimum binary numbers to be found in this example may be set to 4, i.e. k = 4, and the four smallest numbers in the data set of Figure 3 are (a) the number 14 stored in row 9; (b) number 56 stored in row 5; (c) number 88 stored in row 1; And (d) the number 92 stored in row 4.

본 발명의 바람직한 실시예에 따라 구성되고 동작하는 k-최소치 프로세서(120)는 대형 데이터세트 C에서 k개의 가장 작은 이진수를 찾을 수 있다. 데이터세트 C에서 k개의 가장 작은 수의 그룹은 k-최소치 세트라고 지칭되며 k개의 수를 가질 수 있다. k-최소치 프로세서(120)는 MSB(최상위 비트)로부터 LSB(최하위 비트)까지의 데이터세트 C의 열 Ci를 스캔하고, 동시에 행 CP - 여기서

Figure pat00006
은 0이다 - 을 선택하여 다음 단계로 계속 진행함으로써 k-최소치 세트를 생성할 수 있다. 특정 위치( i번째 비트)에서 값 0을 갖는 이진수는 동일한 위치에서 값 1을 갖는 이진수보다 더 작음을 알 수 있다.The k-minimum processor 120 constructed and operative in accordance with the preferred embodiment of the present invention can find k smallest binary numbers in a large data set C. The k smallest number of groups in data set C are referred to as k-min set and may have k numbers. k-minimum processor 120 scans column C i of data set C from MSB (most significant bit) to LSB (least significant bit), and concurrently reads row C P -
Figure pat00006
Is set to 0, and then proceed to the next step to generate a k-min set. It can be seen that a binary number having a value of 0 at a particular position (i-th bit) is smaller than a binary number having a value of 1 at the same position.

선택된 행의 양이 목표 행 k와 비교된다. 선택된 행의 양이 k보다 크다면, k-최소치 프로세서(120)는 너무 많은 행이 있기 때문에 이미 선택된 행의 다음 비트를 계속 스캔할 수 있고, 그 세트는 더 감소될 것이다. (선택되지 않은 행은 더 큰 값을 갖는 이진수를 포함할 수 있으므로, 나머지 계산에서는 고려되지 않는다). 선택된 행의 양이 k보다 작은 경우, k-최소치 프로세서(120)는 선택된 행을 k-최소치 세트에 추가할 수 있고 나머지 모든 이진수의 다음 비트를 계속 스캔할 수 있다. (선택된 행의 양이 충분하지 않으므로, 추가적인, 더 많은 이진수를 가진 행이 고려될 것이다). 선택된 행의 양이 정확히 k이면, k-최소치 프로세서(120)는 k-최소치 세트가 필요로 하는 k개의 아이템을 포함할 수 있기 때문에 그 처리를 중지할 수 있다.The amount of the selected row is compared with the target row k. If the amount of the selected row is greater than k, the k-minimum processor 120 may continue to scan the next bit of the already selected row because there are too many rows, and the set will be further reduced. (Unselected rows may contain binary numbers with larger values, so they are not considered in the remainder of the calculations). If the amount of the selected row is less than k, the k-minimum processor 120 may add the selected row to the k-minimum set and continue to scan the next bit of all remaining binary numbers. (Since the amount of the selected row is not sufficient, additional, more binary rows will be considered). If the amount of the selected row is exactly k, the k-minimum processor 120 may stop processing because it may contain k items that the k-minimum set requires.

k = 1일 때, k-최소치 세트는 전체 데이터세트의 전역 최소치인 단일 숫자를 포함한다는 것을 알 수 있다. 데이터세트에 이 값을 갖는 인스턴스가 하나를 초과하여 있을 수 있고, 이 값의 제1 인스턴스는 k-최소치 세트의 멤버로 선택된다는 것이 또한 이해될 수 있을 것이다.When k = 1, it can be seen that the k-minimum set includes a single number that is the global minimum of the entire data set. It will also be appreciated that the data set may have more than one instance with this value, and that the first instance of this value is selected as a member of the k-minimum set.

k-최소치 프로세서(120)는 데이터세트 C의 이진수의 비트가 메모리 어레이(110)에 저장되는 정보로 구축될 수 있다는 것이 또한 이해될 수 있을 것이다. 도 3의 예에서, 이진수는 행으로 표시되며, 여기서 MSB는 가장 왼쪽 비트이고, LSB는 가장 오른쪽 비트이고, 다른 모든 비트는 그 사이에 있다. 또한, 메모리 어레이(110)의 이진수의 배열은 데이터세트 C의 모든 이진수의 i번째 위치에 있는 비트가 메모리 어레이(110)에서 동일한 행 Ci에 위치되도록 된다. 즉, 데이터세트 C의 모든 이진수의 MSB는 같은 행에 있을 수 있고, 데이터세트 C의 모든 이진수의 LSB는 같은 행에 있을 수 있고, 따라서 그 사이에 모든 비트가 있을 수 있다.It will also be appreciated that the k-minimum processor 120 can be constructed with information stored in the memory array 110 with the bits of the binary number of the data set C. In the example of FIG. 3, the binary number is represented by a row, where MSB is the leftmost bit, LSB is the rightmost bit, and all other bits are in between. The arrangement of the binary numbers of the memory array 110 is such that the bits at the i-th position of all binary numbers of the data set C are located in the same row C i in the memory array 110. That is, the MSBs of all binary numbers in data set C may be in the same row, and the LSBs of all binary numbers in data set C may be in the same row, thus all bits in between.

이제 참조되는 도 4 및 도 5 는 본 발명의 바람직한 실시예에 따라 구성되고 동작하는 k-최소치 임시 저장부(120)의 개략도이다. k-최소치 임시 저장부(120)는 벡터에 저장된 중간 정보를 포함할 수 있다. k-최소치 프로세서(120)에 의해 사용되는 벡터는 벡터 D - 임시 역 벡터; 벡터 V - 자격 k-최소치 마커 벡터; 벡터 M - 후보 벡터; 벡터 N - 임시 후보 벡터; 및 벡터 T - 임시 구성원 벡터이다. k-최소치 섹션(120)에 사용되는 모든 벡터의 크기(행 수)는 q이며 데이터세트 C의 행 수와 동일하다. 각각의 벡터는 세트의 일부, 세트에 합류할 후보 등과 같이, k-최소치 세트와 관련하여 데이터세트 C의 연관된 행에 저장된 이진수와 관련된 표시를 각각의 행에 저장한다. 벡터는 전체 데이터세트와 같이, 메모리 어레이(110)의 행에 물리적으로 저장되지만, 명확성을 위해 열로 도시된다는 것을 알 수 있다.4 and 5, which are now referenced, are schematic diagrams of k-minimum temporary storage 120 constructed and operative in accordance with a preferred embodiment of the present invention. The k-minimum temporary storage unit 120 may include intermediate information stored in a vector. The vector used by the k-minimum processor 120 is vector D - a temporary inverse vector; Vector V-qualification k-minimum marker vector; Vector M - candidate vector; Vector N - Temporary Candidate Vector; And a vector T - a temporary member vector. The size (number of rows) of all vectors used in the k-minimum section 120 is q and is equal to the number of rows in data set C. [ Each vector stores, in each row, an indication associated with the binary number stored in the associated row of data set C in relation to the k-minimum set, such as a portion of the set, a candidate to join the set, and so on. It will be appreciated that the vector is physically stored in a row of the memory array 110, such as the entire data set, but is shown as a column for clarity.

벡터 D는 k-최소치 프로세서(120)에 의해 처리되는 열 Ci의 비트의 역의 값을 포함할 수 있는 임시 역 벡터이다. 전술한 바와 같이, 데이터세트 C의 이진수의 비트는 MSB로부터 LSB로 처리될 수 있고, 각각의 단계에서, k-최소치 프로세서(120)는 메모리 어레이(110)의 또 다른 행 i를 처리할 수 있다.Vector D is a temporary inverse vector that may contain the inverse value of the bits of column C i processed by the k-minimum processor 120. As described above, the bits of the binary number of the data set C may be processed from the MSB to the LSB, and at each step, the k-minimum processor 120 may process another row i of the memory array 110 .

벡터 D는 데이터세트 C에서 처리된 열 Ci의 역이다:Vector D is the inverse of the column C i processed in data set C:

D = NOT Ci D = NOT C i

1의 값을 갖는 벡터 D의 임의의 행 p(즉, DP = 1)는 셀

Figure pat00007
(데이터세트 C의 행 p)에 저장된 원래 비트의 값이 0이었음을 나타낼 수 있으며, 이는 데이터세트 C의 행 p에 저장된 이진수가 k-최소치 세트에 참여할 후보가 될 수 있음을 나타낸다. 유사하게, 0의 값을 갖는 벡터 D내의 모든 행 p(즉, DP = 0)는 셀
Figure pat00008
(데이터세트 C의 행 p)에 저장된 원래 비트의 값이 1이었음을 것을 나타낼 수 있고, 이는 데이터세트 C로부터의 관련 이진수가 평가되는 데이터세트로부터의 다른 수보다 크기 때문에 k-최소치 세트에 참여할 후보가 아닐 수 있음을 나타낸다.Any row p (i.e., D P = 1) of the vector D having a value of one
Figure pat00007
(The row p of the data set C) was zero indicating that the binary number stored in row p of data set C can be a candidate to participate in the k-minimum set. Similarly, all rows p (i. E., D P = 0) in a vector D having a value of zero
Figure pat00008
(The row p of the data set C) is 1, which is larger than the other number from the data set from which the relevant binary number from the data set C is to be evaluated, so that the candidate to participate in the k- .

벡터 V는 자격 k-최소치 마커 벡터이며, (이미) k-최소치 세트의 일부인 이진수를 갖는 데이터세트 C의 모든 행의 목록을 유지한다. 알고리즘에 의해 사용되는 다른 벡터와 마찬가지로, 데이터세트 C의 이진수 CP가 k-최소치 세트에 속하는지 여부의 최종 표시 VP를 각각의 행 p에 유지하는 q 크기의 벡터이다.The vector V is a qualification k-minimum marker vector and maintains a list of all rows of data set C with binary numbers that are part of the (already) k-min set. As with the other vectors used by the algorithm, it is a q-sized vector that holds in each row p the final indication V P of whether the binary number C P of the data set C belongs to the k-minimum set.

1의 값을 갖는 벡터 V의 임의의 행 p(즉, VP = 1)는 데이터세트 C의 동일한 행 p에 저장된 이진수의 값이 k-최소치 세트 멤버로서 자격이 있음을 나타낼 수 있다. 유사하게, 0의 값을 갖는 벡터 V의 모든 행 p(즉, VP = 0)는 데이터세트 C의 행 p에 저장된 이진수가 k-최소치 세트의 일부가 될 자격이 없음을 나타낼 수 있다.Any row p (i.e., V P = 1) of the vector V with a value of 1 may indicate that the value of the binary number stored in the same row p of the data set C is qualified as a k-minimum set member. Similarly, all rows p (i. E., V P = 0) of a vector V with a value of zero may indicate that the binary number stored in row p of data set C is not eligible to be part of the k-minimum set.

벡터 V는 계산 시작 시에 k-최소치 세트가 비어 있기 때문에 모두 0으로 초기화될 수 있다. 계산의 끝에서, V는 k개의 자격 표시를 포함할 수 있다 (즉, 벡터 V의 k 비트의 값은 1이고, 모든 다른 비트의 값은 0일 수 있다). 벡터 V의 비트 VP가 계산 중에 1로 설정되면, C의 연관된 이진수 CP는 k-최소치 세트의 일부이고, k-최소치 세트의 일부가 되는 것을 멈추지 않을 수 있다. 벡터 V의 표시는 단지 설정될 수 있다. k-최소치 프로세서가 데이터세트 C의 다음 열로 계속 진행하는 동안 표시는 또한 계산 프로세스를 따라 "설정 해제"되지 않을 수 있다. (열은 MSB에서 LSB로 처리되므로, 가장 작은 것으로 정의된 수는 그 특성을 변경하지 않고 다음 열을 처리될 때 더 커질 수 있다).The vector V can be initialized to all zeros at the beginning of the calculation since the k-minimum set is empty. At the end of the calculation, V may contain k qualification indications (i. E., The value of the k bit of the vector V is one and the value of all other bits may be zero). If the bit V P of the vector V is set to 1 during the calculation, the associated binary number C P of C may be part of the k -minimum set and not stop becoming part of the k -minimum set. The representation of the vector V can only be set. While the k-minimum processor continues to the next column of data set C, the indication may also not be "settled" along the calculation process. (Since a column is treated as an LSB in the MSB, the number defined as the smallest can be larger when the next column is processed without changing its characteristics).

벡터 M은 후보 벡터이며, 잠재적으로 k-최소치 세트의 일부가 될 수 있는 수를 갖는 데이터세트 C의 모든 행의 목록을 유지한다. 데이터세트 C의 연관된 이진수는 k-최소치 세트에 아직 추가되지 않았지만, 세트에서 아직 제외되지 않았으며 잠재적으로 k-최소치 프로세서(120)의 절차를 따라 또한 세트에 합류할 수 있다. k-최소치 프로세서(120)에 의해 사용되는 다른 모든 벡터와 마찬가지로, 데이터세트 C의 이진수 CP가 여전히 k-최소치 세트에 합류할 후보로서 고려될 수 있는지 여부의 표시 MP를 각각의 행 p에 유지하는 q 크기의 벡터이다.The vector M is a candidate vector and maintains a list of all the rows of the data set C that have a number that can potentially be part of the k-minimum set. The associated binary number of dataset C has not yet been added to the k-min set, but has not yet been excluded from the set, and can potentially also join the set following the procedure of k-min processor 120. As with all other vectors used by the k-minimum processor 120, an indication M P of whether or not the binary number C P of the data set C can still be considered as a candidate to join the k- It is a q-size vector to hold.

1의 값을 갖는 벡터 M의 임의의 행 p(즉, MP = 1)는 데이터세트 C의 행 p에 저장된 이진수의 값이 k-최소치 세트에 합류할 후보일 수 있음을 나타낼 수 있다. 유사하게, 0의 값을 갖는 벡터 M의 모든 행 p(즉, MP = 0)는 데이터세트 C의 행 p에 저장된 이진수가 더 이상 k-최소치 세트에 합류할 후보로 고려될 수 없음을 나타낼 수 있다.Any row p (i. E., M P = 1) of a vector M with a value of 1 may indicate that the value of the binary number stored in row p of data set C may be a candidate to join the k-minimum set. Similarly, all rows p (i. E., M P = 0) of a vector M with a value of 0 indicate that the binary number stored in row p of data set C can no longer be considered a candidate to join the k- .

세트가 정렬되지 않을 수 있고 숫자는 랜덤하게 퍼져 있을 수 있으므로, 데이터세트 C의 모든 수가 잠재적으로 k-최소치 세트의 일부가 될 수 있기 때문에 벡터 M은 모두 1로 초기화될 수 있다.Since the set may not be aligned and the numbers may be randomly spread, the vector M may all be initialized to one since all the numbers of the data set C may potentially be part of the k-minimum set.

계산 중에 벡터 M의 비트 MP가 0으로 설정되면, 이는 C의 연관된 이진수 CP가 더 이상 k-최소치 세트의 잠재적인 후보로 고려되지 않을 수 있음을 나타내고, k-최소치 프로세서(120)가 평가를 위해 다음 비트로 계속 진행하는 동안, 표시는 계산 프로세스를 따라 또한 다시 변경되지 않을 수 있다. 후보가 되는 것이 중단될 수 있는 이진수는 다른 이진수보다 크기 때문에, 추가 평가에서 영구적으로 제외될 수 있다.If the bit M P of the vector M is set to zero during calculation, this indicates that the associated binary number C P of C may no longer be considered a potential candidate for the k-minimum set, and the k- While continuing to the next bit for, the indication may not be changed again along the calculation process. Since the number of candidates that can be discontinued is greater than the other binary numbers, it can be permanently excluded from further evaluation.

벡터 N은 임시 후보 벡터이며, 벡터 M에 의해 표시된 바와 같은 CP의 과거에 처리된 비트에 따른 이진수의 현재 후보 상태 및 역의 값이 벡터 D에 저장될 수 있는 현재 처리된 비트의 값을 고려하여, 아직 V에 있지 않은 수 CP가 여전히 k-최소에 합류할 후보로 고려될 수 있는지의 임시 표시 NP를 각각의 행 p에 대해 유지한다. N은 벡터 M과 벡터 D의 논리적 AND이다.Vector N is a temporary candidate vector and takes into account the value of the current processed bit of the binary candidate current state and the inverse of which can be stored in vector D according to the past processed bits of C P as indicated by vector M. , Keeps a temporary indication NP for each row p that the number C P , which is not yet in V, can still be considered as a candidate to join the k-min. N is a logical AND of the vector M and the vector D.

N = M AND DN = M AND D

1의 값을 갖는 벡터 N의 임의의 행 p(즉, NP = 1)는 데이터세트 C의 행 p에 저장된 이진수의 값이 여전히 k-최소치 세트에 합류할 후보임을 나타낼 수 있다. 유사하게, 0의 값을 갖는 벡터 N의 모든 행 p(즉, NP = 0)는 데이터세트 C의 행 p에 저장된 이진수가 더 이상 k-최소치 세트에 합류할 후보가 될 것으로 고려되지 않을 수 있음을 나타낼 수 있다. 이진수 CP가 이전에 후보가 되는 것에서 배제되지 않고 (즉, MP = 1), C의 현재 검사된 비트가 0, 즉 DP = 1인 경우에 그리고 이러한 경우에만, NP는 1이 될 것이다.Any row p (i. E., N P = 1) of the vector N with a value of 1 may indicate that the value of the binary number stored in row p of dataset C is still the candidate to join the k-minimum set. Similarly, all rows p (i. E., N P = 0) of a vector N with a value of zero may not be considered candidates for a binary number stored in row p of data set C to further join the k- . N P would be 1 if and only if the binary number C P is not excluded from being a candidate for the previous (ie, M P = 1) and the current checked bit of C is 0, ie, D P = will be.

벡터 T는 임시 구성원 벡터이며, 이진수 CP가 잠재적으로 k-최소의 멤버인지 여부, 즉 이미 k-최소치 세트에 있거나(벡터 V에 표시가 있음) k-최소치 세트에 합류할 후보(벡터 N에 표시가 있음)인지 여부의 임시 표시 TP를 각각의 행 p에 대해 유지한다. T는 벡터 N과 벡터 V의 논리적 OR이다.Vector T is a temporary member of vectors, whether binary C P k- least potentially a member of, or already in, or the minimum set of k- (with the vector display V) candidate (vector N to join the minimum set of k- A temporary indication T P for each row p is maintained. T is the logical OR of vector N and vector V.

T = N OR VT = N OR V

1의 값을 갖는 벡터 T의 임의의 행 p(즉, TP = 1)는 데이터세트 C의 행 p에 저장된 이진수의 값이 k-최소치 세트의 임시 멤버로서 고려될 수 있음을 나타낼 수 있고, 0의 값을 갖는 벡터 T의 모든 행 p(즉, TP = 0)는 관련 이진수가 k-최소치 세트의 멤버가 아닐 수 있음을 나타낼 수 있다.Any row p (i.e., T P = 1) of the vector T with a value of 1 may indicate that the value of the binary number stored in row p of data set C can be considered as a temporary member of the k- All rows p (i.e., T P = 0) of a vector T with a value of zero may indicate that the associated binary number may not be a member of the k-minimum set.

전술한 바와 같이, k-최소치 프로세서(120)는 데이터세트 C에 저장된 모든 수 CP에 대해 동시에 작업할 수 있고, MSB에서 LSB까지 그것들의 비트에 걸쳐 반복할 수 있다. 빈 그룹(V = 0)으로 시작할 수 있으며, 데이터세트의 모든 이진수에 후보 상태를 할당할 수 있다 (M = 1). k-최소치 프로세서(120)의 각각의 단계에서, 열 Ci의 비트

Figure pat00009
의 역(D = NOT C)이 평가된다 (k개의 최대 값을 찾기 위해서는, Ci가 역의 값 대신에 평가된다). D의 값이 0이면 (즉,
Figure pat00010
= 1), 수 CP는 k-최소치 세트에 합류하기에는 너무 커서 잠재적으로 후보 목록 N (N = M 및 D)으로부터 제거될 수 있다. 후보 수가 산출되고 (CNT = COUNT(N OR V)), 원하는 크기인 k-최소치 그룹-k와 비교된다.As described above, the k-minimum processor 120 can work concurrently on all the numbers C P stored in the data set C and can iterate over the bits from the MSB to the LSB. It can start with an empty group (V = 0) and assign a candidate state to all binary numbers in the data set (M = 1). At each step of k-minimum processor 120, the bits of column C i
Figure pat00009
(D = NOT C) is evaluated (in order to find the k maximum values, C i is evaluated instead of the inverse value). If the value of D is 0 (that is,
Figure pat00010
= 1), C P may be removed too large hagieneun joining k- minimum value set from the list of candidates potentially N (N = M and D). The number of candidates is calculated (CNT = COUNT (N OR V)) and compared with the desired size k-minimum group -k.

CNT (k-최소치 세트의 잠재적인 이진수)가 필요한 것보다 작으면 (CNT < k), (k-최소치 세트에 자격 멤버가 충분하지 않기 때문에) 모든 후보가 자격을 가지게 될 수 있고 (V = N OR V), 검색이 계속될 수 있다.If the CNT (k-min potential set of potential binary numbers) is smaller than required (CNT <k), then all candidates may qualify (since v = N OR V), the search may continue.

CNT가 필요한 것보다 크면 (CNT > k), 현재 검사된 비트에서 1의 비트 값을 갖는 모든 이진수가 후보 목록에서 제거되어 (M = N), 후보 수를 감소시킬 수 있다. 나머지 후보는 다음 단계로 진행될 수 있다.If CNT is greater than necessary (CNT > k), all binary numbers having a bit value of 1 in the currently checked bits are removed from the candidate list (M = N), reducing the number of candidates. The remaining candidates may proceed to the next step.

CNT가 필요한 값에 맞으면 (CNT = k), 모든 후보가 자격을 가지게 될 수 있고 (V = N 또는 V), k-최소치 프로세서(120)의 계산이 종료될 수 있다.If the CNT meets the required value (CNT = k), then all the candidates can be qualified (V = N or V) and the calculation of the k-minimum processor 120 can be terminated.

이제 참조되는 도 6은 본 발명의 바람직한 실시예에 따라 구성되고 동작하는 k-최소치 프로세서(120) 기능 단계의 흐름도이다. k-최소치 프로세서(120) 기능 단계는 초기화(610), 루프(620), 벡터 산출(630), 대형 세트(640), 소형 세트(650), 적절한 세트(660)를 포함한다. k-최소치 프로세서(120)의 처리 단계는 또한 이하에서 의사 코드로서 제공된다.6, which is now referenced, is a flow diagram of k-minimum processor 120 functional steps that are constructed and operate in accordance with a preferred embodiment of the present invention. The k-minimum processor 120 functional steps include initialization 610, loop 620, vector computation 630, large set 640, small set 650, and appropriate set 660. The processing steps of the k-minimum processor 120 are also provided below as pseudo-code.

초기화(610)는 k-최소치 세트가 비어 있는 세트로 시작할 수 있으므로 벡터 V를 0으로 초기화할 수 있고, 데이터세트 C내의 모든 이진수가 후보일 수 있으므로 벡터 M을 1로 초기화할 수 있다.The initialization 610 may initialize the vector V to zero since the k-minimum set may start with the empty set, and the vector M may be initialized to one since all binary numbers in the data set C may be candidates.

루프(620)는 데이터세트 C의 이진수의 모든 비트에 걸쳐 루프할 수 있으며, MSB에서 시작하여 LSB에서 종료한다.Loop 620 may loop over every bit of the binary number of data set C, starting at the MSB and ending at the LSB.

각각의 처리된 비트에 대해, 벡터 산출(630)은 임시 벡터 D, N, 및 T를 산출할 수 있고, 후보의 양이 카운트될 수 있다. 벡터 D는 열 i의 역으로서 생성될 수 있고, 후보 벡터 N은 (벡터 M에 있는) 기존 후보 및 처리되는 비트의 역의 값을 보유하는 벡터 D에 의해 반영된 비트 i의 값으로부터 생성된다. 벡터 T는 벡터 V에 의해 반영된 k-최소치 세트의 현재 멤버와 생성된 후보 벡터 N 사이의 논리적 OR로서 산출될 수 있다. 벡터 T에 있는 후보의 수는 이하에서 더 설명되는 바와 같이 카운트될 수 있다.For each processed bit, the vector output 630 may yield the temporary vectors D, N, and T, and the amount of the candidate may be counted. The vector D can be generated as the inverse of the column i and the candidate vector N is generated from the value of the bit i reflected by the vector D holding the inverse of the existing candidate and processed bits (in the vector M). The vector T may be computed as a logical OR between the current member of the set of k-minus reflected by the vector V and the generated candidate vector N. [ The number of candidates in the vector T may be counted as described further below.

후보의 수가 필요한 것보다 크면, 대형 세트(640)는 후보 벡터 M를 업데이트하고 다음 비트로 계속 진행할 수 있다. 후보의 수가 필요한 것보다 작으면, 소형 세트(650)는 새로운 후보를 멤버 벡터 V에 추가하고 다음 비트로 계속 진행할 수 있고, 후보의 수가 필요한 만큼이라면, 적절한 세트(660)는 계산이 LSB에 도달하지 않았더라도 자격 마커 벡터 V를 업데이트하고 루프를 빠져나올 수 있다.If the number of candidates is greater than needed, the large set 640 may update the candidate vector M and continue with the next bit. If the number of candidates is less than required, the small set 650 can add new candidates to member vector V and continue with the next bit, and if the number of candidates is as large as necessary, then the appropriate set 660 will not reach LSB It is possible to update the qualifier marker vector V and exit the loop.

1 KMINS(int k, array C) One KMINS (int k, array C)

2 {2 {

3 M := 13      M: = 1

4 V := 0 4      V: = 0

5 FOR i = MSB to i = LSB:5      FOR i = MSB to i = LSB:

6 D := not(C[i]);6           D: = not (C [i]);

7 N := M AND D;7           N: = M AND D;

8 T := N OR V;8           T: = N OR V;

9 cnt = COUNT(T);9           cnt = COUNT (T);

10 IF cnt > K:10           IF cnt> K:

11 M := N;11                M: = N;

12 ELIF cnt < K:12           ELIF cnt <K:

13 V := T;13                V: = T;

14 ELSE:14           ELSE:

15 V := T;15                V: = T;

16 EXIT;16                EXIT;

17 ENDIF17           ENDIF

18 ENDFOR18      ENDFOR

19 }19 }

도 7-11은 도 3의 예시적인 데이터세트 및 알고리즘의 각각의 단계에서의 결과적인 벡터의 내용물에 대해 본 발명의 바람직한 실시예에 따라 구성되고 동작하는 k-최소치 프로세서(120)의 산출 단계의 예의 도면이다. 이 예에서 k-최소치 세트의 필요한 크기는 전술한 바와 같이 4로 설정된다.Figures 7-11 illustrate the steps of the calculation of the k-minimum processor 120 constructed and operative in accordance with the preferred embodiment of the present invention for the contents of the resulting vector at each step of the exemplary data set and algorithm of Figure 3 Fig. In this example, the required size of the k-minimum set is set to 4 as described above.

도 7은 계산 결과를 명확하게 하기 위한 각각의 수의 십진수 값, 및 각각 0 및 1로의 초기화 후에 벡터 V 및 벡터 M의 내용물과 함께, 데이터세트 C의 내용물의 예이다.7 is an example of the contents of data set C, together with the respective numbers of decimal values to clarify the calculation result and the contents of vector V and vector M after initialization to 0 and 1, respectively.

도 8은 데이터세트 C의 예에서 비트 수 7인 MSB에 대한 k-최소치 프로세서(120)의 반복 후에 상이한 벡터의 상태의 예이다. 벡터 D는 데이터세트 C의 열 7의 역의 값을 포함할 수 있다. 그 다음에, 벡터 N은 벡터 M과 벡터 D의 논리적 AND 연산으로서 산출될 수 있다. 그 다음에, 벡터 T는 벡터 N과 벡터 V의 논리적 OR 연산으로서 산출될 수 있고, T에 있는 표시의 수가 카운트된다. 카운트 값은 5이며, 이는 예에서 4 인 필요한 k 값보다 크다. 이 경우, 벡터 M은 N의 값으로 업데이트되고 알고리즘은 다음 비트로 계속 진행된다. 마찬가지로, 도 9는 데이터세트 C의 예에서 비트 수 6인 다음 비트에 대한 k-최소치 프로세서(120)의 반복 후에 상이한 벡터의 상태의 예이다. 알 수 있는 바와 같이, 도 9에서 카운트 값은 2이며, 이는 k=4의 필요한 값보다 작다. 이 경우, 벡터 M은 N의 값으로 업데이트되고 알고리즘은 다음 비트로 계속 진행된다.8 is an example of the state of a different vector after iteration of the k-minimum processor 120 for the MSB with a bit number of 7 in the example of data set C. [ Vector D may contain the inverse value of column 7 of data set C. Next, the vector N can be calculated as a logical AND operation of the vector M and the vector D. Next, the vector T can be calculated as a logical OR operation of the vector N and the vector V, and the number of indications in T is counted. The count value is 5, which is larger than the required k value of 4 in the example. In this case, the vector M is updated to the value of N and the algorithm continues to the next bit. Likewise, Figure 9 is an example of a state of a different vector after iteration of the k-minimum processor 120 for the next bit with a bit number of 6 in the example of data set C. [ As can be seen, the count value in Fig. 9 is 2, which is less than the required value of k = 4. In this case, the vector M is updated to the value of N and the algorithm continues to the next bit.

도 10은 비트 수 5인 다음 비트에 대한 k-최소치 프로세서(120)의 반복 후의 상이한 벡터의 예이다. 벡터 D는 데이터세트 C의 열 5의 역의 값을 포함할 수 있다. 벡터 N은 이전과 같이 벡터 M과 벡터 D의 논리적 AND 연산으로서 산출될 수 있다. 그 다음에, 벡터 T는 벡터 N과 벡터 V의 논리적 OR 연산으로서 산출될 수 있고, 값 "1"을 갖는 비트 수가 카운트된다. 카운트의 값은 필요한 세트 크기인 4이며, 따라서 V는 T의 값으로 업데이트되고 알고리즘은 종료된다. 이 시점에서 벡터 V는 모든 행에서 데이터세트 C의 작은 수를 나타내는 마크(비트 값 "1")를 포함하고, 따라서 정확한 수가 벡터 V에 의해 가리켜지는 것을 알 수 있다.10 is an example of a different vector after iteration of the k-minimum processor 120 for the next bit with a bit number of five. Vector D may contain the inverse value of column 5 of data set C. [ The vector N can be calculated as a logical AND operation of the vector M and the vector D as before. Next, the vector T can be calculated as a logical OR operation of the vector N and the vector V, and the number of bits having the value "1" is counted. The value of the count is 4, the required set size, so V is updated to the value of T and the algorithm is terminated. At this point the vector V contains a mark (bit value "1") representing a small number of data sets C in all the rows, so that it can be seen that the correct number is indicated by the vector V.

예의 데이터세트에서, 최소값을 갖는 정확히 4개의 이진수가 존재하며, 각각의 이진수의 비트 수가 8이긴 하나, 3회 반복 후에 k-최소치 프로세서(120)에 의해 발견될 수 있다. 처리 복잡도가 데이터세트 크기가 아니라 이진수의 비트 수에 의해 한정된다는 것을 알 수 있다.In the exemplary dataset, there are exactly four binary numbers with the smallest value, which can be found by the k-minimum processor 120 after three iterations, although the number of bits of each binary number is eight. It can be seen that the processing complexity is limited by the number of bits of the binary number, not the data set size.

이진수가 데이터세트에 2회 이상 존재할 때, k-최소치 프로세서(120)는 데이터세트의 이진수의 마지막 비트에 도달하고, k-최소치 멤버로서 자격을 가질 정확히 k개의 아이템을 찾지 못할 수도 있다. 이 경우, 데이터세트의 각각의 이진수의 고유 인덱스를 나타내는 추가적인 비트 세트가 추가적인 최하위 비트로서 사용될 수 있다. 각각의 이진수가 고유 인덱스와 연관되므로, 추가적인 비트는 데이터세트 내의 각각의 아이템에 대한 고유 값을 생성하는 것을 보장할 수 있고, k-최소치 세트의 정확한 양의 아이템을 제공할 수 있다.When the binary number is present more than once in the data set, the k-minimum processor 120 may reach the last bit of the binary number of the data set and may not find exactly k items to qualify as a k-minimum member. In this case, an additional set of bits representing the unique index of each binary number of the data set may be used as an additional least significant bit. Since each binary number is associated with a unique index, additional bits can ensure that it generates a unique value for each item in the data set, and can provide the correct amount of items in the k-minimum set.

이제 참조되는 도 11은 k-최소치 세트의 크기가 k보다 클 수 있도록 반복되는 이진수의 인스턴스를 갖는 예시적인 데이터세트 C의 예이다. (도 11의 예에서, 십진수 값이 56인 이진수가 행 3 및 행 5에서 두 번 반복되고, 십진수 값이 14인 이진수가 행 8, 행 9, 및 행 10에서 세 번 반복된다. 결과적으로, k-최소치 세트에는 5개의 아이템이 있으며, 한편 k는 4이다). k-최소치 세트의 아이템의 수를 감소시키기 위해, 각각의 이진수의 인덱스는 데이터세트 C의 이진수의 최하위 비트로서 k-최소치 프로세서(120)로 처리될 수 있다. 인덱스가 고유하기 때문에, 오직 k개의 인덱스만이 k-최소치 세트에 있게 될 것이다. 도 11에 도시된 바와 같이, 인덱스 비트의 추가는 정확하게 k=4멤버인 k-최소치 세트를 생성한다.11, which is now referenced, is an example of an exemplary data set C having an instance of a binary number that is repeated so that the size of the k-min set may be greater than k. (In the example of Fig. 11, the binary number with a decimal value of 56 is repeated twice in row 3 and row 5, and the binary number with a decimal value of 14 is repeated three times in row 8, row 9, and row 10. As a result, there are five items in the k-min set, and k is four). To reduce the number of items in the k-minimum set, the index of each binary number may be processed by the k-minimum processor 120 as the least significant bit of the binary number of data set C. Since the indices are unique, only k indexes will be in the k-minimum set. As shown in Fig. 11, the addition of the index bits produces a k-minimum set with exactly k = 4 members.

전술한 바와 같이, 본 발명의 일 실시예에 따라 구성되고 동작하는 k-최소치 프로세서(120)는 벡터에서의 표시의 수, 즉 벡터 T의 세트 비트를 카운트할 수 있다. 벡터의 세트 비트의 수를 카운트하는 여러 가지 방법이 있는데, 그 중 하나는 각각의 수를 바로 옆의 이웃과 더하고, 그 다음에 전체 벡터가 카운트될 때까지 2 열 떨어진 결과, 4 열 떨어진 결과 등등과 결과를 더하는 공지된 피라미드 카운트이다.As described above, the k-minimum processor 120, constructed and operative in accordance with an embodiment of the present invention, may count the number of indications in the vector, the set bit of the vector T. There are several ways to count the number of set bits in a vector, one of which is to add each number to its immediate neighbor, then two rows of results until the whole vector is counted, four rows of results, etc. And the result is a known pyramid count.

출원인은 효율적인 카운트가 2015년 1월 1일에 출원되고 본 발명의 공동 양수인에게 양도된 미국 특허 출원 14/594,434(미국 특허 제9,859,005호로 등록됨)에 상세하게 설명된 RSP 신호를 사용하여 연관 메모리에 구현될 수 있다는 것을 깨달았다. RSP 신호는 큰 벡터에서의 표시 카운트에 필요한 비트의 효율적인 큰 시프트를 위해 사용될 수 있다. 벡터가 큰 경우, 하나씩 하는 시프트 연산 대신에 순간 시프트를 제공하는 시프트 16, 256, 2000 등과 같은 큰 시프트가 필요할 수 있다.Applicants believe that an efficient count is implemented in the associated memory using the RSP signal as detailed in U. S. Patent Application Serial No. 14 / 594,434, filed January 1, 2015, assigned to the present assignee and assigned to the present assignee. . The RSP signal can be used for an efficient large shift of the bits needed for the display count in the large vector. If the vector is large, a large shift such as shift 16, 256, 2000, etc. may be required to provide an instantaneous shift instead of a single-shift operation.

RSP는 열 중 적어도 하나의 열의 데이터 후보의 포지티브 식별에 응답하는 신호를 발생시킬 수 있는 유선 OR 회로이다.The RSP is a wired OR circuit capable of generating a signal in response to the positive identification of data candidates in at least one column of the column.

이제 참조되는 도 12는 예시적인 어레이(1200)를 사용하여 카운트 연산을 위한 효율적인 시프트를 구현하기 위해 RSP 신호를 사용하는 일 실시예의 개략도이다. 어레이(1200)는 다음의 컬럼: 행(1210), 벡터(1220), 위치(1230), X-보관(1240), RSP 신호(1245), 및 RSP 열(1250)을 포함할 수 있다.12, which is now referenced, is a schematic diagram of one embodiment that uses an RSP signal to implement an efficient shift for a count operation using the exemplary array 1200. [ Array 1200 may include the following columns: row 1210, vector 1220, location 1230, X-store 1240, RSP signal 1245, and RSP column 1250.

행(1210)은 어레이(1200)의 행의 인덱스일 수 있다. 어레이(1200)는 16개의 행이 있을 수 있지만, 어레이(1200)는 32, 64, 128, 256, 512, 1024, 2000 등과 같은 임의의 수의 행일 수 있다. 벡터(1220)는 행 n으로부터의 비트가 행 0에 재배치되어야 하는 비트의 벡터일 수 있다, 즉, (예를 들어, 다른 열의 행 0에 있는 비트에 이를 추가하기 위해) 위치 n의 비트의 값은 위치 0으로 복사되어야 한다. 각각의 행에서, 비트의 값은 시프팅될 값이며 "X"로 표기된 값인 행 n에 저장된 값을 제외하고는 "y"로 표기될 수 있다. 벡터(1220)의 모든 비트는 값 "0" 또는 값 "1"을 가질 수 있다. 위치 열(1230)은 비트(X로 표기됨)가 시프팅될 것이며 값이 "1"로 설정되어 있는 행 n에서를 제외하고는 모든 행에서 값 "0"을 갖는 열일 수 있다. X-보관(1240)는 벡터(1220)와 위치(1230)의 값 사이의 부울 AND 연산의 결과일 수 있다. X-보관(1240)은 벡터(1220)의 행 n에 저장된 값 X를 보관할 수 있고 벡터(1220)의 모든 다른 행의 값을 널(null)로 만들 수 있다.Row 1210 may be the index of a row of array 1200. The array 1200 may be any number of rows such as 32, 64, 128, 256, 512, 1024, 2000, etc., although the array 1200 may have 16 rows. Vector 1220 may be a vector of bits from which the bits from row n are to be relocated to row 0, i. E., To add to the bits in row 0 of another column) Should be copied to position 0. In each row, the value of the bit may be denoted as "y" except for the value stored in row n, which is the value to be shifted and denoted by "X ". All bits of vector 1220 may have a value of "0" or a value of "1 ". The location column 1230 may be a column with a value of "0" in all rows except at row n where the bit (denoted X) will be shifted and the value is set to "1 ". X-Store 1240 may be the result of a Boolean AND operation between vector 1220 and the value of location 1230. [ X-Store 1240 may hold the value X stored in row n of vector 1220 and may null the values of all other rows of vector 1220. [

RSP 신호(1245)는 X-보관(1240)의 모든 셀에 대해 수행된 OR 연산의 결과이고 값 X를 가질 수 있다. X-보관(1240)의 모든 비트의 값이 행 n에 저장된 값 X를 제외하고는 "0"이므로, X-보관(1240)의 모든 셀에 대한 OR 부울 연산의 값은 값 X일 것임을 알 수 있다. 셀 RSP 신호(1245)에서 수신된 값은 행 n에서 행 0으로 값 X를 효과적으로 시프팅하는 셀 0을 포함하는 RSP(1250)의 모든 셀에 또한 기입될 수 있다.RSP signal 1245 is the result of an OR operation performed on all cells of X-Store 1240 and may have a value X. [ The value of the OR Boolean operation for all cells in the X-Store 1240 will be the value X, since the value of all bits in the X-Store 1240 is "0" have. The value received at cell RSP signal 1245 may also be written to all cells of RSP 1250, including cell 0, which effectively shifts value X from row n to row 0.

전술한 k-최소치 알고리즘은 k 최근접 이웃(K-NN) 데이터 마이닝 알고리즘에 의해 사용될 수 있다. K-NN에서, D는 q개의 객체를 포함하는 대형 데이터세트를 나타낼 수 있다 (q는 엄청나게 큼). DP는 데이터세트 D의 하나의 객체이고: DP ∈ D, A는 분류할 객체이다. 객체는 수치 속성의 벡터에 의해 정의된다: A는 n개의 속성의 벡터

Figure pat00011
에 의해 정의되고, DP는 동일한 n개의 속성의 벡터
Figure pat00012
에 의해 정의된다. m 비트의 이진수 CP인, 객체 A와 객체 DP 사이의 거리가 도입된 객체 A와 데이터세트 D의 각각의 객체 DP 사이에서 산출된다. 거리 CP는 2개의 0이 아닌 벡터들 사이의 코사인 유사도를 나타낼 수 있다. 본 기술분야에서 공지된 코사인 유사도는 벡터의 각각의 쌍을 벡터의 내적으로 알려져 있는 스칼라 양과 연관시킨다.The k-minimum algorithm described above can be used by a k-nearest neighbor (K-NN) data mining algorithm. In K-NN, D can represent a large data set containing q objects (q is enormously large). D P is an object of data set D: D P ∈ D, A is the object to be classified. An object is defined by a vector of numerical attributes: A is the vector of n properties
Figure pat00011
And D P is the vector of the same n properties
Figure pat00012
Lt; / RTI &gt; The distance between the object A and the object D P , which is a binary number C p of m bits, is calculated between the introduced object A and each object D P of the data set D. The distance C P can represent the cosine similarity between two non-zero vectors. The cosine similarity known in the art associates each pair of vectors with an internally known scalar quantity of the vector.

코사인 거리는 공식:Cosine Distance Formula:

Figure pat00013
Figure pat00013

을 사용하여 산출될 수 있다.. &Lt; / RTI &gt;

거리 CP는 객체 A와 데이터세트 내의 각각의 객체 DP 사이에서 산출되고, 대형 데이터세트 C에 이진수로 저장된다. k-최소치 알고리즘은 일정한 시간 내에 A의 k개의 최근접 이웃을 나타내는 C에서 k개의 가장 작은 이진수를 찾을 수 있다.The distance C P is calculated between object A and each object D P in the data set, and stored in binary data in large data set C. The k-minimum algorithm can find k smallest binary numbers in C that represent k nearest neighbors of A within a certain time.

예를 들어 K-NN 알고리즘에 의한 사용을 위해 k-최소치 알고리즘의 산출을 완료하는 데 필요한 단계의 수는 극도로 클 수 있는 데이터세트의 객체의 수 (q)가 아니라, 데이터세트에 저장된 객체의 크기(A와 데이터세트의 객체 사이의 거리를 나타내는 이진수를 구성하는 비트 수, 즉 m)에만 달려 있음을 알 수 있다. 알고리즘의 산출은 데이터세트의 모든 행에서 동시에 행해질 수 있다. 데이터세트에 객체의 임의의 추가가 k-최소치 프로세서(120)의 처리 시간을 연장시키지 않을 수 있음을 또한 알 수 있다. 온라인 애플리케이션에서 사용된다면, 데이터세트로부터 객체의 객체 취출 시간은 데이터세트가 커질 때와 동일하게 유지될 수 있다.For example, the number of steps required to complete the computation of the k-minimum algorithm for use by the K-NN algorithm is not the number of objects in the data set (q) that can be extremely large, It can be seen that it depends only on the size (the number of bits constituting a binary number representing the distance between A and the object of the data set, that is, m). The calculation of the algorithm can be done simultaneously in all rows of the data set. It will also be appreciated that any addition of objects to the data set may not prolong the processing time of the k-minimum processor 120. If used in an online application, the object take-out time of an object from the data set can remain the same as when the data set grows.

전술한 본 발명을 사용하는 질의의 처리량은 현재 질의의 결과가 사용자에게 반환되기 전에 다음 질의의 산출을 시작함으로써 개선될 수 있다는 것을 알 수 있다. k-최소치 프로세서(120)는 객체가 그 상태를 후보로부터 자격으로 변경한 반복 식별자를 표기하기 위해 각각의 이진수에 수치 표시를 추가함으로써 세트 대신에 아이템의 순서화된 목록을 생성할 수 있음을 또한 알 수 있다. 더 작은 이진수가 더 큰 이진수보다 빨리 자격을 갖게 되기 때문에, 더 작은 이진수의 반복 식별자는 또한 데이터세트 C의 더 큰 이진수의 반복 식별자보다 작을 수 있다.It can be seen that the throughput of a query using the invention described above can be improved by starting the calculation of the next query before the result of the current query is returned to the user. The k-minimum processor 120 may also know that an object may generate an ordered list of items instead of a set by adding numeric indications to each binary number to indicate the repetition identifier that changed the state from candidate to entitlement . Because the smaller binary number is qualified sooner than the larger binary number, the repeat identifier of the smaller binary number may also be smaller than the repeat identifier of the larger binary number of the data set C.

달리 언급되지 않는 한, 앞의 논의에서 명백한 바와 같이, 명세서 전반에 걸쳐, k개의 최소 수에 대한 논의는 k개의 최대 수에 준용되며 그 반대의 경우도 마찬가지이고, 극한 수라고 지칭될 수 있음이 이해된다.Unless otherwise stated, as is apparent from the foregoing discussion, throughout the specification, the discussion of k minimum numbers applies to the maximum number of k, and vice versa, and may be referred to as the extreme number I understand.

출원인은 K-NN 프로세스가 음성 인식, 이미지 및 비디오 인식, 추천 시스템, 자연 언어 처리 등과 같은 수많은 분야에서 분류기 및 인식 시스템의 속도를 개선시키는 데 이용될 수 있다는 것을 깨달았다. 출원인은 또한 본 발명의 바람직한 실시예에 따라 구성되고 동작하는 K-NN 알고리즘이 O(1)의 우수한 계산 복잡도를 제공하기 때문에 이전에는 사용되지 않았던 분야에서 사용될 수 있음을 깨달았다. Applicants have realized that the K-NN process can be used to improve the speed of classifiers and recognition systems in numerous areas such as speech recognition, image and video recognition, referral systems, natural language processing, and the like. Applicants have also realized that K-NN algorithms constructed and operating in accordance with the preferred embodiment of the present invention can be used in fields that were not previously used because they provide good computational complexity of O (1).

어느 시점에서 분류를 위해 K-NN 알고리즘을 사용할 수 있는 수많은 데이터 마이닝 사례의 이벤트의 흐름을 도시하는 도 13이 이제 참조된다. 시스템(1300)은 입력 신호(1310)로부터 특징(1330)을 추출하는 특징 추출기(1320), 및 입력 신호(1310)의 아이템의 인식 및/또는 분류(1350)를 발생시키는 K-NN 분류기(1340)를 포함할 수 있다.13, which illustrates the flow of events of numerous data mining instances where the K-NN algorithm can be used for classification at some point. The system 1300 includes a feature extractor 1320 that extracts features 1330 from an input signal 1310 and a K-NN classifier 1340 that generates a recognition and / or classification 1350 of the items of the input signal 1310. [ ).

신호(1310)는 이미지, 음성, 문서, 비디오 등일 수 있다. 이미지의 경우, 특징 추출기(1320)는 학습 단계 등에 있는 콘볼루션 신경 네트워크(CNN)일 수 있다. 발화의 경우, 특징(1330)은 멜 주파수 켑스트럴 계수(mel-frequency cepstral coefficient, MFCC)일 수 있다. 문서의 경우, 특징은 정보 이득(information gain, IG), Chi 스퀘어(Chi Square, CHI), 상호 정보(mutual information, MI), 산출된 Ng-Goh-Low(NGL) 계수 값, 산출된 Galavotti-Sebastiani-Simi(GSS) 계수 값, 관련성 스코어(Relevancy score, RS), MSF DF, 문서 빈도에 대한 용어 빈도(term frequency for the document frequency, TFDF) 등일 수 있다. 추출된 특징은 K-NN 분류기(1340)가 동작할 수 있는 도 1의 메모리 계산 디바이스(100)와 같은 디바이스에 저장될 수 있다. 분류(1350)는 이미지 인식과 같은 아이템의 예측된 클래스, 또는 이미지 신호에 대한 분류; 오디오 신호에 대한 발화 검출 또는 잡음 제거; 문서 신호에 대한 문서 분류 또는 스팸 검출; 등일 수 있다.Signal 1310 may be an image, voice, document, video, or the like. For images, the feature extractor 1320 may be a Convolution Neural Network (CNN) in the learning phase or the like. For speech, feature 1330 may be a mel-frequency cepstral coefficient (MFCC). In the case of a document, the characteristics include information gain (IG), Chi square (CHI), mutual information (MI), calculated Ng-Goh-Low (NGL) (RS), MSF DF, term frequency for the document frequency (TFDF), and so on. The extracted features may be stored in a device, such as the memory calculation device 100 of FIG. 1, where the K-NN classifier 1340 may operate. Classification 1350 may include classifying a predicted class of items, such as image recognition, or image signals; Ignition detection or noise cancellation for an audio signal; Document classification or spam detection for document signals; And so on.

예를 들어, CNN 네트워크는 분류가 알려져 있는 아이템의 트레이닝 세트를 사용하여 학습을 시작할 수 있다는 것을 알 수 있다. 짧은 학습 시간 후에, 네트워크의 첫 수렴이 관찰된다. 학습 단계는 일반적으로 안정되고 신뢰할 수 있는 네트워크의 완전한 수렴을 위해 몇 시간 및 며칠 지속된다. For example, the CNN network can know that training can begin using a training set of items for which the classification is known. After a short learning time, the first convergence of the network is observed. The learning phase typically lasts several hours and days for a complete convergence of a stable and reliable network.

본 발명의 바람직한 실시예에 따르면, 학습은 수렴의 시작 직후에 중지될 수 있고, 네트워크는 완전한 수렴이 달성되기 전에 이러한 "과도적" 상태로 저장될 수 있다.According to a preferred embodiment of the invention, learning can be stopped immediately after the start of convergence, and the network can be stored in this "transient" state before complete convergence is achieved.

본 발명의 바람직한 실시예에 따르면, "과도적" 상태에 있는 네트워크를 사용하여 산출된 트레이닝 세트의 활성화 값은 트레이닝 세트 내의 각각의 아이템의 특징(1330)으로서 정의될 수 있고, 그러한 각각의 아이템의 분류와 함께 저장될 수 있다. 특징은 정규화될 수 있다는 것을 알 수 있다 - 즉, 각각의 아이템의 모든 활성화의 제곱의 합은 더해서 최대 1.0으로 설정될 수 있다.According to a preferred embodiment of the present invention, the activation value of the training set computed using the network in the "transient" state can be defined as the feature 1330 of each item in the training set, Can be stored together with the classification. It can be seen that the feature can be normalized - that is, the sum of the squares of all activations of each item can be added up to 1.0.

분류될 새로운 아이템이 수신되는 경우, 과도적 상태에 있는 네트워크를 사용하여 아이템에 대해 CNN이 수행되고, 저장된 특징을 사용하는 K-NN 절차가 새로운 아이템을 분류하는 데 사용될 수 있다. 새로운 아이템의 K-NN 분류는 새로운 객체의 특징 세트와 데이터베이스의 아이템 사이의 코사인 유사도를 산출하고, 상세히 전술한 바와 같이 k개의 최근접 이웃의 클래스의 클래스로 새로운 아이템을 분류함으로써 수행될 수 있다.When a new item to be classified is received, the CNN is performed on the item using the network in the transient state, and the K-NN procedure using the stored feature can be used to classify the new item. The K-NN classification of the new item can be performed by calculating the cosine similarity between the feature set of the new object and the item of the database and classifying the new item into the classes of k nearest neighbor classes as described in detail above.

전술한 k-최소치 방법을 사용하는 K-NN 알고리즘은 표준 CNN의 마지막 부분을 대체할 수 있다는 것을 알 수 있다.It can be seen that the K-NN algorithm using the k-minimum method described above can replace the last part of the standard CNN.

K-NN 알고리즘의 추가는 트레이닝 기간 시간을 대폭 감소시키면서 부분적으로 트레이닝된 신경 네트워크로 높은 분류 정확성을 제공할 수 있음을 알 수 있다.It can be seen that the addition of the K-NN algorithm can provide a high classification accuracy in a partially trained neural network while drastically reducing the training period time.

분류를 위해 CNN을 K-NN과 함께 사용하는 것은 이미지 및 비디오 인식, 추천 시스템, 자연 언어 처리 등과 같은 애플리케이션에서 네트워크의 완전히 연결된 부분을 대체할 수 있다.Using CNN with a K-NN for classification can replace a fully connected part of the network in applications such as image and video recognition, recommendation systems, natural language processing, and so on.

본 출원인은 위에서 기술된 KNN 프로세스가 자연 언어 처리(NLP)를 위해 유용할 수 있다는 점을 인식하였다.Applicants have recognized that the KNN process described above may be useful for natural language processing (NLP).

책, 서면 합의, 또는 전체 위키피디아 등의 긴 텍스트를 고려해 볼 수 있다. 종래 기술의 자연 언어 처리기(NLP)는, 이러한 긴 텍스트의 질의의 세트를 문의할 수 있고 올바른 답변을 얻을 수 있는 신경 네트워크를 생성한다. 이를 위해, 종래 기술의 자연 언어 처리기(NLP)는 재귀형 신경 네트워크(RNN)를 이용한다. 본 발명의 바람직한 실시예에 따르면, 긴 텍스트는 메모리(110)에 저장될 수 있고 위에서 기술된 KNN 프로세스와 연관 메모리 어레이(140)는 O(1)의 일정한 계산 복잡도로 복잡한 질의에 답변할 수 있다. NLP는 또한 언어 번역, 멀웨어 검출 등을 위해서도 활용될 수 있다.You can consider long texts such as books, written agreements, or the entire Wikipedia. The prior art natural language processor (NLP) creates a neural network that can query these sets of long text queries and get the right answers. To this end, the prior art natural language processor (NLP) uses a recursive neural network (RNN). According to a preferred embodiment of the present invention, the long text may be stored in memory 110 and the KNN process and associated memory array 140 described above may respond to complex queries with a certain computational complexity of O (1) . NLP can also be used for language translation, malware detection, and so on.

신경 네트워크에 대한 입력은 키 벡터(key vector)이고 출력은 신경 네트워크에서 입력 키와 모든 다른 키 사이의 유사도 검색에 의해 신경 네트워크 내에 생성된 값 벡터이다. 질의에 답변하기 위해서, 답변을 찾을 때까지 필요한 많큼 많은 반복 동안, 출력이 다음 쿼리로서 루프백될 수 있다. 본 출원인은 메모리 계산 디바이스(100) 등의 연관 처리 유닛(APU)이, 신경 네트워크를 이용한 자연 언어 처리에 필요한 모든 것을 달성하기 위해, 정확한 매치는 아닌 코사인 유사도 등의 임의의 검색 기능을 수행할 수 있음을 알게 되었다.The input to the neural network is a key vector and the output is a value vector generated in the neural network by a similarity search between the input key and all other keys in the neural network. To answer a query, for as many iterations as needed until an answer is found, the output can be looped back as the next query. Applicants have found that an associated processing unit (APU), such as the memory computing device 100, can perform any search function, such as a cosine similarity, rather than an exact match, to achieve all that is necessary for natural language processing using a neural network .

단-대-단(End to End) 메모리 네트워크 아키텍처 - 종래 기술End to End Memory Network Architecture - Prior Art

입력 표현: 줄거리는 문장들 {xi}로 이루어지는데 이러한 문장들로부터 특징 벡터 mi의 세트가 이미 교시된 RNN, 오토 인코더, 또는 k-NN 등의 임의의 여타 방법에 의해 생성된다. 이러한 특징은 신경 네트워크에 저장된다. 그 다음으로 질의 q는 또한, 또다른 이미 교시된 임베딩을 이용하여 (문장과 동일한 차원을 갖는) 특징 벡터로 변환된다. 그 다음에 신경 네트워크는 각각의 특징 mi와 q의 행렬 곱셈으로서 유사도를 계산한다. 그 후 SoftMax 알고리즘이 확률 벡터를 얻기 위해 계산된다. 모든 신경 네트워크 상에서 또는 k-최근접 이웃 벡터 상에서 SoftMax가 수행될 수 있다.Input Expression: The plot consists of sentences {x i } from which a set of feature vectors m i is generated by any other method, such as an RNN, an autocoder, or k-NN already taught. This feature is stored in the neural network. The query q is then also transformed into a feature vector (with the same dimensions as the sentence) using another already-taught embedding. The neural network then computes the similarity as a matrix multiplication of each feature m i and q. The SoftMax algorithm is then computed to obtain the probability vector. SoftMax can be performed on all neural networks or on k-nearest neighbor vectors.

출력 표현: 출력을 생성하기 위해, 확률 벡터에 수정된 특징 벡터 ci(통상적으로 특징 mi와 동일하거나 이와 매우 유사함)가 곱해진다. 곱셈 후에 프로세서는 출력 지원 벡터를 얻기 위해 모든 N개의 곱(product) 또는 단지 k-최근접 이웃들을 누적시킨다(이러한 결과는 올바른 답변을 얻는 데 도움이 되는 중간 답변이다).Output Expression: To generate the output, the probability vector is multiplied by the modified feature vector c i (which is usually the same as or very similar to feature m i ). After multiplication, the processor accumulates all N products or just k-nearest neighbors to obtain an output support vector (these results are an intermediate answer to help get the right answer).

최종 예측 생성: 중간 답변은 (모델의 다중 레이어 변화에 있어서) 또다른 홉을 위한 새로운 쿼리로서 또는 (3회의 홉 이후에) 최종 스테이지에서 원래 질의와 병합된다. 그 다음에 값 벡터에 연관된 SoftMax 확률을 곱한 후 모든 벡터를 "어텐션 벡터(attention vector)"라 불리는 하나의 벡터에 더함으로써 예측된 답변이 생성된다.Final prediction generation: The intermediate answer is merged with the original query in a final stage (after 3 hops) as a new query for another hop (in a multi-layer variation of the model). The predicted answer is then generated by multiplying the value vector by the associated SoftMax probability and then adding all the vectors to one vector called the "attention vector".

연관형 구현Associative implementation

본 발명의 바람직한 실시예에 따르면, 메모리 계산 디바이스(100)는 완전히 스케일 조정 가능하므로, 텍스트의 크기에 어떠한 제한도 가지지 않는다. 이는 수백만 개의 문장을 저장할 수 있다. 전형적인 연관 메모리 서버는 수천만 개의 문장을 지닐 수 있고, 이는 거대한 데이터 베이스를 저장하기에 충분하다. 예를 들면, 위키피디아는 20억 개의 영어 단어를 가진다. 이들이 5억 개의 문장으로 나뉜다고 가정할 때, 전체 위키피디아는 30 내지 50개의 연관 메모리 서버에 저장되거나 사전 해싱을 이용하는 경우 단일 서버에 저장될 수 있다. 이후 보다 상세하게 기술되는 본 발명의 바람직한 실시예에 따르면 모든 실행 단계가 모든 문장에 병렬적으로 일어나며 O(1)의 복잡도를 가진다. According to a preferred embodiment of the present invention, the memory computing device 100 is fully scalable and thus has no limit on the size of the text. It can store millions of sentences. A typical associative memory server can have tens of millions of sentences, which is enough to store huge databases. For example, Wikipedia has 2 billion English words. Assuming that they are divided into 500 million sentences, the entire Wikipedia can be stored on 30 to 50 associative memory servers or stored on a single server if using pre-hashing. According to a preferred embodiment of the present invention described in more detail hereinafter, all execution steps occur in parallel in all sentences and have a complexity of O (1).

메모리 계산 디바이스(100)는 임의의 적합한 메모리 어레이, 예컨대 SRAM, 비휘발성, 휘발성 및 비파괴 어레이로 형성될 수 있고, 본 발명의 공통 양수인에게 양도되어 원용에 의해 본원에 통합되는 US 9,418,719 (P-13001-US)에 기술된 바와 같이, 복수의 비트 라인 프로세서(114)로 형성될 수 있고 각각의 비트 라인 프로세서는 단어의 한 비트를 처리하며 각 단어는 연관 메모리 어레이(140)의 열에 저장된다.The memory computing device 100 may be any suitable memory array, such as SRAM, non-volatile, volatile, and non-destructive arrays, and may be any of the memory arrays described in US Pat. No. 9,418,719 -US), and each bitline processor processes one bit of the word, and each word is stored in a column of the associated memory array 140. The bitline processor 114,

따라서, 어레이(140)의 각각의 열은 다수의 비트 라인 프로세서를 가질 수 있다. 이는 6개의 예시적인 2-비트 단어, A, B, Q, R, X 및 Y가 처리될 어레이(140)의 일부를 나타내는 도 14에서 볼 수 있는데, 이제 도 14에 대해 간략히 살펴본다. A1 및 B1의 비트는 비트 라인(156)을 따라 비트 라인 프로세서(114A)에 저장될 수 있고, A2 및 B2의 비트는 비트 라인(158)을 따라 섹션(114B)에 저장될 수 있다. Q1 및 R1 비트는 비트 라인(170)을 따라 비트 라인 프로세서(114A)에 저장될 수 있고, Q2 및 R2 비트는 비트 라인(172)을 따라 비트 라인 프로세서(114B)에 저장될 수 있다. X1 및 Y1 비트는 비트 라인(174)을 따라 비트 라인 프로세서(114A)에 저장될 수 있고, X2 및 Y2 비트는 비트 라인(176)을 따라 비트 라인 프로세서(114B)에 저장될 수 있다.Thus, each column of array 140 may have multiple bit line processors. This can be seen in FIG. 14, which shows a portion of the array 140 where six exemplary 2-bit words, A, B, Q, R, X and Y are to be processed. The bits of A1 and B1 may be stored in the bit line processor 114A along the bit line 156 and the bits of A2 and B2 may be stored in the section 114B along the bit line 158. [ Q1 and R1 bits may be stored in bit line processor 114A along bit line 170 and Q2 and R2 bits may be stored in bit line processor 114B along bit line 172. [ The X1 and Y1 bits may be stored in the bit line processor 114A along the bit line 174 and the X2 and Y2 bits may be stored in the bit line processor 114B along the bit line 176. [

통상적으로, M 비트 단어에 대하여, 단어의 상이한 비트를 각각 저장하는 M개의 섹션이 있을 수 있다. 각각의 섹션은 상당한 수 N(예컨대, 2048)의 비트 라인, 따라서 비트 라인 프로세서를 가질 수 있다. 각 섹션은 비트 라인 프로세서의 행을 제공할 수 있다. 따라서, N개의 M-비트 단어가 병렬적으로 처리될 수 있고, 각각의 비트가 별개의 비트 라인 프로세서에 의해 병렬적으로 처리될 수 있다.Typically, for an M-bit word, there may be M sections each storing different bits of a word. Each section may have a significant number N (e.g., 2048) bit lines, and thus a bit line processor. Each section may provide a row of bit line processors. Thus, N M-bit words may be processed in parallel, and each bit may be processed in parallel by a separate bit line processor.

셀 열(150) 등의 통상적인 셀 열이, 이러한 열의 제1의 몇몇 셀에서 처리될 입력 데이터를 저장할 수 있다. 도 5에서 A, Q 및 X 단어의 비트는 열의 제1 셀들에 저장되지만, B, R 및 Y 단어의 비트는 열의 제2 셀들에 저장된다. 본 발명의 바람직한 실시예에 따르면, 각각의 열에서 나머지 셀들은 (한 열에 20 내지 30개의 셀들이 있을 수 있음) 처리 동작 중에 사용되도록 임시 저장으로 남겨질 수 있다.A typical cell column, such as cell column 150, may store input data to be processed in a first few cells of this column. In Figure 5, the bits of the words A, Q and X are stored in the first cells of the column, while the bits of the words B, R and Y are stored in the second cells of the column. According to a preferred embodiment of the present invention, the remaining cells in each column (which may be 20 to 30 cells in a column) may be left as temporary storage for use during processing operations.

멀티플렉서는 비트 라인 프로세서의 행들을 연결할 수 있고, 행 디코더가 각 비트 라인 프로세서에서 적절한 셀을 활성화할 수 있다. 위에서 설명한 바와 같이, 메모리 어레이에서 셀들의 행은 워드 라인에 의해 연결되고, 따라서 디코더는 판독을 위해 비트 라인 프로세서의 셀의 관련된 워드 라인을 활성화시키고 기록을 위해 비트 라인 프로세서의 상이한 세트에서 관련된 워드 라인을 활성화시킬 수 있다.The multiplexer can couple the rows of the bit line processor and the row decoder can activate the appropriate cell in each bit line processor. As described above, the rows of cells in the memory array are connected by word lines, so that the decoder activates the associated word lines of the cell of the bit line processor for reading and, in a different set of bit line processors, Can be activated.

위에서 기술한 자연 언어 처리를 위해, 도 15에는 연관 메모리에서의 데이터 조직화가 도시되어 있으며, 이제 도 15에 관해 살펴본다. 결과를 생성하기 위해 필요한 3회의 반복 각각에 대해 하나씩 3개의 주요 부분(1410-j)이 있다. 각각의 부분은 3개의 연산 섹션 즉, 각 열에 대해 유사도 값을 계산하기 위한 유사도 섹션(1412-j), 유사도 결과에 대해 SoftMax 계산을 수행하기 위한 SoftMax 섹션(1414-j) 및 어텐션 벡터 또는 지원 답변을 결정하기 위한 값 섹션(1416-j)으로 분할될 수 있다. 각 섹션의 열들은 상이한 반복들의 열들과 마찬가지로 서로 정렬된다는 점을 이해할 것이다. 따라서, 특징 x에 대한 연산이 모든 연산에 있어서 동일한 열 내에서 일반적으로 발생할 것이다.For the natural language processing described above, FIG. 15 illustrates data organization in an associative memory and is now discussed with respect to FIG. There are three main parts 1410-j, one for each of three iterations needed to produce the result. Each section includes three operation sections: a similarity section 1412-j for calculating similarity values for each column, a SoftMax section 1414-j for performing SoftMax calculations on the similarity results, Lt; RTI ID = 0.0 &gt; 1416-j &lt; / RTI &gt; It will be appreciated that the columns of each section are aligned with each other as well as the columns of different iterations. Thus, an operation on the feature x will generally occur within the same column for all operations.

N개의 입력 문장의 특징 또는 키 벡터 M1 i는 메모리(110)의 부분(1412-1)에 저장되고, 각 특징 벡터 M1 i는 별개의 열에 저장된다. 따라서, 특징 벡터 M1 0는 0 열에 저장되고, M1 1은 1 열에 저장되는 등이며, 각 벡터 M1 i의 각 비트는 자신의 비트 라인 프로세서(114)에 저장될 수 있다. 위에서 살펴본 바와 같이, 특징 벡터는 사전-트레이닝된 신경 네트워크 또는 임의의 여타 벡터화 특징 추출기의 출력일 수 있고 필요에 따라 단어, 문장, 문서 등의 특징일 수 있다.The feature or key vector M 1 i of the N input statements is stored in the portion 1412-1 of the memory 110, and each feature vector M 1 i is stored in a separate column. Thus, the feature vector M 1 0 is stored in column 0, M 1 1 is stored in column 1, and so on, and each bit of each vector M 1 i can be stored in its own bit line processor 114. As discussed above, the feature vector may be the output of a pre-trained neural network or any other vectorized feature extractor and may be a feature of words, sentences, documents, etc., as needed.

N개의 입력 문장과 연관되는 수정된 특징 벡터 C1 i는 연관된 Mj i의 동일한 값을 가질 수 있거나, 이러한 벡터 중 일부 또는 모두가 몇몇의 적합한 방식으로 수정될 수 있다. 수정된 특징 벡터 Cj i는 값 섹션(1416-1)에 초기 저장될 수 있다. 유사한 데이터가 각각 나머지 반복 j에 대해 유사도 섹션(1412-j) 및 값 섹션(1416-j)에 저장될 수 있다.The modified feature vector C 1 i associated with the N input statements may have the same value of the associated M j i , or some or all of these vectors may be modified in some suitable manner. The modified feature vector C j i may be initially stored in the value section 1416-1. Similar data may be stored in the similarity section 1412-j and the value section 1416-j for the remainder of the repeats j, respectively.

유사도 섹션(1410-j)에 대하여, 메모리 계산 디바이스(100)는 병렬적으로 각각의 열에 대해 입력 벡터 qj와의 점 행렬 곱셈(또는 코사인 유사도)을 구현할 수 있고, 유사도 섹션(1410-j)의 각 열에서 입력 벡터와 특징 벡터 간의 거리일 수 있는 그 결과를 위에서 논의한 바와 같이 연관된 비트 라인 프로세서(114)에 저장할 수 있다. 예시적인 행렬 곱셈 연산이 미국 특허 출원 15/466,889(본 발명의 공통 양수인에게 양도되고 원용에 의해 본원에 통합됨)에 기술되어 있다. 입력 벡터는 반복 1에 대한 초기 질의일 수 있고 나머지 반복들 j에서는 속행 질의(follow on question)일 수 있다.For the similarity section 1410-j, the memory computing device 100 may implement a point matrix multiplication (or cosine similarity) with the input vector q j for each column in parallel, and the similarity section 1410- The result, which may be the distance between the input vector and the feature vector in each column, may be stored in the associated bit line processor 114 as discussed above. Exemplary matrix multiplication operations are described in U.S. Patent Application No. 15 / 466,889, which is assigned to the common assignee of the present invention and incorporated herein by reference in its entirety. The input vector may be an initial query for iteration 1 and may be a follow on question for the remaining iterations j.

마커 벡터 T는, 필요한 경우 새로운 입력 벡터를 잊어버리거나 삽입 및 업데이트하기 위해 선택된 열을 특정하는 데 이용될 수 있고, 행(1420)으로 구현되어 모든 반복을 위해 동작될 수 있다.The marker vector T may be used to specify a selected column for forgetting or inserting and updating a new input vector if necessary, and may be implemented in row 1420 and operated for all iterations.

"SoftMax 기능"이라는 위키피디아 항목에 기술된 SoftMax 연산은, (마커 벡터 T에 의해 선택된 열에 대해) 연관된 유사도 섹션(1412-j)에서 수행되는 점 행렬 또는 코사인 유사도 연산의 결과에 기하여 SoftMax 섹션(1414-j)에서 구현될 수 있다. SoftMax 연산은 부분(1412)의 유사도 결과에 기초하여 각각의 활성 열에 대해 발생 확률을 결정할 수 있다. 이러한 발생 확률은 0 내지 1의 값을 가지며 확률은 합해져 1.0이 된다.The SoftMax operation described in the Wikipedia entry entitled "SoftMax Function" is based on the result of the point matrix or cosine similarity operation performed on the associated similarity section 1412-j (for the column selected by the marker vector T) j. &lt; / RTI &gt; The SoftMax operation may determine the probability of occurrence for each active column based on the result of the similarity of portion 1412. [ The probability of occurrence has a value of 0 to 1, and the probability is combined to become 1.0.

SoftMax 연산은 테일러 급수 근사로 구현될 수 있는 수많은 지수 연산을 포함할 수 있고, 각 연산의 중간 데이터는 관련된 SoftMax 부분(1414-j)의 비트 라인 프로세서에 저장된다.The SoftMax operation may include a number of exponential operations that may be implemented with a Taylor series approximation and the intermediate data of each operation is stored in the bitline processor of the associated SoftMax portion 1414-j.

값 섹션(1416-j)에서, 수정된 특징 벡터 Cj i는 각각 자신의 비트 라인 프로세서(114)에서 연관된 SoftMax 값으로 곱해질 수 있다. 그러면 곱해진 Cj i 벡터의 벡터 합으로 첫 번째 지원 답변이 생성될 수 있다. 이러한 합은, 어텐션 연산에서, 마커 벡터 T에 의해 선택된 모든 열에 걸쳐 수평으로 누적될 수 있다. SoftMax 값으로 가중되는, 키 벡터의 가중된 합인 벡터 결과가 제어기에 제공되어 다음 홉 또는 반복을 위한 질의를 생성하는 데 이용될 수 있다. 도 15는, 메모리 어레이(110)의 바닥에 초기 반복을 위한 초기 부분을 보여주는데, 추가적인 반복의 데이터는 그 위의 부분에 저장되어 있다. 3회의 반복이 도시되어 있으며, 각각 입력 질의 qj를 갖고 출력으로서 지원 또는 최종 답변을 가진다.In the value section 1416-j, the modified feature vector C j i may each be multiplied by its associated SoftMax value in its bit line processor 114. The first support answer can then be generated by the vector sum of the multiplied C j i vectors. This sum may be accumulated horizontally across all the columns selected by the marker vector T in the Attention Operation. A vector result, weighted by the SoftMax value, that is a weighted sum of the key vectors may be provided to the controller and used to generate a query for the next hop or iteration. 15 shows an initial portion for initial repetition at the bottom of the memory array 110, where additional repetition data is stored in the upper portion thereof. Three iterations are shown, each having an input query q j and having either a support or final answer as output.

초기 질의 q1은 메모리 계산 디바이스(100)의 외부에 있는 사전-트레이닝된 신경 네트워크를 이용하여 질의 생성기에 의해 생성될 수 있다는 점을 인식할 것이다. 해답에 이를 때까지 (통상적으로 세 번째 반복이지만 보다 많은 반복도 가능함) 나머지 질의 qj는 원래의 벡터 질의와 어텐션 벡터의 조합일 수 있다.It will be appreciated that the initial query q 1 may be generated by the query generator using a pre-trained neural network external to the memory computing device 100. The remaining query q j may be a combination of the original vector query and the attention vector until an answer is reached (usually the third iteration but more iterations are possible).

이러한 조합은 2개의 입력 벡터와 하나의 출력 벡터를 갖는 외부 신경 네트워크에 기초할 수 있다. 입력 벡터는 원래의 질의 벡터 q1과 이전 반복의 어텐션 벡터이고, 출력은 새로운 벡터 질의이다. 이러한 신경 네트워크는 메모리의 비트 라인에 대한 행렬 곱셈에 의해 구현될 수 있거나 외부적으로 구현될 수 있다. 유사도 섹션(1412-j)에 저장된 초기 데이터는 동일할 수 있다는 점(즉, 질의들 qj 간의 거리는 동일한 데이터에 관한 것임)을 인식할 것이다. 마찬가지로, 값 섹션(1416-j)에 저장된 초기 값 데이터는 동일할 수 있다(즉, SoftMax 값으로 곱해질 데이터가 동일함).This combination may be based on an external neural network having two input vectors and one output vector. The input vector is the original query vector q 1 and the previous iteration's affine vector, and the output is the new vector query. This neural network may be implemented by matrix multiplication on the bit lines of memory or may be implemented externally. It will be appreciated that the initial data stored in the similarity section 1412-j may be the same (i.e., the distance between queries q j is about the same data). Likewise, the initial value data stored in the value section 1416-j may be the same (i.e., the data to be multiplied by the SoftMax value are the same).

성능Performance

모든 문장 특징이 메모리에 저장되는 경우, 행렬 곱셈은 쿼리 벡터의 크기 곱하기 100개의 사이클을 필요로 한다. 문장마다 10개 이하의 특징을 가정하면, 모든 N개의 문장에 대해 병렬적으로 1000개의 클록을 획득하거나 모든 N개마다 1μsec(1Ghz 클록을 이용)를 획득한다. SoftMax는 대략 1μsec를 필요로 하며, 곱셈과 누적 연산은 4μsec를 필요로 한다. 3개의 홉/반복은 3X(1+1+4)∼20μsec를 필요로 하고, 초당 50,000개의 질의를 가능하게 한다.When all sentence features are stored in memory, the matrix multiplication requires the size of the query vector multiplied by 100 cycles. Assuming less than 10 features per sentence, obtain 1000 clocks in parallel for every N sentences, or 1 μsec (using 1 GHz clock) for every N. SoftMax requires approximately 1μsec, and multiplication and accumulation requires 4μsec. Three hops / repeats require 3X (1 + 1 + 4) to 20μsec and enable 50,000 queries per second.

이제 도 16에 간략하게 살펴보는데, 도 16에 도시된 대안적인 시스템(1500)은 단지 1회의 반복을 다룰 수 있을 정도로 충분히 클 수 있는 연관 메모리(1510)와 나머지 계산을 다루는 다른 요소를 포함할 수 있다.16, the alternative system 1500 shown in FIG. 16 may include an association memory 1510 that may be large enough to handle only one iteration and other elements that deal with the remaining calculations have.

앞선 실시예에서와 마찬가지로, 연관 메모리(1510)는 여기서 "키"라고 불리는 특징 벡터에 대해 연산하기 위한 유사도 섹션(1512), SoftMax 연산을 구현하기 위한 SoftMax 섹션(1514), 및 특징 벡터와 연관된 값에 대해 연산하기 위한 값 섹션(1516)을 포함할 수 있다. 이러한 실시예는 일정한 시간 내에 메모리(1510) 내에서 모든 홉을 실행할 수 있다. 도 16에 도시된 바와 같이, 몇몇 연산은 메모리(1510)에서 일어나지만 다른 연산은 메모리(1510) 외부에서 일어난다. 성능은 홉마다 대략 6μsec로 단-대-단 구현과 대략 동일하다.As in the previous embodiment, associative memory 1510 includes a similarity section 1512 for computing a feature vector referred to herein as a " key ", a SoftMax section 1514 for implementing a SoftMax operation, And a value section 1516 for operating on the &lt; / RTI &gt; This embodiment may execute all the hops in memory 1510 within a certain time. As shown in FIG. 16, some operations take place in memory 1510, while other operations take place outside memory 1510. Performance is approximately the same as the short-to-end implementation, approximately 6 microseconds per hop.

임의의 긴 메모리 네트워크로의 유연성Flexibility to any long memory network

연관 프로세서가 메모리의 모든 비트 라인에 대해 병렬적으로 계산하는, 일정한 시간으로 내용물-검색(search-by-content)의 모든 능력을 가지고 있기 때문에, 다양한 유형의 메모리 네트워크, 예컨대 Directly Reading Documents(Miller, Jason, 등, EMNLP 2016)에 대한 키-값 메모리 네트워크를 나타낼 수 있다는 점을 인식할 것이다.Various types of memory networks, such as the Directly Reading Documents (Miller, &lt; RTI ID = 0.0 &gt; Jason, et al., EMNLP 2016). &Lt; / RTI &gt;

본 발명의 특정 특징이 본 명세서에 도시되고 기술되었지만, 많은 수정, 대체, 변경 및 균등물이 이제 본 기술분야의 통상의 기술자에게 일어날 것이다. 따라서, 첨부된 청구 범위는 본 발명의 진정한 사상 내에 있는 그러한 모든 수정 및 변경을 포함하도록 의도된 것으로 이해되어야 한다.While certain features of the invention have been illustrated and described herein, many modifications, substitutions, changes, and equivalents will now occur to those skilled in the art. It is, therefore, to be understood that the appended claims are intended to cover all such modifications and changes as fall within the true spirit of the invention.

Claims (19)

자연 언어 처리를 위한 시스템으로서,
행과 열을 갖는 메모리 어레이 ― 상기 메모리 어레이는, 복수의 키(key) 또는 특징 벡터를 초기 저장하는 유사도 섹션, 상기 키 또는 특징 벡터의 발생의 확률을 결정하기 위한 SoftMax 섹션, 복수의 수정된 특징 벡터를 초기 저장하는 값 섹션(value section), 및 마커 섹션으로 분할되고, 상기 메모리 어레이의 하나 이상의 열에서의 연산이 처리될 하나의 특징 벡터와 연관됨 ―; 및
메모리 내(in-memory) 프로세서
를 포함하고, 상기 메모리 내 프로세서는 상기 마커 섹션에 의해 표시되는 각각의 열에서:
각각의 표시된 상기 열에 저장된 각각의 상기 특징 벡터와 벡터 질의 사이의, 상기 유사도 섹션에서의 유사도 연산;
각각의 표시된 상기 특징 벡터에 대해 연관된 SoftMax 확률 값을 결정하는, 상기 SoftMax 섹션에서의 SoftMax 연산;
상기 연관된 SoftMax 확률 값에, 각각의 표시된 상기 열에 저장된 각각의 수정된 상기 특징 벡터를 곱하는, 상기 값 섹션에서의 곱셈 연산; 및
상기 곱셈 연산의 출력의 어텐션 벡터 합(attention vector sum)을 누적시키는, 상기 값 섹션에서의 벡터 합 연산 ― 벡터 합은 추가적인 반복을 위해 새로운 벡터 질의를 생성하거나 최종 반복에서 출력 값을 생성하기 위해 사용될 것임 ―
을 병렬적으로 수행하도록 상기 메모리 어레이를 활성화하는, 자연 언어 처리를 위한 시스템.
As a system for natural language processing,
A memory array having rows and columns, the memory array comprising: a similarity section for initially storing a plurality of keys or feature vectors; a SoftMax section for determining a probability of occurrence of the keys or feature vectors; A value section for initially storing a vector, and a marker section, and wherein an operation on one or more columns of the memory array is associated with a feature vector to be processed; And
An in-memory processor
Wherein in the in-memory processor, in each column indicated by the marker section:
Computing a similarity in the similarity section between each of the feature vectors and the vector query stored in each of the displayed columns;
A SoftMax operation in the SoftMax section to determine an associated SoftMax probability value for each of the indicated feature vectors;
Multiplying the associated SoftMax probability value by each modified feature vector stored in each column of the indicated column; And
The vector sum-vector sum in the value section, which accumulates an attention vector sum of the output of the multiplication operation, may be used to generate a new vector query for further iteration or to generate an output value in the final iteration -
Wherein the memory array is activated in parallel.
제1항에 있어서,
상기 메모리 어레이는, 자연 언어 처리 연산의 반복마다 하나씩 다수의 연산부를 포함하고, 각각의 연산부는 상기 섹션들로 분할되는, 자연 언어 처리를 위한 시스템.
The method according to claim 1,
Wherein the memory array comprises a plurality of arithmetic units, one for each iteration of a natural language processing operation, and each arithmetic unit is divided into the sections.
제1항에 있어서,
상기 메모리 어레이는 SRAM, 비휘발성, 휘발성, 및 비파괴 어레이 중 하나인, 자연 언어 처리를 위한 시스템.
The method according to claim 1,
Wherein the memory array is one of SRAM, non-volatile, volatile, and non-destructive arrays.
제1항에 있어서,
상기 메모리 어레이는 각각의 상기 섹션의 열마다 하나씩 다수의 비트 라인 프로세서를 포함하고, 각각의 상기 비트 라인 프로세서는 연관된 섹션의 데이터의 하나의 비트에 대해 동작하는, 자연 언어 처리를 위한 시스템.
The method according to claim 1,
Wherein the memory array includes a plurality of bit line processors, one for each column of each of the sections, each bit line processor operating on one bit of data of an associated section.
제1항에 있어서,
상기 특징 벡터 및 수정된 특징 벡터를 생성하기 위한 신경 네트워크 특징 추출기를 더 포함하는, 자연 언어 처리를 위한 시스템.
The method according to claim 1,
Further comprising a neural network feature extractor for generating the feature vector and the modified feature vector.
제1항에 있어서,
상기 특징 벡터는 단어, 문장, 또는 문서의 특징을 포함하는, 자연 언어 처리를 위한 시스템.
The method according to claim 1,
Wherein the feature vector comprises a feature of a word, a sentence, or a document.
제1항에 있어서,
상기 특징 벡터는 사전-트레이닝된 신경 네트워크의 출력인, 자연 언어 처리를 위한 시스템.
The method according to claim 1,
Wherein the feature vector is an output of a pre-trained neural network.
제1항에 있어서,
초기 벡터 질의를 생성하기 위한 사전-트레이닝된 신경 네트워크를 더 포함하는, 자연 언어 처리를 위한 시스템.
The method according to claim 1,
Further comprising a pre-trained neural network for generating an initial vector query.
제8항에 있어서,
상기 초기 벡터 질의 및 상기 어텐션 벡터 합으로부터 추가적인 질의를 생성하기 위한 질의 생성기를 더 포함하는, 자연 언어 처리를 위한 시스템.
9. The method of claim 8,
Further comprising a query generator for generating an additional query from the initial vector query and the attachment vector sum.
제9항에 있어서,
상기 질의 생성기는 신경 네트워크인, 자연 언어 처리를 위한 시스템.
10. The method of claim 9,
Wherein the query generator is a neural network.
제9항에 있어서,
상기 질의 생성기는 상기 메모리 어레이의 비트 라인 상에서 행렬 곱셈기로 구현되는, 자연 언어 처리를 위한 시스템.
10. The method of claim 9,
Wherein the query generator is implemented as a matrix multiplier on a bit line of the memory array.
자연 언어 처리를 위한 방법으로서,
행과 열을 갖는 메모리 어레이를 구비하는 단계 ― 상기 메모리 어레이는, 복수의 키 또는 특징 벡터를 초기 저장하는 유사도 섹션, 상기 키 또는 특징 벡터의 발생의 확률을 결정하기 위한 SoftMax 섹션, 복수의 수정된 특징 벡터를 초기 저장하는 값 섹션, 및 마커 섹션으로 분할되고, 상기 메모리 어레이의 하나 이상의 열에서의 연산이 처리될 하나의 특징 벡터와 연관됨 ―; 및
상기 마커 섹션에 의해 표시되는 각각의 열에서:
각각의 표시된 상기 열에 저장된 각각의 상기 특징 벡터와 벡터 질의 사이의, 상기 유사도 섹션에서의 유사도 연산;
각각의 표시된 상기 특징 벡터에 대해 연관된 SoftMax 확률 값을 결정하는, 상기 SoftMax 섹션에서의 SoftMax 연산;
상기 연관된 SoftMax 확률 값에, 각각의 표시된 상기 열에 저장된 각각의 수정된 상기 특징 벡터를 곱하는, 상기 값 섹션에서의 곱셈 연산; 및
상기 곱셈 연산의 출력의 어텐션 벡터 합을 누적시키는, 상기 값 섹션에서의 벡터 합 연산 ― 벡터 합은 추가적인 반복을 위해 새로운 벡터 질의를 생성하거나 최종 반복에서 출력 값을 생성하기 위해 사용될 것임 ―
을 병렬적으로 수행하도록 상기 메모리 어레이를 활성화하는 단계
를 포함하는, 자연 언어 처리를 위한 방법.
As a method for natural language processing,
Comprising: a memory array having rows and columns, the memory array comprising: a similarity section for initially storing a plurality of keys or feature vectors; a SoftMax section for determining a probability of occurrence of the keys or feature vectors; A value section for initially storing a feature vector, and a marker section, and wherein an operation on one or more columns of the memory array is associated with a feature vector to be processed; And
In each column denoted by the marker section:
Computing a similarity in the similarity section between each of the feature vectors and the vector query stored in each of the displayed columns;
A SoftMax operation in the SoftMax section to determine an associated SoftMax probability value for each of the indicated feature vectors;
Multiplying the associated SoftMax probability value by each modified feature vector stored in each column of the indicated column; And
The vector sum-vector sum in the value section that accumulates the sum of the attack vector of the output of the multiplication operation will be used to generate a new vector query for further iteration or to generate an output value in the final iteration -
The step of activating the memory array to perform in parallel
&Lt; / RTI &gt;
제12항에 있어서,
상기 메모리 어레이는 각각의 상기 섹션의 열마다 하나씩 다수의 비트 라인 프로세서를 포함하고, 상기 방법은 각각의 상기 비트 라인 프로세서가 연관된 섹션의 데이터의 하나의 비트에 대해 동작하는 단계를 더 포함하는, 자연 언어 처리를 위한 방법.
13. The method of claim 12,
Wherein the memory array comprises a plurality of bit line processors, one for each column of each of the sections, the method further comprising each bit line processor operating on one bit of data of an associated section. Methods for language processing.
제12항에 있어서,
신경 네트워크를 이용하여 상기 특징 벡터 및 수정된 특징 벡터를 생성하여 상기 유사도 섹션 및 값 섹션에 각각 저장하는 단계를 더 포함하는, 자연 언어 처리를 위한 방법.
13. The method of claim 12,
Further comprising generating the feature vectors and the modified feature vectors using a neural network and storing them in the similarity section and value section, respectively.
제12항에 있어서,
상기 특징 벡터는 단어, 문장, 또는 문서의 특징을 포함하는, 자연 언어 처리를 위한 방법.
13. The method of claim 12,
Wherein the feature vector comprises a feature of a word, a sentence, or a document.
제12항에 있어서,
사전-트레이닝된 신경 네트워크를 이용하여 초기 벡터 질의를 생성하는 단계를 더 포함하는, 자연 언어 처리를 위한 방법.
13. The method of claim 12,
Further comprising generating an initial vector query using a pre-trained neural network.
제16항에 있어서,
상기 초기 벡터 질의 및 상기 어텐션 벡터 합으로부터 추가적인 질의를 생성하는 단계를 더 포함하는, 자연 언어 처리를 위한 방법.
17. The method of claim 16,
Further comprising generating an additional query from the initial vector query and the affine vector sum.
제17항에 있어서,
추가적인 질의를 생성하는 것은 신경 네트워크를 활용하는, 자연 언어 처리를 위한 방법.
18. The method of claim 17,
A method for natural language processing that utilizes a neural network to generate additional queries.
제17항에 있어서,
상기 추가적인 질의를 생성하는 것은 상기 메모리 어레이의 비트 라인 상에서 행렬 곱셈을 수행하는 것을 포함하는, 자연 언어 처리를 위한 방법.
18. The method of claim 17,
Wherein generating the additional query comprises performing a matrix multiplication on a bit line of the memory array.
KR1020180080694A 2017-07-16 2018-07-11 Natural language processing with knn KR102608683B1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201762533076P 2017-07-16 2017-07-16
US62/533,076 2017-07-16
US201862686114P 2018-06-18 2018-06-18
US62/686,114 2018-06-18

Publications (2)

Publication Number Publication Date
KR20190008514A true KR20190008514A (en) 2019-01-24
KR102608683B1 KR102608683B1 (en) 2023-11-30

Family

ID=65277406

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180080694A KR102608683B1 (en) 2017-07-16 2018-07-11 Natural language processing with knn

Country Status (2)

Country Link
KR (1) KR102608683B1 (en)
CN (2) CN110019815B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190266482A1 (en) * 2018-02-26 2019-08-29 Gsi Technology Inc. Distance based deep learning

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150146491A1 (en) * 2013-11-28 2015-05-28 Mikamonu Group Ltd. In-memory computational device
US20150200009A1 (en) * 2014-01-12 2015-07-16 Mikamonu Group Ltd. Memory device
US20160086222A1 (en) * 2009-01-21 2016-03-24 Truaxis, Inc. Method and system to remind users of targeted offers in similar categories
US20160275876A1 (en) * 2005-02-23 2016-09-22 Pixtronix, Inc. Direct-view mems display devices and methods for generating images thereon

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1182577A1 (en) * 2000-08-18 2002-02-27 SER Systeme AG Produkte und Anwendungen der Datenverarbeitung Associative memory
US8005782B2 (en) * 2007-08-10 2011-08-23 Microsoft Corporation Domain name statistical classification using character-based N-grams
US9747547B2 (en) * 2013-10-22 2017-08-29 In2H2 Hardware enhancements to radial basis function with restricted coulomb energy learning and/or k-Nearest Neighbor based neural network classifiers
US9858524B2 (en) * 2014-11-14 2018-01-02 Google Inc. Generating natural language descriptions of images
US10303735B2 (en) * 2015-11-18 2019-05-28 Intel Corporation Systems, apparatuses, and methods for K nearest neighbor search
US9646243B1 (en) * 2016-09-12 2017-05-09 International Business Machines Corporation Convolutional neural networks using resistive processing unit array

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160275876A1 (en) * 2005-02-23 2016-09-22 Pixtronix, Inc. Direct-view mems display devices and methods for generating images thereon
US20160086222A1 (en) * 2009-01-21 2016-03-24 Truaxis, Inc. Method and system to remind users of targeted offers in similar categories
US20150146491A1 (en) * 2013-11-28 2015-05-28 Mikamonu Group Ltd. In-memory computational device
US20150200009A1 (en) * 2014-01-12 2015-07-16 Mikamonu Group Ltd. Memory device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Miller, Alexander, et al., Key-value memory networks for directly reading documents., arXiv preprint arXiv:1606.03126, 2016 *

Also Published As

Publication number Publication date
CN117370563A (en) 2024-01-09
CN110019815B (en) 2023-11-17
KR102608683B1 (en) 2023-11-30
CN110019815A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
KR102092263B1 (en) How to find K poles within a certain processing time
US20180341642A1 (en) Natural language processing with knn
Bello et al. Seq2Slate: Re-ranking and slate optimization with RNNs
US20190130249A1 (en) Sequence-to-sequence prediction using a neural network model
Passos et al. Lexicon infused phrase embeddings for named entity resolution
CN109669962A (en) The index of precision and accurate SOFTMAX are calculated
Gong et al. Multiobjective sparse non-negative matrix factorization
Tavakoli Modeling genome data using bidirectional LSTM
Lu et al. Nonparametric regression via variance-adjusted gradient boosting Gaussian process regression
KR20190103011A (en) Distance based deep learning
Athavale et al. Predicting algorithm classes for programming word problems
KR102608683B1 (en) Natural language processing with knn
Wang et al. $ k $-Nearest Neighbor Augmented Neural Networks for Text Classification
Bai et al. Neural maximum common subgraph detection with guided subgraph extraction
Zeng et al. A new approach to speeding up topic modeling
Rugeles et al. Biclustering: An application of dual topic models
Grzegorczyk et al. Binary paragraph vectors
WO2023044931A1 (en) Rna-protein interaction prediction method and apparatus, and medium and electronic device
WO2023044927A1 (en) Rna-protein interaction prediction method and apparatus, and medium and electronic device
Falzone et al. Measuring similarity for technical product descriptions with a character-level siamese neural network
Yang et al. Lightweight Fine-tuning a Pretrained Protein Language Model for Protein Secondary Structure Prediction
Iyer et al. Fast multi-modal reuse: co-occurrence pre-trained deep learning models
US20220318508A1 (en) N-gram based classification with associative processing unit
Tavakoli Locality Sensitive Hashing-based Sequence Alignment Using Deep Bidirectional LSTM Models
Liu et al. Multi-label classification using random walk with restart

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant