WO2017098475A1 - Bayesian visual interactive search - Google Patents
Bayesian visual interactive search Download PDFInfo
- Publication number
- WO2017098475A1 WO2017098475A1 PCT/IB2016/057510 IB2016057510W WO2017098475A1 WO 2017098475 A1 WO2017098475 A1 WO 2017098475A1 IB 2016057510 W IB2016057510 W IB 2016057510W WO 2017098475 A1 WO2017098475 A1 WO 2017098475A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- documents
- document
- candidate list
- user
- candidate
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
- G06F16/3346—Query execution using probabilistic model
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N5/00—Computing arrangements using knowledge-based models
- G06N5/02—Knowledge representation; Symbolic representation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N7/00—Computing arrangements based on specific mathematical models
- G06N7/01—Probabilistic graphical models, e.g. probabilistic networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
Definitions
- the invention relates generally to a tool for searching for digital documents in an interactive and visual way.
- digital documents include: photographs, product descriptions, or webpages.
- this tool may be used on a mobile device to search for furniture available for sale via an online retailer.
- this invention relates to document retrieval with relevance feedback.
- an aspect of the present disclosure is to provide a system that uses a novel, visual and iterative search technique with relative feedback.
- a non-transitory computer-readable recording medium which contains software code portions that implement aspects of the above-described method.
- a system which includes one or more processors coupled to memory, the memory being loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions of the above-describe method.
- a non-transitory computer-readable recording medium which contains software code portions that implement aspects of the above-described method.
- a system which includes one or more processors coupled to memory, the memory being loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions of the above-describe method.
- a non-transitory computer-readable recording medium which contains software code portions that implement aspects of the above-described method.
- a system which includes one or more processors coupled to memory, the memory being loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions of the above-describe method.
- a non-transitory computer-readable recording medium which contains software code portions that implement aspects of the above-described method.
- a system which includes one or more processors coupled to memory, the memory being loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions of the above-describe method.
- Fig. 1 is a block diagram of various components of a visual interactive search system according to an implementation of the present disclosure.
- Fig. 2 illustrates a visual interactive search system according to an implementation of the present disclosure.
- FIG. 3 is a block diagram of a user computer and/or a server computer, as illustrated in Fig. 2, that can be used to implement software incorporating aspects of the visual interactive search system according to an implementation of the present disclosure.
- Fig. 4 is a flowchart illustrating various logic phases through which a visual interactive search system may proceed according to an implementation of the present disclosure.
- FIG. 5 is a block diagram of various components of a server and a mobile device for implementing the visual interactive search system according to an implementation of the present disclosure.
- Fig. 6 illustrates contents of a constraints database of Fig. 5 according to an implementation of the present disclosure.
- Fig. 7 is a diagram illustrating primary types of messages that pass between a mobile device and a server, as illustrated in Fig. 6, according to an implementation of the present disclosure
- FIGs. 8, 9, 10, 11, 12, 13A and 13B illustrate specific implementations of embedding documents in an embedding space according to an implementation of the present disclosure.
- Fig. 14 illustrates a visual interface that enables searching for shoes using a visual interactive search environment on a mobile device according to an implementation of the present disclosure.
- Fig. 15 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement a purchase of a physical product such as clothing, jewelry, furniture, shoes, accessories, real estate, cars, artwork, photographs, posters, prints, and home decor according to an implementation of the present disclosure.
- Fig. 16 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement a purchase of a digital product such as movies, music, photographs and books according to an implementation of the present disclosure.
- Fig. 17 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement an identification of digital product that can be used to produce a physical product according to an implementation of the present disclosure.
- Fig. 18 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement an identification of content for sharing according to an implementation of the present disclosure.
- Fig. 19 is a flowchart illustrating Bayesian techniques for choosing and presenting collections of documents according to an implementation of the present disclosure.
- Fig. 20 is a flowchart illustrating scaling Bayesian techniques for choosing and presenting collections of documents using Neighbor Graphs and Markov Chain Monto according to an implementation of the present disclosure.
- Fig. 21 is a flowchart illustrating a creation of a Neighbor Graph of all documents in a candidate list according to an implementation of the present disclosure.
- Figs. 22 A, 22B, 22C and 22D illustrate the creation of the Neighbor Graph in a candidate list from a perspective of a two-dimensional embedding space.
- Fig. 23 is a flowchart illustrating improving a k'th tour in a Neighbor Graph by rearranging vertices to shorten distances between neighbors in a Neighbor Graph according to an implementation of the present disclosure.
- Fig. 24 is a flowchart illustrating a repairing of a k'th tour in a Neighbor Graph to eliminate edges that are redundant with prior tours in the Neighbor Graph according to an implementation of the present disclosure.
- Fig. 25 is a flowchart illustrating a determination of a next collection of documents from a candidate list using Markov Chain Monte-Carlo to complete a walk through the Neighbor Graph according to an implementation of the present disclosure.
- Fig. 26 is a flowchart illustrating various logic phases for learning distances for a subject domain, such as a catalog of documents of an embedding space according to an implementation of the present disclosure.
- Figs. 1-4 illustrate an overall high-level architecture and process flow of a visual interactive search system
- Figs. 5-7 illustrate a mobile device and server implementation of a visual interactive search system
- Figs. 8-13B illustrate specific implementations of embedding documents in an embedding space
- Figs. 14-18 illustrate various implementations of the visual interactive search system for searching for physical and digital products
- Fig. 19 illustrates an implementation of Bayesian techniques for identifying collections of documents
- Figs. 20-25 illustrate an implementation of scaled Bayesian techniques for identifying collections of documents
- Fig. 26 illustrates a process for learning distances between documents in the embedding space.
- a system can have several aspects, and different implementation need not implement all of the following aspects: 1) a module for creating an initial query, 2) a module for obtaining a set of candidate results satisfying the initial query, 3) a module for determining the distance or similarity between candidate results or a module for embedding the candidate results in a vector space, 4) a module for sub-selecting a discriminating set of candidate results, 5) a module for arranging candidate results in 2 dimensions, 6) a module for obtaining user input with regard to the candidate results, 7) a module for refining the search query to incorporate information regarding the user input encoded as geometric or distance constraints with respect to the embedding or distance measures of 3, and 8) a module for iteratively obtaining a set of candidate results satisfying the initial query and the geometric or distance constraints accumulated from user input.
- Fig. 1 is a block diagram of various components of an of a visual interactive search system according to an implementation of the present disclosure.
- a block diagram 100 of a visual interactive search system includes an embedding module 110 which calculates an embedding of source documents into an embedding space, and writes embedding information, in association with an identification of the documents, into a document catalog database (e.g., document catalog) 120.
- a user interaction module 130 receives queries and query refinement input (such as relevance feedback) from a user, and provides the received queries and query refinement input to a query processing module 140.
- the user interaction module 130 includes a computer terminal, whereas in another implementation the user interaction module 130 includes only certain network connection components through which the system communicates with an external computer terminal.
- the query processing module 140 interprets the queries as geometric constraints on the embedding space, and narrows or otherwise modifies a catalog of documents obtained from the embedding space to develop a set of candidate documents which satisfy the geometric constraints. These candidate documents are written into a candidate space database 150.
- Candidate spaces as used herein are also embedding spaces, and for example may constitute a portion of the embedding space of the document catalog database 120.
- the query processing module 140 may also perform a re- embedding of the candidate documents in embedding space.
- a discriminative selection module 160 selects a discriminative set of the documents from the candidate space database 150 and presents the discriminative set of the documents to the user via the user interaction module 130.
- the user interaction module 130 may then receive further refinement queries from the user, which are handled as above, or the user interaction module 130 may receive a user commit indication, in which case the system takes some action using an action module 170 with respect to the user's selected document.
- the action taken by the action module 170 could be opening a document for the user, engaging in further search refinement, processing the user's selected document as an order for a product represented by the document, processing the user's selected document as an order for delivery of a digital product represented by the document, processing the user's selected document as an order for a product represented by the document to be manufactured and shipped, or processing the user's selected document as a request for sharing with others digital content represented by the document.
- the user refinement input may not require a further geometric constraint on the candidate space database 150, but rather may involve only selection of a different discriminative set of documents from the existing candidate space database 150 for presentation to the user.
- the candidate space database may not be implemented as a separate database, but rather may be combined in various ways with the document catalog database 120.
- the candidate space database 150 may also be implied rather than physical in some implementations.
- Fig. 2 illustrates a visual interactive search system according to an implementation of the present disclosure.
- a system 200 includes a user computer 210 and a server computer 212, connected to each other via a network 214 such as the Internet.
- the server computer 212 has accessibly thereto the document catalog database 120 (as also illustrated in Fig. 1) identifying documents in association with embedding information, such as relative distances and/or positions of the documents in a vector space.
- the user computer 210 also in various implementations may or may not have accessibly thereto a document catalog database 218 identifying the same information as identified in the document catalog database 120.
- the embedding module 110 analyzes a catalog of documents to extract embedding information about the documents. For example, if the documents are photographs, the embedding module 110 may include a neural network and may use deep learning to derive embedding image information from the photographs.
- the embedding module 110 may derive a library of image classifications (axes on which a given photograph may be placed), each in association with an algorithm for recognizing in a given photograph whether (or with what probability) the given photograph satisfies that classification. Then the embedding module 110 may apply its pre- developed library to a smaller set of newly provided photographs, such as the photos currently on the user computer 210, in order to determine embedding information applicable to each photograph. Either way, the embedding module 110 writes into the document catalog database 120 the identifications of the catalog of documents that the user may search, each in association with the corresponding embedding information.
- the embedding information that the embedding module 110 writes into document catalog database 120 may be provided from an external source, or entered manually.
- the iterative identification steps described above can be implemented in a number of different ways.
- all computation takes place on the server computer 212, as the user iteratively searches for a desired document.
- the operations of the query processing module 140 and the discriminative selection module 160 may take place on the server computer 212.
- the user, operating the user computer 210 sees all results only by way of a browser. In this implementation, it is not necessary that the user computer 210 have the document catalog database 218 accessibly thereto.
- the server computer 212 transmits its entire document catalog database 120 or a subset of thereof to the user computer 210.
- the user computer 210 can write the document catalog database 120 or the subset thereof into its own document catalog database 218. All computation takes place on the user computer 210 in such an implementation, as the user iteratively searches for a desired document. Many other arrangements are possible as well.
- Fig. 3 is a block diagram of a user computer and/or a server computer, as illustrated in Fig. 2, that can be used to implement software incorporating aspects of the visual interactive search system according to an implementation of the present disclosure.
- FIG. 3 may also generally represent any device discussed in the present disclosure and/or illustrated in any of the figures.
- the present disclosure may also be references the server computer 212 or any other type of computer and/or computer system disclosed herein.
- any of the method, logic steps or modules for carrying out specified operations as discussed in the present disclosure or as illustrated in the figures may be carried out using the some or all of the components illustrated in Fig. 3.
- the user computer 210 typically includes a processor subsystem 314 which communicates with a number of peripheral devices via a bus subsystem 312. These peripheral devices may include a storage subsystem 324, including a memory subsystem 326 and a file storage subsystem 328, user interface input devices 322, user interface output devices 320, and a network interface subsystem 316.
- the user interface input devices 322 and the user interface output devices 320 allow user interaction with the user computer 210.
- the network interface subsystem 316 provides an interface to outside networks, including an interface to a communication network 318, and is coupled via the communication network 318 to corresponding interface devices in other computer systems.
- the communication network 318 may comprise many interconnected computer systems and communication links.
- These communication links may be wireline links, optical links, wireless links, or any other mechanisms for communication of information, but typically the communication network 318 is an internet protocol (IP)-based communication network. While in one implementation, the communication network 318 is the Internet, in other implementations, the communication network 318 may be any suitable computer network.
- IP internet protocol
- NICs network interface cards
- ICs integrated circuits
- ICs integrated circuits
- macrocells fabricated on a single integrated circuit chip with other components of the computer system.
- the user interface input devices 322 may include a keyboard, pointing devices such as a mouse, trackball, touchpad, or graphics tablet, a scanner, a touch screen incorporated into a display, audio input devices such as voice recognition systems, microphones, and other types of input devices.
- pointing devices such as a mouse, trackball, touchpad, or graphics tablet
- audio input devices such as voice recognition systems, microphones, and other types of input devices.
- use of the term "input device” is intended to include all possible types of devices and ways to input information into the user computer 210 or onto the communication network 318. It is by way of the user interface input devices 322 that the user provides queries and query refinements to the system.
- the user interface output devices 320 may include a display subsystem, a printer, a fax machine, or non-visual displays such as audio output devices.
- the display subsystem may include a cathode ray tube (CRT), a flat-panel device such as a liquid crystal display (LCD), a projection device, or some other mechanism for creating a visible image.
- the display subsystem may also provide non-visual display via audio output devices.
- output device is intended to include all possible types of devices and ways to output information from the user computer 210 to the user or to another machine or computer system. It is by way of the user interface output devices 320 that the system presents query result layouts toward the user.
- the storage subsystem 324 stores the basic programming and data constructs that provide the functionality of certain implementations of the present disclosure.
- the various software modules implementing the functionality of certain implementations of the present disclosure may be stored in the storage subsystem 324. These software modules are generally executed by the processor subsystem 314.
- the memory subsystem 326 typically includes a number of memories including a main random access memory (RAM) 330 for storage of instructions and data during program execution and a read only memory (ROM) 332 in which fixed instructions are stored.
- File storage subsystem 328 provides persistent storage for program and data files, and may include a hard disk drive, a floppy disk drive along with associated removable media, a CD ROM drive, an optical drive, or removable media cartridges. Databases and modules implementing the functionality of certain implementations of the present disclosure may have been provided on a computer readable medium such as one or more CD-ROMs, and may be stored by the file storage subsystem 328.
- the memory subsystem 326 contains, among other things, computer instructions which, when executed by the processor subsystem 314, cause the computer system to operate or perform functions as described herein.
- processes and software that are said to run in or on "the host” or "the computer,” execute on the processor subsystem 314 in response to computer instructions and data in the memory subsystem 326 including any other local or remote storage for such instructions and data.
- the user computer 210 itself can be of varying types including a personal computer, a portable computer, a workstation, a computer terminal, a network computer, a television, a mainframe, a server farm, or any other data processing system or user device.
- the user computer 210 may be a hand-held device such as a tablet computer or a smart-phone.
- a "system” performs all the operations described herein, and the "system” can be implemented as a single computer or multiple computers with any desired allocation of operations among the different member computers. Due to the ever-changing nature of computers and networks, the description of the user computer 210 depicted in Fig. 3 is intended only as a specific example for purposes of illustrating the preferred implementations of the present disclosure. Many other configurations of the user computer 210 are possible having more or less components than the user computer depicted in Fig. 3.
- Fig. 4 is a flowchart illustrating various logic phases through which a visual interactive search system may proceed according to an implementation of the present disclosure.
- the various logic phases generally include (i) embedding documents, which requires a defining of distances and similarities between the digital documents and database organization of the embedded digital documents, (ii) an implementation of an initial query to identify an initial candidate space, (iii) selecting an initial collection of documents to present to the user, (iv) an identification of candidate results in dependence on user input, (v) obtaining a discriminative result set in dependence on the user input, (vi) presenting results to the user, and (vii) obtaining user input for further refinement.
- a catalog of digital documents (e.g., images, text, web- pages, catalog entries, sections of documents, etc.) is embedded in an embedding space and stored in a database.
- this group of documents may be referred to herein as a "catalog," the use of that term is not intended to restricted the group to documents that might be found in the type of catalog that a retail store might provide.
- a distance is identified between each pair of the documents in the embedding space corresponding to a predetermined measure of dissimilarity between the pair of documents. Specific implementations of embedding documents are further illustrated in Figs. 8-13B, discussed below.
- the "embedding space,” into which (digital) documents are embedded by the embedding module 110 (see Figs. 1 and 2) as described in operation 410, can be a geometric space within which documents are represented.
- the embedding space can be a vector space and in another implementation the embedding space can be a metric space.
- the features of a document define its "position" in the vector space relative to an origin. The position is typically represented as a vector from the origin to the document's position, and the space has a number of dimensions based on the number of coordinates in the vector.
- Vector spaces deal with vectors and the operations that may be performed on those vectors.
- the embedding space When the embedding space is a metric space, the embedding space does not have a concept of position, dimensions or an origin. Distances among documents in a metric space are maintained relative to each other, rather than relative to any particular origin, as in a vector space. Metric spaces deal with objects combined with a distance between those objects and the operations that may be performed on those objects.
- these objects are significant in that many efficient algorithms exist that operate on vector spaces and metric spaces. For example metric trees may be used to rapidly identify objects that are "close" to each other. Objects can be embedded into vector spaces and/or metric spaces. In the context of a vector space this means that a function can be defined that maps objects to vectors in some vector space. In the context of a metric space it means that it is possible to define a metric (or distance) between those objects, which allows the set of all such objects to be treated as a metric space.
- Vector spaces allow the use of a variety of standard measures of distance (divergence) including the Euclidean distance. Other implementations can use other types of embedding spaces.
- an embedding is a map which maps documents into an embedding space.
- an embedding is a function which takes, as inputs, a potentially large number of characteristics of the document to be embedded.
- the mapping can be created and understood by a human, whereas for other embeddings the mapping can be very complex and non-intuitive. In many implementations the latter type of mapping is developed by a machine learning algorithm based on training examples, rather than being programmed explicitly.
- each document In order to embed a document catalog in a vector space each document must be associated with a vector. A distance between two documents in such a space is then determined using standard measures of distance using vectors.
- a goal of embedding documents in a vector space is to place intuitively similar documents close to each other.
- a common way of embedding text documents is to use a bag-of-words model.
- the bag of words model maintains a dictionary.
- Each word in the dictionary is given an integer index, for example, the word aardvark may be given the index 1, and the word zebra may be given the index 60,000.
- Each document is processed by counting the number of occurrences of each dictionary word in that document.
- a vector is created where the value at the i th index is the count for the i th dictionary word. Variants of this representation normalize the counts in various ways.
- Such an embedding captures information about the content and therefor the meaning of the documents. Text documents with similar word distributions are close to each other in this embedded space.
- images may be processed to identify commonly occurring features using, e.g., scale invariant feature transforms (SIFT), which are then binned and used in a representation similar to the bag-of-words embedding described above.
- SIFT scale invariant feature transforms
- embeddings can be created using deep neural networks, or other deep learning techniques. For example a neural network can learn an appropriate embedding by performing gradient descent against a measure of dimensionality reduction on a large set of training data. As another example, a kernel can be learned based on data and derive a distance based on that kernel. Likewise distances may be learned directly.
- an embedding can be learned using examples with algorithms such as Multi-Dimensional Scaling, or Stochastic Neighbor Embedding.
- An embedding into a vector space may also be defined implicitly via a Kernel. In this case the explicit vectors may never be generated or used, rather the operations in the vector space are carried out by performing Kernel operations in the original space.
- Other types of embeddings of particular interest capture date and time information regarding the document, e.g., the date and time when a photograph was taken.
- a Kernel may be used that positions images closer if they were taken on the same day of the week in different weeks, or in the same month but different years. For example, photographs taken around Christmas may be considered similar even though they were taken in different years and so have a large absolute difference in their timestamps. In general, such Kernels may capture information beyond that available by simply looking at the difference between timestamps.
- embeddings capturing geographic information may be of interest. Such embeddings may consider geographic meta-data associated with documents, e.g., the geo-tag associated with a photograph. In these cases a Kernel or embedding may be used that captures more information than simply the difference in miles between two locations. For example, it may capture whether the photographs were taken in the same city, the same building, or the same country.
- a product may be embedded in terms of the meta-data associated with that product, the image of that product, and the textual content of reviews for that product.
- Such an embedding may be achieved by developing Kernels for each aspect of the document and combining those Kernels in some way, e.g., via a linear combination.
- Different embeddings may be appropriate on different subsets of the document catalog. For example, it may be most effective to re-embed the candidate result sets at each iteration of the search procedure. In this way the subset may be re-embedded to capture the most important axes of variation or of interest in that subset.
- a "distance" between two documents in an embedding space corresponds to a predetermined measurement (measure) of dissimilarity among documents. Preferably it is a monotonic function of the measurement of dissimilarity. Typically the distance equals the measurement of dissimilarity.
- Example distances include the Manhattan distance, the Euclidean distance, and the Hamming distance.
- a metric space or a manifold Given the distance (dissimilarity measure) between documents to be searched, or the embedding of those documents into a vector space, a metric space or a manifold there are a variety of data structures that may be used to index the document catalog and hence allow for rapid search.
- data structures include metric trees, kd-trees, R-trees, universal B-trees, X- trees, ball trees, locality sensitive hashes, and inverted indexes.
- the system can use a combination of such data structures to identify a next set of candidate results based on a refined query.
- An advantage of using geometric constraints is that they may be used with such efficient data structures to identify next results in time that is sub-linear in the size of the catalog.
- a historical text describing the relationship between Anthony and Cleopatra may be similar to other historical texts, texts about Egypt, texts about Rome, movies about Anthony and Cleopatra, and love stories. Each of these types of differences constitutes a different axis relative to the original historical text.
- Such distances may be defined in a variety of ways.
- One typical way is via embeddings into a vector space.
- Other ways include encoding the similarity via a Kernel.
- Kernel By associating a set of documents with a distance we are effectively embedding those documents into a metric space. Documents that are intuitively similar will be close in this metric space while those that are intuitively dissimilar will be far apart. Note further that Kernels and distance functions may be learned. In fact, it may be useful to learn new distance functions on subsets of the documents at each iteration of the search procedure.
- Kernel may be used to measure the similarity between documents instead and vice-versa.
- distances e.g., in the definition of constraints.
- Kernels may be used directly instead without the need to transform them into distances.
- Kernels and distances may be combined in a variety of ways. In this way multiple Kernels or distances may be leveraged. Each Kernel may capture different information about a document, e.g., one Kernel may capture visual information about a piece of jewelry, while another captures price, and another captures brand.
- embeddings may be specific to a given domain, such as a given catalog of products or type of content. For example, it may be appropriate to learn or develop an embedding specific to men's shoes. Such an embedding would capture the similarity between men's shoes be would be uninformative with regard to men's shirts.
- the databases used in an implementation of the present disclosure may use commonly available means to store the data in, e.g., a relational database, a document store, a key value store, or other related technologies.
- a relational database e.g., a relational database
- a document store e.g., a document store
- a key value store e.g., a document store
- the original document contents e.g., pointers to them
- indexing structures are critical.
- documents are embedded in a vector space indexes may be built using, e.g., kd- trees.
- documents are associated with a distance metric and hence embedded in metric space metric trees may be used.
- the databases described herein are stored on one or more non-transitory computer readable media. As used herein, no distinction is intended between whether a database is disposed "on” or “in” a computer readable medium. Additionally, as used herein, the term “database” does not necessarily imply any unity of structure. For example, two or more separate databases, when considered together, still constitute a “database” as that term is used herein.
- an initial query is optionally processed to yield an initial candidate space of documents satisfying the query results.
- the initial query may be a conventional text query, for example.
- the initial candidate space is within and optionally smaller than the full catalog of documents.
- the initial query presented may be created and evaluated using a variety of standard techniques.
- the initial query may be presented as a set of keywords entered via a keyboard or via speech
- the initial query may be a natural language phrase, or sentence entered via a keyboard or via speech
- the initial query may be an audio signal, an image, a video, or a piece of text representing a prototype for which similar audio signals, images, videos, or text may be sought.
- a variety of means are known by which such an initial query may be efficiently evaluated, e.g., searching a relational database, or using an inverted index.
- the initial query may also be designed to simply return a random set of results or the initial query may be empty such that it imposes no constraints.
- a faceted search provides a means for users to constrain a search along a set of axes.
- the faceted search might provide a slider that allows users to constrain the range of acceptable prices.
- the search constraints created from the initial query can be used to identify a set of candidate results. This may be achieved using a variety of means.
- the initial query may be performed against a relational database whereby the results are then embedded in a vector or metric space. These results may then be indexed using, e.g., a kd-tree or a metric tree and searched to identify candidates that satisfy both the initial query and the constraints.
- the initial query may also be converted to geometric constraints that are applied to the set of embedded documents. For example, the geometric representation of the constraints implied both by the initial query and the user input are combined and an appropriate index is used to identify embedded documents satisfying both sets of constraints. Geometric constraints are discussed in more detail below with reference to operation 418.
- an initial collection of digital documents is derived from the initial candidate space.
- This initial collection of documents is a subset of the initial candidate space.
- the term "subset” refers only to a "proper" subset.
- the initial collection of documents is selected as a discriminative subset of the catalog, while in another implementation the initial collection of documents is not discriminative.
- the initial collection of documents is identified toward the user.
- this operation can include displaying a representation of the documents in the initial collection visibly to the user.
- the user provides relative and/or categorical feedback as to the documents in the (i-l)'th collection of documents.
- the relative feedback takes the form of user selection of a subset of the documents from the (i-l)'th collection, where selection of a document implies that the user considers that document to be more relevant to a search target than unselected documents from the (i-l)'th collection.
- the selected subset in the i'th iteration is referred to herein as the i'th selected subset, and those documents from the (i-l)'th collection which were not selected are sometimes referred to herein collectively as the i'th non-selected subset.
- Relative feedback and categorical feedback both can be considered forms of "relevance feedback.”
- a set of geometric constraints is derived from the relative feedback, in a manner described elsewhere herein.
- the set of geometric constraints derived in the i'th iteration is referred to as the i'th set of geometric constraints.
- the i'th set of geometric constraints is applied to the embedding space to form an i'th candidate space, and in operation 422 an i'th collection of candidate documents is selected as a subset of the documents in the i'th candidate space.
- the i'th collection of documents is selected as a discriminative subset of the i'th candidate space, while in another implementation the i'th collection of documents is not discriminative.
- a "geometric constraint" applied to an embedding space is a constraint that is described formulaically in the embedding space, rather than only by cataloguing individual documents or document features to include or exclude.
- the geometric constraint is defined based on distance (or similarity) to at least two documents that the user has seen. For example, such a constraint might be expressed as, "all documents which are more similar to document A than to document B.”
- the constraint can be described in the form of a specified function which defines a hypersurface. Documents on one side of the hypersurface satisfy the constraint whereas documents on the other side do not.
- a hyperplane may be defined in terms of dot products or Kernels and requires that k(x,z) > 0 for a fixed vector x and a candidate z. Likewise a conic constraint may require that k(x,z) > c for some constant c.
- the constraint can be described in the form of a function of, for example, distances between documents.
- a geometric constraint might take the form of 'all documents within a specified distance from document X', for example, or 'all documents whose distance to document A is less than its distance to document B'.
- a hyperplane defined for a metric space takes the form of an "m-hyperplane," which, as used herein, is defined by two points a and b in the metric space as follows:
- the geometric constraint is considered satisfied for only those documents which are located in a specified one of the partitions A or B of the metric space.
- Geometric constraints also may be combined using set operations, e.g., union, intersection to define more complex geometric constraints. They also may be created by taking transformations of any of the example constraints discussed. For example, a polynomial function of distances, e.g., d(x,z) * d(x,z) + d(y,z) ⁇ d(w, z) for given documents x, y, and w can be used, where only those documents z which satisfy the function are considered to satisfy the geometric constraint.
- Kernels may be used independently of distances and constraints may be expressed directly in terms of Kernels, polynomials of Kernels, transformations of Kernels, or combinations of Kernels.
- each iteration of a user search sequence identifies a new constraint, and the result set at that iteration is defined by the combined effect of all the constraints. For example if a constraint is represented as a hypersurface, where only those candidates on side A of the hypersurface are considered to satisfy the constraint, then the result set at a given iteration might be considered to be all those candidate documents which are within the intersection of the sides A of all the constraint hypersurfaces.
- constraints may be "hard” or "soft.” Hard constraints are those which must be satisfied in the sense that solutions must satisfy the conditions of all hard constraints.
- Soft constraints are those which need not be satisfied but candidate solutions may be penalized for each soft constraint that they don't satisfy. Solutions may be rejected in a particular implementation if the accumulation of such penalties is too large. Constraints may be relaxed in some implementations, for example hard constraints may be converted to soft constraints by associating them with a penalty, and soft constraints may have their penalties reduced.
- One way in which geometric constraints may be represented is to maintain a list of all unordered pairs of documents. Each entry in the list would be a pair (a,b), where a represents one document and b represents another document. The pair (b,a) may also appear in the list. Each entry is understood to mean that a candidate must be closer to the first element than to the second element in the pair. Thus, the two elements of the pair are sometimes referred to herein as "anchor documents.” For example, given document c, the pair (a,b) would be associated with the constraint d(a,c) ⁇ d(b,c). A real number can be associated with each pair.
- number could be 0 or 1 with a 1 meaning that constraint must be satisfied and a 0 meaning that it does not need to be satisfied.
- the number could be any real number representing the penalty associated with breaking that constraint. This information could be maintained in other ways, e.g., using sparse representations. One alternative would be to maintain only those pairs associated with non-zero real numbers.
- each set of geometric constraints derived in operation 418 from the user's relative feedback is to further narrow or modify the prior candidate space so as to form a new candidate space which better approaches the user's desired target.
- the information that the system has about the user's desired target is provided in the form of the user's relative feedback, which is provided in the form of a selection of documents.
- each i'th set of geometric constraints identifies an i'th candidate space such that, according to some predefined definition of collective closeness, the documents in the i'th candidate space are collectively closer in the embedding space to the documents in the i'th selected subset, than are the documents in the (i-l)'th candidate space.
- the predefined definition of collective closeness is defined further such that the documents in a given candidate space are collectively closer to the documents in a given selected subset, than are the documents in a particular prior candidate space, if the fraction of the documents in the given candidate space which are closer in the embedding space to the farthest document in the given selected subset than to the nearest document in the given non-selected subset, is greater than the fraction of the documents in the particular prior candidate space which are closer in the embedding space to the farthest document in the given selected subset than to the nearest document in the given non-selected subset.
- the predefined definition of collective closeness is defined further such that the documents in a given candidate space are collectively closer to the documents in a given selected subset, than are the documents in a particular prior candidate space, if the count, over all documents Y in the given candidate space and all pairs of documents (A,B), A in the i'th selected subset and B in the i'th non-selected subset, of instances in which d(A,Y) ⁇ d(B,Y), is less than the count, over all documents X in the particular prior candidate space and all the pairs of documents (A,B), of instances in which d(A,X) ⁇ d(B,X), each of the counts normalized for any difference between the total number of documents Y in the given candidate space and the total number of documents X in the particular prior candidate space.
- the predefined definition of collective closeness is defined further such that the documents in a given candidate space are collectively closer to the documents in a given selected subset, than are the documents in a particular prior candidate space, if the fraction of the documents Y in the given candidate space which are closer to the documents A in the i'th selected subset, averaged over all the documents A in the i'th selected subset, than they are to the documents B in the i'th non-selected subset, averaged over all the documents B in the i'th non-selected subset, is less than the fraction of the documents X in the particular prior candidate space which are closer to the documents A in the i'th selected subset, averaged over all the documents A in the i'th selected subset, than they are to the documents B in the i'th non-selected subset, averaged over all the documents B in the i
- the predefined definition of collective closeness is defined further such that the documents in a given candidate space are collectively closer to the documents in a given selected subset, than are the documents in a particular prior candidate space, if an aggregation, over all documents Y in the given candidate space and all pairs of documents (A,B), A in the i'th selected subset and B in the i'th non-selected subset, of penalties associated with each instance in which d(A,Y) > d(B,Y), is less than an aggregation, over all documents X in the particular prior candidate space and all the pairs of documents (A,B), of penalties associated with each instance in which d(A,X) > d(B,X), where each instance in which d(A,W) > d(B,W) is satisfied, for a given document W, is pre-associated with a respective penalty
- An advantage of working with geometric constraints is that, in an implementation, the memory and computational resources required to maintain and update the constraints depends on the number of constraints and not on the catalog size. This would, for example, allow constraint management to be performed and maintained on a mobile device such as a phone or tablet, rather than on a server.
- Search queries may be ambiguous, or underspecified and so the documents satisfying a query may be quite diverse. For example, if the initial query is for a "red dress" the results may be quite varied in terms of their length, neckline, sleeves, etc.
- These operations of the present disclosure can be implemented to sub-select a discriminating set of results. Intuitively the objective is to provide a set of results to the user such that selection or de-selection of those results provides the most informative feedback or constraints to the search algorithm. These operations may be thought of as identifying an "informative" set of results, or a "diverse” set of results, or a "discriminating" set of results.
- the discriminative selection module 160 as illustrated in Fig. 1, may perform operation 418, to select a discriminative subset of results in any of a variety of ways.
- a subset of the results may be discriminative as it provides a diversity of different kinds of feedback that the user can select.
- Diverse images may be selected as in, e.g., van Leuken, et al., "Visual Diversification of Image Search Results," in WWW '09 Proceedings of the 18th international conference on World wide web, pp. 341-350 (2009), incorporated by reference herein.
- This diverse set is selected in order to provide the user with a variety of ways in which to refine the query at the next iteration. There are a variety of ways in which such a set may be identified. For example, farthest first traversal may be performed which incrementally identifies the "most" diverse set of results. Farthest first traversal requires only a distance measure and does not require an embedding. Farthest first traversal may also be initialized with a set of results. Subsequent results are then the most different from that initial set.
- discriminative subsets of candidate results include using algorithms such as principal component analysis (PCA) or Kernel PCA to identify the key axes of variation in the complete set of results.
- PCA principal component analysis
- Kernel PCA Kernel PCA
- Another means for selecting discriminative subsets of candidate results might use a clustering algorithm to select discriminative subsets of candidate results.
- a clustering algorithm such as k-means, or k-medoids to identify clusters of similar documents within the candidate results. See http://en.wikipedia.org/wiki/K-means_clustering (visited 29 April 2015) and http://en.wikipedia.org/wiki/K-medoids (visited 29 April 2015), both incorporated by reference herein.
- One or more representative documents would then be selected from each cluster to yield the discriminative subset.
- the medoid of each cluster may be used as one of the representatives for that cluster.
- Still another means might consider the set of constraints that would result from the user selecting or deselecting a given document. This set of constraints may be considered in terms of the candidate results it would yield. A discriminative subset may be selected so that the sets of candidate results produced by selecting any of the documents in that discriminative subset are as different as possible.
- discriminativeness of a particular set of documents in a group of documents is the least number of documents in the group that are excluded as a result of user selection of any document in the set. That is, if user selection of different documents in the particular set results in excluding different numbers of documents in the group, then the set's "discriminate veness" is considered herein to be the least of those numbers. Note that either the discriminative set of documents, or the formula by which user selection of a document determines which documents are to be excluded, or both, should be chosen such that the union of the set of documents excluded by selecting any of the documents in a discriminative set equals the entire group of documents.
- the "average discriminativeness" of a set of size n documents in a group of documents is the average, over all sets of size n documents in the group of documents, of the discriminativeness of that set.
- one particular set of documents can be "more discriminative" than another set of documents if the discriminativeness of the first set is greater than the discriminativeness of the second set.
- the selection module 160 when performing operation 418, selects a set of N1>1 documents from the current candidate space database 150, which is more discriminative than the average discriminativeness of sets of size Nl documents in the candidate space. Even more preferably, selection module 160, when performing operation 418 selects a set which is at least as discriminative as 90% of, or in some implementations all of, other sets of size Nl documents in the current candidate space.
- the selected subset may be chosen to balance discriminativeness with satisfying soft constraints. For example, if soft constraints are used then each document becomes associated with a penalty for each constraint it breaks.
- the selected subset may be chosen to trade-off the total penalties for all candidates in the selected subset, with the discriminativeness of that subset. In particular, the document with the smallest penalty may be preferentially included in the selected subset even if it reduces the discriminativeness.
- constraints may be managed and updated using a machine learning algorithm.
- this may include active learning algorithms, or bandit algorithms. These algorithms identify "informative" (or discriminative) examples at each iteration. When these algorithms are used to manage constraints, their identification of informative examples may be used as the discriminative subset, or as the basis for determining the discriminative subset.
- Bandit algorithms are of particular interest as they seek to trade-off maximizing reward (i.e., finding the target document), with identifying discriminative examples.
- any of the above techniques for selecting a discriminative subset may also be used in the selection of an initial collection of candidate documents to be presented toward the user, either before or after the initial query
- the i'th collection of documents (e.g., the results of operations 418 and 420) is presented toward the user for optional further refinement. These results may be identified as discriminative results, which are presented to the user.
- an aim of the discriminative results presentation to the user in operation 420, by the user interaction module 130, is to provide the user with a framework in which to refine the query constraints.
- results may be presented as a two dimensional grid. Results should be placed on that grid in a way that allows the user to appreciate the underlying distances between those results (as defined using a distance measure or embedding). One way to do this would be to ensure that results that are far from each other with respect to the distance measure are also displayed far from each other on the grid. Another way would be to project the embedding space onto two dimensions for example using multidimensional scaling (MDS) (for example see: Jing Yang, et al., "Semantic Image Browser: Bridging Information Visualization with Automated Intelligent Image Analysis," Proc. IEEE Symposium on Visual Analytics Science and Technology (2006), incorporated herein by reference). Yet another way would be to sub-select axes in the embedding space and position results along those axes.
- MDS multidimensional scaling
- layouts contemplated include 2 dimensional organizations not on a grid (possibly including overlapping results), 3 dimensional organizations analogous to the 2 dimensional organizations. Multi-dimensional organizations analogous to the 2 and 3 dimensional organizations with the ability to rotate around one or more axes.
- M- dimensional layout can be used, where M>1.
- the number of dimensions in the presentation layout need not be the same as the number of dimensions in the embedding space.
- layouts include hierarchical organizations or graph based layouts.
- the document placement in the layout space should be indicative of the relationship among the documents in embedding space.
- the distance between documents in layout space should correspond (monotonically, if not linearly) with the distance between the same documents in embedding space.
- three documents are collinear in embedding space, advantageously they are placed collinearly in layout space as well.
- collinearity in layout space with a candidate document which the system identifies as the most likely target of the user's query (referred to herein as the primary candidate document) indicates collinearity in the embedding space with the primary candidate document.
- the embedding space typically has a very large number of dimensions, and in high dimensional spaces very few points are actually collinear. In an implementation, therefore, documents presented collinearly in layout space indicate only "substantial” collinearity in the embedding space. If the embedding space is such that each document has a position in the space (as for a vector space), then three documents are considered “substantially collinear” in embedding space if the largest angle of the triangle formed by the three documents in embedding space is greater than 160 degrees.
- a group of three documents are considered collinear if the sum of the two smallest distances between pairs of the documents in the group in embedding space equals the largest distance between pairs of the documents in the group in embedding space.
- the three documents are considered “substantially collinear” if the sum of the two smallest distances exceeds the largest distance by no more than 10%.
- coUinearity and substantially coUinearity do not include the trivial cases of coincidence or substantial coincidence.
- operation 424 a determination is made as to whether the user requests further refinement. If the user is satisfied with one of the candidate results (NO in operation 424), then the user essentially indicates to commit to that result and then in operation 426 the system takes action with respect to the user-selected document. If the user input indicates further refinement (YES in operation 424), then the logic returns to operation 415 for the next iteration of the search loop.
- the user interaction module 130 provides the user with a user interface (UI) which allows the user to provide input in a variety of ways.
- This UI can provide interactions with the user in operation 424, as well as operation 416 or any other operation that can benefit from the interaction of the user.
- the user may click on a single result to select it, or may swipe in the direction of a single result to de-select it. Similarly, the user may select or deselect multiple results at a time. For example, this may be done using a toggle selector on each result.
- the user might also implicitly select a set of results by swiping in the direction of a result indicating a desire for results that are more like that result "in that direction.”
- in that direction means that the differences between the primary result and the result being swiped should be magnified. That is, the next set of results should be more like the result being swiped and less like the "primary result.”
- This concept may be generalized by allowing the user to swipe "from” one result "to” another result. In this case new results should be more like the "to” result and less like the "from” result.
- the UI can provide the user with the ability (e.g., via a double-click, or a pinch) to specify that the next set of results should be more like a specific result than any of the other results displayed. That is, the user selects one of the displayed results to indicate that that result is preferred over all other displayed results. This may then be encoded as a set of constraints indicating for each non-selected document that future candidates should be closer (in the embedding space) to the selected document than to that non-selected document.
- This form of feedback in which the user selects documents to indicate they are "more relevant” than the non- selected documents to the user's desired goal, is sometimes referred to herein as “relative feedback.” It is distinct from more traditional “categorical feedback,” in which users are required to select candidates that are and are not relevant. However, in many cases relevant documents are so rare that there may be no such documents available for the user to select. Conversely, implementations of the system herein allow relative feedback where the user identifies more relevant candidates that may not actually be strictly relevant to the target, but still provide significant information to guide further searching. Relative feedback and categorical feedback both can be considered forms of "relevance feedback.”
- One way to encode relative feedback is as a set of geometric constraints on the embedding space. For each non-selected image B a constraint is created of the form d(A,C) ⁇ d(B,C) where A is the selected image and C is the candidate image to which the constraint is applied (d is the distance in the embedding space). A candidate C then satisfies the constraint only if it satisfies d(A,C) ⁇ d(B,C). In this way a single click generates multiple constraints.
- constraints may be combined, e.g., such that the combined constraint is their intersection, and further candidate documents can be given a rank which is a monotonic function of the number of individual ones of the constraints that the candidate breaks (with smaller rank indicating greater similarity to the user's target).
- the constraints may be used as soft constraints by associating each such constraint with a penalty.
- further candidate documents can be given a rank which is a monotonic function of the sum total of the penalties associated with all of the individual constraints that the candidate breaks.
- the rank may be made dependent upon the age of a constraint (how early in the iterative search the constraint was imposed). This may be accomplished in one implementations by determining (or modifying) a penalty associated with each given constraint in dependence upon the iteration number in which the given constraint was first imposed.
- the penalty may be designed to increase with the age of the constraint, whereas in another implementation the penalty may be designed to decrease with the age of the constraint.
- This approach may be extended to allow the user to select multiple images that are more relevant. This feedback may be interpreted such that each of the selected images is more relevant than each of the non-selected images.
- the system might then create a different constraint corresponding to each pair of one selected document and one non- selected document. A total of P*Q constraints are created, where P is the number of selected documents and Q is the number of non-selected documents.
- the UI could provide the inverse ability, i.e., it may allow the user to select less relevant rather than more relevant images and the above description would be modified appropriately.
- the UI can also provide the ability to specify that the next set of results should be like a particular selection but more diverse than the currently selected set of results.
- the UI can provide the user with the ability to remove previously added constraints.
- a stack (or history) of constraints is maintained.
- the UI provides the user with the ability to remove constraints from the stack and hence remove constraints that were previously added.
- the UI may display the sequence of selected images and allow the user to remove a single (previously selected image) and its associated constraints, or may allow the user to go back to a previous state by sequentially removing images (and their associated constraints) from the stack. This may be achieved with a "back button," or by displaying the stack on the user interface.
- the UI may also provide the ability for the user to specify that a different set of similarly diverse images be provided. Further, the UI may also provide the ability for the user to provide multiple different kinds of feedback.
- the system then incorporates the user's input to create a refined query, such as in operation 424, which loops back to operation 416.
- the refined query includes information regarding the initial query and information derived from the iterative sequence of refinements made by the user so far.
- This refined query may be represented as a set of geometric constraints that focus subsequent results within a region of the embedding space. Likewise, it may be represented as a set of distance constraints whose intersection defines the refined candidate set of results. It may also be represented as a path through the set of all possible results.
- the refined query may include constraints that require subsequent results to be within a specified distance of one of the selected candidate results.
- the refined query may include constraints that require subsequent results to be closer (with respect to the distance measure) to one candidate result than to another.
- These constraints are combined with the previously identified constraints in a variety of ways. For example, candidates may be required to satisfy all of these constraints, or may be required to satisfy a certain number of all constraints, or, in the case of soft constraints, they may be charged a penalty for each constraint they break.
- Another way to manage constraints and refine the query is to use a machine learning algorithm, see below. Further, users may specify incompatible constraints.
- a system according to the present disclosure may have the ability to relax, tighten, remove, or modify constraints that it determines are inappropriate.
- constraints may be relaxed or removed.
- the UI may provide a means for the user to remove previously added constraints, or to remove constraints from a history, i.e., to "go back.”
- Another way in which the system might relax or tighten constraints is in the context of soft constraints.
- the geometric constraints are treated as soft constraints, i.e., a penalty is charged for each broken constraint, then these penalties may be different for each constraint.
- older constraints may have smaller or larger penalties than newer constraints.
- newer constraints are those which were added in recent iterations, while older constraints are those which were added in earlier iterations.
- the candidate results may then be documents that have smaller total penalties summed over all such constraints.
- the candidate result set is then all documents whose total penalty is less than some predetermined value, or only the N documents having the smallest total penalty, where N is a predefined integer.
- the geometric constraints may be updated and maintained using the machine learning algorithm, as mentioned above.
- the user's feedback is treated as training data to which the machine learning algorithm is applied, and the result of that application yields a model (also sometimes referred to herein as a hypothesis) of the user's desired target, that may in some cases be a geometric constraint.
- the resulting constraint is typically not expressed directly in terms of the user's feedback. That is, the resulting model does not explicitly test for the distances between candidate documents and documents for which the user has provided feedback, rather this relationship is indirect or implicit.
- rank order learning algorithms sometimes refer to the geometric constraints developed in operation 414 as a "hypothesis" or "model.”
- the development of geometric constraints in operation 414 involves training or updating the current hypothesis or model based on the user feedback combined with the feedback from previous iterations.
- the subset of candidates presented toward the user in operations 420-423 typically would be some limited number of the highest ranking documents based on the current hypothesis. This would not necessarily be a "discriminative" subset.
- some learning algorithms also naturally identify informative or discriminative documents as part of their process of hypothesis development. These are typically documents that when labeled as relevant or irrelevant and added to the training set will most improve the model.
- operation 418 may select a discriminative subset merely involves selecting the documents already identified naturally in operation 416, and the subset of candidates presented toward the user in operation 423 is indeed discriminative.
- Support Vector Machines e.g. Tong, et al., "Support Vector Machine Active Learning for Image Retrieval," In Proceedings of the ACM International Conference on Multimedia, 12 pages, ACM Press, 2001, incorporated by reference herein; or Tieu et al., "Boosting Image Retrieval,” International Journal of Computer Vision 56(1/2), pp. 17-36, 2004, Accepted July 16, 2003, incorporated by reference herein).
- Support Vector Machines maintain a single hyperplane in the embedding space.
- Variants of Support Vector Machines may use active learning not only to identify new constraints at each iteration, but also to select an informative set of candidate documents at each iteration.
- Online learning algorithms maintain a model or hypothesis that is incrementally updated based on training data. That is, these algorithms do not require access to the complete set of training data, or in the present context the complete set of user feedback. When new training data is presented, these algorithms can update their model or hypothesis without having to re-train the system with previously seen training data. Rather these algorithms maintain a model or hypothesis that is updated incrementally based only on the most recent set of feedback. Because of this they can require substantially less memory and/or computational resources, allowing them, for example, to be performed on a mobile device. In the context of the present description the hypothesis may be used to represent the geometric constraints.
- it may represent a hyperplane in the embedding space, or it may represent a weighted combination of items in a catalog where items with larger weight are understood to be closer to the target item.
- Users' feedback is interpreted as the training data that the online learning algorithm uses to learn from. That is, the online learning algorithm updates its hypothesis (geometric constraints) based on this feedback.
- the online learning algorithm uses the "Prediction with Expert Advice” framework (Cesa-Bianchi et al., Prediction, Learning, and Games, Cambridge University Press, 2006, incorporated by reference herein).
- each catalog item (document) is interpreted as an expert and assigned a weight. Initially, these weights are all the same.
- Each catalog item when combined with the associated distance can be understood to provide an ordering of the catalog. Specifically, for a catalog item A, all other items in the catalog, X for example, may be assigned a number corresponding their distance, e.g., d(A, X). The items in the catalog may then be sorted using that number, i.e., d(A, X).
- each expert corresponding to a catalog item e.g., A
- recommends the selection of the item e.g., X
- the weight of each expert is then increased or decreased depending on whether the user selected that expert's highest ranked item. Proceeding iteratively the item the user is searching for will be correct (i.e., recommend the correct item from the candidate set) more often than any other item and so will obtain the largest weight.
- online learning algorithms do not also provide a natural means to yield a discriminative subset. However, they may be combined with a variety of other means to do so including means based on PCA, clustering, or any other means by which a highly discriminative subset can be chosen including brute force search methods.
- Multi-armed bandit algorithms are closely related to the "Prediction with Expert Advice” framework. Similarly to online learning algorithms these algorithms maintain a hypothesis that is incrementally updated based on user feedback. Rather than maintain the complete set of user feedback they update their hypothesis based only on the most recent feedback. Again, this means that these algorithms may require fewer computational resources and may therefore be performed on a mobile device. This would allow the constraints to be managed on the mobile device rather than on a separate server. These algorithms likewise maintain a set of experts (referred to as "arms”) and seek to identify a good one. The key distinction (in the present setting) is that at each round these algorithms select one or more "arms" (or experts) to play. In the present context "play" means present to the user. Arms are selected so as to balance two goals: play good arms, and learn which arms are good. The user feedback is then interpreted as reward to the selected arms, e.g., if the user clicks on one of the arms that may translate to high reward.
- each item (document) in the catalog is associated with an arm (expert).
- Each arm is associated with an estimate of its reward (i.e., its suitability as the solution to the query) and a confidence interval (certainty value) for that estimate. Initially, all of the reward estimates are equal and all of the certainties are identical.
- the “discriminative set" is selected as the "discriminative set" and presented to the user. The user clicks on one of the candidates and the corresponding arm is provided with high reward. The other candidates are provided with low reward. The corresponding reward estimates are updated.
- the certainty of each of the arms in the candidate set is increased as more data has been collected to estimate its reward.
- the algorithm selects another set of candidates (arms) such that the set contains arms with either high reward or large uncertainty about their reward or both. Proceeding iteratively, the target of the user's search will obtain a highly certain estimate of high reward and be identified as the best arm.
- operation 410 occurs continuously in the background, separately from the remainder of the operations, and updates the document catalog in the embedding space asynchronously with the remainder of the operations.
- Fig. 4 can be implemented using processors programmed using computer programs stored in memory accessible to the computer systems and executable by the processors, by dedicated logic hardware, including field programmable integrated circuits, or by combinations of dedicated logic hardware and computer programs.
- Each block in the flowchart or phase in a logic sequence describes logic that can be implemented in hardware or in software running on one or more computing processes executing on one or more computer systems.
- each operation of the flowchart or phase in a logic sequence illustrates or describes the function of a separate module of software.
- the logic of the operation is performed by software code routines which are distributed throughout more than one module.
- a “module” can include one or more "sub-modules,” which are themselves considered herein to constitute “modules.”
- sub-modules themselves considered herein to constitute “modules.”
- all fiowcharts and logic sequences herein it will be appreciated that many of the operations can be combined, performed in parallel or performed in a different sequence without affecting the functions achieved.
- a rearrangement of operations will achieve the same results only if certain other changes are made as well.
- a re-arrangement of operations will achieve the same results only if certain conditions are satisfied.
- the development and maintenance of new or updated constraints is performed on a mobile device, whereas the document catalog in embedding space is maintained on a server which is separated from the mobile device by a network that includes a Wi-Fi or cellular data link or both.
- the overall arrangement still performs the operations of Fig. 4 (with its variations as described elsewhere herein), but the arrangement embodies a specific and highly advantageous allocation of functions among the two nodes.
- the memory and computational resources required to maintain and update the constraints are minimal enough as to allow constraint management to be performed and maintained on a mobile device such as a phone or tablet, rather than on a server.
- FIG. 5 is a block diagram of various components of a server 510 and a mobile device 512 for implementing the visual interactive search system as discussed above with reference to Figs. 1-4.
- the server 510 has accessibly thereto a document catalog database 516 previously embedded into an embedding space.
- the server 510 also includes a candidate space identification module 524, which has access to the document catalog database 516.
- the candidate space identification module 524 determines the candidate space at each iteration of the search, by applying the initial query and the then-current set of constraints to the documents in the document catalog database 516.
- the resulting candidate space is stored temporarily into a candidate space database 526.
- the candidate space database 526 contains pointers to documents in the document catalog database 516, rather than any actual documents.
- the server 510 also optionally includes a discriminative selection module 528, which selects a discriminative collection of the documents from the candidate space database 526 for transmission to the mobile device 512.
- the mobile device 512 includes a user interaction module 522, which presents collections of documents to the user at each iteration, and receives user feedback concerning the collection.
- the user interaction module 522 forwards the user feedback to a constraints management module 532, which manages content of a constraints database 534. If the user interaction module 522 receives a user commit indication, it notifies an action module 530 which takes some action with respect to the user's selected document such as the actions mentioned elsewhere herein with respect to Fig. 5.
- Fig. 6 illustrates content of the constraints database 534 of Fig. 5 according to an implementation of the present disclosure.
- the constraints database 534 contains a last-in-first-out stack, in which each level corresponds to a respective iteration of the search.
- Each i'th level stores sufficient information to identify the geometric constraints that resulted from the user's i'th iteration of feedback in response to viewing a collection of documents that were presented to the user.
- all the constraints in effect for each iteration of the search are described in the stack entry for that iteration.
- constraints are cumulative, only the set of constraints that were added in each iteration is described in the stack entry for that iteration, all other constraints applicable to that stack entry being implied due to their presence in stack entries corresponding to prior iterations.
- each stack entry "identifies" the set of constraints applicable at the corresponding iteration.
- the stack entry for each i'th iteration contains only two fields: a selected field 610 identifying all of the documents in the i'th iteration that the user selected from a collection of documents with which the user was presented, and a non-selected field 612 identifying all of the documents that were presented to the user for the i'th iteration but which the user did not select.
- the documents identified in the selected field 610 are sometimes referred to herein as the i'th selected subset of documents, and the documents identified in the non-selected field 612 are sometimes referred to herein as the i'th non-selected subset of the documents that the user selected from a collection of documents.
- User selection of the i'th selected subset indicates that the user considers the documents selected as being more relevant to a target than the documents in the i'th non-selected subset.
- Fig. 6 it is assumed, for clarity of illustration, that only three documents were presented to the user at each iteration, and that the user selected only one of them.
- iteration 1 the user was presented with documents A, B and C, and the user selected document A.
- iteration 2 the user was presented with documents D, E and F, and the user selected document D.
- iteration 3 the user was presented with documents G, H and I, and the user selected document G.
- iteration 4 the user was presented with documents J, K and L, and the user selected document J.
- the system interprets each entry to define a separate geometric constraint for each pair of documents identified in the corresponding level of the stack, where one document of the pair is identified in the selected field 610 and the other document of the pair is identified in the non-selected field 612.
- level 1 of the stack defines a constraint using the pair (A,B) and another constraint using the pair (A,C).
- Level 2 of the stack defines a constraint using the pair (D,E) and another constraint using the pair (D,F), and so on.
- the actual constraint is that a candidate document X, in order to satisfy the constraint, must be closer in the embedding space to the first document of the pair than it is to the second document of the pair.
- level 1 of the stack defines the constraints that a candidate document X must be closer to A in the embedding space than it is to B, and also closer to A in the embedding space than it is to C. These constraints are abbreviated for purposes of the present disclosure as
- level 2 of the stack defines the constraints that candidate document X must be closer to D in the embedding space than it is to E, and also closer to D in the embedding space than it is to F. These constraints are abbreviated for purposes of the present disclosure as
- each iteration i identifies Pi documents
- the non-selected field 612 in iteration i identifies Qi documents
- the contents of each iteration i define a total of Pi*Qi constraints, one for each combination of a document in the selected field 610 and a document in the non-selected field 612. It will be appreciated that other ways of representing the constraints added in each iteration can be used in different implementations .
- Fig. 7 is a diagram illustrating primary types of messages that pass between the mobile device 512 and the server 510, as illustrated in Fig. 6, according to an implementation of the present disclosure.
- the mobile device 512 acts as a client to the server 510.
- the mobile device 512 manages the interactions with the user and updates and maintains the constraints in constraints database 534.
- the server 510 maintains the catalog but retains no state with regard to the user's search (although it may log it for later off-line processing).
- the mobile device 512 receives an initial query from the user via the user interaction module 522, as illustrated in Fig. 5.
- the mobile device 512 forwards the initial query to the server 510.
- the candidate space identification module 524 of the server 510 applies the initial query to the document catalog database 516, as illustrated in Fig. 5, to determine an initial candidate space.
- the discriminative selection module 528 of the server 510 determines a discriminative collection of the documents from the then- current candidate space, though in another implementation, the collection selected in operation 716 need not necessarily be discriminative.
- the server 510 transmits a message to return the selected collection to the mobile device 512 and discards the constraints or query that it used in operations 714 and 716.
- the message transmitted in operation 718 includes all information necessary for presentation to the user and maintenance of the constraints, such as document images, meta-data about the documents, and an indication of their embedding in the embedding space.
- the mobile device 512 presents the discriminative collection to the user, for example by displaying an image of each document.
- the mobile device 512 receives relative feedback from the user, in the form of user selection of one or more of the documents that were presented to the user in operation 720.
- the constraints management module 532 determines new geometric constraints based on the user's feedback, and in operation 726 the mobile device 512 updates the constraints database 534 with the new constraints.
- the mobile device 512 then sends a message including the then- current set of constraints from the constraints database 534 (which contains all relevant information about the search state) to the server 510, together with the initial query from operation 710. This process now loops back to operation 714 with the server 510 applying the initial query and the then-current set of geometric constraints to the document catalog database 516 to derive the next candidate space.
- the server 510 is stateless with regard to a given user's search. This has several benefits, such as: 1) a load on the server 510 and or additional servers is decreased, 2) it is easier to scale by adding more servers as each iteration of a query interaction could go to a different server, 3) since the server 510 is stateless the system is more robust, so for example if a server 510 fails the state is retained on the mobile device 512. Additionally, since the constraints stored in constraints database 534 fully encode the user's feedback during the current and all prior search iteration, they require minimal storage and management.
- the message transmitted in operation 718 includes document images. Though these are typically not large, many caching schemes could be implemented that would retain catalog items on the mobile device 512. These include methods that cache popular items, or items that are predicted to be of interest to the user based on demographic information or search histories. Items could also be pre-fetched onto the mobile device 512 by predicting what items might need to be presented in later iterations of the search.
- FIGs. 8, 9, 10, 11, 12, 13A and 13B illustrate specific implementations of embedding documents in an embedding space according to an implementation of the present disclosure. Specifically, Figs. 8-13B illustrate a set of documents embedded in 2-dimensional space. Aspects of the present disclosure envision embedding documents in spaces of large dimensionality, hence two dimensions is for illustration purposes only.
- a space 810 contains documents, e.g., 821, 822. Each pair of documents has a distance 830 between them.
- Fig. 9 the set of documents from Fig. 8 is illustrated in addition to a circular geometric constraint 910. Those documents inside the circle, e.g., 921 and 911 are said to satisfy the constraint. Aspects of the present disclosure express queries and user input in the form of such geometric constraints. The documents that satisfy the constraints are the current results of the query. As the user provides further input additional constraints may be added, or existing constraints may be added or removed.
- Fig. 10 the set of documents from Fig. 8 is illustrated in addition to a non-circular geometric constraint 1010.
- Various implementations may include geometric constraints of an arbitrary shape, and unions, intersections and differences of such constraints.
- FIG. 11 a means by which the circular constraint of Fig. 9 may be updated in response to user input is illustrated.
- An original circular constraint 1110 may be modified by increasing its radius to produce circular constraint 1120, or by decreasing its radius to produce circular constraint 1130. These modifications are done in response to user input.
- the set of documents satisfying these constraints will change as the constraints are modified thus reducing or expanding the set of images considered for display to the user.
- a discriminative subset of documents may be selected for presentation to the user is illustrated.
- the documents highlighted, e.g., 1211 and 1212, are distinct from each other and from the others contained in the circular constraint region.
- Fig. 13 A a set of documents in embedding space is illustrated, in which the query processing module 140, as illustrated in Fig. 1, has narrowed the collection to those documents within the circle 1320, and has identified a primary result document 1318.
- the discriminative selection module 160 as illustrated in Fig. 1, has selected documents 1310, 1312, 1314 and 1316 as the discriminative set to present to the user.
- documents 1312, 1318 and 1316 are substantially collinear
- documents 1310, 1318 and 1314 are substantially collinear.
- Fig. 13B an illustration is provided to describe how the system may present the set of documents in layout space (the broken lines are implied, rather than visible).
- the specific positions of the documents do not necessarily match those in embedding space, in part because dimensionality of the space has been reduced.
- documents which were substantially collinear in embedding space are collinear in layout space.
- the broken lines in Fig. 13A represent dimensions in embedding space along which the candidate documents differ
- the placement of the documents in layout space in Fig. 13B are indicative of those same dimensions.
- the relative distances among the documents along each of the lines of collinearity in layout space also are indicative of the relative distances in embedding space.
- Fig. 14 illustrates a visual interface that enables searching for shoes using a visual interactive search environment on a mobile device according to an implementation of the present disclosure.
- the catalog e.g., the document catalog database 120, as illustrated in Fig. 1
- candidate results are identified on a server (e.g., the server computer 212, as illustrated in Fig. 2), while the constraints are maintained on a mobile device 1401. Implementations of this architecture are also discussed above with reference to Figs. 5-7.
- the shoes are embedded in a high dimensional space by applying a neural network trained to capture the visual similarity between shoes. Other contributions are made to the embedding using Kernels that compare meta-data about the shoe, e.g., its brand.
- the primary result 1402 is displayed prominently as a large image in the top left corner.
- the shoe 1403 that is closest to the primary result in the embedded space i.e., is most similar is displayed closest to the primary result.
- a discriminative set of results that satisfies the current constraints is then displayed. These constraints may be hard or soft constraints in different implementations, or some may be hard constraints and others soft constraints.
- each constraint requires the candidate to be closer to a user-selected image than one non-selected image.
- multiple constraints e.g., 11, may be added.
- these constraints are treated as soft constraints in that each candidate suffers a penalty for each broken constraint.
- the candidate results are those with smaller penalties.
- the stack of selected images is displayed at 1405 with the oldest user selection at the left and newer ones to the right. The user may click on any image in this stack. This will removed all images (and their associated constraints) to the right of the clicked image off the stack. This has the effect of taking the user back to a previous search state, defined by the set of constraints that were in effect before the clicked image was selected.
- Fig. 4 (including all its variations as mentioned herein) may be used for various purposes, several of which are outlined below with reference to Figs. 15-18. Many of the operations discussed with reference to Figs. 15-18 are similar to those discussed above with reference to Fig. 4 and detailed descriptions thereof may be omitted.
- Fig. 15 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement a purchase of a physical product such as clothing, jewelry, furniture, shoes, accessories, real estate, cars, artworks, photographs, posters, prints, and home decor, according to an implementation of the present disclosure. All of the variations mentioned herein can be used with the process illustrated in Fig. 15.
- a catalog of digital documents is embedded in an embedding space and stored in a database.
- a distance is identified between each pair of the documents in the embedding space corresponding to a predetermined measure of dissimilarity between the products represented by the pair of documents.
- the initial query may be a conventional text query, for example.
- the initial candidate space is within and optionally smaller than the full catalog of documents.
- an initial collection of digital documents is derived from the initial candidate space.
- the initial collection of documents is selected as a discriminative subset of the catalog, while in another implementation the initial collection of documents is not discriminative.
- the initial collection of documents is identified toward the user.
- this can include displaying a representation of the documents in the initial collection visibly to the user.
- operation 1515 an iterative search process is initiated beginning with an iteration numbered herein for convenience as iteration 1.
- the user provides relative feedback as to the documents in the (i-l)'th collection of documents.
- the relative feedback takes the form of user selection of a subset of the documents from the (i-l)'th collection, where selection of a document implies that the user considers products represented by that document to be more relevant to a search target than the products represented by unselected documents from the (i-l)'th collection.
- the selected subset in the i'th iteration is referred to herein as the i'th selected subset, and those documents from the (i-l)'th collection which were not selected are sometimes referred to herein collectively as the i'th non-selected subset.
- a set of geometric constraints is derived from the relative feedback, in a manner described elsewhere herein.
- the set of geometric constraints derived in the i'th iteration is referred to as the i'th set of geometric constraints.
- the i'th set of geometric constraints is applied to the embedding space to form an i'th candidate space, and in operation 1522 an i'th collection of candidate documents is selected as a subset of the documents in the i'th candidate space.
- the i'th collection of documents is selected as a discriminative subset of the i'th candidate space, while in another implementation the i'th collection of documents is not discriminative.
- operation 1523 the i'th collection of documents is presented toward the user for optional further refinement.
- operation 1524 if user input indicates further refinement is desired, then the logic returns to operation 1515 for the next iteration of the search loop. Otherwise the user indicates to commit, and in operation 1526 the system takes action with respect to the user-selected document. [00197] The "take action" operation 1526 of Fig.
- Fig. 16 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement a purchase of a digital product such as movies, music, photographs, or books according to an implementation of the present disclosure. All of the variations mentioned herein can be used with the operations illustrated in Fig. 16.
- a catalog of digital documents is embedded in an embedding space and stored in a database.
- a distance is identified between each pair of the documents in the embedding space corresponding to a predetermined measure of dissimilarity between digital products represented by the pair of documents.
- the initial query may be a conventional text query, for example.
- the initial candidate space is within and optionally smaller than the full catalog of documents.
- an initial collection of digital documents is derived from the initial candidate space.
- the initial collection of documents is selected as a discriminative subset of the catalog, while in another implementation the initial collection of documents is not discriminative.
- the initial collection of documents is identified toward the user.
- this can include displaying a representation of the documents in the initial collection visibly to the user.
- an iterative search process is initiated beginning with an iteration numbered herein for convenience as iteration 1.
- the user provides relative feedback as to the documents in the (i-l)'th collection of documents.
- the relative feedback takes the form of user selection of a subset of the documents from the (i-l)'th collection, where selection of a document implies that the user considers the digital product represented by that document to be more relevant to a search target than digital products represented by unselected documents from the (i-l)'th collection.
- the selected subset in the i'th iteration is referred to herein as the i'th selected subset, and those documents from the (i-l)'th collection which were not selected are sometimes referred to herein collectively as the i'th non-selected subset.
- a set of geometric constraints is derived from the relative feedback, in a manner described elsewhere herein.
- the set of geometric constraints derived in the i'th iteration is referred to as the i'th set of geometric constraints.
- the i'th set of geometric constraints is applied to the embedding space to form an i'th candidate space, and in operation 1622 an i'th collection of candidate documents is selected as a subset of the documents in the i'th candidate space.
- the i'th collection of documents is selected as a discriminative subset of the i'th candidate space, while in another implementation the i'th collection of documents is not discriminative.
- operation 1624 if user input indicates further refinement is desired, then the logic returns to operation 1615 for the next iteration of the search loop. Otherwise the user indicates to commit, and in operation 1626 the system takes action with respect to the user-selected document.
- the "take action" operation 1626 in Fig. 16 then involves the system, optionally and perhaps at a later time, accepting payment from the user (operation 1628) and providing the content to the user (or having it provided) using some means of distributing digital content, e.g., email or streaming (operation 1630).
- the operations of accepting payment and providing content can be performed in any order. For free products payment may not be required.
- Corresponding submodules for performing these operations can be included in the action module 170, as illustrated in Fig. 1.
- Fig. 17 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement an identification of digital content that can be used to produce a physical product according to an implementation of the present disclosure.
- the digital content may consist of a catalog of images which may then be printed on a poster, t-shirt, or mug. All of the variations mentioned herein can be used with the operations illustrated in Fig. 17.
- a catalog of digital documents is embedded in an embedding space and stored in a database.
- a distance is identified between each pair of the documents in the embedding space corresponding to a predetermined measure of dissimilarity between digital content represented by the pair of documents.
- the initial query may be a conventional text query, for example.
- the initial candidate space is within and optionally smaller than the full catalog of documents.
- an initial collection of digital documents is derived from the initial candidate space.
- the initial collection of documents is selected as a discriminative subset of the catalog, while in another implementation the initial collection of documents is not discriminative.
- the initial collection of documents is identified toward the user.
- this can include displaying a representation of the documents in the initial collection visibly to the user.
- an iterative search process is initiated beginning with an iteration numbered herein for convenience as iteration 1.
- the user provides relative feedback as to the documents in the (i-l)'th collection of documents.
- the relative feedback takes the form of user selection of a subset of the documents from the (i-l)'th collection, where selection of a document implies that the user considers the digital content represented by that document to be more relevant to a search target than digital content represented by unselected documents from the (i-l)'th collection.
- the selected subset in the i'th iteration is referred to herein as the i'th selected subset, and those documents from the (i-l)'th collection which were not selected are sometimes referred to herein collectively as the i'th non-selected subset.
- a set of geometric constraints is derived from the relative feedback, in a manner described elsewhere herein.
- the set of geometric constraints derived in the i'th iteration is referred to as the i'th set of geometric constraints.
- the i'th set of geometric constraints is applied to the embedding space to form an i'th candidate space, and in operation 1722 an i'th collection of candidate documents is selected as a subset of the documents in the i'th candidate space.
- the i'th collection of documents is selected as a discriminative subset of the i'th candidate space, while in another implementation the i'th collection of documents is not discriminative.
- operation 1724 if user input indicates further refinement is desired, then the process returns to operation 1715 for the next iteration of the search loop. Otherwise the user indicates to commit, and in step 1726 the system takes action with respect to the user-selected document.
- the "take action" operation 1726 in Fig. 17, then involves the following steps performed by the system. First the selected digital content is added to a shopping cart, or wish list, or otherwise recording the user's intent to purchase a product based on the selected content (operation 1728). This operation may also include recording the user's selection of a particular kind of product (e.g. a mug or a mouse pad).
- a particular kind of product e.g. a mug or a mouse pad
- operation 1730 payment is accepted from the user.
- a physical product is manufactured based on the selected content, e.g., by reproducing the selected content on a physical artifact.
- operation 1734 the physical product is shipped to the user or the physical product is shipped by a delivery service.
- the operation 1730 of accepting payment may be performed after the manufacturing operation 1732 or after the shipping operation 1734 in various implementations.
- corresponding submodules for performing these operations can be included in the action module 170, as illustrated in Fig. 1.
- the sole purpose of the above implementation is to identify content to enable the manufacture and purchase of a physical product.
- Fig. 18 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement an identification of content for sharing according to an implementation of the present disclosure.
- the digital documents in the embedding space may consist of a catalog of the user's personal photographs or other media. All of the variations mentioned herein can be used with the process illustrated in Fig. 18.
- a catalog of digital documents is embedded in an embedding space and stored in a database.
- the catalog may be the user's library of personal photographs, for example.
- a distance is identified between each pair of the documents in the embedding space corresponding to a predetermined measure of dissimilarity between content represented by the pair of documents.
- the initial query may be a conventional text query, for example.
- the initial candidate space is within and optionally smaller than the full catalog of documents.
- an initial collection of digital documents is derived from the initial candidate space.
- the initial collection of documents is selected as a discriminative subset of the catalog, while in another implementation the initial collection of documents is not discriminative.
- the initial collection of documents is identified toward the user.
- this can include displaying a representation of the documents in the initial collection visibly to the user.
- the user provides relative feedback as to the documents in the (i-l)'th collection of documents.
- the relative feedback takes the form of user selection of a subset of the documents from the (i-l)'th collection, where selection of a document implies that the user considers content represented by that document to be more relevant to a search target than content represented by unselected documents from the (i-l)'th collection.
- the selected subset in the i'th iteration is referred to herein as the i'th selected subset, and those documents from the (i-l)'th collection which were not selected are sometimes referred to herein collectively as the i'th non-selected subset.
- a set of geometric constraints is derived from the relative feedback, in a manner described elsewhere herein.
- the set of geometric constraints derived in the i'th iteration is referred to as the i'th set of geometric constraints.
- the i'th set of geometric constraints is applied to the embedding space to form an i'th candidate space, and in operation 1822 an i'th collection of candidate documents is selected as a subset of the documents in the i'th candidate space.
- the i'th collection of documents is selected as a discriminative subset of the i'th candidate space, while in another implementation the i'th collection of documents is not discriminative.
- operation 1824 if user input indicates further refinement is desired, then the process returns to operation 1815 for the next iteration of the search loop. Otherwise the user indicates to commit, and in operation 1826 the system takes action with respect to the user- selected document.
- operation 1828 information regarding a means of sharing, e.g., email, twitter, Facebook, etc., is accepted from the user.
- operation 1830 information regarding a third party or their parties to whom the item should be shared is accepted from the user.
- operation 1832 the selected item(s) are shared.
- the operation 1828 of accepting from the user information regarding the means of sharing may be performed before or after the operation 1830 of accepting from the user information regarding the third party or third parties to whom said item should be shared.
- corresponding submodules for performing thee operations can be included in the action module 170, as illustrated in Fig. 1.
- the sole purpose of the above implementation is identifying content to be shared.
- Bayes theory or sometimes referred to as Bayes rule, Bayes law or simply Bayesian techniques, is used to determine an estimated probability of an event, based on prior knowledge of conditions that might be related to that event (for example see: “Bayes Theorem,” https://en.wikipedia.org/wiki/Bayes'_theorem, accessed December 8, 2016 and incorporated herein by reference).
- Bayes theory is probability theory that uses "Prior” probabilities (currently known or estimated probabilities) and "Posterior” probabilities (probabilities that take into account the known/estimated probabilities as well as current observations) to estimate the probability of a particular event.
- This probability of a particular event could be, for example the probability of a user selecting a particular document as a desired (target) document at a particular point in time (e.g., after a certain number of selections or clicks).
- This probability theory can be implemented in a particular manner to identify and present documents from an embedding space (or from a candidate list encompassing some or all documents from the embedding space) and then continue a process of visual document discovery until the desired document is reached by a user.
- Fig. 19 is a flowchart illustrating Bayesian the use of techniques for choosing and presenting collections of documents according to an implementation of the present disclosure.
- a system calculates a Prior probability score for some or all documents included in an embedding space.
- the Prior probability scores can be calculated from a database that is provided to a computer system, where the database identifies a catalog of documents in the embedding space. Again, the scores can be calculated for all documents of the embedding space or a subset of documents of the embedding space, such as a candidate list.
- Each Prior probability score is a score indicating a preliminary probability that a particular document is a desired document. Examples of calculating the Prior probability scores are discussed in more detail below, after the overall description of the flowchart of Fig. 19.
- the user is presented with an initial collection of images.
- the initial collection can be developed using any of the techniques described elsewhere herein, or using any other technique.
- the initial collection of documents will be determined and presented to the user in dependence on the calculated Prior probability scores.
- Operations 1910 and 1912 may be interchanged in some implementations, or may be performed in parallel.
- the system implementing the Bayesian techniques begins a loop through an iterative search process, which is basically a loop through operations 1916, 1918, 1920, 1922 and 1924 that continues until the user indicates that a document selected by the user is the desired document (e.g., commits to the selected document), such that action can be taken in operation 1926 with respect to a selected document.
- This action could be any action including those described herein, such as performing operation 1526 of Fig. 15.
- the system receives the user's selection of a document from the current collection of documents.
- the user selects the document from the initial collection of documents presented to the user in operation 1912.
- the user selects a document from the collection of documents presented to the user in operation 1924.
- the system uses the selected document to assign Posterior probability scores to other documents in, for example, the candidate list, or to update previously assigned Posterior probability scores, if Posterior probability scores have already been assigned.
- the Posterior probability scores for all unselected documents of collections of documents presented to the user can be set to 0, or a very low probability that would almost certainly guarantee that the unselected documents would not be presented to the user at the next iteration or any future iteration. In other words, documents that have been presented to the user but not selected by the user will be eliminated from potentially being presented to the user again in another subsequent collection of documents.
- the system may shrink the Prior probability scores toward the Prior, as described in more detail below.
- the Posterior probability scores are used to choose the next collection of documents to present toward the user.
- the next collection of documents can be determined by identifying a certain number of the highest Posterior probability scores (e.g., the top 10 highest Posterior probability scores) or by using a different technique, such as Thompson sampling, as discussed in detail below.
- operation 1924 the next collection of documents is presented to the user.
- the iteration then returns to operation 1914 to perform the next loop of the iteration.
- operation 1926 action is taken with respect to the selected document, for example by performing any of the operations 1526, 1626, 1726, or 1826 as illustrated in and described with respect to corresponding Figs. 15, 16, 17 and 18.
- this user identification may include for each i'th iteration in the plurality of iterations, calculating the Posterior probability score for each document of the candidate list in dependence on the user selection of the i'th document from the (i-l)'th collection of candidate documents.
- an endpoint document can be located by providing a catalog of documents in an embedding space that can be accessed by a computer system.
- a Prior probability score can be calculated for each document of a candidate list including at least a portion of the documents of the embedding space.
- the Prior probability score may indicate a preliminary probability, for each particular document of the candidate list, that the particular document is the endpoint document.
- the initial database version can be stored in a computer system.
- an i'th relevant document from the (i-l)'th database version can be identified as the most relevant to the endpoint document of all the documents in the (i-l)'th database version, and (ii) the i'th database version in the computer system can be updated to have Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, where Ni is smaller than the number of documents in the candidate list.
- the Posterior probability score for each given document D can be given by P(C
- the endpoint document can be one of the documents in the last database version after the plurality of iterations. Finally, an action can be taken in dependence upon identification of the endpoint document.
- Bayes' rule can be used in one or more of operations 1918, 1920 and 1922, and can inform and influence other operations described in Fig. 19.
- uncertainty about the desired document at a given point in time can be modeled using Bayesian probability theory. If, for example a random document is referred to as document D and all of the clicks up to a given point in time are referred to as C, the resulting goal is to estimate the probability of document D being the desired document given the sequence of clicks up to the given point in time. In Bayesian theory, this probability is represented as P(D
- the user model can be designed and implemented to determine a probability that a document D would be chosen, given a set of documents presented to the user and the sequence of selections/clicks up to that point.
- the set of documents that are presented to the user in, for example, operations 1912, 1922 and 1924 can be determined using various techniques, such as Thompson sampling, as discussed below in greater detail.
- Bayes' rule holds that P(D
- Bayes' rule can be used to estimate P(D
- P(D) is the system's view, prior to the user's clicks, of the estimated probability that the user is interested in document D.
- P(D) is the Prior or the Prior probability score.
- the Prior remains constant through the user's sequence of clicks, while the system's view of P(C
- D) is essentially the system's view of the probability that the sequence of clicks C would have occurred to reach the document D.
- the sequence of clicks C may for example, include clicks c ls c 2 , ... up to the current point in time. Note that this description refers to the user's selection of a document as a "click.” However, it will be understood that any other user input method (e.g., a touch on a screen, etc.) can be to perform the user selection of a document.
- any other user input method e.g., a touch on a screen, etc.
- a wide variety of user input methods are well known to the reader.
- the embeddings provided by other modules of the system described herein can be used to determine the behavior of the user model.
- the probability that the user clicks on a document x, given that the target is t is proportional to exp(— ⁇ d(x, t)), where d(x,t) is the distance between document x and document t in the embedding space.
- the value ⁇ may be chosen using maximum likelihood, i.e. to maximize the overall probability of the clicks seen in training data.
- the value of ⁇ can be built into the process of training embeddings, where changing ⁇ has the same effect as scaling all of the embeddings up or down.
- Another example of this implementation is that training data exists in the form S, t, s, where a judge was given a screen S, a target t, and asked to say which member s of S is closest to the target t.
- S, t) it is possible to get an expression for a probability that the judge will pick any s that depends on ⁇ .
- the probabilities can be multiplied to get an overall probability that the judge made all of the choices that they did. Choosing a ⁇ that maximizes this overall probability is the ⁇ chosen using maximum likelihood, as mentioned above.
- D) can be dependent upon probabilities determined with respect to the sequence of documents ci, Ci selected by the user up through the i'th iteration, and P(C
- D) can be given by ⁇ ⁇ P( c where each Cj is the document selected by the user in the j'th iteration
- this user model can be viewed as a refinement of a constraint- based method: in such a user model, if the user prefers A to B, this only means that it is more likely that d(D, A) ⁇ d(D, B) than d(D, B) ⁇ d(D, A), and, furthermore, if d(D, A) is much smaller than d(D, E), this is stronger evidence for D than when they are nearly equal.
- the Prior probability scores as calculated in operation 1910 may be uniform. Preferably, however, they are not. In the context of the system, "Prior" refers to what the system knows before the beginning of a user's iterative search session. Typically, a Prior probability score would be calculated for each document within an entire embedding space. In an implementation the Prior probability scores can then be determined for every document in a candidate list (i.e., a subset of the entire embedding space) in dependence on the Prior probability scores determined for the entire embedding space. [00261] Implementations for Determining Prior Probability Scores.
- one source of non-uniform Prior information may be statistics about the previous sales of products.
- This implementation and the following implementations also hold true not just to products, but for documents, as described herein.
- One implementation of a system using sales data starts with statistics regarding the rate at which products had previously been sold. These statistics by themselves may not be sufficient, since products which had not yet been sold would never be presented to the user. Preferably, therefore, the sales statistics are hedged by "taking a step toward uniform" before formulating the Prior probability scores.
- the system determines the Prior probability scores for a particular user in dependence upon the past shopping sessions of the same user.
- One implementation of the system calculates a mean embedding vector of the user's past purchases, and uses as a Prior probability score, a spherically symmetrical Gaussian centered at this mean. That is, a mean is calculated over the embedding vectors of all the products previously purchased by the user, and the Prior probability score is then based on a spherically symmetrical Gaussian centered at this mean. The width of this distribution is learned by matching the average squared distance between embeddings of products purchased by the user with the parameter describing the spread of the Gaussian.
- the average squared distance between embeddings of products purchased by the user may not be sufficient to determine an accurate spread parameter.
- a more robust value for the spread parameter can be obtained by sharing distance-between-purchases data from other users.
- Further refinements can be obtained by pooling users in various ways.
- the system pools users from a particular geographical region, thus formulating Prior probability scores, for example, regarding users from San Francisco that are different from the Prior probability scores associated with users from Kansas City. Many possibilities exist. For example, regional Prior probability scores can be blended with the Prior probability scores of the individual-user, with the relatively contributions of the two depending on how much data the system has for the individual user.
- the system can be given a seed product from which the user will begin searching.
- a merchant may allow a user to browse the catalog before entering an iterative visual product discovery system.
- the user enters the visual product discovery system by selecting a "more like this" option.
- the system develops Prior probability scores by assigning Prior probabilities that decay as a function of a distance (e.g., a distance based on a predetermined measure of dissimilarity in a vector space) from the product used as the entry point.
- a distance e.g., a distance based on a predetermined measure of dissimilarity in a vector space
- One implementation can use a spherically symmetrical Gaussian decay. The spread of this Gaussian can be a tunable parameter.
- Prior probability scores can be developed to capture pre- designated sub-category hierarchies of products.
- the sub-categories are pre-designated by identifying some products that are considered prototypical of the sub-category, or all products with, for example, a metadata tag for that sub-category could be chosen.
- the Prior probability scores can then be determined to be higher on the products in the sub-category, and to decay as a function of the distance from the products in the sub-category.
- An example of such Prior probability scores is a sum of spherical Gaussians centered at each of the identified products. This approach may serve at least two purposes.
- the calculation of the Prior probability scores in operation 1910 can also include a preliminary determination, based on circumstances, of which the several above- described strategies or variations thereof should be used to determine the Prior probability scores.
- FIG. 19 Shrinkage Toward a Prior.
- An iterative search tool such as that of Fig. 19 can be used to quickly find a desired document or product that the user already has in mind (e.g., a "directed search"), but it can also be used to aid the user in a browsing experience. If the user is browsing, the user's previous clicks are likely to be less consistent with a single product, or even a small region in the space into which the products were embedded.
- Fig. 19 illustrates an optional "shrink toward the prior" operation 1920 after each user selection (click).
- One implementation of operation 1920 is as follows. If before the shrinkage operation, the system's estimate of the Posterior probability score that the user is interested in product x is
- exp(postshrink-score( )) exp( (1 - r) Posterior-score( ) + r Prior-score( )), where r is a tunable smoothing parameter between 0 and 1.
- postshrink-score( ) (1 - r) Posterior-score( ) + r Prior-score( ).
- past clicks are de-emphasized monotonically with decreasing recency, and preferably this is accomplished in a way that avoids having to remember a value representing such recency.
- scoring approach such as other scoring techniques discussed elsewhere herein, and this approach is not limited to the Bayesian approach.
- the approach can be used where the score is a simple count of broken geometric constraints.
- the system can give: at least one of the documents Ci, CM less influence on P(C
- D); and each document Cj, j l , i, an influence on P(C
- Thompson Sampling is a concept of introducing some randomness into selecting a group of items (see https://en.wikipedia.org/wiki/Thompson_sampling, incorporated herein by reference, accessed December 8, 2016).
- the exploration- exploitation tradeoff essentially is an attempt to balance exploring new options while taking advantage of options that will exploit a user's previous selections. This can be done by choosing a wide enough range of products that the user's choice exposes a lot about their preferences versus choosing products that are likely to appeal to the user immediately.
- an iterative search method such as that of Fig. 19 can use Thompson sampling in its presentation of candidate documents to the user in each pass (i.e., in either or both of operations 1912 and 1922).
- a screen of documents is chosen to show to the user by repeatedly choosing a document at random, where the probability of choosing a document is weighted to an estimate of the probability that the document is the desired document resulting from the application of Bayes' rule and the shrinkage (e.g., the Posterior). Thompson sampling progressively enriches the options presented to the user for options that are likely to be of interest to the user. On the other hand, it continues to present the user with opportunities to express preferences for documents that information up to a given point in time suggests might not be of interest. Choosing documents with a probability equal to the probability that they are of interest strikes a delicate balance between these two. In the end, once a certain type of product can be eliminated with high probability, it becomes very unlikely to be presented to the user.
- Generalized Thompson Sampling provides for choosing documents at random from a distribution that is not necessarily equal to the Posterior probability scores, but that is derived from it, gives the designer of the iterative search system a richer toolbox from which to choose an exploration-exploitation tradeoff.
- a tunable method can be used that concentrates the Posterior probability scores to increase extents before sampling from it.
- the system chooses product x with a probability proportional to V(x) l + a k , where P( ) is the Posterior probability score and a is a parameter that gives a handle on the exploration/exploitation evolution.
- Weighted K-Medoids Some implementations described in other sections herein, do not incorporate Bayes' rule, but rather apply k-medoids clustering to choose collections of documents to be presented to the user. K-medoids clustering chooses each next candidate for the collection by minimizing the sum of the distances of the embeddings of the documents in a catalog to a closest embedding of a document already included in the collection. Various k- medoid algorithms, where the weighting w is always 1 can be found at https://en.wikipedia.org/wiki/K-medoids, previously incorporated herein by reference.
- weightings can be applied to the k-medoids algorithms, (e.g., see https://cran.r- project.org/web/packages/WeightedCluster/WeightedCluster.pdf, incorporated herein by reference and accessed on December 8, 2016).
- This weighted k-medoid technique of determining the next collection of documents can be applied to the above-described Bayesian techniques using the Posterior probability scores as weights. For example, using a distribution of the Posterior probability scores, the Bayesian system can assign a weight to each document in dependence on a corresponding Posterior probability score of that document. Accordingly, the Bayesian system can minimize a weighted average of distances of the documents of the embedding space or the candidate list to the closest document already included in the collection.
- the Bayesian system can use weighted k-medoids to determine a collection of Ni>l documents to present to the user independence on the assigned weights, the Posterior probability scores and a distance from each given document to a closest document in, for example a candidate list, such that collection of Ni>l documents is a collection having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights and Posterior probability scores.
- weighted k-medoids allows the system to choose representatives of difference kinds of documents, but in a way that assigns higher priority to finding representatives similar to documents that are likely to be of interest to the user.
- This technique enriches the chosen collection of documents with more content that is more likely to be of interest to the user. Aside from speeding the user's search, this technique also makes the next collection of documents presented toward the user correspond more clearly to the previous click action, which provides satisfying immediate gratification to the user and may improve engagement.
- weighted-k medoids is described such that, given a set X of vectors and a weight w(x) for each x that is an element of X, output a subset S of X of size k that minimizes ⁇ xe (x) min se5 d(x, s), where d(x, s) is the distance between x and s.
- speed can be improved at a cost of a slight degradation in the achieved value of ⁇ xe ⁇ w(x) min se5 d(x, s) by reducing a number of candidates that are tried.
- One implementation is to only try the s' that minimizes the distance from the center of C s , which is y ⁇ -j ⁇ e c s x ' ⁇
- Another implementation is to try a few choices for s' that are closest to the center.
- another implementation to use ⁇ xex w(x) min se5 d(x, s), except replace X with a smaller subset that is chosen at random.
- Another alternative to Thompson sampling and weighted k-medoids for operation 1922 is an implementation that minimizes an estimate of an average number Y of clicks needed before the desired document is in the screen presented to the user.
- the probability that the desired document is in the chosen screen i.e., the probability that the average number of Y clicks equal 0
- the probability that the desired document is in the chosen screen can be calculated using the Posterior probability scores. For example, a long-term effect of choosing a number of clicks before the desired document is found (i.e., the average value of Y given that Y >0) by using a hypothesis that, at any given time, the average number of clicks needed is proportional to the entropy of a Posterior probability score.
- the system can evaluate probabilities for all documents in the candidate list and/or embedding space.
- the candidate list is larger it is too time consuming and processor intensive to evaluate the probabilities for every document in the candidate list.
- it is often better to sample documents from the candidate list by (i) creating a Neighbor Graph G and using a close approximation of P(D
- the Markov-Chain Monte Carlo concept can be implemented in various different ways.
- One particular implementation is Metropolis-Hasting sampling (https://en.wikipedia.org/wiki/Metropolis%E2%80%93Hastings_algorithm, visited March 7, 2016 and incorporated herein by reference). These techniques are described in detail below with reference to Figs. 20-25.
- Metropolis-Hastings sampling is a technique for choosing a random element of a set X (e.g., choosing a random document of a candidate list X) using a distribution that is close to some distribution Q.
- This Metropolis-Hastings sampling technique never computes all of the probabilities of elements of X. Instead, it generates a sequence x l s x 2 , .. ..
- the first draw xi e.g., selection of document xi
- Metropolis-Hastings sampling can be applied to the problems addressed herein by considering X to be the candidate list and Q to be the (not necessarily entirely known) Posterior probability distribution of the candidate list.
- the idea is to generate x 1+1 by repeatedly: • generating a candidate x* using x; (x* is generated using a "proposal distribution" depending on 3 ⁇ 4, which is further described with reference to Fig. 25) and
- the candidates x* can be chosen according to a "neighborhood" (in the Neighbor Graph G) around Xj.
- the proposal distribution used to choose x* might be a Gaussian centered at 3 ⁇ 4.
- the distribution Q is discrete, not continuous. Thus x*'s are limited to being members of the candidate list.
- An implementation of Metropolis-Hastings performs a walk through the Neighbor Graph G using the same Neighbor Graph G for all collections offered to the user or users in all sessions. It is desirable, though, to avoid showing the same document in different collections during the same session. In one implementation, this is achieved by forcing a Posterior probability of a document to 0 after it has been seen by the user (e.g., included in a collection of documents presented to the user). All proposals to walk to this document, in the Metropolis- Hastings walks, will then fail. If this occurs with all neighbors of a particular document, then it becomes possible that a walk gets stuck at that document. Different embodiments can handle this "stuck" situation differently.
- the situation is handled by jumping to a random vertex when it happens.
- the likelihood of this situation occurring reduces when the Neighbor Graph G includes many different tours through the candidate list (e.g., K is large in the flowchart of Fig. 21).
- candidate documents from the candidate list are chosen using a Neighbor Graph G, which can be calculated using all documents in the candidate list, which is a at least a portion of the documents in the embedding space.
- Each vertex of the Neighbor Graph G represents a document in the candidate list, and an edge is interpreted as indicating that two vertices (documents) are neighbors.
- the edge is, in other words, a path that can be traveled on a walk from one document (vertex) to another neighboring document (vertex).
- the vertices are neighbors in the sense that the distance between their corresponding documents in the candidate list is small, as compared to distances between other documents in the candidate list.
- the neighbors of a document in the Neighbor Graph G are strictly the nearest neighbors in the candidate list, but this technique allows some relaxation of that ideal in exchange for quicker runtime.
- a uniform random neighbor is used as the proposal distribution above. Further, once the Neighbor Graph G is created, then the Markov Chain Monte-Carlo sampling, or variations thereof, can be efficiently implemented.
- one condition for ensuring that the Metropolis-Hastings algorithm converges to Q is that, for any two members u, v of X, the probability that the algorithm proposes v when it is at u, is the same as the probability that it proposes u when it is at v.
- the Metropolis-Hastings technique accomplishes this by ensuring that each vertex has the same number of neighbors.
- Another condition for Metropolis- Hastings to converge is that, informally, any member of X can reach another member of X through a series of proposals. Put another way, if x ls x 2 , ...
- Fig. 20 is a flowchart illustrating scaling Bayesian techniques for choosing and presenting collections of documents using Neighbor Graphs and Markov Chain Monte-Carlo according to an implementation of the present disclosure.
- Fig. 20 a high level flowchart for scaling Bayesian techniques is illustrated, where operations 2008, 2010, 2012, 2014, 2022 and 2026 are similar to operations 1910, 1912, 1914, 1916, 1924 and 1926 of Fig. 19, respectively.
- a Neighbor Graph G is created of all documents in the candidate list. The creation of the Neighbor Graph G is further described below with reference to Figs. 21-
- Operations 2008, 2009 and 2010 may occur in different sequences in different implementations.
- the system receives the user's selection of a document from a current collection as discussed above with respect to operation 1916 of Fig. 19, and if the user indicates satisfaction with the document that he or she is selecting, then in operation 2026, action is taken with respect to the selected document, for example by performing any of operations 1526, 1626, 1726, or 1826 of respective Figs. 15, 16, 17 and 18.
- Fig. 21 is a flowchart illustrating a creation of a Neighbor Graph of all documents in a candidate list according to an implementation of the present disclosure. Specifically, Fig. 21 is a flowchart that provides additional details for operation 2009 of Fig. 20, regarding the creation of the Neighbor Graph G of all documents in the candidate list. In an implementation, the Neighbor Graph G is created in the stages discussed below.
- a Neighbor Graph G is initialized with a vertex for each document in the candidate list.
- This initialized version of the Neighbor Graph G does not include any edges (paths) connecting the vertices.
- the edges (paths) are inserted between the vertices at a later point.
- the Neighbor Graph G can be a list of all the documents of the candidate list, with each document having 2K fields to identify its neighbors as determined by K tours discussed below. These neighbors are usually but not always the nearest 2K neighbors in embedding space, and the system is tolerant of any that are not. Initially, all of the fields identifying neighbors are empty. K is a configurable parameter. Each vertex of the Neighbor Graph G will eventually be connected by edges to 2K other vertices. The process of creating the Neighbor Graph G using the candidate list is further illustrated in Figs. 22A-22D.
- a candidate list 2200 is illustrated as including documents 2204, 2206, 2208, 2210, 2212, 2214, 2216, 2218 and 2220 and an origin 2202.
- the Neighbor Graph G is initialized to include a vertex for each of the documents 2204, 2206, 2208, 2210, 2212, 2214, 2216, 2218 and 2220.
- candidate list 2200 is represented in Fig. 22A in a two-dimensional embedding space for ease of illustration and explanation. In many implementations the embedding space is a multi-dimensional space.
- a loop is begun to create K tours.
- edges are added to Neighbor Graph G, such that in each tour every document of the candidate list is traversed.
- a preliminary version of the k'th tour is formed using the candidate list 2200.
- the preliminary tour can be formed in a number of different ways.
- a goal is to form a tour that preferably has neighbors as near each other as possible in the embedding space.
- the resulting tours need not be perfect, and the preliminary tours can be even less perfect if tour improvement and repair steps such as those described below are implemented.
- operation 2116 forms the preliminary version of the k'th tour by projecting the document embeddings onto a k'th random line which passes through an origin of the candidate list 2200, and operation 2118 forms the preliminary version of the k'th tour by connecting left and right neighbors along the line with edges and then wrapping back around to a beginning of the line.
- this technique generates the k'th random line by generating a direction u by sampling from a spherically symmetrical Gaussian, and then drawing an imaginary line from the origin through u. The projections are then accomplished by taking the dot product of each embedding with u.
- Figs. 22B, 22C and 22D The preliminary version of the k'th tour is illustrated in Figs. 22B, 22C and 22D.
- Fig. 22B the k'th line 2222 with random orientation and which passes through the origin 2202 of the candidate list 2200 is illustrated.
- the perpendicular projections are formed on the k'th line 2222 via paths 2224, 2226, 2228, 2230, 2232, 2234, 2236, 2238 and 2239 illustrated therein.
- the projections from the document embeddings of the candidate list 2200 are located on the k'th line 2222 at a point where the paths 2224, 2226, 2228, 2230, 2232, 2234, 2236, 2238 and 2239, as respectively perpendicularly projected from documents 2204, 2206, 2206, 2210, 2212, 2214, 2216, 2218 and 2220, meet the k'th line 2222.
- the preliminary version of the k'th tour starts at document 2204 because the projection onto the k'th line 2222 from document 2204 is, for example, the first (leftmost) projection onto the k'th line 2222. Then, the k'th tour continues to the next document 2210 whose projection is next long the k'th line 2222. This "walk" from document 2204 to document 2210 creates an edge 2240.
- the walk then continues (i) from document 2210 to document 2212 to create edge 2242, (ii) from document 2212 to document 2206 to create edge 2244, (iii) from document 2206 to document 2214 to create edge 2246, (iv) from document 2214 to document 2208 to create edge 2248, (v) from document 2208 to document 2218 to create edge 2250, and (vi) from document 2218 to document 2220 to create edge 2252.
- the preliminary version of the k'th tour then continues from document 2220, which forms one of the two outermost projections on the k'th line 2222, back to the starting document 2204, which forms the other of the two outermost projections on the k'th line 2222, to create edge 2260.
- Edge 2260 is the edge created by wrapping back around from the end to the beginning. Now that each of the documents has been touched by the walk, each of the documents has two edges connected thereto. Note that the k'th tour need not start on the leftmost projection, but can also start at the rightmost projection or at a middle projection.
- the k'th tour need only start at some document and continue to an outermost projection on the k'th line 2222 and then wrap back around to the other outermost projection on the k'th line and then continue until each of the documents has been touched. Now the preliminary version of the k'th tour is complete.
- the preliminary version of the k'th tour can optionally be "improved” to reduce distances between neighboring documents, and in operation 2122 the k'th tour can optionally be "repaired” to eliminate edges redundant with prior tours.
- Operation 2120 helps to ensure that documents inserted into the next collection to be presented toward the user, really do have a high likelihood of being the user's desired target document given the user's prior sequence of selection clicks. However, it will be appreciated that operation 2120 can be omitted in an implementation in which strict adherence to that goal is not essential.
- Operation 2122 is important in order to ensure that the Metropolis-Hastings algorithm converges to Q, as previously explained. However, as with operation 2120, it will be appreciated that operation 2122 can be omitted in an embodiment in which certainty of such convergence is not essential.
- Fig. 23 is a flowchart illustrating an implementation of operation 2120 for improving a k'th tour in a Neighbor Graph by re-arranging vertices to shorten distances in the embedding space between neighbors in the Neighbor Graph according to an implementation of the present disclosure.
- Both the number of passes in the above iteration, and the number of documents R to look downstream in each pass, are configurable values.
- the tour is walked in its then-current sequence, and an edge is inserted into the graph between the vertices corresponding to each sequential pair of documents in the tour.
- a final edge is inserted between the vertices corresponding to the first and last documents on the line.
- identification of a desired document may include providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space, calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space.
- the Prior probability score indicates a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document.
- an edge can be inserted from each vertex of the neighbor graph G to each of two other vertices of the neighbor graph G; and the identification may include taking action in response to user behavior identifying, a selected document in one of the collections of documents, as the desired document, as well as after each i'th iteration of the plurality of iterations, removing a predetermined fraction of vertices and connecting edges from the neighbor graph G.
- Fig. 23 details operation 2120 of Fig. 21.
- Other ways to improve the k'th tour will be apparent to a person of ordinary skill in the technology disclosed herein.
- the specific goal may be to minimize the total length of the tour, or to minimize the average distance between neighbors in the tour, or to satisfy some other length minimization criterion. In an implementation, however, it is not essential that the specific goal ever be fully realized.
- a loop begins to walk the vertices v of the k'th tour in order.
- the loop can continue for some configurable number M>1 laps of the tour, or in another implementation the loop can terminate when the number of swaps made in a loop (operation 2314) falls to zero or to some epsilon greater than zero. Other termination criteria will be apparent to a person of ordinary skill in the technology disclosed herein.
- the system finds the vertex v* corresponding to the nearest document from among those in the next R>1 documents downstream of vertex v in the current tour. As previously mentioned, R is a configurable value.
- the tour has vertices in sequence x 0 , xi, x 2 , x 3 , where x 0 is the current vertex and v* has been determined to be vertex x 2 , then the sequence of documents xi and x 2 are swapped by removing the edges from xo to xi, xi to x 2 and x 2 to x 3 , and adding edges from x 0 to x 2 , x 2 to xi and xi to x 3 .
- operation 2316 if the loop is not yet done, then the implementation returns to operation 2310 to consider the next vertex of the current tour; this may be a vertex just moved from a position downstream. Once the loop of operation 2310 is complete, then in operation 2318 the improvement process of the k'th tour is considered complete. It can be seen that the process of Fig. 23 gradually replaces longer edges with shorter ones. Other processes can be used either instead of or additionally to the process illustrated in Fig. 23 to improve the tour if desired in a particular implementation.
- the improvement process may include the database identifying a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents.
- Developing of a plurality of tours comprises, for each k'th tour in the plurality of tours: walking the vertices of the k'th tour for a plurality of laps; and at each current vertex encountered in the walk, determining whether the document corresponding to the next vertex of the tour is farther away in the embedding space from the document corresponding to the current vertex than the document corresponding to a vertex further downstream in the tour is from the document corresponding to the current vertex, and if so then swapping the next vertex with the downstream vertex in the tour.
- Fig. 24 is a flowchart illustrating a repairing of a k'th tour in a Neighbor Graph to eliminate edges that are redundant with prior tours in the Neighbor Graph according to an implementation of the present disclosure.
- the holding queue is checked for available vertices. Note that this implementation considers inserting the first vertex in the holding queue into the current position of the tour, if that vertex is not redundant in its new position, then it is inserted, otherwise it is put at the end of the holding queue, and the next vertex in the holding queue is considered (another implementation may also check whether the vertex to be inserted has an edge with the vertex after v); and
- Fig. 24 details operation 2122 of Fig. 21 to repair the k'th tour to eliminate edges redundant with prior tours.
- a holding queue for holding vertices is created and initialized to empty.
- a loop is begun to walk all of the vertices v of the current tour (the k'th tour) in order.
- the walk follows the tour in one direction, where either direction can be used.
- operation 2413 a determination is made as to whether the queue is empty. If this is the first loop of the walk, then the queue will be empty. Accordingly, if the queue is empty, then the flowchart leads to process 2424 of creating an edge to a next non-redundant vertex in the tour. Otherwise the flowchart leads to process 2414 of inserting after v, a vertex from the holding queue.
- operation 2418 if the current vertex from the holding queue does not already have an edge with vertex v from a prior tour, then in operation 2420 the vertex is removed from the queue and inserted into the current tour after vertex v and before the vertex that follows v, splitting the edge after v into two edges.
- operation 2418 may also check whether the vertex to be inserted has an edge with the vertex after v; if so then the flowchart proceeds to operation 2420 and if not then the flowchart proceeds to operation 2422 as discussed in more detail below. The implementation then returns to operation 2412 to walk to the next vertex v of the current tour. This will be the vertex just inserted from the holding queue.
- operation 2426 determines whether a prior tour already has an edge from vertex v to the next vertex in the current tour. If not, then in operation 2428 an edge from current vertex v is added to the next vertex in the current tour. Operation 3440 then determines whether there are more vertices in the current tour. If there are more vertices in the walk of the current tour, then process 2424 returns to operation 2412 to advance to the next vertex of the tour (which, again, will be the vertex to which an edge was just added). If there are no more vertices in the current tour in operation 2440, then process 2424 ends and operation 2122 also ends.
- operation 2426 determines that a prior tour does already have an edge from current vertex v to the next vertex in the current tour, then in operation 2442 the next vertex of the current tour is removed from the current tour and added to the holding queue. The edges are changed such that the subsequent vertex of the current tour becomes the "next" vertex of the current tour, and the implementation loops back to operation 2426 to consider whether a prior tour already has an edge from v to that "next" vertex, and so on.
- developing a plurality of tours can involve removing redundant edges from the neighbor graph G belonging to different ones of the plurality of tours.
- the database may identify a distance between each pair of the documents in the embedding space, where the distance corresponds to a predetermined measure of dissimilarity between the pair of documents.
- the above-described developing of the plurality of tours comprises, after inserting into neighbor graph G all the edges of each k'th tour in the plurality of tours: walking the vertices of the k'th tour for a plurality of laps; at each current vertex encountered in the walk, determining whether the document corresponding to the next vertex of the tour is farther away in the embedding space from the document corresponding to the current vertex than the document corresponding to a vertex further downstream in the tour is from the document corresponding to the current vertex, and if so then swapping the next vertex with the downstream vertex in the tour; and removing edges from the neighbor graph G belonging to the k'th tour which are redundant with edges belonging to prior tours in the plurality of tours.
- Fig. 25 is a flowchart illustrating a determination of a next collection of documents from a candidate list using Markov Chain Monte-Carlo to complete a walk through the Neighbor Graph according to an implementation of the present disclosure. Specifically, Fig. 25 further illustrates operation 2020 of Fig. 20.
- an empty data structure is initialized for identifying the next collection of documents, and a vertex vo is set equal to the vertex corresponding to the document most recently selected by the user.
- Process 2512 a document is selected for the next collection, based on the posterior probabilities P(v*
- Process 2512 includes operations 2514, 2518, 2520, 2522, 2523, 2524, 2526, 2528, 2530 and 2532, each of which is described in detail below.
- operation 2514 begins a Metropolis- Hastings walk of duration N beginning at a random position in the candidate list.
- the probability distribution Q is equal to the system's estimate of the posterior probabilities P(v*
- the probability distribution Q can be a modified version of P(v*
- the system next determines whether all neighbors of v ⁇ i have already been added to the collection. If so, then in operation 2520, the i'th vertex of the walk, Vi, is set to a random member of the candidate list.
- a vertex v* is chosen from all the immediate neighbors of vn with a uniformly random probability distribution. This is a proposed next step in the walk.
- a ratio Q(v*)/Q(vi-i) is calculated (or estimated) for the current proposed neighbor v* of the current vertex Vi_i, if this has not been previously calculated. It is not necessary to calculate the actual probabilities Q for any of the documents, because the user model used in this implementation is such that the probability Q(u) for any document u is proportional to exp(score(u)).
- Q(v*) is compared with Q(vi.i). This comparison can be made simply by determining whether Q(v*)/Q(vi-i)>l . If Q(v*) is higher, then v* is accepted as the i'th vertex of the walk and in operation 2526 Vi is set equal to v*.
- a choice is made with probability Q(v*)/Q(vi-i) to accept v* anyway (use of this probability Q(v*)/Q(vi.i) balances exploitation and exploration of the candidate list) (note that in an implementation, if v* is not accepted anyway, then v; can be set to equal vn); and in operation 2530 Vi is set equal to v*. If the choice fails in operation 2528, then the process returns to operation 2522 to choose another vertex v* from the immediate neighbors of VM with a uniformly random probability distribution. It is possible that the same v* can be chosen as before, but it could also be a different v*. The loop of operations 2522/2523/2524/2528 repeats until Vi is set equal to some vertex.
- operation 2538 the system determines whether it is finished adding documents to the next collection. If not, then it returns to operation 2514 to begin a new random walk, again beginning from the user's most recently selected document (vertex), to pick a different document to add to the collection.
- operation 2538 determines that the next collection of documents is complete, then the operation 2020 completes at operation 2540 and the collection of documents is presented toward the user in operation 2022 of Fig. 20.
- User behavior data may be collected by a system according to the present disclosure and the collected user behavior may be used to improve or specialize the search experience.
- many ways of expressing distances or similarities may be parameterized and those parameters may be fit.
- a similarity defined using a linear combination of Kernels may have the coefficients of that linear combination tuned based on user behavior data. In this way the system may adapt to individual (or community, or contextual) notions of similarity.
- Kernels or distances may be learned independently of the search method. That is, the Kernels or distances may be learned on data collected in different ways. This data may, or may not, be combined with data captured during the search process.
- Deep learning e.g., neural networks with more than 3 layers, to learn distances or similarity.
- distances are learned specifically for specific applications. For example, an implementation uses the method (process) to search for potential partners (e.g., on a dating site) and may learn a Kernel that captures facial similarity. The process may also learn a Kernel that captures a similarity of interests based on people's Facebook profiles. These Kernels (or distances) are learned specifically to address the associated search problem and may have no utility outside of that problem.
- potential partners e.g., on a dating site
- the process may also learn a Kernel that captures a similarity of interests based on people's Facebook profiles.
- Fig. 26 is a flowchart illustrating various logic phases for learning distances for a subject domain, such as a subject catalog of products or type of content, according to an implementation of the present disclosure. For example, it may be appropriate to learn or develop an embedding specific to men's shoes. Such an embedding would capture the similarity between men's shoes be would be uninformative with regard to men's shirts. [00358] Referring to Fig. 26, in operation 2610 the subject domain is defined. Examples of subject domains include clothing, jewelry, furniture, shoes, accessories, vacation rentals, real estate, cars, artworks, photographs, posters, prints, home decor, physical products in general, digital products, services, travel packages, or any of a myriad of other item categories.
- operation 2612 one or more items that are to be considered within the subject domain are identified, and one or more items that are to be considered outside the subject domain are identified.
- a training database which includes only documents that are considered to be within the subject domain. This training database includes the first items but not the second items.
- an embedding is learned in dependence upon only the provided training data, i.e. not based on any documents that are considered to be outside the subject domain.
- a machine learning algorithm can be used to learn this embedding.
- the catalog of documents is embedded into the embedding space using the learned embedding.
- the catalog of documents embedded into the embedding space is itself limited to documents within the subject domain. Subsequently processing can later continue with operations 412 or 414 of Fig. 4 or its variants as described herein.
- documents are encoded in an embedding space such as a vector space or metric space (via a distance). Searches proceed as a sequence of query refinements. Query refinements are encoded as geometric constraints over the vector space or metric space. Discriminative candidate results are displayed to provide the user with the ability to add discriminative constraints. User inputs, e.g., selecting or deselecting results, are encoded as geometric constraints.
- One variation of the overall visual interactive search may include embedding the documents after the initial query is performed and only those documents satisfying the query may be embedded. Similarly, the documents may be re-embedded using a different embedding at any point in the process. In this case, the geometric constraints would be re-interpreted in the new embedding.
- Another variation of the overall visual interactive search may include augmenting the geometric constraints at any point with non-geometric constraints. In this case the candidate results can be filtered in a straightforward way to select only those satisfying the non-geometric constraints. In this way the interaction can be augmented with faceted search, text, or speech inputs. At each iteration of the process the geometric constraints can be managed together with a set of non-geometric constraints.
- the documents may include images, audio, video, text, html, multimedia documents and product listings in a digital catalog.
- the concept may also be generalized so that the identification of the one or more prototype documents obtained at step 1 is obtained as the result of the user performing a search (query) within another information retrieval system or search engine.
- step 8 is replaced with an option to provide a user interface that allows the user to decide whether to increase the threshold Tl, decrease the threshold Tl or to leave the threshold Tl unchanged.
- the concept may also be generalized so that at steps 1, and 6 there are two collections of documents including one or more prototype images.
- the system identifies images having both (i) a distance that is less than a threshold Tl of the first collection of documents and (ii) a distance that is greater than a threshold T2 of the second collection of documents.
- This concept may be further extrapolated in step 8, where the thresholds Tl and T2 are adjusted and the candidate documents are updated accordingly.
- the concept may also be generalized so that at one iteration of step 6 the user selects one or more of the presented documents along a first subset of at least one axis, and at another iteration of step 6 the user selects one or more of the presented documents along a second subset of at least one axis, where the second subset of axes contains at least one axis not included in the first subset of axes.
- an implementation of the technology disclosed need not be limited to a single fixed hierarchy of documents. More specifically, an implementation does not require an explicit determination of a taxonomy by which the document catalog is described. Nor does it require a clustering of documents into a static hierarchy. That is, the sequence of refinements that a user may perform need not be constrained to narrowing or broadening in some pre-defined taxonomy or hierarchy. [00376] Another advantage is that implementations of the technology disclosed can be extremely flexible and may be applied to images, text, audio, video, and many other kinds of data.
- Another advantage is that implementations are based on intuitions about the relationships among documents, which are often easier to express using notions of similarity or distance between documents rather than by using a taxonomy or tags.
- a further advantage is that selecting and deselecting candidate results in a visual way is a more facile interface for performing search on a mobile device or a tablet.
- Another advantage is that encoding query refinements in terms of geometric constraints allows for a more flexible user interaction. Specifically, in an implementation, the user is not required to be familiar with a pre-defined tagging ontology, or with a query logic used to combine constraints. Furthermore, in an implementation such geometric constraints can be more robust to errors in a feature tagging or annotation process.
- An additional advantage is that the ability to incrementally refine a search is helpful to a productive user experience.
- Another advantage is that the use of a discriminative subset of candidate results makes more effective use of limited display space.
- the clutter on the display is minimized while simultaneously capturing a high proportion of the information available in the complete results set and providing a wide variety of options for the user to refine a query.
- an advantage is that an implementation of the present disclosure can be more amenable to incremental refinement of a search. Specifically, a user may take a photograph and use a CBIR system to identify related or highly similar photographs. However, if the user is dissatisfied with the results the CBIR system does not provide them with a way to refine search goals.
- One implementation allows users to search a catalog of personal photographs. Users are initially shown an arbitrary photograph (the primary result), e.g., the most recent photograph taken or viewed. This is displayed in the center of a 3x3 grid of photographs from the catalog. Each of the photographs is selected to be close (defined below) to the primary result but different from each other along different axes relative to the primary result. For example, if the primary result is a photograph taken with family last week at home, then other photographs may be a) with the family last year at home, b) with the family last week outdoors, c) without the family last week at home, etc.
- the system may place two photographs on opposite sides of the primary result which are along the same axis but differ from each other in their positions along that axis.
- the photo placed on the left side may show family member A more prominently than in the primary result
- the photo placed on the right side may show family member A less prominently than in the primary result.
- photographs may be considered similar with respect to a number of criteria, including: GPS location of the photograph; time of the photograph; color content of the photograph; whether the photograph was taken indoors or outdoors; whether there are people in the photograph; who is in the photograph; whether people in the photograph are happy or sad; the activity depicted in the photograph; and the objects contained in the photograph.
- Embedding For each photograph in a user's catalog of personal photographs a vector is produced that has indices corresponding to, e.g., the longitude, the latitude, the time of day, the day of week, the number of faces, whether a given activity is depicted, among many others.
- Initial Query In this case the initial query is empty, that is all photos are candidate results and the one presented to the user is arbitrary.
- Initial Query as geometric constraints The initial query produces an empty set of geometric constraints
- a discriminative subset of 9 photographs is selected from the candidate results using farthest first traversal.
- the user selected photograph is processed to yield a new geometric constraint which can be represented as a sphere around the selected photograph in the embedding space. This new constraint is added to the current set of constraints. The combined constraint is the intersection of spheres around all photographs selected so far.
- Another implementation looks at searching for accessories (apparel, furniture, apartments, jewelry, etc.).
- the user searches using text, speech, or with a prototype image as an initial query.
- a user searches for "brown purse” using text entry.
- the search engine responds by identifying a diverse set of possible results, e.g., purses of various kinds and various shades of brown. These results are laid out in a 2 dimensional arrangement (for example a grid), whereby more similar results are positioned closer to each other and more different results are positioned relatively far from each other.
- the user selects one or more images, for example using radio buttons.
- the image selections are then used by the search engine to define a "search direction" or a vector in the embedding space along which further results may be obtained.
- Embedding For each entry in an accessories catalog a vector is produced using deep learning techniques trained to differentiate accessories.
- Initial Query In this case the initial query is a textual search that narrows further results to be within a portion of the full catalog. This restricted is the set of initial candidate results.
- Initial Query as geometric constraints The initial query produces an empty set of geometric constraints [00404] The geometric constraints are applied to the set of embedded accessories in the restricted set (i.e., the initial candidate results) to identify those that satisfy the constraints, i.e., the candidate results
- a diverse subset of 9 catalog entries is selected from the candidate results using farthest first traversal.
- the 9 catalog entries are presented to the user in a 3 x 3 grid
- the user selects one of the catalog entries to indicate a desire to see more accessories like that one.
- the user selected accessory is processed to yield a new geometric constraint which can be represented as a sphere around the selected accessory in the embedding space. This new constraint is added to the current set of constraints. The combined constraint is the intersection of spheres around all accessories selected so far.
- a given event or value is "responsive" to a predecessor event or value if the predecessor event or value influenced the given event or value. If there is an intervening processing element, step or time period, the given event or value can still be “responsive” to the predecessor event or value. If the intervening processing element or step combines more than one event or value, the signal output of the processing element or step is considered “responsive" to each of the event or value inputs. If the given event or value is the same as the predecessor event or value, this is merely a degenerate case in which the given event or value is still considered to be “responsive” to the predecessor event or value. "Dependency" of a given event or value upon another event or value is defined similarly.
- each step in a process described herein can be implemented in hardware or in software running on one or more computing processes executing on one or more computer systems.
- each step illustrates the function of a separate module of software.
- the logic of the step is performed by software code routines which are distributed throughout more than one module.
- the code portions forming a particular module can be either grouped together in memory or dispersed among more than one different region of memory.
- Applicant hereby discloses in isolation each individual feature described herein and each combination of two or more such features, to the extent that such features or combinations are capable of being carried out based on the present specification as a whole in light of the common general knowledge of a person skilled in the art, irrespective of whether such features or combinations of features solve any problems disclosed herein, and without limitation to the scope of the claims. Applicant indicates that aspects of the present disclosure may consist of any such feature or combination of features. In view of the foregoing description it will be evident to a person skilled in the art that various modifications may be made within the scope of the invention.
- a non-transitory computer readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the non-transitory computer readable recording medium include Read-Only Memory (ROM), Random-Access Memory (RAM), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices.
- ROM Read-Only Memory
- RAM Random-Access Memory
- CD-ROMs Compact Disc-Read Only Memory
- the non-transitory computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion. Also, functional programs, code, and code segments for accomplishing the present disclosure can be easily construed by programmers skilled in the art to which the present disclosure pertains.
- processor readable mediums examples include Read-Only Memory (ROM), Random- Access Memory (RAM), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices.
- the processor readable mediums can also be distributed over network coupled computer systems so that the instructions are stored and executed in a distributed fashion.
- functional computer programs, instructions, and instruction segments for accomplishing the present disclosure can be easily construed by programmers skilled in the art to which the present disclosure pertains.
- a method for user identification of a desired document comprising:
- Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
- the Posterior probability score for each given document D being given by P(C
- previous experience includes previous sales experience of products represented by at least one of the documents of the candidate list relative to products represented by other documents of the candidate list.
- calculating a Prior probability score for each document of a candidate list comprises calculating the Prior probability scores in dependence on a spherically symmetrical Gaussian centered at the mean embedding vector.
- the database identifies a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents
- the method further includes, prior to the calculating of the Prior probability score for each document of the candidate list, identifying toward the user a preliminary collection of documents and receiving user selection of a seed document from the preliminary collection of documents,
- calculating a Prior probability score for each document of a candidate list comprises calculating the Prior probability scores in dependence on a factor that decays as a function of distance from the seed document.
- identifying toward the user an i'th collection of candidate documents comprises selecting documents from the candidate list, to be included in the i'th collection of candidate documents, randomly according to a probability distribution that is weighted in dependence on the Posterior probability scores.
- identification of the initial collection of candidate documents toward the user comprises selecting documents from the candidate list, to be included in the initial collection of candidate documents, randomly according to a probability distribution that is weighted in dependence on the calculated Prior probability scores.
- identifying toward the user an i'th collection of candidate documents comprises inserting documents into the i'th collection of candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the i'th selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk.
- developing a plurality of tours further comprises, for each k'th tour in the plurality of tours:
- the database identifies a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents
- developing a plurality of tours further comprises, after inserting into neighbor graph G all the edges of each k'th tour in the plurality of tours:
- each step from a current vertex including, if the document corresponding to all neighbors of the current vertex are not already in the i'th collection of documents, choosing a next vertex in dependence upon the Posterior probability score of at least one neighbor of the current vertex;
- a method for user identification of a desired document comprising:
- the calculated Posterior probability score for each given document D is given by P(C
- a method for user identification of a desired document comprising:
- Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
- D)P(D) where C is the sequence of documents c ls Cj selected by the user up through the i'th iteration, where P(C
- a method for user identification of a desired document comprising:
- a database identifying (i) a catalog of documents in an embedding space and (ii) a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents;
- Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
- i'th collection is a collection of Ni>l documents from the candidate list having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights w and Posterior probability scores, Ni being smaller than the number of documents of the candidate list,
- the Posterior probability score for each given document D being given by P(C
- Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
- the Posterior probability score for each given document D being given by P(C
- identifying toward the user an i'th collection of candidate documents comprises inserting documents into the i'th collection of candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the i'th selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk.
- Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
- the calculated Posterior probability score for each given document D is given by P(C
- D)P(D) where C is the sequence of documents c ls Cj selected by the user up through the i'th iteration, where P(C
- a database identifying (i) a catalog of documents in an embedding space and (ii) a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents;
- Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
- i'th collection is a collection of Ni>l documents from the candidate list having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights w and Posterior probability scores, Ni being smaller than the number of documents of the candidate list,
- Posterior probability score for each given document D being given by P(C
- a system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
- Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
- the Posterior probability score for each given document D being given by P(C
- identifying toward the user an i'th collection of candidate documents comprises inserting documents into the i'th collection of candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the i'th selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk.
- a system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
- Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
- the calculated Posterior probability score for each given document D is given by P(C
- a system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
- Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
- D)P(D) where C is the sequence of documents ci, Ci selected by the user up through the i'th iteration, where P(C
- a system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
- a database identifying (i) a catalog of documents in an embedding space and (ii) a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents;
- Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
- i'th iteration in response to user selection of an i'th selected document from the (i-l)'th collection of documents, assigning a weight w to each given document D in dependence on a Posterior probability score for each given document D, and identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the assigned weights w, the Posterior probability scores and a distance from each given document D to a closest document in the candidate list, such that i'th collection is a collection of Ni>l documents from the candidate list having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights w and Posterior probability scores, Ni being smaller than the number of documents of the candidate list,
- the Posterior probability score for each given document D being given by P(C
- a method for locating an endpoint document comprising:
- the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the endpoint document;
- the Posterior probability score for each given document D being given by P(C
- the endpoint document being one of the documents in the last database version after the plurality of iterations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Computing Systems (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Probability & Statistics with Applications (AREA)
- Algebra (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A method for identifying a desired document is provided to include calculating a Prior probability score for each document of a candidate list including a portion of documents of an embedding space, the Prior probability score indicating a preliminary probability, for each document of the candidate list, that the document is the desired document, and identifying an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores, the initial collection of candidate documents having fewer documents than the candidate list. The method further includes, for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=1) and in response to user selection of an i'th selected document from the (i-1)'th collection of candidate documents, identifying an i'th collection of Ni>1 candidate documents from the candidate list in dependence on Posterior probability scores.
Description
B A YE SI AN VISUAL INTERACTIVE SEARCH
CROSS-REFERENCE TO OTHER APPLICATIONS
[0001] This application claims priority to U.S. Application No. 15/373,897 entitled "BAYESIAN VISUAL INTERACTIVE SEARCH," by Diego Guy M. Legrand, filed 09- December-2016.
[0002] U.S. Application No. 15/373,897 claims the benefit under 35 U.S.C. 119(e) of U.S. provisional application No. 62/265,367, entitled "BAYESIAN VISUAL INTERACTIVE SEARCH," filed 09-Dec-2015 (Atty. docket No. GNFN 3180-1) and U.S. provisional application No. 62/308,744, entitled "SCALING BAYESIAN VISUAL INTERACTIVE SEARCH," filed 15-Mar-2016 (Atty. Docket No. GNFN 3220-1).
[0003] U.S. Application No. 15/373,897 also claims priority to and is a Continuation-In-Part of PCT application No. PCT/IB2015/001267, entitled "VISUAL INTERACTIVE SEARCH," by Nigel Duffy, filed 04-May-2015 (Atty. Docket No. GNFN 3120-3), which is a continuation-in- part of U.S. Application No. 14/494,364, entitled "VISUAL INTERACTIVE SEARCH," by Nigel Duffy, filed 23 September 2014 (Atty. Docket No.: GNFN 3120-2), which claims the benefit under 35 U.S.C. 119(e) of U.S. provisional application No. 61/994,048, entitled "VISUAL INTERACTIVE SEARCH," by Nigel Duffy, filed 15 May 2014 (Atty. Docket No. GNFN 3120-1).
[0004] All of the above applications are incorporated herein in their entirety.
BACKGROUND
[0005] The invention relates generally to a tool for searching for digital documents in an interactive and visual way. Examples of digital documents include: photographs, product descriptions, or webpages. For example this tool may be used on a mobile device to search for furniture available for sale via an online retailer.
[0006] More specifically, this invention relates to document retrieval with relevance feedback.
[0007] Current computer search technologies allow users to perform queries and respond to those queries with an ordered list of results. The queries may be in the form of a structured query language, natural language text, speech, or a reference image. However, the results returned often do not satisfy the user's search goal. The user then proceeds to refine or modify the query in an attempt to better achieve desired goals.
SUMMARY
[0008] Aspects of the present disclosure are to address at least the above-mentioned problems and/or disadvantages and to provide at least the advantages described below. Accordingly, an aspect of the present disclosure is to provide a system that uses a novel, visual and iterative search technique with relative feedback.
[0009] In accordance with an aspect of the present disclosure a method for user identification of a desired document is provided. The method includes providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space, calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document, a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list, and for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l) and in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents C i, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
[0010] In accordance with another aspect of the present disclosure, a non-transitory computer-readable recording medium is provided, which contains software code portions that implement aspects of the above-described method.
[0011] In accordance with another aspect of the present disclosure, a system is provided, which includes one or more processors coupled to memory, the memory being loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions of the above-describe method.
[0012] In accordance with an aspect of the present disclosure a method for user identification of a desired document is provided. The method includes providing, accessibly to a computer
system, a database identifying a catalog of documents in an embedding space, calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document, a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents of the candidate list, the initial collection of candidate documents having fewer documents than the candidate list, and for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, calculating a Posterior probability score for each document of the candidate list, and identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the calculated Posterior probability scores for the documents in the candidate list, Ni being smaller than the number of documents of the candidate list, wherein the calculated Posterior probability score for each given document D is given by P(C|D)P(D), where C is the sequence of documents C i, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
[0013] In accordance with another aspect of the present disclosure, a non-transitory computer-readable recording medium is provided, which contains software code portions that implement aspects of the above-described method.
[0014] In accordance with another aspect of the present disclosure, a system is provided, which includes one or more processors coupled to memory, the memory being loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions of the above-describe method.
[0015] In accordance with an aspect of the present disclosure a method for user identification of a desired document is provided. The method includes providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space, calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document, initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list, developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th
tour of the plurality of tours, beginning with a first (k=l) tour: determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space, inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line, a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list, and for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, inserting documents into an i'th collection of Ni>l candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the it' selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk, Ni being smaller than the number of documents in the candidate list, and identifying toward the user the i'th collection of candidate documents from the candidate list, wherein the Posterior probability score for each given document D is given by P(C|D)P(D), where C is the sequence of documents cls Cj selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
[0016] In accordance with another aspect of the present disclosure, a non-transitory computer-readable recording medium is provided, which contains software code portions that implement aspects of the above-described method.
[0017] In accordance with another aspect of the present disclosure, a system is provided, which includes one or more processors coupled to memory, the memory being loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions of the above-describe method.
[0018] In accordance with an aspect of the present disclosure a method for user identification of a desired document is provided. The method includes providing, accessibly to a computer system, a database identifying (i) a catalog of documents in an embedding space and (ii) a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents,
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document, a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list, and for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, assigning a weight w to each given document D in dependence on a Posterior probability score for each given document D, and identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the assigned weights w, the Posterior probability scores and a distance from each given document D to a closest document in the candidate list, such that i'th collection is a collection of Ni>l documents from the candidate list having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights w and Posterior probability scores, Ni being smaller than the number of documents of the candidate list, wherein, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents ci, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
[0019] In accordance with another aspect of the present disclosure, a non-transitory computer-readable recording medium is provided, which contains software code portions that implement aspects of the above-described method.
[0020] In accordance with another aspect of the present disclosure, a system is provided, which includes one or more processors coupled to memory, the memory being loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions of the above-describe method.
[0021] In accordance with another aspect of the present disclosure, a method for locating an endpoint document is provided. The method includes providing, accessibly to a computer system, a catalog of documents in an embedding space, calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the endpoint document, a computer building an initial (i=0) database version of N0>1 candidate documents from the
candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial database version having fewer documents than the candidate list, the initial database version being stored in a computer system, for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): identifying an i'th relevant document from the (i-l)'th database version as the most relevant to the endpoint document of all the documents in the (i-l)'th database version, updating the i'th database version in the computer system to have Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents Ci , Ci identified as most relevant up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the endpoint document is D and where P(D) is the calculated Prior probability score for document D, and the endpoint document being one of the documents in the last database version after the plurality of iterations, and taking action in dependence upon identification of the endpoint document.
[0022] The above summary of the invention is provided in order to provide a basic understanding of some aspects of the invention. This summary is not intended to identify key or critical elements of the invention or to delineate the scope of the invention. Its sole purpose is to present some concepts of the invention in a simplified form as a prelude to the more detailed description that is presented later. Particular aspects of the invention are described in the clauses, specification and drawings.
BRIEF DESCRIPTION OF THE DRAWINGS:
[0023] The invention will be described with respect to specific implementations thereof, and reference will be made to the drawings, in which:
[0024] Fig. 1 is a block diagram of various components of a visual interactive search system according to an implementation of the present disclosure.
[0025] Fig. 2 illustrates a visual interactive search system according to an implementation of the present disclosure.
[0026] Fig. 3 is a block diagram of a user computer and/or a server computer, as illustrated in Fig. 2, that can be used to implement software incorporating aspects of the visual interactive search system according to an implementation of the present disclosure.
[0027] Fig. 4 is a flowchart illustrating various logic phases through which a visual interactive search system may proceed according to an implementation of the present disclosure.
[0028] Fig. 5 is a block diagram of various components of a server and a mobile device for implementing the visual interactive search system according to an implementation of the present disclosure.
[0029] Fig. 6 illustrates contents of a constraints database of Fig. 5 according to an implementation of the present disclosure.
[0030] Fig. 7 is a diagram illustrating primary types of messages that pass between a mobile device and a server, as illustrated in Fig. 6, according to an implementation of the present disclosure
[0031] Figs. 8, 9, 10, 11, 12, 13A and 13B illustrate specific implementations of embedding documents in an embedding space according to an implementation of the present disclosure.
[0032] Fig. 14 illustrates a visual interface that enables searching for shoes using a visual interactive search environment on a mobile device according to an implementation of the present disclosure.
[0033] Fig. 15 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement a purchase of a physical product such as clothing, jewelry, furniture, shoes, accessories, real estate, cars, artwork, photographs, posters, prints, and home decor according to an implementation of the present disclosure.
[0034] Fig. 16 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement a purchase of a digital product such as movies, music, photographs and books according to an implementation of the present disclosure.
[0035] Fig. 17 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement an identification of digital product that can be used to produce a physical product according to an implementation of the present disclosure.
[0036] Fig. 18 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement an identification of content for sharing according to an implementation of the present disclosure.
[0037] Fig. 19 is a flowchart illustrating Bayesian techniques for choosing and presenting collections of documents according to an implementation of the present disclosure.
[0038] Fig. 20 is a flowchart illustrating scaling Bayesian techniques for choosing and presenting collections of documents using Neighbor Graphs and Markov Chain Monto according to an implementation of the present disclosure.
[0039] Fig. 21 is a flowchart illustrating a creation of a Neighbor Graph of all documents in a candidate list according to an implementation of the present disclosure.
[0040] Figs. 22 A, 22B, 22C and 22D illustrate the creation of the Neighbor Graph in a candidate list from a perspective of a two-dimensional embedding space.
[0041] Fig. 23 is a flowchart illustrating improving a k'th tour in a Neighbor Graph by rearranging vertices to shorten distances between neighbors in a Neighbor Graph according to an implementation of the present disclosure.
[0042] Fig. 24 is a flowchart illustrating a repairing of a k'th tour in a Neighbor Graph to eliminate edges that are redundant with prior tours in the Neighbor Graph according to an implementation of the present disclosure.
[0043] Fig. 25 is a flowchart illustrating a determination of a next collection of documents from a candidate list using Markov Chain Monte-Carlo to complete a walk through the Neighbor Graph according to an implementation of the present disclosure.
[0044] Fig. 26 is a flowchart illustrating various logic phases for learning distances for a subject domain, such as a catalog of documents of an embedding space according to an implementation of the present disclosure.
DETAILED DESCRIPTION
[0045] The following description is presented to enable any person skilled in the art to make and use the invention, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed implementations will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other implementations and applications without departing from the spirit and scope of the present invention. Thus, the present invention is not intended to be limited to the implementations shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
[0046] Generally, Figs. 1-4 illustrate an overall high-level architecture and process flow of a visual interactive search system, Figs. 5-7 illustrate a mobile device and server implementation of a visual interactive search system, Figs. 8-13B illustrate specific implementations of embedding documents in an embedding space, Figs. 14-18 illustrate various implementations of the visual interactive search system for searching for physical and digital products, Fig. 19 illustrates an implementation of Bayesian techniques for identifying collections of documents, Figs. 20-25 illustrate an implementation of scaled Bayesian techniques for identifying collections of documents and Fig. 26 illustrates a process for learning distances between documents in the embedding space.
Overall Architecture and Process Flow of Visual Interactive Search System
[0047] In an implementation of the present disclosure, a system can have several aspects, and different implementation need not implement all of the following aspects: 1) a module for creating an initial query, 2) a module for obtaining a set of candidate results satisfying the initial query, 3) a module for determining the distance or similarity between candidate results or a module for embedding the candidate results in a vector space, 4) a module for sub-selecting a discriminating set of candidate results, 5) a module for arranging candidate results in 2 dimensions, 6) a module for obtaining user input with regard to the candidate results, 7) a module for refining the search query to incorporate information regarding the user input encoded as geometric or distance constraints with respect to the embedding or distance measures of 3, and 8) a module for iteratively obtaining a set of candidate results satisfying the initial query and the geometric or distance constraints accumulated from user input.
[0048] Fig. 1 is a block diagram of various components of an of a visual interactive search system according to an implementation of the present disclosure.
[0049] Referring to Fig. 1, a block diagram 100 of a visual interactive search system includes an embedding module 110 which calculates an embedding of source documents into an embedding space, and writes embedding information, in association with an identification of the documents, into a document catalog database (e.g., document catalog) 120. A user interaction module 130 receives queries and query refinement input (such as relevance feedback) from a user, and provides the received queries and query refinement input to a query processing module 140. In an implementation, the user interaction module 130 includes a computer terminal, whereas in another implementation the user interaction module 130 includes only certain network connection components through which the system communicates with an external computer terminal. The query processing module 140 interprets the queries as geometric constraints on the embedding space, and narrows or otherwise modifies a catalog of documents obtained from the embedding space to develop a set of candidate documents which satisfy the geometric constraints. These candidate documents are written into a candidate space database 150. Candidate spaces as used herein are also embedding spaces, and for example may constitute a portion of the embedding space of the document catalog database 120.
[0050] In some implementations, the query processing module 140 may also perform a re- embedding of the candidate documents in embedding space. A discriminative selection module 160 then selects a discriminative set of the documents from the candidate space database 150 and presents the discriminative set of the documents to the user via the user interaction module 130.
The user interaction module 130 may then receive further refinement queries from the user, which are handled as above, or the user interaction module 130 may receive a user commit indication, in which case the system takes some action using an action module 170 with respect to the user's selected document. The action taken by the action module 170 could be opening a document for the user, engaging in further search refinement, processing the user's selected document as an order for a product represented by the document, processing the user's selected document as an order for delivery of a digital product represented by the document, processing the user's selected document as an order for a product represented by the document to be manufactured and shipped, or processing the user's selected document as a request for sharing with others digital content represented by the document.
[0051] In some implementations the user refinement input may not require a further geometric constraint on the candidate space database 150, but rather may involve only selection of a different discriminative set of documents from the existing candidate space database 150 for presentation to the user. Also, in various implementations, the candidate space database may not be implemented as a separate database, but rather may be combined in various ways with the document catalog database 120. The candidate space database 150 may also be implied rather than physical in some implementations.
[0052] Fig. 2 illustrates a visual interactive search system according to an implementation of the present disclosure.
[0053] Referring to Fig. 2, a system 200 includes a user computer 210 and a server computer 212, connected to each other via a network 214 such as the Internet. The server computer 212 has accessibly thereto the document catalog database 120 (as also illustrated in Fig. 1) identifying documents in association with embedding information, such as relative distances and/or positions of the documents in a vector space. The user computer 210 also in various implementations may or may not have accessibly thereto a document catalog database 218 identifying the same information as identified in the document catalog database 120.
[0054] Initially, the embedding module 110 (as also illustrated in Fig. 1), which may for example be the server computer 212 or a separate computer system or a process running on such a computer, analyzes a catalog of documents to extract embedding information about the documents. For example, if the documents are photographs, the embedding module 110 may include a neural network and may use deep learning to derive embedding image information from the photographs.
[0055] Alternatively, the embedding module 110 may derive a library of image classifications (axes on which a given photograph may be placed), each in association with an
algorithm for recognizing in a given photograph whether (or with what probability) the given photograph satisfies that classification. Then the embedding module 110 may apply its pre- developed library to a smaller set of newly provided photographs, such as the photos currently on the user computer 210, in order to determine embedding information applicable to each photograph. Either way, the embedding module 110 writes into the document catalog database 120 the identifications of the catalog of documents that the user may search, each in association with the corresponding embedding information.
[0056] In yet another implementation, the embedding information that the embedding module 110 writes into document catalog database 120 may be provided from an external source, or entered manually.
[0057] The iterative identification steps described above can be implemented in a number of different ways. In one implementation, all computation takes place on the server computer 212, as the user iteratively searches for a desired document. For example, the operations of the query processing module 140 and the discriminative selection module 160 may take place on the server computer 212. The user, operating the user computer 210, sees all results only by way of a browser. In this implementation, it is not necessary that the user computer 210 have the document catalog database 218 accessibly thereto. In another implementation, the server computer 212 transmits its entire document catalog database 120 or a subset of thereof to the user computer 210. The user computer 210 can write the document catalog database 120 or the subset thereof into its own document catalog database 218. All computation takes place on the user computer 210 in such an implementation, as the user iteratively searches for a desired document. Many other arrangements are possible as well.
[0058] Fig. 3 is a block diagram of a user computer and/or a server computer, as illustrated in Fig. 2, that can be used to implement software incorporating aspects of the visual interactive search system according to an implementation of the present disclosure.
[0059] The diagram of Fig. 3 may also generally represent any device discussed in the present disclosure and/or illustrated in any of the figures. When referring to the user computer 210 with reference to Fig. 3, the present disclosure may also be references the server computer 212 or any other type of computer and/or computer system disclosed herein. Further, any of the method, logic steps or modules for carrying out specified operations as discussed in the present disclosure or as illustrated in the figures may be carried out using the some or all of the components illustrated in Fig. 3.
[0060] The user computer 210 typically includes a processor subsystem 314 which communicates with a number of peripheral devices via a bus subsystem 312. These peripheral
devices may include a storage subsystem 324, including a memory subsystem 326 and a file storage subsystem 328, user interface input devices 322, user interface output devices 320, and a network interface subsystem 316. The user interface input devices 322 and the user interface output devices 320 allow user interaction with the user computer 210. The network interface subsystem 316 provides an interface to outside networks, including an interface to a communication network 318, and is coupled via the communication network 318 to corresponding interface devices in other computer systems. The communication network 318 may comprise many interconnected computer systems and communication links. These communication links may be wireline links, optical links, wireless links, or any other mechanisms for communication of information, but typically the communication network 318 is an internet protocol (IP)-based communication network. While in one implementation, the communication network 318 is the Internet, in other implementations, the communication network 318 may be any suitable computer network.
[0061] Physical hardware components of network interfaces (e.g., the network interface subsystem 316 and the communication network 318) are sometimes referred to as network interface cards (NICs), although they need not be in the form of cards: for instance they could be in the form of integrated circuits (ICs) and connectors fitted directly onto a motherboard, or in the form of macrocells fabricated on a single integrated circuit chip with other components of the computer system.
[0062] The user interface input devices 322 may include a keyboard, pointing devices such as a mouse, trackball, touchpad, or graphics tablet, a scanner, a touch screen incorporated into a display, audio input devices such as voice recognition systems, microphones, and other types of input devices. In general, use of the term "input device" is intended to include all possible types of devices and ways to input information into the user computer 210 or onto the communication network 318. It is by way of the user interface input devices 322 that the user provides queries and query refinements to the system.
[0063] The user interface output devices 320 may include a display subsystem, a printer, a fax machine, or non-visual displays such as audio output devices. The display subsystem may include a cathode ray tube (CRT), a flat-panel device such as a liquid crystal display (LCD), a projection device, or some other mechanism for creating a visible image. The display subsystem may also provide non-visual display via audio output devices. In general, use of the term "output device" is intended to include all possible types of devices and ways to output information from the user computer 210 to the user or to another machine or computer system. It is by way of the user interface output devices 320 that the system presents query result layouts toward the user.
[0064] The storage subsystem 324 stores the basic programming and data constructs that provide the functionality of certain implementations of the present disclosure. For example, the various software modules implementing the functionality of certain implementations of the present disclosure may be stored in the storage subsystem 324. These software modules are generally executed by the processor subsystem 314.
[0065] The memory subsystem 326 typically includes a number of memories including a main random access memory (RAM) 330 for storage of instructions and data during program execution and a read only memory (ROM) 332 in which fixed instructions are stored. File storage subsystem 328 provides persistent storage for program and data files, and may include a hard disk drive, a floppy disk drive along with associated removable media, a CD ROM drive, an optical drive, or removable media cartridges. Databases and modules implementing the functionality of certain implementations of the present disclosure may have been provided on a computer readable medium such as one or more CD-ROMs, and may be stored by the file storage subsystem 328. The memory subsystem 326 contains, among other things, computer instructions which, when executed by the processor subsystem 314, cause the computer system to operate or perform functions as described herein. As used herein, processes and software that are said to run in or on "the host" or "the computer," execute on the processor subsystem 314 in response to computer instructions and data in the memory subsystem 326 including any other local or remote storage for such instructions and data.
[0066] The user computer 210 itself can be of varying types including a personal computer, a portable computer, a workstation, a computer terminal, a network computer, a television, a mainframe, a server farm, or any other data processing system or user device. In particular, it is envisaged that the user computer 210 may be a hand-held device such as a tablet computer or a smart-phone. In another implementation, a "system" performs all the operations described herein, and the "system" can be implemented as a single computer or multiple computers with any desired allocation of operations among the different member computers. Due to the ever-changing nature of computers and networks, the description of the user computer 210 depicted in Fig. 3 is intended only as a specific example for purposes of illustrating the preferred implementations of the present disclosure. Many other configurations of the user computer 210 are possible having more or less components than the user computer depicted in Fig. 3.
[0067] Fig. 4 is a flowchart illustrating various logic phases through which a visual interactive search system may proceed according to an implementation of the present disclosure.
[0068] Referring to Fig. 4, the various logic phases generally include (i) embedding documents, which requires a defining of distances and similarities between the digital documents
and database organization of the embedded digital documents, (ii) an implementation of an initial query to identify an initial candidate space, (iii) selecting an initial collection of documents to present to the user, (iv) an identification of candidate results in dependence on user input, (v) obtaining a discriminative result set in dependence on the user input, (vi) presenting results to the user, and (vii) obtaining user input for further refinement.
Embedding of the Documents
[0069] Initially, in operation 410, a catalog of digital documents (e.g., images, text, web- pages, catalog entries, sections of documents, etc.) is embedded in an embedding space and stored in a database. Though this group of documents may be referred to herein as a "catalog," the use of that term is not intended to restricted the group to documents that might be found in the type of catalog that a retail store might provide. In the database, a distance is identified between each pair of the documents in the embedding space corresponding to a predetermined measure of dissimilarity between the pair of documents. Specific implementations of embedding documents are further illustrated in Figs. 8-13B, discussed below.
[0070] The "embedding space," into which (digital) documents are embedded by the embedding module 110 (see Figs. 1 and 2) as described in operation 410, can be a geometric space within which documents are represented. In one implementation the embedding space can be a vector space and in another implementation the embedding space can be a metric space. In a vector space, the features of a document define its "position" in the vector space relative to an origin. The position is typically represented as a vector from the origin to the document's position, and the space has a number of dimensions based on the number of coordinates in the vector. Vector spaces deal with vectors and the operations that may be performed on those vectors.
[0071] When the embedding space is a metric space, the embedding space does not have a concept of position, dimensions or an origin. Distances among documents in a metric space are maintained relative to each other, rather than relative to any particular origin, as in a vector space. Metric spaces deal with objects combined with a distance between those objects and the operations that may be performed on those objects.
[0072] For purposes of the present disclosure, these objects are significant in that many efficient algorithms exist that operate on vector spaces and metric spaces. For example metric trees may be used to rapidly identify objects that are "close" to each other. Objects can be embedded into vector spaces and/or metric spaces. In the context of a vector space this means that a function can be defined that maps objects to vectors in some vector space. In the context of
a metric space it means that it is possible to define a metric (or distance) between those objects, which allows the set of all such objects to be treated as a metric space. Vector spaces allow the use of a variety of standard measures of distance (divergence) including the Euclidean distance. Other implementations can use other types of embedding spaces.
[0073] As used herein, "an embedding" is a map which maps documents into an embedding space. Typically an embedding is a function which takes, as inputs, a potentially large number of characteristics of the document to be embedded. For some embeddings, the mapping can be created and understood by a human, whereas for other embeddings the mapping can be very complex and non-intuitive. In many implementations the latter type of mapping is developed by a machine learning algorithm based on training examples, rather than being programmed explicitly.
[0074] In order to embed a document catalog in a vector space each document must be associated with a vector. A distance between two documents in such a space is then determined using standard measures of distance using vectors.
[0075] A goal of embedding documents in a vector space is to place intuitively similar documents close to each other. There are many ways to achieve this. For example a common way of embedding text documents is to use a bag-of-words model. The bag of words model maintains a dictionary. Each word in the dictionary is given an integer index, for example, the word aardvark may be given the index 1, and the word zebra may be given the index 60,000. Each document is processed by counting the number of occurrences of each dictionary word in that document. A vector is created where the value at the ith index is the count for the ith dictionary word. Variants of this representation normalize the counts in various ways. Such an embedding captures information about the content and therefor the meaning of the documents. Text documents with similar word distributions are close to each other in this embedded space.
[0076] There are many other possibilities by which documents may be embedded into a vector space. For example images may be processed to identify commonly occurring features using, e.g., scale invariant feature transforms (SIFT), which are then binned and used in a representation similar to the bag-of-words embedding described above. Further, embeddings can be created using deep neural networks, or other deep learning techniques. For example a neural network can learn an appropriate embedding by performing gradient descent against a measure of dimensionality reduction on a large set of training data. As another example, a kernel can be learned based on data and derive a distance based on that kernel. Likewise distances may be learned directly. These approaches generally use large neural networks to map documents, words, or images to high dimensional vectors (for example see: A brief introduction to kernel classifiers,
Mark Johnson, Brown University 2009, http://cs.brown.edu/courses/csl95- 5/fall2009/docs/lecture_l 0-27.pdf "Using Confidence Bounds for Exploitation-Exploration Trade-offs, incorporated herein by reference; and Kernel Method for General Pattern Analysis, Nello Cristianini, University of California, Davis, accessed October 2016, http://www.kernel- methods.net/tutorials/KMtalk.pdf).
[0077] In other implementations, an embedding can be learned using examples with algorithms such as Multi-Dimensional Scaling, or Stochastic Neighbor Embedding. An embedding into a vector space may also be defined implicitly via a Kernel. In this case the explicit vectors may never be generated or used, rather the operations in the vector space are carried out by performing Kernel operations in the original space.
[0078] Other types of embeddings of particular interest capture date and time information regarding the document, e.g., the date and time when a photograph was taken. In such cases a Kernel may be used that positions images closer if they were taken on the same day of the week in different weeks, or in the same month but different years. For example, photographs taken around Christmas may be considered similar even though they were taken in different years and so have a large absolute difference in their timestamps. In general, such Kernels may capture information beyond that available by simply looking at the difference between timestamps.
[0079] Similarly, embeddings capturing geographic information may be of interest. Such embeddings may consider geographic meta-data associated with documents, e.g., the geo-tag associated with a photograph. In these cases a Kernel or embedding may be used that captures more information than simply the difference in miles between two locations. For example, it may capture whether the photographs were taken in the same city, the same building, or the same country.
[0080] Often embeddings will consider documents in multiple ways. For example, a product may be embedded in terms of the meta-data associated with that product, the image of that product, and the textual content of reviews for that product. Such an embedding may be achieved by developing Kernels for each aspect of the document and combining those Kernels in some way, e.g., via a linear combination.
[0081] In many cases a very high dimensional space would be required to capture the intuitive relationships between documents. In some of these cases the required dimensionality may be reduced by choosing to embed the documents on a manifold (curved surface) in the space rather than to arbitrary locations.
[0082] Different embeddings may be appropriate on different subsets of the document catalog. For example, it may be most effective to re-embed the candidate result sets at each
iteration of the search procedure. In this way the subset may be re-embedded to capture the most important axes of variation or of interest in that subset.
[0083] To embed a document catalog in a metric space requires associating that catalog with a distance (or metric).
Distances Between Digital Documents
[0084] A "distance" between two documents in an embedding space corresponds to a predetermined measurement (measure) of dissimilarity among documents. Preferably it is a monotonic function of the measurement of dissimilarity. Typically the distance equals the measurement of dissimilarity. Example distances include the Manhattan distance, the Euclidean distance, and the Hamming distance.
[0085] Given the distance (dissimilarity measure) between documents to be searched, or the embedding of those documents into a vector space, a metric space or a manifold there are a variety of data structures that may be used to index the document catalog and hence allow for rapid search. Such data structures include metric trees, kd-trees, R-trees, universal B-trees, X- trees, ball trees, locality sensitive hashes, and inverted indexes. The system can use a combination of such data structures to identify a next set of candidate results based on a refined query. An advantage of using geometric constraints is that they may be used with such efficient data structures to identify next results in time that is sub-linear in the size of the catalog.
[0086] There are a wide variety ways to measure the distance (or dissimilarity) between documents, and these may be combined to produce new measures of distance. An important concept is that the intuitive relationships between digital documents may be captured via such a similarity or distance measure. For example, some useful distance measures place images containing the same person in the same place close to each other. Likewise, some useful measures place documents discussing the same topic close to each other. Of course there are many axes along which digital documents may be intuitively related, so that the set of all documents close (with respect to that distance) to a given document may be quite diverse. For example, a historical text describing the relationship between Anthony and Cleopatra may be similar to other historical texts, texts about Egypt, texts about Rome, movies about Anthony and Cleopatra, and love stories. Each of these types of differences constitutes a different axis relative to the original historical text.
[0087] Such distances may be defined in a variety of ways. One typical way is via embeddings into a vector space. Other ways include encoding the similarity via a Kernel. By associating a set of documents with a distance we are effectively embedding those documents
into a metric space. Documents that are intuitively similar will be close in this metric space while those that are intuitively dissimilar will be far apart. Note further that Kernels and distance functions may be learned. In fact, it may be useful to learn new distance functions on subsets of the documents at each iteration of the search procedure.
[0088] Note that wherever a distance is used to measure the dissimilarity between documents a Kernel may be used to measure the similarity between documents instead and vice-versa. In particular, in the sequel we will refer to the use of distances, e.g., in the definition of constraints. However, Kernels may be used directly instead without the need to transform them into distances.
[0089] Kernels and distances may be combined in a variety of ways. In this way multiple Kernels or distances may be leveraged. Each Kernel may capture different information about a document, e.g., one Kernel may capture visual information about a piece of jewelry, while another captures price, and another captures brand.
[0090] Also note that embeddings may be specific to a given domain, such as a given catalog of products or type of content. For example, it may be appropriate to learn or develop an embedding specific to men's shoes. Such an embedding would capture the similarity between men's shoes be would be uninformative with regard to men's shirts.
Database Organization
[0091] The databases used in an implementation of the present disclosure, such as databases 120 and 150 as illustrated in Fig. 1, may use commonly available means to store the data in, e.g., a relational database, a document store, a key value store, or other related technologies. In each case the original document contents (or pointers to them) may be stored and associated with their high dimensional representation, or a set of measures of distance relative to other documents.
[0092] In order to achieve scalable and fast search performance indexing structures are critical. When documents are embedded in a vector space indexes may be built using, e.g., kd- trees. When documents are associated with a distance metric and hence embedded in metric space metric trees may be used.
[0093] The databases described herein are stored on one or more non-transitory computer readable media. As used herein, no distinction is intended between whether a database is disposed "on" or "in" a computer readable medium. Additionally, as used herein, the term "database" does not necessarily imply any unity of structure. For example, two or more separate databases, when considered together, still constitute a "database" as that term is used herein.
Initial Query
[0094] Referring to Fig. 4, in operation 412 an initial query is optionally processed to yield an initial candidate space of documents satisfying the query results. The initial query may be a conventional text query, for example. The initial candidate space is within and optionally smaller than the full catalog of documents.
[0095] The initial query presented may be created and evaluated using a variety of standard techniques. For example, the initial query may be presented as a set of keywords entered via a keyboard or via speech, the initial query may be a natural language phrase, or sentence entered via a keyboard or via speech, or the initial query may be an audio signal, an image, a video, or a piece of text representing a prototype for which similar audio signals, images, videos, or text may be sought. A variety of means are known by which such an initial query may be efficiently evaluated, e.g., searching a relational database, or using an inverted index. The initial query may also be designed to simply return a random set of results or the initial query may be empty such that it imposes no constraints.
[0096] Other interfaces for initial queries allow for faceted search. A faceted search provides a means for users to constrain a search along a set of axes. For example, the faceted search might provide a slider that allows users to constrain the range of acceptable prices.
[0097] The search constraints created from the initial query (as well as subsequent user input) can be used to identify a set of candidate results. This may be achieved using a variety of means. For example, the initial query may be performed against a relational database whereby the results are then embedded in a vector or metric space. These results may then be indexed using, e.g., a kd-tree or a metric tree and searched to identify candidates that satisfy both the initial query and the constraints. Alternatively, the initial query may also be converted to geometric constraints that are applied to the set of embedded documents. For example, the geometric representation of the constraints implied both by the initial query and the user input are combined and an appropriate index is used to identify embedded documents satisfying both sets of constraints. Geometric constraints are discussed in more detail below with reference to operation 418.
Selection of Initial Collection of Documents
[0098] In operation 413 an initial collection of digital documents is derived from the initial candidate space. This initial collection of documents is a subset of the initial candidate space. As used herein, the term "subset" refers only to a "proper" subset. The initial candidate space is sometimes referred to herein as an "i=0" candidate space, for convenient description hereinafter
of the iterative search process. Similarly, the initial collection of documents is sometimes referred to herein as an "i=0" collection. In one implementation the initial collection of documents is selected as a discriminative subset of the catalog, while in another implementation the initial collection of documents is not discriminative.
[0099] In operation 414, the initial collection of documents is identified toward the user. In one implementation this operation can include displaying a representation of the documents in the initial collection visibly to the user.
User Feedback, Geometric Constraints and Discriminative Result Set
[00100] At the beginning of the i'th iteration, in operation 416, the user provides relative and/or categorical feedback as to the documents in the (i-l)'th collection of documents. Preferably the relative feedback takes the form of user selection of a subset of the documents from the (i-l)'th collection, where selection of a document implies that the user considers that document to be more relevant to a search target than unselected documents from the (i-l)'th collection. The selected subset in the i'th iteration is referred to herein as the i'th selected subset, and those documents from the (i-l)'th collection which were not selected are sometimes referred to herein collectively as the i'th non-selected subset. Relative feedback and categorical feedback both can be considered forms of "relevance feedback."
[00101] In operation 418, a set of geometric constraints is derived from the relative feedback, in a manner described elsewhere herein. The set of geometric constraints derived in the i'th iteration is referred to as the i'th set of geometric constraints.
[00102] In operation 420, the i'th set of geometric constraints is applied to the embedding space to form an i'th candidate space, and in operation 422 an i'th collection of candidate documents is selected as a subset of the documents in the i'th candidate space. In one implementation the i'th collection of documents is selected as a discriminative subset of the i'th candidate space, while in another implementation the i'th collection of documents is not discriminative.
[00103] As used herein, a "geometric constraint" applied to an embedding space is a constraint that is described formulaically in the embedding space, rather than only by cataloguing individual documents or document features to include or exclude. Preferably the geometric constraint is defined based on distance (or similarity) to at least two documents that the user has seen. For example, such a constraint might be expressed as, "all documents which are more similar to document A than to document B."
[00104] In a vector embedding space, for example, the constraint can be described in the form of a specified function which defines a hypersurface. Documents on one side of the hypersurface satisfy the constraint whereas documents on the other side do not. A hyperplane may be defined in terms of dot products or Kernels and requires that k(x,z) > 0 for a fixed vector x and a candidate z. Likewise a conic constraint may require that k(x,z) > c for some constant c. In a metric embedding space, the constraint can be described in the form of a function of, for example, distances between documents. Thus in a metric embedding space, a geometric constraint might take the form of 'all documents within a specified distance from document X', for example, or 'all documents whose distance to document A is less than its distance to document B'. In one implementation, a hyperplane defined for a metric space takes the form of an "m-hyperplane," which, as used herein, is defined by two points a and b in the metric space as follows:
An m-hyperplane specified by the points a and b partitions a metric space (X, d) into two sets A and B where:
A = {x : x in X such that d(a,x) <= e * d(a,b) * d(b,x) + f * d(b,x) + h*d(a,b) + i} B = X \ A
Where e, f, g, h, and i are real valued constants which are not all equal to zero.
The geometric constraint is considered satisfied for only those documents which are located in a specified one of the partitions A or B of the metric space.
[00105] Geometric constraints also may be combined using set operations, e.g., union, intersection to define more complex geometric constraints. They also may be created by taking transformations of any of the example constraints discussed. For example, a polynomial function of distances, e.g., d(x,z) * d(x,z) + d(y,z) < d(w, z) for given documents x, y, and w can be used, where only those documents z which satisfy the function are considered to satisfy the geometric constraint.
[00106] Kernels may be used independently of distances and constraints may be expressed directly in terms of Kernels, polynomials of Kernels, transformations of Kernels, or combinations of Kernels.
[00107] In an implementation, each iteration of a user search sequence identifies a new constraint, and the result set at that iteration is defined by the combined effect of all the constraints. For example if a constraint is represented as a hypersurface, where only those candidates on side A of the hypersurface are considered to satisfy the constraint, then the result set at a given iteration might be considered to be all those candidate documents which are within the intersection of the sides A of all the constraint hypersurfaces.
[00108] In various implementations, constraints (either as indicated by the user or as converted to geometric constraints) may be "hard" or "soft." Hard constraints are those which must be satisfied in the sense that solutions must satisfy the conditions of all hard constraints. Soft constraints are those which need not be satisfied but candidate solutions may be penalized for each soft constraint that they don't satisfy. Solutions may be rejected in a particular implementation if the accumulation of such penalties is too large. Constraints may be relaxed in some implementations, for example hard constraints may be converted to soft constraints by associating them with a penalty, and soft constraints may have their penalties reduced.
[00109] One way in which geometric constraints may be represented is to maintain a list of all unordered pairs of documents. Each entry in the list would be a pair (a,b), where a represents one document and b represents another document. The pair (b,a) may also appear in the list. Each entry is understood to mean that a candidate must be closer to the first element than to the second element in the pair. Thus, the two elements of the pair are sometimes referred to herein as "anchor documents." For example, given document c, the pair (a,b) would be associated with the constraint d(a,c) < d(b,c). A real number can be associated with each pair. In the hard constraint case that number could be 0 or 1 with a 1 meaning that constraint must be satisfied and a 0 meaning that it does not need to be satisfied. Alternatively, in the soft constraint case the number could be any real number representing the penalty associated with breaking that constraint. This information could be maintained in other ways, e.g., using sparse representations. One alternative would be to maintain only those pairs associated with non-zero real numbers.
[00110] The goal of each set of geometric constraints derived in operation 418 from the user's relative feedback is to further narrow or modify the prior candidate space so as to form a new candidate space which better approaches the user's desired target. At each iteration, the information that the system has about the user's desired target is provided in the form of the user's relative feedback, which is provided in the form of a selection of documents. In general, therefore, each i'th set of geometric constraints identifies an i'th candidate space such that, according to some predefined definition of collective closeness, the documents in the i'th candidate space are collectively closer in the embedding space to the documents in the i'th selected subset, than are the documents in the (i-l)'th candidate space. This means that the predefined definition of collective closeness is defined such that, at a minimum, a candidate document X is considered closer to a document A than to a document B if in the embedding space, d(A,X) < d(B,X).
[00111] For one implementation in which the i'th selected subset or the i'th non-selected subset or both can contain more than one document, the predefined definition of collective
closeness is defined further such that the documents in a given candidate space are collectively closer to the documents in a given selected subset, than are the documents in a particular prior candidate space, if the fraction of the documents in the given candidate space which are closer in the embedding space to the farthest document in the given selected subset than to the nearest document in the given non-selected subset, is greater than the fraction of the documents in the particular prior candidate space which are closer in the embedding space to the farthest document in the given selected subset than to the nearest document in the given non-selected subset.
[00112] For another implementation in which the i'th selected subset or the i'th non-selected subset or both can contain more than one document, the predefined definition of collective closeness is defined further such that the documents in a given candidate space are collectively closer to the documents in a given selected subset, than are the documents in a particular prior candidate space, if the count, over all documents Y in the given candidate space and all pairs of documents (A,B), A in the i'th selected subset and B in the i'th non-selected subset, of instances in which d(A,Y) < d(B,Y), is less than the count, over all documents X in the particular prior candidate space and all the pairs of documents (A,B), of instances in which d(A,X) < d(B,X), each of the counts normalized for any difference between the total number of documents Y in the given candidate space and the total number of documents X in the particular prior candidate space.
[00113] For yet another implementation in which the i'th selected subset or the i'th non- selected subset or both can contain more than one document, the predefined definition of collective closeness is defined further such that the documents in a given candidate space are collectively closer to the documents in a given selected subset, than are the documents in a particular prior candidate space, if the fraction of the documents Y in the given candidate space which are closer to the documents A in the i'th selected subset, averaged over all the documents A in the i'th selected subset, than they are to the documents B in the i'th non-selected subset, averaged over all the documents B in the i'th non-selected subset, is less than the fraction of the documents X in the particular prior candidate space which are closer to the documents A in the i'th selected subset, averaged over all the documents A in the i'th selected subset, than they are to the documents B in the i'th non-selected subset, averaged over all the documents B in the i'th non-selected subset. The term "an average," as used herein, includes both a mean and a median, and optionally includes weighting as well.
[00114] For still another implementation in which the i'th selected subset or the i'th non- selected subset or both can contain more than one document, the predefined definition of
collective closeness is defined further such that the documents in a given candidate space are collectively closer to the documents in a given selected subset, than are the documents in a particular prior candidate space, if an aggregation, over all documents Y in the given candidate space and all pairs of documents (A,B), A in the i'th selected subset and B in the i'th non-selected subset, of penalties associated with each instance in which d(A,Y) > d(B,Y), is less than an aggregation, over all documents X in the particular prior candidate space and all the pairs of documents (A,B), of penalties associated with each instance in which d(A,X) > d(B,X), where each instance in which d(A,W) > d(B,W) is satisfied, for a given document W, is pre-associated with a respective penalty value. "Aggregation," or "aggregate," as used herein, includes sum, percentage, or other normalization, in which the further inclusion of an additional positive number does not decrease the total aggregate.
[00115] An advantage of working with geometric constraints is that, in an implementation, the memory and computational resources required to maintain and update the constraints depends on the number of constraints and not on the catalog size. This would, for example, allow constraint management to be performed and maintained on a mobile device such as a phone or tablet, rather than on a server.
[00116] Search queries may be ambiguous, or underspecified and so the documents satisfying a query may be quite diverse. For example, if the initial query is for a "red dress" the results may be quite varied in terms of their length, neckline, sleeves, etc. These operations of the present disclosure can be implemented to sub-select a discriminating set of results. Intuitively the objective is to provide a set of results to the user such that selection or de-selection of those results provides the most informative feedback or constraints to the search algorithm. These operations may be thought of as identifying an "informative" set of results, or a "diverse" set of results, or a "discriminating" set of results. The discriminative selection module 160, as illustrated in Fig. 1, may perform operation 418, to select a discriminative subset of results in any of a variety of ways.
[00117] In one implementation, a subset of the results may be discriminative as it provides a diversity of different kinds of feedback that the user can select. Diverse images may be selected as in, e.g., van Leuken, et al., "Visual Diversification of Image Search Results," in WWW '09 Proceedings of the 18th international conference on World wide web, pp. 341-350 (2009), incorporated by reference herein. This diverse set is selected in order to provide the user with a variety of ways in which to refine the query at the next iteration. There are a variety of ways in which such a set may be identified. For example, farthest first traversal may be performed which incrementally identifies the "most" diverse set of results. Farthest first traversal requires only a
distance measure and does not require an embedding. Farthest first traversal may also be initialized with a set of results. Subsequent results are then the most different from that initial set.
[00118] Other means for selecting discriminative subsets of candidate results include using algorithms such as principal component analysis (PCA) or Kernel PCA to identify the key axes of variation in the complete set of results. The discriminative subset is then constructed to contain documents that lie at multiple points along those most discriminating axes.
[00119] Another means for selecting discriminative subsets of candidate results might use a clustering algorithm to select discriminative subsets of candidate results. Such a mechanism may use a clustering algorithm such as k-means, or k-medoids to identify clusters of similar documents within the candidate results. See http://en.wikipedia.org/wiki/K-means_clustering (visited 29 April 2015) and http://en.wikipedia.org/wiki/K-medoids (visited 29 April 2015), both incorporated by reference herein. One or more representative documents would then be selected from each cluster to yield the discriminative subset. In particular, when k-medoids is used the medoid of each cluster may be used as one of the representatives for that cluster.
[00120] Still another means might consider the set of constraints that would result from the user selecting or deselecting a given document. This set of constraints may be considered in terms of the candidate results it would yield. A discriminative subset may be selected so that the sets of candidate results produced by selecting any of the documents in that discriminative subset are as different as possible.
[00121] As used herein, "discriminativeness" of a particular set of documents in a group of documents is the least number of documents in the group that are excluded as a result of user selection of any document in the set. That is, if user selection of different documents in the particular set results in excluding different numbers of documents in the group, then the set's "discriminate veness" is considered herein to be the least of those numbers. Note that either the discriminative set of documents, or the formula by which user selection of a document determines which documents are to be excluded, or both, should be chosen such that the union of the set of documents excluded by selecting any of the documents in a discriminative set equals the entire group of documents.
[00122] Also as used herein, the "average discriminativeness" of a set of size n documents in a group of documents, is the average, over all sets of size n documents in the group of documents, of the discriminativeness of that set. Also as used herein, one particular set of documents can be "more discriminative" than another set of documents if the discriminativeness of the first set is greater than the discriminativeness of the second set.
[00123] Preferably the selection module 160, when performing operation 418, selects a set of N1>1 documents from the current candidate space database 150, which is more discriminative than the average discriminativeness of sets of size Nl documents in the candidate space. Even more preferably, selection module 160, when performing operation 418 selects a set which is at least as discriminative as 90% of, or in some implementations all of, other sets of size Nl documents in the current candidate space.
[00124] Not all implementations necessarily need to perform operation 418 of selecting a discriminative subset of candidates. In some implementations it is sufficient for the user interaction module 130 to present toward the user a subset of documents that are chosen randomly from the candidate set, or that are chosen in some other way. In such an implementation the discriminative selection module 160 is replaced with simply a selection module.
[00125] The selected subset may be chosen to balance discriminativeness with satisfying soft constraints. For example, if soft constraints are used then each document becomes associated with a penalty for each constraint it breaks. The selected subset may be chosen to trade-off the total penalties for all candidates in the selected subset, with the discriminativeness of that subset. In particular, the document with the smallest penalty may be preferentially included in the selected subset even if it reduces the discriminativeness.
[00126] In some cases, see below, constraints may be managed and updated using a machine learning algorithm. In particular, this may include active learning algorithms, or bandit algorithms. These algorithms identify "informative" (or discriminative) examples at each iteration. When these algorithms are used to manage constraints, their identification of informative examples may be used as the discriminative subset, or as the basis for determining the discriminative subset. Bandit algorithms are of particular interest as they seek to trade-off maximizing reward (i.e., finding the target document), with identifying discriminative examples.
[00127] Any of the above techniques for selecting a discriminative subset may also be used in the selection of an initial collection of candidate documents to be presented toward the user, either before or after the initial query
Presenting Results to the User
[00128] In operation 423 the i'th collection of documents (e.g., the results of operations 418 and 420) is presented toward the user for optional further refinement. These results may be identified as discriminative results, which are presented to the user.
[00129] In an implementation, an aim of the discriminative results presentation to the user in operation 420, by the user interaction module 130, is to provide the user with a framework in which to refine the query constraints.
[00130] For example the results may be presented as a two dimensional grid. Results should be placed on that grid in a way that allows the user to appreciate the underlying distances between those results (as defined using a distance measure or embedding). One way to do this would be to ensure that results that are far from each other with respect to the distance measure are also displayed far from each other on the grid. Another way would be to project the embedding space onto two dimensions for example using multidimensional scaling (MDS) (for example see: Jing Yang, et al., "Semantic Image Browser: Bridging Information Visualization with Automated Intelligent Image Analysis," Proc. IEEE Symposium on Visual Analytics Science and Technology (2006), incorporated herein by reference). Yet another way would be to sub-select axes in the embedding space and position results along those axes.
[00131] Other layouts contemplated include 2 dimensional organizations not on a grid (possibly including overlapping results), 3 dimensional organizations analogous to the 2 dimensional organizations. Multi-dimensional organizations analogous to the 2 and 3 dimensional organizations with the ability to rotate around one or more axes. In general an M- dimensional layout can be used, where M>1. In implementations in which the embedding space has dimensions, the number of dimensions in the presentation layout need not be the same as the number of dimensions in the embedding space. Yet other layouts include hierarchical organizations or graph based layouts.
[00132] The document placement in the layout space should be indicative of the relationship among the documents in embedding space. For example, the distance between documents in layout space should correspond (monotonically, if not linearly) with the distance between the same documents in embedding space. Also, if three documents are collinear in embedding space, advantageously they are placed collinearly in layout space as well. In particular, collinearity in layout space with a candidate document which the system identifies as the most likely target of the user's query (referred to herein as the primary candidate document) indicates collinearity in the embedding space with the primary candidate document.
[00133] It will be appreciated, however, that the embedding space typically has a very large number of dimensions, and in high dimensional spaces very few points are actually collinear. In an implementation, therefore, documents presented collinearly in layout space indicate only "substantial" collinearity in the embedding space. If the embedding space is such that each document has a position in the space (as for a vector space), then three documents are considered
"substantially collinear" in embedding space if the largest angle of the triangle formed by the three documents in embedding space is greater than 160 degrees. If the embedding space is such that documents do not have a position in the embedding space, but they do have distances from each other (such as for a metric space), then as used herein, a group of three documents are considered collinear if the sum of the two smallest distances between pairs of the documents in the group in embedding space equals the largest distance between pairs of the documents in the group in embedding space. The three documents are considered "substantially collinear" if the sum of the two smallest distances exceeds the largest distance by no more than 10%. As used herein, "coUinearity" and "substantial coUinearity" do not include the trivial cases of coincidence or substantial coincidence.
User Input and Further Refinement of Query
[00134] In operation 424, a determination is made as to whether the user requests further refinement. If the user is satisfied with one of the candidate results (NO in operation 424), then the user essentially indicates to commit to that result and then in operation 426 the system takes action with respect to the user-selected document. If the user input indicates further refinement (YES in operation 424), then the logic returns to operation 415 for the next iteration of the search loop.
[00135] The user interaction module 130, as illustrated in Fig. 1, provides the user with a user interface (UI) which allows the user to provide input in a variety of ways. This UI can provide interactions with the user in operation 424, as well as operation 416 or any other operation that can benefit from the interaction of the user. The user may click on a single result to select it, or may swipe in the direction of a single result to de-select it. Similarly, the user may select or deselect multiple results at a time. For example, this may be done using a toggle selector on each result. The user might also implicitly select a set of results by swiping in the direction of a result indicating a desire for results that are more like that result "in that direction." In this case "in that direction" means that the differences between the primary result and the result being swiped should be magnified. That is, the next set of results should be more like the result being swiped and less like the "primary result." This concept may be generalized by allowing the user to swipe "from" one result "to" another result. In this case new results should be more like the "to" result and less like the "from" result.
[00136] Additionally, the UI can provide the user with the ability (e.g., via a double-click, or a pinch) to specify that the next set of results should be more like a specific result than any of the other results displayed. That is, the user selects one of the displayed results to indicate that that
result is preferred over all other displayed results. This may then be encoded as a set of constraints indicating for each non-selected document that future candidates should be closer (in the embedding space) to the selected document than to that non-selected document. This form of feedback, in which the user selects documents to indicate they are "more relevant" than the non- selected documents to the user's desired goal, is sometimes referred to herein as "relative feedback." It is distinct from more traditional "categorical feedback," in which users are required to select candidates that are and are not relevant. However, in many cases relevant documents are so rare that there may be no such documents available for the user to select. Conversely, implementations of the system herein allow relative feedback where the user identifies more relevant candidates that may not actually be strictly relevant to the target, but still provide significant information to guide further searching. Relative feedback and categorical feedback both can be considered forms of "relevance feedback."
[00137] One way to encode relative feedback is as a set of geometric constraints on the embedding space. For each non-selected image B a constraint is created of the form d(A,C) < d(B,C) where A is the selected image and C is the candidate image to which the constraint is applied (d is the distance in the embedding space). A candidate C then satisfies the constraint only if it satisfies d(A,C)<d(B,C). In this way a single click generates multiple constraints. These constraints may be combined, e.g., such that the combined constraint is their intersection, and further candidate documents can be given a rank which is a monotonic function of the number of individual ones of the constraints that the candidate breaks (with smaller rank indicating greater similarity to the user's target).
[00138] Alternatively, the constraints may be used as soft constraints by associating each such constraint with a penalty. In this alternative further candidate documents can be given a rank which is a monotonic function of the sum total of the penalties associated with all of the individual constraints that the candidate breaks. In still further implementations the rank may be made dependent upon the age of a constraint (how early in the iterative search the constraint was imposed). This may be accomplished in one implementations by determining (or modifying) a penalty associated with each given constraint in dependence upon the iteration number in which the given constraint was first imposed. In one implementation the penalty may be designed to increase with the age of the constraint, whereas in another implementation the penalty may be designed to decrease with the age of the constraint.
[00139] This approach may be extended to allow the user to select multiple images that are more relevant. This feedback may be interpreted such that each of the selected images is more relevant than each of the non-selected images. In an implementation, the system might then
create a different constraint corresponding to each pair of one selected document and one non- selected document. A total of P*Q constraints are created, where P is the number of selected documents and Q is the number of non-selected documents. The constraints may be of the form d(Ai,C)<d(Bj,C), i=l ...P andj=l ...Q.
[00140] The UI could provide the inverse ability, i.e., it may allow the user to select less relevant rather than more relevant images and the above description would be modified appropriately.
[00141] The UI can also provide the ability to specify that the next set of results should be like a particular selection but more diverse than the currently selected set of results.
[00142] Furthermore, the UI can provide the user with the ability to remove previously added constraints. In one implementation, a stack (or history) of constraints is maintained. The UI provides the user with the ability to remove constraints from the stack and hence remove constraints that were previously added. Even more particularly, when each piece of user feedback is provided as a single preferred image, i.e., the selected image is preferred over the non-selected images, the UI may display the sequence of selected images and allow the user to remove a single (previously selected image) and its associated constraints, or may allow the user to go back to a previous state by sequentially removing images (and their associated constraints) from the stack. This may be achieved with a "back button," or by displaying the stack on the user interface.
[00143] The UI may also provide the ability for the user to specify that a different set of similarly diverse images be provided. Further, the UI may also provide the ability for the user to provide multiple different kinds of feedback.
[00144] The system then incorporates the user's input to create a refined query, such as in operation 424, which loops back to operation 416. The refined query includes information regarding the initial query and information derived from the iterative sequence of refinements made by the user so far. This refined query may be represented as a set of geometric constraints that focus subsequent results within a region of the embedding space. Likewise, it may be represented as a set of distance constraints whose intersection defines the refined candidate set of results. It may also be represented as a path through the set of all possible results.
[00145] For example, the refined query may include constraints that require subsequent results to be within a specified distance of one of the selected candidate results. Or the refined query may include constraints that require subsequent results to be closer (with respect to the distance measure) to one candidate result than to another. These constraints are combined with the previously identified constraints in a variety of ways. For example, candidates may be
required to satisfy all of these constraints, or may be required to satisfy a certain number of all constraints, or, in the case of soft constraints, they may be charged a penalty for each constraint they break.
[00146] Another way to manage constraints and refine the query is to use a machine learning algorithm, see below. Further, users may specify incompatible constraints. A system according to the present disclosure may have the ability to relax, tighten, remove, or modify constraints that it determines are inappropriate.
[00147] One way in which constraints may be relaxed or removed is with user feedback. In particular, the UI may provide a means for the user to remove previously added constraints, or to remove constraints from a history, i.e., to "go back."
[00148] Another way in which the system might relax or tighten constraints is in the context of soft constraints. In particular, if the geometric constraints are treated as soft constraints, i.e., a penalty is charged for each broken constraint, then these penalties may be different for each constraint. Specifically, older constraints may have smaller or larger penalties than newer constraints. Here newer constraints are those which were added in recent iterations, while older constraints are those which were added in earlier iterations. Wherever soft constraints are implemented with penalties, the candidate results may then be documents that have smaller total penalties summed over all such constraints. The candidate result set is then all documents whose total penalty is less than some predetermined value, or only the N documents having the smallest total penalty, where N is a predefined integer.
[00149] The geometric constraints may be updated and maintained using the machine learning algorithm, as mentioned above. In such implementations, the user's feedback is treated as training data to which the machine learning algorithm is applied, and the result of that application yields a model (also sometimes referred to herein as a hypothesis) of the user's desired target, that may in some cases be a geometric constraint. However, the resulting constraint is typically not expressed directly in terms of the user's feedback. That is, the resulting model does not explicitly test for the distances between candidate documents and documents for which the user has provided feedback, rather this relationship is indirect or implicit.
[00150] While many machine learning algorithms learn to classify documents into two or more classes, e.g., relevant or not relevant, some algorithms rank order documents according to their relevance. Examples of such algorithms include RankBoost (Freund, et al., "An Efficient Boosting Algorithm for Combining Preferences," Journal of Machine Learning Research 4 (2003) 37 pages), or the Ranking Perceptron (Collins, et al., "Convolution Kernels for Natural Language," in Advances in Neural Information Processing Systems, pp. 625-632 (2001)), both
incorporated by reference herein. Such algorithms use feedback or training examples where only ordering information is provided. Specifically, they make use of training data where documents (examples) are not classified as relevant or irrelevant, but rather are rank ordered with respect to their relative relevance.
[00151] When viewed in the context of Fig. 4, rank order learning algorithms sometimes refer to the geometric constraints developed in operation 414 as a "hypothesis" or "model." Thus in the case of rank order learning algorithms, the development of geometric constraints in operation 414 involves training or updating the current hypothesis or model based on the user feedback combined with the feedback from previous iterations. The subset of candidates presented toward the user in operations 420-423 typically would be some limited number of the highest ranking documents based on the current hypothesis. This would not necessarily be a "discriminative" subset. However, some learning algorithms also naturally identify informative or discriminative documents as part of their process of hypothesis development. These are typically documents that when labeled as relevant or irrelevant and added to the training set will most improve the model. For these kinds of learning algorithms, operation 418 may select a discriminative subset merely involves selecting the documents already identified naturally in operation 416, and the subset of candidates presented toward the user in operation 423 is indeed discriminative.
[00152] One approach to the use of machine learning algorithms to update and maintain geometric constraints is to use a classification algorithms such as Support Vector Machines (e.g. Tong, et al., "Support Vector Machine Active Learning for Image Retrieval," In Proceedings of the ACM International Conference on Multimedia, 12 pages, ACM Press, 2001, incorporated by reference herein; or Tieu et al., "Boosting Image Retrieval," International Journal of Computer Vision 56(1/2), pp. 17-36, 2004, Accepted July 16, 2003, incorporated by reference herein). Support Vector Machines maintain a single hyperplane in the embedding space. Variants of Support Vector Machines may use active learning not only to identify new constraints at each iteration, but also to select an informative set of candidate documents at each iteration.
[00153] Alternatively a so-called "online learning algorithm" may be implemented (http://en.wikipedia.org/wiki/Online_machine_learning, visited 29 April 2015) or a so-called "multi-armed bandit" learning algorithm (http://en.wikipedia.org/wiki/Multi-armed_bandit, visited 29 April 2015), either of which can be used to accomplish the same result. Both these documents are incorporated by reference herein.
[00154] Online learning algorithms, as the term is used herein, maintain a model or hypothesis that is incrementally updated based on training data. That is, these algorithms do not require access to the complete set of training data, or in the present context the complete set of user
feedback. When new training data is presented, these algorithms can update their model or hypothesis without having to re-train the system with previously seen training data. Rather these algorithms maintain a model or hypothesis that is updated incrementally based only on the most recent set of feedback. Because of this they can require substantially less memory and/or computational resources, allowing them, for example, to be performed on a mobile device. In the context of the present description the hypothesis may be used to represent the geometric constraints. For example, it may represent a hyperplane in the embedding space, or it may represent a weighted combination of items in a catalog where items with larger weight are understood to be closer to the target item. Users' feedback is interpreted as the training data that the online learning algorithm uses to learn from. That is, the online learning algorithm updates its hypothesis (geometric constraints) based on this feedback.
[00155] In one implementation, the online learning algorithm uses the "Prediction with Expert Advice" framework (Cesa-Bianchi et al., Prediction, Learning, and Games, Cambridge University Press, 2006, incorporated by reference herein). In this case each catalog item (document) is interpreted as an expert and assigned a weight. Initially, these weights are all the same. Each catalog item when combined with the associated distance can be understood to provide an ordering of the catalog. Specifically, for a catalog item A, all other items in the catalog, X for example, may be assigned a number corresponding their distance, e.g., d(A, X). The items in the catalog may then be sorted using that number, i.e., d(A, X). For a set of candidates each expert corresponding to a catalog item, e.g., A, recommends the selection of the item, e.g., X, it ranks highest in that set, i.e., the item for which d(A, X) is smallest. The weight of each expert is then increased or decreased depending on whether the user selected that expert's highest ranked item. Proceeding iteratively the item the user is searching for will be correct (i.e., recommend the correct item from the candidate set) more often than any other item and so will obtain the largest weight. Many variations on this general approach are possible. Generally online learning algorithms do not also provide a natural means to yield a discriminative subset. However, they may be combined with a variety of other means to do so including means based on PCA, clustering, or any other means by which a highly discriminative subset can be chosen including brute force search methods.
[00156] Multi-armed bandit algorithms are closely related to the "Prediction with Expert Advice" framework. Similarly to online learning algorithms these algorithms maintain a hypothesis that is incrementally updated based on user feedback. Rather than maintain the complete set of user feedback they update their hypothesis based only on the most recent feedback. Again, this means that these algorithms may require fewer computational resources
and may therefore be performed on a mobile device. This would allow the constraints to be managed on the mobile device rather than on a separate server. These algorithms likewise maintain a set of experts (referred to as "arms") and seek to identify a good one. The key distinction (in the present setting) is that at each round these algorithms select one or more "arms" (or experts) to play. In the present context "play" means present to the user. Arms are selected so as to balance two goals: play good arms, and learn which arms are good. The user feedback is then interpreted as reward to the selected arms, e.g., if the user clicks on one of the arms that may translate to high reward.
[00157] One way such an algorithm may be adapted to maintain and update the geometric constraints, and to select a subset of candidates is described below. Clearly, other adaptations may also be effective. Again each item (document) in the catalog is associated with an arm (expert). Each arm is associated with an estimate of its reward (i.e., its suitability as the solution to the query) and a confidence interval (certainty value) for that estimate. Initially, all of the reward estimates are equal and all of the certainties are identical. At each iteration of the search procedure one or more arms are selected as the "discriminative set" and presented to the user. The user clicks on one of the candidates and the corresponding arm is provided with high reward. The other candidates are provided with low reward. The corresponding reward estimates are updated. The certainty of each of the arms in the candidate set is increased as more data has been collected to estimate its reward. Now the algorithm selects another set of candidates (arms) such that the set contains arms with either high reward or large uncertainty about their reward or both. Proceeding iteratively, the target of the user's search will obtain a highly certain estimate of high reward and be identified as the best arm.
[00158] Note that at least operations 410, 412 and 414 can happen in any order. In one implementation, operation 410 occurs continuously in the background, separately from the remainder of the operations, and updates the document catalog in the embedding space asynchronously with the remainder of the operations.
[00159] In general, the logic of Fig. 4, as well as other sequences and flowcharts herein, can be implemented using processors programmed using computer programs stored in memory accessible to the computer systems and executable by the processors, by dedicated logic hardware, including field programmable integrated circuits, or by combinations of dedicated logic hardware and computer programs. Each block in the flowchart or phase in a logic sequence describes logic that can be implemented in hardware or in software running on one or more computing processes executing on one or more computer systems. In one implementation, each operation of the flowchart or phase in a logic sequence illustrates or describes the function of a
separate module of software. In another implementation, the logic of the operation is performed by software code routines which are distributed throughout more than one module. In addition, as the term is used herein, a "module" can include one or more "sub-modules," which are themselves considered herein to constitute "modules." As with all fiowcharts and logic sequences herein, it will be appreciated that many of the operations can be combined, performed in parallel or performed in a different sequence without affecting the functions achieved. In some cases, as a person of ordinary skill in the present field of invention will appreciate, a rearrangement of operations will achieve the same results only if certain other changes are made as well. In other cases, as the person of ordinary skill in the present field of invention will appreciate, a re-arrangement of operations will achieve the same results only if certain conditions are satisfied. Furthermore, it will be appreciated that the flowcharts and logic sequences herein show only aspects that are pertinent to an understanding of the present disclosure, and it will be understood that in a specific implementation, numerous additional operations for accomplishing other functions for that implementation can be performed before, after and between those operations shown.
[00160] In some implementations, the development and maintenance of new or updated constraints is performed on a mobile device, whereas the document catalog in embedding space is maintained on a server which is separated from the mobile device by a network that includes a Wi-Fi or cellular data link or both. The overall arrangement still performs the operations of Fig. 4 (with its variations as described elsewhere herein), but the arrangement embodies a specific and highly advantageous allocation of functions among the two nodes. In particular, the memory and computational resources required to maintain and update the constraints are minimal enough as to allow constraint management to be performed and maintained on a mobile device such as a phone or tablet, rather than on a server.
Mobile Device and Server Implementation of Visual Interactive Search System
[00161] Fig. 5 is a block diagram of various components of a server 510 and a mobile device 512 for implementing the visual interactive search system as discussed above with reference to Figs. 1-4.
[00162] Referring to Fig. 5, the server 510 has accessibly thereto a document catalog database 516 previously embedded into an embedding space. The server 510 also includes a candidate space identification module 524, which has access to the document catalog database 516. The candidate space identification module 524 determines the candidate space at each iteration of the search, by applying the initial query and the then-current set of constraints to the documents in
the document catalog database 516. The resulting candidate space is stored temporarily into a candidate space database 526. In an implementation, the candidate space database 526 contains pointers to documents in the document catalog database 516, rather than any actual documents. The server 510 also optionally includes a discriminative selection module 528, which selects a discriminative collection of the documents from the candidate space database 526 for transmission to the mobile device 512.
[00163] The mobile device 512 includes a user interaction module 522, which presents collections of documents to the user at each iteration, and receives user feedback concerning the collection. The user interaction module 522 forwards the user feedback to a constraints management module 532, which manages content of a constraints database 534. If the user interaction module 522 receives a user commit indication, it notifies an action module 530 which takes some action with respect to the user's selected document such as the actions mentioned elsewhere herein with respect to Fig. 5.
[00164] Fig. 6 illustrates content of the constraints database 534 of Fig. 5 according to an implementation of the present disclosure.
[00165] Referring to Fig. 6, the constraints database 534 contains a last-in-first-out stack, in which each level corresponds to a respective iteration of the search. Each i'th level stores sufficient information to identify the geometric constraints that resulted from the user's i'th iteration of feedback in response to viewing a collection of documents that were presented to the user. In one implementation, all the constraints in effect for each iteration of the search are described in the stack entry for that iteration. In another implementation, where constraints are cumulative, only the set of constraints that were added in each iteration is described in the stack entry for that iteration, all other constraints applicable to that stack entry being implied due to their presence in stack entries corresponding to prior iterations. In general, each stack entry "identifies" the set of constraints applicable at the corresponding iteration.
[00166] Referring to Fig. 6, the stack entry for each i'th iteration contains only two fields: a selected field 610 identifying all of the documents in the i'th iteration that the user selected from a collection of documents with which the user was presented, and a non-selected field 612 identifying all of the documents that were presented to the user for the i'th iteration but which the user did not select. The documents identified in the selected field 610 are sometimes referred to herein as the i'th selected subset of documents, and the documents identified in the non-selected field 612 are sometimes referred to herein as the i'th non-selected subset of the documents that the user selected from a collection of documents. User selection of the i'th selected subset
indicates that the user considers the documents selected as being more relevant to a target than the documents in the i'th non-selected subset.
[00167] Further, referring to Fig. 6 it is assumed, for clarity of illustration, that only three documents were presented to the user at each iteration, and that the user selected only one of them. For iteration 1 the user was presented with documents A, B and C, and the user selected document A. For iteration 2 the user was presented with documents D, E and F, and the user selected document D. For iteration 3 the user was presented with documents G, H and I, and the user selected document G. For iteration 4 the user was presented with documents J, K and L, and the user selected document J. The system interprets each entry to define a separate geometric constraint for each pair of documents identified in the corresponding level of the stack, where one document of the pair is identified in the selected field 610 and the other document of the pair is identified in the non-selected field 612. Thus level 1 of the stack defines a constraint using the pair (A,B) and another constraint using the pair (A,C). Level 2 of the stack defines a constraint using the pair (D,E) and another constraint using the pair (D,F), and so on. The actual constraint is that a candidate document X, in order to satisfy the constraint, must be closer in the embedding space to the first document of the pair than it is to the second document of the pair. Thus level 1 of the stack defines the constraints that a candidate document X must be closer to A in the embedding space than it is to B, and also closer to A in the embedding space than it is to C. These constraints are abbreviated for purposes of the present disclosure as
d(X,A)<d(X,C) and d(X,A)<d(X,B),
where 'd' means distance in the embedding space. Similarly, level 2 of the stack defines the constraints that candidate document X must be closer to D in the embedding space than it is to E, and also closer to D in the embedding space than it is to F. These constraints are abbreviated for purposes of the present disclosure as
d(X,D)<d(X,F) and d(X,D)<d(X,E),
and so on. It can be seen that if the selected field 610 in iteration i identifies Pi documents, and the non-selected field 612 in iteration i identifies Qi documents, then the contents of each iteration i define a total of Pi*Qi constraints, one for each combination of a document in the selected field 610 and a document in the non-selected field 612. It will be appreciated that other ways of representing the constraints added in each iteration can be used in different implementations .
[00168] Fig. 7 is a diagram illustrating primary types of messages that pass between the mobile device 512 and the server 510, as illustrated in Fig. 6, according to an implementation of the present disclosure.
[00169] Referring to Fig. 7, the mobile device 512 acts as a client to the server 510. The mobile device 512 manages the interactions with the user and updates and maintains the constraints in constraints database 534. The server 510 maintains the catalog but retains no state with regard to the user's search (although it may log it for later off-line processing).
[00170] Initially, in operation 710, the mobile device 512 receives an initial query from the user via the user interaction module 522, as illustrated in Fig. 5. In operation 712 the mobile device 512 forwards the initial query to the server 510. In operation 714 the candidate space identification module 524 of the server 510, as illustrated in Fig. 5, applies the initial query to the document catalog database 516, as illustrated in Fig. 5, to determine an initial candidate space.
[00171] In operation 716 the discriminative selection module 528 of the server 510, as illustrated in Fig. 5, determines a discriminative collection of the documents from the then- current candidate space, though in another implementation, the collection selected in operation 716 need not necessarily be discriminative. By operation 718, the server 510 transmits a message to return the selected collection to the mobile device 512 and discards the constraints or query that it used in operations 714 and 716. The message transmitted in operation 718 includes all information necessary for presentation to the user and maintenance of the constraints, such as document images, meta-data about the documents, and an indication of their embedding in the embedding space.
[00172] In operation 720 the mobile device 512 presents the discriminative collection to the user, for example by displaying an image of each document. In operation 722 the mobile device 512 receives relative feedback from the user, in the form of user selection of one or more of the documents that were presented to the user in operation 720. In operation 724 the constraints management module 532 determines new geometric constraints based on the user's feedback, and in operation 726 the mobile device 512 updates the constraints database 534 with the new constraints. In operation 728, the mobile device 512 then sends a message including the then- current set of constraints from the constraints database 534 (which contains all relevant information about the search state) to the server 510, together with the initial query from operation 710. This process now loops back to operation 714 with the server 510 applying the initial query and the then-current set of geometric constraints to the document catalog database 516 to derive the next candidate space.
[00173] As can be seen, the server 510 is stateless with regard to a given user's search. This has several benefits, such as: 1) a load on the server 510 and or additional servers is decreased, 2) it is easier to scale by adding more servers as each iteration of a query interaction could go to a different server, 3) since the server 510 is stateless the system is more robust, so for example if
a server 510 fails the state is retained on the mobile device 512. Additionally, since the constraints stored in constraints database 534 fully encode the user's feedback during the current and all prior search iteration, they require minimal storage and management.
[00174] As mentioned, the message transmitted in operation 718 includes document images. Though these are typically not large, many caching schemes could be implemented that would retain catalog items on the mobile device 512. These include methods that cache popular items, or items that are predicted to be of interest to the user based on demographic information or search histories. Items could also be pre-fetched onto the mobile device 512 by predicting what items might need to be presented in later iterations of the search.
Specific Implementations of Embedding Documents in an Embedding Space
[00175] Figs. 8, 9, 10, 11, 12, 13A and 13B illustrate specific implementations of embedding documents in an embedding space according to an implementation of the present disclosure. Specifically, Figs. 8-13B illustrate a set of documents embedded in 2-dimensional space. Aspects of the present disclosure envision embedding documents in spaces of large dimensionality, hence two dimensions is for illustration purposes only.
[00176] Referring to Fig. 8, a space 810 contains documents, e.g., 821, 822. Each pair of documents has a distance 830 between them.
[00177] Referring to Fig. 9, the set of documents from Fig. 8 is illustrated in addition to a circular geometric constraint 910. Those documents inside the circle, e.g., 921 and 911 are said to satisfy the constraint. Aspects of the present disclosure express queries and user input in the form of such geometric constraints. The documents that satisfy the constraints are the current results of the query. As the user provides further input additional constraints may be added, or existing constraints may be added or removed.
[00178] Referring to Fig. 10, the set of documents from Fig. 8 is illustrated in addition to a non-circular geometric constraint 1010. Various implementations may include geometric constraints of an arbitrary shape, and unions, intersections and differences of such constraints.
[00179] Referring to Fig. 11, a means by which the circular constraint of Fig. 9 may be updated in response to user input is illustrated. An original circular constraint 1110 may be modified by increasing its radius to produce circular constraint 1120, or by decreasing its radius to produce circular constraint 1130. These modifications are done in response to user input. The set of documents satisfying these constraints will change as the constraints are modified thus reducing or expanding the set of images considered for display to the user.
[00180] Referring to Fig. 12, a means by which a discriminative subset of documents may be selected for presentation to the user is illustrated. The documents highlighted, e.g., 1211 and 1212, are distinct from each other and from the others contained in the circular constraint region.
[00181] Referring to Fig. 13 A, a set of documents in embedding space is illustrated, in which the query processing module 140, as illustrated in Fig. 1, has narrowed the collection to those documents within the circle 1320, and has identified a primary result document 1318. In addition, the discriminative selection module 160, as illustrated in Fig. 1, has selected documents 1310, 1312, 1314 and 1316 as the discriminative set to present to the user. In the embedding space, documents 1312, 1318 and 1316 are substantially collinear, and documents 1310, 1318 and 1314 are substantially collinear.
[00182] Referring to Fig. 13B, an illustration is provided to describe how the system may present the set of documents in layout space (the broken lines are implied, rather than visible). The specific positions of the documents do not necessarily match those in embedding space, in part because dimensionality of the space has been reduced. However, documents which were substantially collinear in embedding space are collinear in layout space. In particular, if the broken lines in Fig. 13A represent dimensions in embedding space along which the candidate documents differ, the placement of the documents in layout space in Fig. 13B are indicative of those same dimensions. In addition, the relative distances among the documents along each of the lines of collinearity in layout space also are indicative of the relative distances in embedding space.
Implementations of Visual Interactive Search for Physical and/or Digital Products
[00183] Fig. 14 illustrates a visual interface that enables searching for shoes using a visual interactive search environment on a mobile device according to an implementation of the present disclosure. In this implementation the catalog (e.g., the document catalog database 120, as illustrated in Fig. 1) is maintained and candidate results are identified on a server (e.g., the server computer 212, as illustrated in Fig. 2), while the constraints are maintained on a mobile device 1401. Implementations of this architecture are also discussed above with reference to Figs. 5-7.
[00184] The shoes are embedded in a high dimensional space by applying a neural network trained to capture the visual similarity between shoes. Other contributions are made to the embedding using Kernels that compare meta-data about the shoe, e.g., its brand. The primary result 1402 is displayed prominently as a large image in the top left corner. The shoe 1403 that is closest to the primary result in the embedded space (i.e., is most similar) is displayed closest to the primary result. A discriminative set of results that satisfies the current constraints is then
displayed. These constraints may be hard or soft constraints in different implementations, or some may be hard constraints and others soft constraints. Note that these results retain significant diversity, e.g., the shoe 1404 that is farthest in the embedding space (and displayed farthest from the primary result) is a different color, but the same brand as the primary result. This implementation maintains a stack of constraints. Each constraint requires the candidate to be closer to a user-selected image than one non-selected image. Thus at each iteration multiple constraints, e.g., 11, may be added. In one implementation, these constraints are treated as soft constraints in that each candidate suffers a penalty for each broken constraint. The candidate results are those with smaller penalties. In this implementation the stack of selected images is displayed at 1405 with the oldest user selection at the left and newer ones to the right. The user may click on any image in this stack. This will removed all images (and their associated constraints) to the right of the clicked image off the stack. This has the effect of taking the user back to a previous search state, defined by the set of constraints that were in effect before the clicked image was selected.
[00185] The search method of Fig. 4 (including all its variations as mentioned herein) may be used for various purposes, several of which are outlined below with reference to Figs. 15-18. Many of the operations discussed with reference to Figs. 15-18 are similar to those discussed above with reference to Fig. 4 and detailed descriptions thereof may be omitted.
[00186] Fig. 15 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement a purchase of a physical product such as clothing, jewelry, furniture, shoes, accessories, real estate, cars, artworks, photographs, posters, prints, and home decor, according to an implementation of the present disclosure. All of the variations mentioned herein can be used with the process illustrated in Fig. 15.
[00187] Referring to Fig. 15, in operation 1510, a catalog of digital documents is embedded in an embedding space and stored in a database. In the database, a distance is identified between each pair of the documents in the embedding space corresponding to a predetermined measure of dissimilarity between the products represented by the pair of documents.
[00188] In operation 1512, an initial query is optionally processed to yield an initial (i=0) candidate space of documents satisfying the query results. The initial query may be a conventional text query, for example. The initial candidate space is within and optionally smaller than the full catalog of documents.
[00189] In operation 1513 an initial collection of digital documents is derived from the initial candidate space. This initial (i=0) collection of documents is a subset of the initial candidate space. In one implementation the initial collection of documents is selected as a discriminative
subset of the catalog, while in another implementation the initial collection of documents is not discriminative.
[00190] In operation 1514, the initial collection of documents is identified toward the user. In one implementation this can include displaying a representation of the documents in the initial collection visibly to the user.
[00191] In operation 1515 an iterative search process is initiated beginning with an iteration numbered herein for convenience as iteration 1.
[00192] Before the beginning of each i'th iteration, the user is presented with a collection of documents from the prior iteration (i-1). If i=l, then this collection of documents is the initial (i=0) collection of documents from operation 1514. If i>l, then this collection of documents is the (i-l)'th collection of documents as presented to the user in operation 1523 of the prior iteration.
[00193] At the beginning of the i'th iteration, in operation 1516, the user provides relative feedback as to the documents in the (i-l)'th collection of documents. Preferably the relative feedback takes the form of user selection of a subset of the documents from the (i-l)'th collection, where selection of a document implies that the user considers products represented by that document to be more relevant to a search target than the products represented by unselected documents from the (i-l)'th collection. The selected subset in the i'th iteration is referred to herein as the i'th selected subset, and those documents from the (i-l)'th collection which were not selected are sometimes referred to herein collectively as the i'th non-selected subset.
[00194] In operation 1518, a set of geometric constraints is derived from the relative feedback, in a manner described elsewhere herein. The set of geometric constraints derived in the i'th iteration is referred to as the i'th set of geometric constraints.
[00195] In operation 1520, the i'th set of geometric constraints is applied to the embedding space to form an i'th candidate space, and in operation 1522 an i'th collection of candidate documents is selected as a subset of the documents in the i'th candidate space. In one implementation the i'th collection of documents is selected as a discriminative subset of the i'th candidate space, while in another implementation the i'th collection of documents is not discriminative.
[00196] In operation 1523 the i'th collection of documents is presented toward the user for optional further refinement. In operation 1524, if user input indicates further refinement is desired, then the logic returns to operation 1515 for the next iteration of the search loop. Otherwise the user indicates to commit, and in operation 1526 the system takes action with respect to the user-selected document.
[00197] The "take action" operation 1526 of Fig. 15, then involves: (1) in response to user input selecting the identified object, the system to adding the item to a wish list, adding it to a cart, or proceeding to a purchase dialog (operation 1528); and (2) the system, perhaps at a later time, accepting payment from the user, and having the item shipped to the user directly or using a third party shipping company such as FedEx, UPS, or the postal service (operation 1530). The operations of accepting payment and shipping can be performed in any order. For free products payment may not be required. Corresponding submodules for performing these operations may be included in the action module 170, as illustrated in Fig. 1.
[00198] Fig. 16 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement a purchase of a digital product such as movies, music, photographs, or books according to an implementation of the present disclosure. All of the variations mentioned herein can be used with the operations illustrated in Fig. 16.
[00199] Referring to Fig. 16, in operation 1610, a catalog of digital documents is embedded in an embedding space and stored in a database. In the database, a distance is identified between each pair of the documents in the embedding space corresponding to a predetermined measure of dissimilarity between digital products represented by the pair of documents.
[00200] In operation 1612, an initial query is optionally processed to yield an initial (i=0) candidate space of documents satisfying the query results. The initial query may be a conventional text query, for example. The initial candidate space is within and optionally smaller than the full catalog of documents.
[00201] In operation 1613 an initial collection of digital documents is derived from the initial candidate space. This initial (i=0) collection of documents is a subset of the initial candidate space. In one implementation the initial collection of documents is selected as a discriminative subset of the catalog, while in another implementation the initial collection of documents is not discriminative.
[00202] In operation 1614, the initial collection of documents is identified toward the user. In one operation this can include displaying a representation of the documents in the initial collection visibly to the user.
[00203] In operation 1615 an iterative search process is initiated beginning with an iteration numbered herein for convenience as iteration 1.
[00204] Before the beginning of each i'th iteration, the user is presented with a collection of documents from the prior iteration (i-1). If i=l, then this collection of documents is the initial (i=0) collection of documents from operation 1614. If i>l, then this collection of documents is
the (i-l)'th collection of documents as presented to the user in operation 1623 of the prior iteration.
[00205] At the beginning of the i'th iteration, in operation 1616, the user provides relative feedback as to the documents in the (i-l)'th collection of documents. Preferably the relative feedback takes the form of user selection of a subset of the documents from the (i-l)'th collection, where selection of a document implies that the user considers the digital product represented by that document to be more relevant to a search target than digital products represented by unselected documents from the (i-l)'th collection. The selected subset in the i'th iteration is referred to herein as the i'th selected subset, and those documents from the (i-l)'th collection which were not selected are sometimes referred to herein collectively as the i'th non-selected subset.
[00206] In operation 1618, a set of geometric constraints is derived from the relative feedback, in a manner described elsewhere herein. The set of geometric constraints derived in the i'th iteration is referred to as the i'th set of geometric constraints.
[00207] In operation 1620, the i'th set of geometric constraints is applied to the embedding space to form an i'th candidate space, and in operation 1622 an i'th collection of candidate documents is selected as a subset of the documents in the i'th candidate space. In one implementation the i'th collection of documents is selected as a discriminative subset of the i'th candidate space, while in another implementation the i'th collection of documents is not discriminative.
[00208] In operation 1623 the i'th collection of documents is presented toward the user for optional further refinement.
[00209] In operation 1624, if user input indicates further refinement is desired, then the logic returns to operation 1615 for the next iteration of the search loop. Otherwise the user indicates to commit, and in operation 1626 the system takes action with respect to the user-selected document.
[00210] The "take action" operation 1626 in Fig. 16, then involves the system, optionally and perhaps at a later time, accepting payment from the user (operation 1628) and providing the content to the user (or having it provided) using some means of distributing digital content, e.g., email or streaming (operation 1630). The operations of accepting payment and providing content can be performed in any order. For free products payment may not be required. Corresponding submodules for performing these operations can be included in the action module 170, as illustrated in Fig. 1.
[00211] Fig. 17 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement an identification of digital content that can be used to produce a physical product according to an implementation of the present disclosure. For example, the digital content may consist of a catalog of images which may then be printed on a poster, t-shirt, or mug. All of the variations mentioned herein can be used with the operations illustrated in Fig. 17.
[00212] Referring to Fig. 17, at operation 1710, a catalog of digital documents is embedded in an embedding space and stored in a database. In the database, a distance is identified between each pair of the documents in the embedding space corresponding to a predetermined measure of dissimilarity between digital content represented by the pair of documents.
[00213] In operation 1712, an initial query is optionally processed to yield an initial (i=0) candidate space of documents satisfying the query results. The initial query may be a conventional text query, for example. The initial candidate space is within and optionally smaller than the full catalog of documents.
[00214] In operation 1713 an initial collection of digital documents is derived from the initial candidate space. This initial (i=0) collection of documents is a subset of the initial candidate space. In one implementation the initial collection of documents is selected as a discriminative subset of the catalog, while in another implementation the initial collection of documents is not discriminative.
[00215] In operation 1714, the initial collection of documents is identified toward the user. In one implementation this can include displaying a representation of the documents in the initial collection visibly to the user.
[00216] In operation 1715 an iterative search process is initiated beginning with an iteration numbered herein for convenience as iteration 1.
[00217] Before the beginning of each i'th iteration, the user is presented with a collection of documents from the prior iteration (i-1). If i=l, then this collection of documents is the initial (i=0) collection of documents from step 1714. If i>l, then this collection of documents is the (i-l)'th collection of documents as presented to the user in operation 1723 of the prior iteration.
[00218] At the beginning of the i'th iteration, in operation 1716, the user provides relative feedback as to the documents in the (i-l)'th collection of documents. Preferably the relative feedback takes the form of user selection of a subset of the documents from the (i-l)'th collection, where selection of a document implies that the user considers the digital content represented by that document to be more relevant to a search target than digital content represented by unselected documents from the (i-l)'th collection. The selected subset in the i'th iteration is referred to herein as the i'th selected subset, and those documents from the (i-l)'th collection
which were not selected are sometimes referred to herein collectively as the i'th non-selected subset.
[00219] In operation 1718, a set of geometric constraints is derived from the relative feedback, in a manner described elsewhere herein. The set of geometric constraints derived in the i'th iteration is referred to as the i'th set of geometric constraints.
[00220] In operation 1720, the i'th set of geometric constraints is applied to the embedding space to form an i'th candidate space, and in operation 1722 an i'th collection of candidate documents is selected as a subset of the documents in the i'th candidate space. In one implementation the i'th collection of documents is selected as a discriminative subset of the i'th candidate space, while in another implementation the i'th collection of documents is not discriminative.
[00221] In operation 1723 the i'th collection of documents is presented toward the user for optional further refinement.
[00222] In operation 1724, if user input indicates further refinement is desired, then the process returns to operation 1715 for the next iteration of the search loop. Otherwise the user indicates to commit, and in step 1726 the system takes action with respect to the user-selected document.
[00223] The "take action" operation 1726 in Fig. 17, then involves the following steps performed by the system. First the selected digital content is added to a shopping cart, or wish list, or otherwise recording the user's intent to purchase a product based on the selected content (operation 1728). This operation may also include recording the user's selection of a particular kind of product (e.g. a mug or a mouse pad).
[00224] In operation 1730, payment is accepted from the user. In operation 1732 a physical product is manufactured based on the selected content, e.g., by reproducing the selected content on a physical artifact. In operation 1734 the physical product is shipped to the user or the physical product is shipped by a delivery service.
[00225] The operation 1730 of accepting payment may be performed after the manufacturing operation 1732 or after the shipping operation 1734 in various implementations. Also, corresponding submodules for performing these operations can be included in the action module 170, as illustrated in Fig. 1. Preferably, the sole purpose of the above implementation is to identify content to enable the manufacture and purchase of a physical product.
[00226] Fig. 18 is a flowchart expanding the various logic phases illustrated in Fig. 4 to implement an identification of content for sharing according to an implementation of the present disclosure. For example, the digital documents in the embedding space may consist of a catalog
of the user's personal photographs or other media. All of the variations mentioned herein can be used with the process illustrated in Fig. 18.
[00227] Referring to Fig. 18, in operation 1810, a catalog of digital documents is embedded in an embedding space and stored in a database. In the implementation illustrated in Fig. 15, the catalog may be the user's library of personal photographs, for example. In the database, a distance is identified between each pair of the documents in the embedding space corresponding to a predetermined measure of dissimilarity between content represented by the pair of documents.
[00228] In operation 1812, an initial query is optionally processed to yield an initial (i=0) candidate space of documents satisfying the query results. The initial query may be a conventional text query, for example. The initial candidate space is within and optionally smaller than the full catalog of documents.
[00229] In operation 1813 an initial collection of digital documents is derived from the initial candidate space. This initial (i=0) collection of documents is a subset of the initial candidate space. In one implementation the initial collection of documents is selected as a discriminative subset of the catalog, while in another implementation the initial collection of documents is not discriminative.
[00230] In operation 1814, the initial collection of documents is identified toward the user. In one implementation this can include displaying a representation of the documents in the initial collection visibly to the user.
[00231] In operation 1815 an iterative search process is initiated beginning with an iteration numbered herein for convenience as iteration 1.
[00232] Before the beginning of each i'th iteration, the user is presented with a collection of documents from the prior iteration (i-1). If i=l, then this collection of documents is the initial (i=0) collection of documents from operation 1814. If i>l, then this collection of documents is the (i-l)'th collection of documents as presented to the user in operation 1823 of the prior iteration.
[00233] At the beginning of the i'th iteration, in operation 1816, the user provides relative feedback as to the documents in the (i-l)'th collection of documents. Preferably the relative feedback takes the form of user selection of a subset of the documents from the (i-l)'th collection, where selection of a document implies that the user considers content represented by that document to be more relevant to a search target than content represented by unselected documents from the (i-l)'th collection. The selected subset in the i'th iteration is referred to
herein as the i'th selected subset, and those documents from the (i-l)'th collection which were not selected are sometimes referred to herein collectively as the i'th non-selected subset.
[00234] In operation 1818, a set of geometric constraints is derived from the relative feedback, in a manner described elsewhere herein. The set of geometric constraints derived in the i'th iteration is referred to as the i'th set of geometric constraints.
[00235] In operation 1820, the i'th set of geometric constraints is applied to the embedding space to form an i'th candidate space, and in operation 1822 an i'th collection of candidate documents is selected as a subset of the documents in the i'th candidate space. In one implementation the i'th collection of documents is selected as a discriminative subset of the i'th candidate space, while in another implementation the i'th collection of documents is not discriminative.
[00236] In operation 1823 the i'th collection of documents is presented toward the user for optional further refinement.
[00237] In operation 1824, if user input indicates further refinement is desired, then the process returns to operation 1815 for the next iteration of the search loop. Otherwise the user indicates to commit, and in operation 1826 the system takes action with respect to the user- selected document.
[00238] The "take action" operation 1826 illustrated in Fig. 18, then involves the following operations. In operation 1828 information regarding a means of sharing, e.g., email, twitter, Facebook, etc., is accepted from the user. In operation 1830 information regarding a third party or their parties to whom the item should be shared is accepted from the user. In operation 1832 the selected item(s) are shared.
[00239] The operation 1828 of accepting from the user information regarding the means of sharing may be performed before or after the operation 1830 of accepting from the user information regarding the third party or third parties to whom said item should be shared. Also, corresponding submodules for performing thee operations can be included in the action module 170, as illustrated in Fig. 1. Preferably the sole purpose of the above implementation is identifying content to be shared.
Bayesian Techniques for Choosing and Presenting Collections of Documents
[00240] Bayes theory, or sometimes referred to as Bayes rule, Bayes law or simply Bayesian techniques, is used to determine an estimated probability of an event, based on prior knowledge of conditions that might be related to that event (for example see: "Bayes Theorem," https://en.wikipedia.org/wiki/Bayes'_theorem, accessed December 8, 2016 and incorporated
herein by reference). Essentially, Bayes theory is probability theory that uses "Prior" probabilities (currently known or estimated probabilities) and "Posterior" probabilities (probabilities that take into account the known/estimated probabilities as well as current observations) to estimate the probability of a particular event. This probability of a particular event could be, for example the probability of a user selecting a particular document as a desired (target) document at a particular point in time (e.g., after a certain number of selections or clicks). This probability theory can be implemented in a particular manner to identify and present documents from an embedding space (or from a candidate list encompassing some or all documents from the embedding space) and then continue a process of visual document discovery until the desired document is reached by a user.
[00241] Fig. 19 is a flowchart illustrating Bayesian the use of techniques for choosing and presenting collections of documents according to an implementation of the present disclosure.
[00242] Referring to Fig. 19, in operation 1910, a system calculates a Prior probability score for some or all documents included in an embedding space. The Prior probability scores can be calculated from a database that is provided to a computer system, where the database identifies a catalog of documents in the embedding space. Again, the scores can be calculated for all documents of the embedding space or a subset of documents of the embedding space, such as a candidate list. Each Prior probability score is a score indicating a preliminary probability that a particular document is a desired document. Examples of calculating the Prior probability scores are discussed in more detail below, after the overall description of the flowchart of Fig. 19.
[00243] In operation 1912, the user is presented with an initial collection of images. The initial collection can be developed using any of the techniques described elsewhere herein, or using any other technique. Typically, the initial collection of documents will be determined and presented to the user in dependence on the calculated Prior probability scores.
[00244] Operations 1910 and 1912 may be interchanged in some implementations, or may be performed in parallel.
[00245] In operation 1914, the system implementing the Bayesian techniques begins a loop through an iterative search process, which is basically a loop through operations 1916, 1918, 1920, 1922 and 1924 that continues until the user indicates that a document selected by the user is the desired document (e.g., commits to the selected document), such that action can be taken in operation 1926 with respect to a selected document. This action could be any action including those described herein, such as performing operation 1526 of Fig. 15.
[00246] In operation 1916, the system receives the user's selection of a document from the current collection of documents. In the first iteration of the loop, the user selects the document
from the initial collection of documents presented to the user in operation 1912. In subsequent iterations of the loop the user selects a document from the collection of documents presented to the user in operation 1924.
[00247] In operation 1918, the system uses the selected document to assign Posterior probability scores to other documents in, for example, the candidate list, or to update previously assigned Posterior probability scores, if Posterior probability scores have already been assigned. In an implementation, the Posterior probability scores for all unselected documents of collections of documents presented to the user can be set to 0, or a very low probability that would almost certainly guarantee that the unselected documents would not be presented to the user at the next iteration or any future iteration. In other words, documents that have been presented to the user but not selected by the user will be eliminated from potentially being presented to the user again in another subsequent collection of documents.
[00248] Optionally, in operation 1920, the system may shrink the Prior probability scores toward the Prior, as described in more detail below.
[00249] In operation 1922, the Posterior probability scores are used to choose the next collection of documents to present toward the user. The next collection of documents can be determined by identifying a certain number of the highest Posterior probability scores (e.g., the top 10 highest Posterior probability scores) or by using a different technique, such as Thompson sampling, as discussed in detail below.
[00250] In operation 1924, the next collection of documents is presented to the user. The iteration then returns to operation 1914 to perform the next loop of the iteration. If in operation 1916, the user indicates satisfaction with the document that he or she is selecting, then in operation 1926, action is taken with respect to the selected document, for example by performing any of the operations 1526, 1626, 1726, or 1826 as illustrated in and described with respect to corresponding Figs. 15, 16, 17 and 18.
[00251] As can be seen, user identification of a desired document may include providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space, calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document; a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and for each i'th iteration in a
plurality of iterations, beginning with a first iteration (i=l) and in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents C i, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
[00252] Further, as can been seen, this user identification may include for each i'th iteration in the plurality of iterations, calculating the Posterior probability score for each document of the candidate list in dependence on the user selection of the i'th document from the (i-l)'th collection of candidate documents.
[00253] Even more generally, as can be seen, an endpoint document can be located by providing a catalog of documents in an embedding space that can be accessed by a computer system. A Prior probability score can be calculated for each document of a candidate list including at least a portion of the documents of the embedding space. The Prior probability score may indicate a preliminary probability, for each particular document of the candidate list, that the particular document is the endpoint document. Further, a computer can build an initial (i=0) database version of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, where the initial database version has fewer documents than the candidate list. The initial database version can be stored in a computer system. Additionally, for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): (i) an i'th relevant document from the (i-l)'th database version can be identified as the most relevant to the endpoint document of all the documents in the (i-l)'th database version, and (ii) the i'th database version in the computer system can be updated to have Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, where Ni is smaller than the number of documents in the candidate list. The Posterior probability score for each given document D can be given by P(C|D)P(D), where C is the sequence of documents C i , Ci identified as most relevant up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the endpoint document is D and where P(D) is the calculated Prior probability score for document D. The endpoint document can be one of the documents in the last database
version after the plurality of iterations. Finally, an action can be taken in dependence upon identification of the endpoint document.
[00254] The User Model. Bayes' rule can be used in one or more of operations 1918, 1920 and 1922, and can inform and influence other operations described in Fig. 19. In particular, for example, during a user session in which the user is seeking a desired document, uncertainty about the desired document at a given point in time can be modeled using Bayesian probability theory. If, for example a random document is referred to as document D and all of the clicks up to a given point in time are referred to as C, the resulting goal is to estimate the probability of document D being the desired document given the sequence of clicks up to the given point in time. In Bayesian theory, this probability is represented as P(D|C). This modeling of the uncertainty regarding document D being the desired document, at a given point in time, is described in further detail below as the "user model."
[00255] The user model can be designed and implemented to determine a probability that a document D would be chosen, given a set of documents presented to the user and the sequence of selections/clicks up to that point. The set of documents that are presented to the user in, for example, operations 1912, 1922 and 1924 can be determined using various techniques, such as Thompson sampling, as discussed below in greater detail. Given the user model, Bayes' rule holds that P(D|C) is proportional to P(C|D)P(D). In other words, Bayes' rule can be used to estimate P(D|C), given P(C|D) and P(D). P(D) is the system's view, prior to the user's clicks, of the estimated probability that the user is interested in document D. P(D) is the Prior or the Prior probability score. The Prior remains constant through the user's sequence of clicks, while the system's view of P(C|D) changes and adapts in dependence upon the user's clicks. P(C|D) is essentially the system's view of the probability that the sequence of clicks C would have occurred to reach the document D. The sequence of clicks C, may for example, include clicks cls c2, ... up to the current point in time. Note that this description refers to the user's selection of a document as a "click." However, it will be understood that any other user input method (e.g., a touch on a screen, etc.) can be to perform the user selection of a document. A wide variety of user input methods are well known to the reader.
[00256] The embeddings provided by other modules of the system described herein can be used to determine the behavior of the user model. In one implementation the probability that the user clicks on a document x, given that the target is t, is proportional to exp(— λ d(x, t)), where d(x,t) is the distance between document x and document t in the embedding space. The value λ may be chosen using maximum likelihood, i.e. to maximize the overall probability of the clicks seen in training data. For example, a neural network can be trained to produce embeddings in a
way that λ = 1 is the most natural choice. Put another way, the value of λ can be built into the process of training embeddings, where changing λ has the same effect as scaling all of the embeddings up or down. Another example of this implementation is that training data exists in the form S, t, s, where a judge was given a screen S, a target t, and asked to say which member s of S is closest to the target t. Using a probability model represented as P(s | S, t) = it is possible to get an expression for a probability that the judge
will pick any s that depends on λ. Furthermore, if it is assumed that the choices made by the judge on different S, t pairs are independent, then the probabilities can be multiplied to get an overall probability that the judge made all of the choices that they did. Choosing a λ that maximizes this overall probability is the λ chosen using maximum likelihood, as mentioned above.
[00257] As described above, suppose that C is a sequence of documents, ci, c2, ... selected by the user through various iterations and D is a desired document. Then P(ci|D) would equal e" M(cl'D) and P(c2|D) would equal e "M(c2'D), etc. Then P(C|D) can be calculated as the product of P(ci|D) and P(c2|D) and so on for each c in the sequence of clicks C. Mathematically, this can be represented by P(C | D) = Π}=ι P(c/ | D), where i is the number of iterations (see operation 1914) until the user commits to a selected document (see operation 1926).
[00258] Accordingly, as can be seen, P(C|D) can be dependent upon probabilities determined with respect to the sequence of documents ci, Ci selected by the user up through the i'th iteration, and P(C|D) can be given by Π}=ι P(c where each Cj is the document selected by the user in the j'th iteration
[00259] In an implementation, this user model can be viewed as a refinement of a constraint- based method: in such a user model, if the user prefers A to B, this only means that it is more likely that d(D, A) < d(D, B) than d(D, B) < d(D, A), and, furthermore, if d(D, A) is much smaller than d(D, E), this is stronger evidence for D than when they are nearly equal.
[00260] The Prior (Prior Probability Score). The Prior probability scores as calculated in operation 1910 may be uniform. Preferably, however, they are not. In the context of the system, "Prior" refers to what the system knows before the beginning of a user's iterative search session. Typically, a Prior probability score would be calculated for each document within an entire embedding space. In an implementation the Prior probability scores can then be determined for every document in a candidate list (i.e., a subset of the entire embedding space) in dependence on the Prior probability scores determined for the entire embedding space.
[00261] Implementations for Determining Prior Probability Scores. In an implementation in which the catalog (e.g., the candidate list) is a catalog of products for sale, and the user searches for a desired product D by selecting an image among an collection of candidate images presented to the user at each pass of the iteration, one source of non-uniform Prior information may be statistics about the previous sales of products. This implementation and the following implementations also hold true not just to products, but for documents, as described herein. One implementation of a system using sales data starts with statistics regarding the rate at which products had previously been sold. These statistics by themselves may not be sufficient, since products which had not yet been sold would never be presented to the user. Preferably, therefore, the sales statistics are hedged by "taking a step toward uniform" before formulating the Prior probability scores. This can be accomplished by adding equal amounts to the sales rate of all of the products. For example, if a catalog has three items, one (A) which has historically sold 2 per month, another (B) which has sold 3 per month, and a third which has sold 10 per month, this data can be smoothed by adding 1 to each, resulting in the following prior probabilities:
P(A) = (2 + l)/((2+l) + (3 + 1) + (10 + 1));
P(B) = (3 + l)/((2+l) + (3 + 1) + (10 + 1)); and
P(C) = (10 + l)/((2+l) + (3 + 1) + (10 + 1)).
[00262] Other techniques can be used to smooth raw sales data before formulating the Prior probability scores. For example, in a case in which the system is used for multiple sessions per user, the system determines the Prior probability scores for a particular user in dependence upon the past shopping sessions of the same user. One implementation of the system calculates a mean embedding vector of the user's past purchases, and uses as a Prior probability score, a spherically symmetrical Gaussian centered at this mean. That is, a mean is calculated over the embedding vectors of all the products previously purchased by the user, and the Prior probability score is then based on a spherically symmetrical Gaussian centered at this mean. The width of this distribution is learned by matching the average squared distance between embeddings of products purchased by the user with the parameter describing the spread of the Gaussian.
[00263] For a user who has purchased only a small number of products, the average squared distance between embeddings of products purchased by the user may not be sufficient to determine an accurate spread parameter. To accommodate this case, a more robust value for the spread parameter can be obtained by sharing distance-between-purchases data from other users. Further refinements can be obtained by pooling users in various ways. In one implementation, the system pools users from a particular geographical region, thus formulating Prior probability scores, for example, regarding users from San Francisco that are different from the Prior
probability scores associated with users from Kansas City. Many possibilities exist. For example, regional Prior probability scores can be blended with the Prior probability scores of the individual-user, with the relatively contributions of the two depending on how much data the system has for the individual user.
[00264] In another implementation the system can be given a seed product from which the user will begin searching. For example, a merchant may allow a user to browse the catalog before entering an iterative visual product discovery system. On finding an interesting product, the user enters the visual product discovery system by selecting a "more like this" option. In this case, the system develops Prior probability scores by assigning Prior probabilities that decay as a function of a distance (e.g., a distance based on a predetermined measure of dissimilarity in a vector space) from the product used as the entry point. One implementation can use a spherically symmetrical Gaussian decay. The spread of this Gaussian can be a tunable parameter.
[00265] In another implementation, Prior probability scores can be developed to capture pre- designated sub-category hierarchies of products. In this implementation, the sub-categories are pre-designated by identifying some products that are considered prototypical of the sub-category, or all products with, for example, a metadata tag for that sub-category could be chosen. The Prior probability scores can then be determined to be higher on the products in the sub-category, and to decay as a function of the distance from the products in the sub-category. An example of such Prior probability scores is a sum of spherical Gaussians centered at each of the identified products. This approach may serve at least two purposes. First, it may allow merchandisers to create new sub-categories, e.g., disco-boots, simply by identifying to the system a few prototypical examples of the sub-category. Second, it may allow the system to capture concepts that would traditionally be addressed with a faceted search.
[00266] Note that the calculation of the Prior probability scores in operation 1910 can also include a preliminary determination, based on circumstances, of which the several above- described strategies or variations thereof should be used to determine the Prior probability scores.
[00267] Shrinkage Toward a Prior. An iterative search tool such as that of Fig. 19 can be used to quickly find a desired document or product that the user already has in mind (e.g., a "directed search"), but it can also be used to aid the user in a browsing experience. If the user is browsing, the user's previous clicks are likely to be less consistent with a single product, or even a small region in the space into which the products were embedded. In order to accommodate browsing, Fig. 19 illustrates an optional "shrink toward the prior" operation 1920 after each user selection (click). One implementation of operation 1920 is as follows. If before the shrinkage
operation, the system's estimate of the Posterior probability score that the user is interested in product x is
Ρ(Γ= I Q = exp(Posterior-score( )),
and the Prior probability score is
exp(Prior-score(x)),
then the score after shrinkage is given by
exp(postshrink-score( )) = exp( (1 - r) Posterior-score( ) + r Prior-score( )), where r is a tunable smoothing parameter between 0 and 1.
[00268] Very roughly, this practice of shrinkage toward the prior results in de-emphasizing, or "forgetting", a fraction r of all of the previous clicks. The most recent click has only been exposed to this fractional forgetting once, but the second most recent click has gotten it twice, so that, roughly, only a fraction (l-r)*(l-r) of it is retained. Similarly, the fraction of an example retained decreases exponentially as the system looks further back in time. If the system looks further back than 1/r clicks into the past, the fraction of those clicks that are remembered starts to become very small, so this technique is akin to remembering the most recent 1/r clicks, except that it does this in a graded way that smoothly gives more favor to recent clicks, and it can be implemented in a memoryless way.
[00269] This approach may also be implemented in the form:
postshrink-score( ) = (1 - r) Posterior-score( ) + r Prior-score( ).
[00270] In general, past clicks are de-emphasized monotonically with decreasing recency, and preferably this is accomplished in a way that avoids having to remember a value representing such recency. Note that such an approach can be used with any scoring approach such as other scoring techniques discussed elsewhere herein, and this approach is not limited to the Bayesian approach. For example, the approach can be used where the score is a simple count of broken geometric constraints.
[00271] As can be seen, for an iteration i>l the system can give: at least one of the documents Ci, CM less influence on P(C|D) than the influence given by the system to document Ci on P(C|D); at least one of the documents Ci, Ci_i less influence on P(C|D) than the influence given by the system to document Ci on P(C|D); each of the documents Ci, Ci_i less influence on P(C|D) than the influence given by the system to document Ci on P(C|D); each of the documents Ci, Ci-i less influence on P(C|D) than the influence given by the system to document Ci on P(C|D); and each document Cj, j=l , i, an influence on P(C|D) which is related monotonically the iteration number j in which document Cj was selected by the user.
[00272] Thompson Sampling. Thompson sampling, often times referred to as probability matching, is a concept of introducing some randomness into selecting a group of items (see https://en.wikipedia.org/wiki/Thompson_sampling, incorporated herein by reference, accessed December 8, 2016). In an iterative search method, it is usually important to confront what has become known as the exploration-exploitation tradeoff as discussed herein. The exploration- exploitation tradeoff essentially is an attempt to balance exploring new options while taking advantage of options that will exploit a user's previous selections. This can be done by choosing a wide enough range of products that the user's choice exposes a lot about their preferences versus choosing products that are likely to appeal to the user immediately. In order to address this tradeoff, an iterative search method such as that of Fig. 19 can use Thompson sampling in its presentation of candidate documents to the user in each pass (i.e., in either or both of operations 1912 and 1922).
[00273] In an implementation, instead of choosing the top N-scoring documents to display (with scores determined in operations 1910, 1918 and/or 1920), a screen of documents is chosen to show to the user by repeatedly choosing a document at random, where the probability of choosing a document is weighted to an estimate of the probability that the document is the desired document resulting from the application of Bayes' rule and the shrinkage (e.g., the Posterior). Thompson sampling progressively enriches the options presented to the user for options that are likely to be of interest to the user. On the other hand, it continues to present the user with opportunities to express preferences for documents that information up to a given point in time suggests might not be of interest. Choosing documents with a probability equal to the probability that they are of interest strikes a delicate balance between these two. In the end, once a certain type of product can be eliminated with high probability, it becomes very unlikely to be presented to the user.
[00274] Shrinkage of the Candidate List. In some implementations described herein which do not incorporate Bayes' rule, the system would eliminate some products from consideration after each click. Thus after k clicks, the fraction of the catalog remaining is sk, where s is a tunable parameter. The Bayes system, too, can implement an elimination of some documents, for example by effectively setting Posterior probability scores of the eliminated documents to 0. Eliminated documents can include, for example, documents that have been presented to the user and that have not been selected.
[00275] Generalized Thompson Sampling. Generalized Thompson sampling provides for choosing documents at random from a distribution that is not necessarily equal to the Posterior probability scores, but that is derived from it, gives the designer of the iterative search system a
richer toolbox from which to choose an exploration-exploitation tradeoff. Analogously to the candidate list shrinkage, a tunable method can be used that concentrates the Posterior probability scores to increase extents before sampling from it. In one implementation, after k clicks, the system chooses product x with a probability proportional to V(x)l + a k, where P( ) is the Posterior probability score and a is a parameter that gives a handle on the exploration/exploitation evolution. This is akin to the shrinkage of the candidate list mentioned earlier, but graded. A richer implementation has two parameters a and b: V(x)b + a k. Other analogous implementations will be apparent to a person of ordinary skill in the art.
[00276] Weighted K-Medoids. Some implementations described in other sections herein, do not incorporate Bayes' rule, but rather apply k-medoids clustering to choose collections of documents to be presented to the user. K-medoids clustering chooses each next candidate for the collection by minimizing the sum of the distances of the embeddings of the documents in a catalog to a closest embedding of a document already included in the collection. Various k- medoid algorithms, where the weighting w is always 1 can be found at https://en.wikipedia.org/wiki/K-medoids, previously incorporated herein by reference. Further, various types of weightings can be applied to the k-medoids algorithms, (e.g., see https://cran.r- project.org/web/packages/WeightedCluster/WeightedCluster.pdf, incorporated herein by reference and accessed on December 8, 2016).
[00277] This weighted k-medoid technique of determining the next collection of documents can be applied to the above-described Bayesian techniques using the Posterior probability scores as weights. For example, using a distribution of the Posterior probability scores, the Bayesian system can assign a weight to each document in dependence on a corresponding Posterior probability score of that document. Accordingly, the Bayesian system can minimize a weighted average of distances of the documents of the embedding space or the candidate list to the closest document already included in the collection. Specifically, the Bayesian system can use weighted k-medoids to determine a collection of Ni>l documents to present to the user independence on the assigned weights, the Posterior probability scores and a distance from each given document to a closest document in, for example a candidate list, such that collection of Ni>l documents is a collection having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights and Posterior probability scores.
[00278] Using weighted k-medoids allows the system to choose representatives of difference kinds of documents, but in a way that assigns higher priority to finding representatives similar to documents that are likely to be of interest to the user. This technique enriches the chosen collection of documents with more content that is more likely to be of interest to the user. Aside
from speeding the user's search, this technique also makes the next collection of documents presented toward the user correspond more clearly to the previous click action, which provides satisfying immediate gratification to the user and may improve engagement.
[00279] For example, an implementation of weighted-k medoids is described such that, given a set X of vectors and a weight w(x) for each x that is an element of X, output a subset S of X of size k that minimizes∑xe (x) minse5 d(x, s), where d(x, s) is the distance between x and s. This can be achieved by implementing an algorithm that, for a random initial set S and for long as an improvement is found, for each s in the initial set S, (i) defines a cluster Cs to consist of those x e X that are closest to s, and (ii) replaces s with the member s' of Cs which minimizes ∑xeCs w(x)d(s' , x) . Because ∑xecs w(x)^(s' > x) is evaluated many times for different candidate centers s', this can be slow. However, speed can be improved at a cost of a slight degradation in the achieved value of ∑xe^ w(x) minse5 d(x, s) by reducing a number of candidates that are tried. One implementation is to only try the s' that minimizes the distance from the center of Cs, which is y^-j∑ ecs x'■ Another implementation is to try a few choices for s' that are closest to the center. Moreover, another implementation to use ∑xex w(x) minse5 d(x, s), except replace X with a smaller subset that is chosen at random.
[00280] Minimizing Number of Clicks Using Multiple Thompson Samples. Another alternative to Thompson sampling and weighted k-medoids for operation 1922 is an implementation that minimizes an estimate of an average number Y of clicks needed before the desired document is in the screen presented to the user. The probability that the desired document is in the chosen screen (i.e., the probability that the average number of Y clicks equal 0) can be calculated using the Posterior probability scores. For example, a long-term effect of choosing a number of clicks before the desired document is found (i.e., the average value of Y given that Y >0) by using a hypothesis that, at any given time, the average number of clicks needed is proportional to the entropy of a Posterior probability score.
[00281] Using the above-described User Model and the Posterior probability scores, this can be achieved for a screen SC to estimate a probability that each document s in screen SC will be clicked, and then, for each document s, estimate a future Posterior probability score. The average future number of clicks is the average value of the entropy of the future Posterior probability score distributions. This implementation can be applied to multiple candidate screens SC that are generated using Thompson sampling, instead of just sampling once and then outputting the result of a single Thompson sampling as the collection of candidate documents. This way, the system is able to consider multiple Thompson samplings and utilize a screen SC
having the lowest estimated average number of clicks. The entropy determined for the future Posterior probability score can be an estimate. The formula for the entropy of a distribution
chosen randomly using (ph pn). Again, for each candidate screen SC, of which the documents are identified using Thompson sampling, this implementation estimates the average number of clicks needed to find the desired document. The candidate screen SC having the lowest average number of clicks is selected as the next collection of documents to present to the user.
[00282] If there is a significant probability that the desired document is in the candidate screen SC, by taking into account current Posterior probability scores and estimated future Posterior probability scores, then the average number of clicks is 0. If there is not a significant probability that the desired document in the candidate screen SC, then the average number of clicks for the candidate screen SC is represented by sum_{s in S} = Estimated_P(total number of clicks needed | s clicked first), given the P(s is clicked first). This is based on a working hypothesis that the Estimated_P(total number of clicks need | s clicked first) is proportional to the entropy of the Posterior probability score resulting from clicking on s. The entropy of the Posterior probability score can be used as a proxy for determining the number of clicks for a particular document. Further, in an implementation, certain clicks can be weighted when determining the average number of clicks for the candidate screen SC.
Scaling Bayesian Techniques for Choosing and Presenting Next Collection of Documents Using a Neighbor Graph and Markov Chain Monte-Carlo Walks
[00283] In the above-described Bayesian Techniques for Choosing and Presenting Collections of Documents, Thompson sampling or a generalized form of Thompson sampling can be used to choose and present the documents to include in the initial collection of documents (see operation 1912 of Fig. 19) and the next collection(s) of documents (see operations 1922 and 1924 of Fig. 19). As described above, the Bayesian techniques, at a high level, combined with Thompson sampling, involve the following two major steps for identifying the next collection of documents:
• for each document D in the candidate list of documents included in an embedding space, estimate a probability P(D|C) that the user is interested in document D; and then
• populate the next collection by choosing documents randomly, so that the probability that document D is chosen is P(D|C) (i.e., repeatedly choosing a document at random, where
the probability of choosing a document is weighted to an estimate of the probability that the document is the desired document resulting from the application of Bayes' rule). As described above, C is the user's sequence of past clicks within a session.
[00284] If the candidate list is not too large, then the system can evaluate probabilities for all documents in the candidate list and/or embedding space. However, when the candidate list is larger it is too time consuming and processor intensive to evaluate the probabilities for every document in the candidate list. In such a situation, it is often better to sample documents from the candidate list by (i) creating a Neighbor Graph G and using a close approximation of P(D|C) and then (ii) taking a walk through the Neighbor Graph G using Markov-Chain Monte Carlo (see https://en.wikipedia.org/wiki/Markov_chain_Monte_Carlo, visited March 7, 2016 and incorporated herein by reference). The Markov-Chain Monte Carlo concept can be implemented in various different ways. One particular implementation is Metropolis-Hasting sampling (https://en.wikipedia.org/wiki/Metropolis%E2%80%93Hastings_algorithm, visited March 7, 2016 and incorporated herein by reference). These techniques are described in detail below with reference to Figs. 20-25.
[00285] Generally, Metropolis-Hastings sampling is a technique for choosing a random element of a set X (e.g., choosing a random document of a candidate list X) using a distribution that is close to some distribution Q. This Metropolis-Hastings sampling technique never computes all of the probabilities of elements of X. Instead, it generates a sequence xl s x2, .. .. The first draw xi (e.g., selection of document xi) might come from a distribution that is quite dissimilar to Q, but as this sampling technique progresses, the distribution from which element x; is drawn gets increasingly close to Q. Metropolis-Hastings sampling can be applied to the problems addressed herein by considering X to be the candidate list and Q to be the (not necessarily entirely known) Posterior probability distribution of the candidate list. In very broad terms, after each i'th candidate document is chosen, the idea is to generate x1+1 by repeatedly: • generating a candidate x* using x; (x* is generated using a "proposal distribution" depending on ¾, which is further described with reference to Fig. 25) and
o if Q(x*) > Q(xi), setting x1+1 = x*, thereby "accepting" x*, and
o otherwise
■ with probability Q(x*)/Q(xj), accepting x* anyway, and
■ with probability [1 - Q(*)/Q(x ], generating a new x* and trying again.
[00286] The candidates x* can be chosen according to a "neighborhood" (in the Neighbor Graph G) around Xj. For example, in some implementations, the proposal distribution used to choose x* might be a Gaussian centered at ¾. However, for a visual product discovery system,
the distribution Q is discrete, not continuous. Thus x*'s are limited to being members of the candidate list.
[00287] An implementation of Metropolis-Hastings performs a walk through the Neighbor Graph G using the same Neighbor Graph G for all collections offered to the user or users in all sessions. It is desirable, though, to avoid showing the same document in different collections during the same session. In one implementation, this is achieved by forcing a Posterior probability of a document to 0 after it has been seen by the user (e.g., included in a collection of documents presented to the user). All proposals to walk to this document, in the Metropolis- Hastings walks, will then fail. If this occurs with all neighbors of a particular document, then it becomes possible that a walk gets stuck at that document. Different embodiments can handle this "stuck" situation differently. As one example, the situation is handled by jumping to a random vertex when it happens. The likelihood of this situation occurring reduces when the Neighbor Graph G includes many different tours through the candidate list (e.g., K is large in the flowchart of Fig. 21).
[00288] As mentioned above, in a implementation, candidate documents from the candidate list are chosen using a Neighbor Graph G, which can be calculated using all documents in the candidate list, which is a at least a portion of the documents in the embedding space. Each vertex of the Neighbor Graph G, as described is further detail below, represents a document in the candidate list, and an edge is interpreted as indicating that two vertices (documents) are neighbors. The edge is, in other words, a path that can be traveled on a walk from one document (vertex) to another neighboring document (vertex). The vertices are neighbors in the sense that the distance between their corresponding documents in the candidate list is small, as compared to distances between other documents in the candidate list. Ideally the neighbors of a document in the Neighbor Graph G are strictly the nearest neighbors in the candidate list, but this technique allows some relaxation of that ideal in exchange for quicker runtime. Once the Neighbor Graph G is created, a uniform random neighbor is used as the proposal distribution above. Further, once the Neighbor Graph G is created, then the Markov Chain Monte-Carlo sampling, or variations thereof, can be efficiently implemented.
[00289] In an implementation, one condition for ensuring that the Metropolis-Hastings algorithm converges to Q is that, for any two members u, v of X, the probability that the algorithm proposes v when it is at u, is the same as the probability that it proposes u when it is at v. By using the Neighbor Graph G, the Metropolis-Hastings technique accomplishes this by ensuring that each vertex has the same number of neighbors. Another condition for Metropolis- Hastings to converge is that, informally, any member of X can reach another member of X
through a series of proposals. Put another way, if xls x2, ... is viewed as a walk through X (e.g., a walk through Neighbor Graph G), this walk can get from any vertex of X to any other vertex of X. In fact, for Metropolis-Hastings to converge quickly, it should be easy to get from one vertex to another. Example implementations of scaling Bayesian techniques are described below with reference to Figs. 20-24.
[00290] Fig. 20 is a flowchart illustrating scaling Bayesian techniques for choosing and presenting collections of documents using Neighbor Graphs and Markov Chain Monte-Carlo according to an implementation of the present disclosure. Referring to Fig. 20, a high level flowchart for scaling Bayesian techniques is illustrated, where operations 2008, 2010, 2012, 2014, 2022 and 2026 are similar to operations 1910, 1912, 1914, 1916, 1924 and 1926 of Fig. 19, respectively.
[00291] In operation 2008 of Fig. 20, the Prior probability scores are determined for use in the iterative search as discussed above with respect to operation 1910 of Fig. 19.
[00292] In operation 2009, a Neighbor Graph G is created of all documents in the candidate list. The creation of the Neighbor Graph G is further described below with reference to Figs. 21-
22D.
[00293] In operation 2010 of Fig. 20, the user is presented with an initial collection of documents, in a similar manner as discussed above with respect to operation 1912 of Fig. 19.
[00294] Operations 2008, 2009 and 2010 may occur in different sequences in different implementations.
[00295] In operation 2012 of Fig. 20, the system begins a loop through the iterative search process.
[00296] In operation 2014 of Fig. 20, the system receives the user's selection of a document from a current collection as discussed above with respect to operation 1916 of Fig. 19, and if the user indicates satisfaction with the document that he or she is selecting, then in operation 2026, action is taken with respect to the selected document, for example by performing any of operations 1526, 1626, 1726, or 1826 of respective Figs. 15, 16, 17 and 18.
[00297] Operations 1918, 1920 and 1922 of Fig. 19 are replaced with operation 2020 in Fig. 20. Specifically, at operation 2020, the system determines the next collection of images to present toward the user. Various implementations of operation 2020 are described in more detail below with reference to Fig. 25.
[00298] In operation 2022 of Fig. 20, the determined next collection of documents is presented toward the user as discussed with respect to operation 1924 of Fig. 19. The iteration then returns to operation 2012 for the user to perform the next pass of the iterative search.
[00299] Fig. 21 is a flowchart illustrating a creation of a Neighbor Graph of all documents in a candidate list according to an implementation of the present disclosure. Specifically, Fig. 21 is a flowchart that provides additional details for operation 2009 of Fig. 20, regarding the creation of the Neighbor Graph G of all documents in the candidate list. In an implementation, the Neighbor Graph G is created in the stages discussed below.
[00300] In operation 2110 of Fig. 21, a Neighbor Graph G is initialized with a vertex for each document in the candidate list. This initialized version of the Neighbor Graph G does not include any edges (paths) connecting the vertices. The edges (paths) are inserted between the vertices at a later point.
[00301] In an implementation, the Neighbor Graph G can be a list of all the documents of the candidate list, with each document having 2K fields to identify its neighbors as determined by K tours discussed below. These neighbors are usually but not always the nearest 2K neighbors in embedding space, and the system is tolerant of any that are not. Initially, all of the fields identifying neighbors are empty. K is a configurable parameter. Each vertex of the Neighbor Graph G will eventually be connected by edges to 2K other vertices. The process of creating the Neighbor Graph G using the candidate list is further illustrated in Figs. 22A-22D.
[00302] Referring to Fig. 22A, a candidate list 2200 is illustrated as including documents 2204, 2206, 2208, 2210, 2212, 2214, 2216, 2218 and 2220 and an origin 2202. The Neighbor Graph G is initialized to include a vertex for each of the documents 2204, 2206, 2208, 2210, 2212, 2214, 2216, 2218 and 2220. Note that candidate list 2200 is represented in Fig. 22A in a two-dimensional embedding space for ease of illustration and explanation. In many implementations the embedding space is a multi-dimensional space.
[00303] In operation 2112 of Fig. 21, a loop is begun to create K tours. For purposes of this description, the tours are numbered k=l, K. In each stage, one tour is completed and then edges are added to Neighbor Graph G, such that in each tour every document of the candidate list is traversed.
[00304] In operation 2114 a preliminary version of the k'th tour is formed using the candidate list 2200. The preliminary tour can be formed in a number of different ways. A goal is to form a tour that preferably has neighbors as near each other as possible in the embedding space. The resulting tours need not be perfect, and the preliminary tours can be even less perfect if tour improvement and repair steps such as those described below are implemented.
[00305] In an implementation, operation 2116 forms the preliminary version of the k'th tour by projecting the document embeddings onto a k'th random line which passes through an origin of the candidate list 2200, and operation 2118 forms the preliminary version of the k'th tour by
connecting left and right neighbors along the line with edges and then wrapping back around to a beginning of the line.
[00306] This concept of making projections onto random line which passes through the origin is sometimes referred to as "random projections"
(https://en.wikipedia.org/wiki/Random_projection, visited March 7, 2016 and incorporated herein by reference). This is a standard technique for quickly finding pairs of similar elements (e.g., documents in the candidate list). In one implementation, this technique generates the k'th random line by generating a direction u by sampling from a spherically symmetrical Gaussian, and then drawing an imaginary line from the origin through u. The projections are then accomplished by taking the dot product of each embedding with u.
[00307] The preliminary version of the k'th tour is illustrated in Figs. 22B, 22C and 22D. Referring to Fig. 22B, the k'th line 2222 with random orientation and which passes through the origin 2202 of the candidate list 2200 is illustrated. The perpendicular projections are formed on the k'th line 2222 via paths 2224, 2226, 2228, 2230, 2232, 2234, 2236, 2238 and 2239 illustrated therein. Specifically, the projections from the document embeddings of the candidate list 2200 are located on the k'th line 2222 at a point where the paths 2224, 2226, 2228, 2230, 2232, 2234, 2236, 2238 and 2239, as respectively perpendicularly projected from documents 2204, 2206, 2206, 2210, 2212, 2214, 2216, 2218 and 2220, meet the k'th line 2222.
[00308] Referring to Fig. 22C, the preliminary version of the k'th tour starts at document 2204 because the projection onto the k'th line 2222 from document 2204 is, for example, the first (leftmost) projection onto the k'th line 2222. Then, the k'th tour continues to the next document 2210 whose projection is next long the k'th line 2222. This "walk" from document 2204 to document 2210 creates an edge 2240. The walk then continues (i) from document 2210 to document 2212 to create edge 2242, (ii) from document 2212 to document 2206 to create edge 2244, (iii) from document 2206 to document 2214 to create edge 2246, (iv) from document 2214 to document 2208 to create edge 2248, (v) from document 2208 to document 2218 to create edge 2250, and (vi) from document 2218 to document 2220 to create edge 2252.
[00309] Referring to Fig. 22D, the preliminary version of the k'th tour then continues from document 2220, which forms one of the two outermost projections on the k'th line 2222, back to the starting document 2204, which forms the other of the two outermost projections on the k'th line 2222, to create edge 2260. Edge 2260 is the edge created by wrapping back around from the end to the beginning. Now that each of the documents has been touched by the walk, each of the documents has two edges connected thereto. Note that the k'th tour need not start on the leftmost projection, but can also start at the rightmost projection or at a middle projection. The
k'th tour need only start at some document and continue to an outermost projection on the k'th line 2222 and then wrap back around to the other outermost projection on the k'th line and then continue until each of the documents has been touched. Now the preliminary version of the k'th tour is complete.
[00310] It still remains possible that two documents (vertices) that are next to each other in the Neighbor Graph G are actually much farther apart in the multiple dimensions of the embedding space. For example, the projections corresponding to documents 2212 and 2206 are very near each other on the random k'th line 2222, but documents 2212 and 2206 are actually very far from each other in the embedding space. Further, document 2214 is actually closer to document 2212 in the embedding space than document 2206 is. In order to improve the Neighbor Graph G as a representation of distances in embedding space, the preliminary tour can be iteratively improved and repaired.
[00311] Accordingly, after the preliminary version of the k'th tour is formed in operation 2114, then in operation 2120 the preliminary version of the k'th tour can optionally be "improved" to reduce distances between neighboring documents, and in operation 2122 the k'th tour can optionally be "repaired" to eliminate edges redundant with prior tours. Operation 2120 helps to ensure that documents inserted into the next collection to be presented toward the user, really do have a high likelihood of being the user's desired target document given the user's prior sequence of selection clicks. However, it will be appreciated that operation 2120 can be omitted in an implementation in which strict adherence to that goal is not essential. Operation 2122 is important in order to ensure that the Metropolis-Hastings algorithm converges to Q, as previously explained. However, as with operation 2120, it will be appreciated that operation 2122 can be omitted in an embodiment in which certainty of such convergence is not essential.
[00312] After the preliminary k'th tour has been formed in operation 2114, and improved and/or repaired in operations 2120 and/or 2122, then in operation 2124 all of the edges of the k'th tour are inserted into Neighbor Graph G. In a list implementation of the Neighbor Graph G, the edges inserted in operation 2124 for a given one of the documents in the preliminary k'th tour can be transferred into the Neighbor Graph G by inserting identifications of the two neighbors, into two of the neighbor fields for the given document.
[00313] In operation 2126 the process returns to operation 2112 for creating the next tour. If all K tours have been completed (or another termination condition has been reached), then in operation 2130 the creation of the Neighbor Graph G (operation 2009) is complete. In an implementation, this same Neighbor Graph G is used for all screens of all user sessions and need not be updated unless the catalog (e.g., candidate list) changes.
[00314] Fig. 23 is a flowchart illustrating an implementation of operation 2120 for improving a k'th tour in a Neighbor Graph by re-arranging vertices to shorten distances in the embedding space between neighbors in the Neighbor Graph according to an implementation of the present disclosure.
[00315] In general the preliminary k'th tour is iteratively improved by repeating the following steps:
• choose a document u;
• look at the some number R of documents "downstream" of u in the current tour; and
• whichever document v of these is closest to u in the embedding space, v is swapped in the tour with the document immediately downstream of u.
[00316] Both the number of passes in the above iteration, and the number of documents R to look downstream in each pass, are configurable values. At the end of the final pass, the tour is walked in its then-current sequence, and an edge is inserted into the graph between the vertices corresponding to each sequential pair of documents in the tour. A final edge is inserted between the vertices corresponding to the first and last documents on the line.
[00317] As can be seen, identification of a desired document may include providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space, calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space. The Prior probability score indicates a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document. A computer system identifies toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list. For each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l) and in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, the system identifies toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents C i , Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
[00318] Additionally, as can be seen, the identification may include initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list; and developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour: determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space, inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line, wherein identifying toward the user an i'th collection of candidate documents comprises inserting documents into the i'th collection of candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the i'th selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk.
[00319] Further, as can be seen, for each k'th tour, an edge can be inserted from each vertex of the neighbor graph G to each of two other vertices of the neighbor graph G; and the identification may include taking action in response to user behavior identifying, a selected document in one of the collections of documents, as the desired document, as well as after each i'th iteration of the plurality of iterations, removing a predetermined fraction of vertices and connecting edges from the neighbor graph G.
[00320] Specifically, an implementation of the tour improvement process is illustrated in Fig. 23, which details operation 2120 of Fig. 21. Other ways to improve the k'th tour will be apparent to a person of ordinary skill in the technology disclosed herein. Depending on the implementation, the specific goal may be to minimize the total length of the tour, or to minimize the average distance between neighbors in the tour, or to satisfy some other length minimization criterion. In an implementation, however, it is not essential that the specific goal ever be fully realized.
[00321] Referring to Fig. 23, in operation 2310, a loop begins to walk the vertices v of the k'th tour in order. The loop can continue for some configurable number M>1 laps of the tour, or in another implementation the loop can terminate when the number of swaps made in a loop (operation 2314) falls to zero or to some epsilon greater than zero. Other termination criteria will be apparent to a person of ordinary skill in the technology disclosed herein.
[00322] In operation 2312, using the original embedding of the candidate list, the system finds the vertex v* corresponding to the nearest document from among those in the next R>1 documents downstream of vertex v in the current tour. As previously mentioned, R is a configurable value.
[00323] In operation 2314, if v* is not already the vertex (document) immediately downstream of v in the current tour, then this implementation swaps the positions in the current tour between v* and the vertex (document) that is currently immediately downstream of v. The swap is executed by deleting and re-adding edges to the tour. For example, if the tour has vertices in sequence x0, xi, x2, x3, where x0 is the current vertex and v* has been determined to be vertex x2, then the sequence of documents xi and x2 are swapped by removing the edges from xo to xi, xi to x2 and x2 to x3, and adding edges from x0 to x2, x2 to xi and xi to x3.
[00324] In operation 2316, if the loop is not yet done, then the implementation returns to operation 2310 to consider the next vertex of the current tour; this may be a vertex just moved from a position downstream. Once the loop of operation 2310 is complete, then in operation 2318 the improvement process of the k'th tour is considered complete. It can be seen that the process of Fig. 23 gradually replaces longer edges with shorter ones. Other processes can be used either instead of or additionally to the process illustrated in Fig. 23 to improve the tour if desired in a particular implementation.
[00325] As can be seen, the improvement process may include the database identifying a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents. Developing of a plurality of tours comprises, for each k'th tour in the plurality of tours: walking the vertices of the k'th tour for a plurality of laps; and at each current vertex encountered in the walk, determining whether the document corresponding to the next vertex of the tour is farther away in the embedding space from the document corresponding to the current vertex than the document corresponding to a vertex further downstream in the tour is from the document corresponding to the current vertex, and if so then swapping the next vertex with the downstream vertex in the tour.
[00326] Fig. 24 is a flowchart illustrating a repairing of a k'th tour in a Neighbor Graph to eliminate edges that are redundant with prior tours in the Neighbor Graph according to an implementation of the present disclosure.
[00327] In general, in order to ensure that each document in the Neighbor Graph G has the same number of neighbors, it is important to avoid inserting redundant edges. In an
implementation, this is accomplished by generating the k'th tour, as discussed above, "improving" the k'th tour and then "repairing" the k'th tour as follows:
• Walk through the new tour in a particular direction;
• Whenever a redundant edge is encountered, say from vertex u to vertex v, remove vertex v and put it into a holding queue to be re-inserted later;
• Then, at each step of the walk, before checking for redundancy at the current position, the holding queue is checked for available vertices. Note that this implementation considers inserting the first vertex in the holding queue into the current position of the tour, if that vertex is not redundant in its new position, then it is inserted, otherwise it is put at the end of the holding queue, and the next vertex in the holding queue is considered (another implementation may also check whether the vertex to be inserted has an edge with the vertex after v); and
• Once the holding queue is exhausted, the edge between the current and the next vertex in the tour is checked for redundancy, and so on.
[00328] Specifically, Fig. 24 details operation 2122 of Fig. 21 to repair the k'th tour to eliminate edges redundant with prior tours.
[00329] In operation 2410, a holding queue for holding vertices is created and initialized to empty.
[00330] In operation 2412, a loop is begun to walk all of the vertices v of the current tour (the k'th tour) in order. The walk follows the tour in one direction, where either direction can be used.
[00331] In operation 2413, a determination is made as to whether the queue is empty. If this is the first loop of the walk, then the queue will be empty. Accordingly, if the queue is empty, then the flowchart leads to process 2424 of creating an edge to a next non-redundant vertex in the tour. Otherwise the flowchart leads to process 2414 of inserting after v, a vertex from the holding queue.
[00332] In operation 2416, a loop through the vertices in the holding queue is begun.
[00333] In operation 2418, if the current vertex from the holding queue does not already have an edge with vertex v from a prior tour, then in operation 2420 the vertex is removed from the queue and inserted into the current tour after vertex v and before the vertex that follows v, splitting the edge after v into two edges. Note that in another implementation, operation 2418 may also check whether the vertex to be inserted has an edge with the vertex after v; if so then the flowchart proceeds to operation 2420 and if not then the flowchart proceeds to operation 2422 as discussed in more detail below. The implementation then returns to operation 2412 to
walk to the next vertex v of the current tour. This will be the vertex just inserted from the holding queue.
[00334] If in operation 2418 the current vertex from the holding queue does already have an edge with vertex v from a prior tour, and if there are more vertices in the holding queue in operation 2422, the implementation returns to operation 2416 to consider the next vertex in the holding queue.
[00335] If in operation 2418 the current vertex from the holding queue does already have an edge with vertex v from a prior tour and if there are no more vertices in the holding queue to consider in operation 2422, then no vertices from the queue will work. In this case an edge is created from the current vertex v of the current tour to the next non-redundant vertex in the current tour in process 2424.
[00336] Within process 2424, operation 2426 determines whether a prior tour already has an edge from vertex v to the next vertex in the current tour. If not, then in operation 2428 an edge from current vertex v is added to the next vertex in the current tour. Operation 3440 then determines whether there are more vertices in the current tour. If there are more vertices in the walk of the current tour, then process 2424 returns to operation 2412 to advance to the next vertex of the tour (which, again, will be the vertex to which an edge was just added). If there are no more vertices in the current tour in operation 2440, then process 2424 ends and operation 2122 also ends.
[00337] If operation 2426 determines that a prior tour does already have an edge from current vertex v to the next vertex in the current tour, then in operation 2442 the next vertex of the current tour is removed from the current tour and added to the holding queue. The edges are changed such that the subsequent vertex of the current tour becomes the "next" vertex of the current tour, and the implementation loops back to operation 2426 to consider whether a prior tour already has an edge from v to that "next" vertex, and so on.
[00338] As can be seen, developing a plurality of tours can involve removing redundant edges from the neighbor graph G belonging to different ones of the plurality of tours.
[00339] Additionally, as can be seen, the above-described "improving" and "repairing" can be performed as follows. The database may identify a distance between each pair of the documents in the embedding space, where the distance corresponds to a predetermined measure of dissimilarity between the pair of documents. The above-described developing of the plurality of tours comprises, after inserting into neighbor graph G all the edges of each k'th tour in the plurality of tours: walking the vertices of the k'th tour for a plurality of laps; at each current vertex encountered in the walk, determining whether the document corresponding to the next
vertex of the tour is farther away in the embedding space from the document corresponding to the current vertex than the document corresponding to a vertex further downstream in the tour is from the document corresponding to the current vertex, and if so then swapping the next vertex with the downstream vertex in the tour; and removing edges from the neighbor graph G belonging to the k'th tour which are redundant with edges belonging to prior tours in the plurality of tours.
[00340] Fig. 25 is a flowchart illustrating a determination of a next collection of documents from a candidate list using Markov Chain Monte-Carlo to complete a walk through the Neighbor Graph according to an implementation of the present disclosure. Specifically, Fig. 25 further illustrates operation 2020 of Fig. 20.
[00341] Referring to Fig. 25, in operation 2510 an empty data structure is initialized for identifying the next collection of documents, and a vertex vo is set equal to the vertex corresponding to the document most recently selected by the user.
[00342] In process 2512, a document is selected for the next collection, based on the posterior probabilities P(v*|C) (C being the complete prior sequence of user clicks in the current search session). Process 2512 includes operations 2514, 2518, 2520, 2522, 2523, 2524, 2526, 2528, 2530 and 2532, each of which is described in detail below.
[00343] To select a document for the next collection, operation 2514 begins a Metropolis- Hastings walk of duration N beginning at a random position in the candidate list. N is a configurable value. A larger value of N requires more time, but also selects the next document with a probability that better matches the desired probability distribution Q. Thus the walk iterates from vertex i=l, N. In one implementation, the probability distribution Q is equal to the system's estimate of the posterior probabilities P(v*|C). In another implementation the probability distribution Q can be a modified version of P(v*|C). For example, Q can be varied to implement a "shrinking toward the prior", as described above with respect to operation 1920 of Fig. 19.
[00344] In order to avoid repeating a document that has already been added to the collection, as explained below, the vertices corresponding to those documents are marked as having already been added. Thus in operation 2518, the system next determines whether all neighbors of v^i have already been added to the collection. If so, then in operation 2520, the i'th vertex of the walk, Vi, is set to a random member of the candidate list.
[00345] If at least one neighbor of vn has not yet been added to the collection, then in operation 2522, a vertex v* is chosen from all the immediate neighbors of vn with a uniformly random probability distribution. This is a proposed next step in the walk.
[00346] In operation 2523, a ratio Q(v*)/Q(vi-i) is calculated (or estimated) for the current proposed neighbor v* of the current vertex Vi_i, if this has not been previously calculated. It is not necessary to calculate the actual probabilities Q for any of the documents, because the user model used in this implementation is such that the probability Q(u) for any document u is proportional to exp(score(u)). Since the user model is such that score(u) is easy to calculate, so is the ratio of probabilities for two of the documents. In another implementation, it may be necessary to calculate the actual probabilities Q for of the documents corresponding to each of the vertices v* and Vi_i .
[00347] In operation 2524, Q(v*) is compared with Q(vi.i). This comparison can be made simply by determining whether Q(v*)/Q(vi-i)>l . If Q(v*) is higher, then v* is accepted as the i'th vertex of the walk and in operation 2526 Vi is set equal to v*. If Q(v*) is not greater than Q(vi_i), then in operation 2528 a choice is made with probability Q(v*)/Q(vi-i) to accept v* anyway (use of this probability Q(v*)/Q(vi.i) balances exploitation and exploration of the candidate list) (note that in an implementation, if v* is not accepted anyway, then v; can be set to equal vn); and in operation 2530 Vi is set equal to v*. If the choice fails in operation 2528, then the process returns to operation 2522 to choose another vertex v* from the immediate neighbors of VM with a uniformly random probability distribution. It is possible that the same v* can be chosen as before, but it could also be a different v*. The loop of operations 2522/2523/2524/2528 repeats until Vi is set equal to some vertex.
[00348] Once Vi has been selected, if the number of vertices walked is still less than N in operation 2532), then the process 2512 returns to operation 2514 to find the next vertex of the walk. Otherwise, the document corresponding to the last vertex of the walk, i.e. the document corresponding to VN, is added to the collection of documents in operation 2534 to present toward the user.
[00349] In operation 2536 vertex VN is marked as having now been included in the collection, thereby precluding its use in a future walk during the development of the current collection of documents in operation 2518. This can be accomplished by forcing its probability Q to zero, which prevents operations 2526 and 2530 from ever being reached if V*=V . It will be recalled that after this collection of documents is presented to the user and the user responds with a click, Q changes anyway in dependence upon the updated sequence of clicks C. The values of Q for vertices that were previously forced to zero then will be assigned non-zero values.
[00350] In operation 2538 the system determines whether it is finished adding documents to the next collection. If not, then it returns to operation 2514 to begin a new random walk, again
beginning from the user's most recently selected document (vertex), to pick a different document to add to the collection.
[00351] If operation 2538 determines that the next collection of documents is complete, then the operation 2020 completes at operation 2540 and the collection of documents is presented toward the user in operation 2022 of Fig. 20.
[00352] It can be seen that not only is it unnecessary to calculate the actual probabilities Q in the implementations illustrated in Fig. 25, but only a few of the probability ratios are calculated in the Fig. 25 implementations. This greatly improves the scalability of the system to very large catalogs of documents.
Learning Distances
[00353] User behavior data may be collected by a system according to the present disclosure and the collected user behavior may be used to improve or specialize the search experience. In particular, many ways of expressing distances or similarities may be parameterized and those parameters may be fit. For example, a similarity defined using a linear combination of Kernels may have the coefficients of that linear combination tuned based on user behavior data. In this way the system may adapt to individual (or community, or contextual) notions of similarity.
[00354] Similarly, such Kernels or distances may be learned independently of the search method. That is, the Kernels or distances may be learned on data collected in different ways. This data may, or may not, be combined with data captured during the search process.
[00355] Of particular interest is the use of deep learning, e.g., neural networks with more than 3 layers, to learn distances or similarity.
[00356] In some implementations, distances are learned specifically for specific applications. For example, an implementation uses the method (process) to search for potential partners (e.g., on a dating site) and may learn a Kernel that captures facial similarity. The process may also learn a Kernel that captures a similarity of interests based on people's Facebook profiles. These Kernels (or distances) are learned specifically to address the associated search problem and may have no utility outside of that problem.
[00357] Fig. 26 is a flowchart illustrating various logic phases for learning distances for a subject domain, such as a subject catalog of products or type of content, according to an implementation of the present disclosure. For example, it may be appropriate to learn or develop an embedding specific to men's shoes. Such an embedding would capture the similarity between men's shoes be would be uninformative with regard to men's shirts.
[00358] Referring to Fig. 26, in operation 2610 the subject domain is defined. Examples of subject domains include clothing, jewelry, furniture, shoes, accessories, vacation rentals, real estate, cars, artworks, photographs, posters, prints, home decor, physical products in general, digital products, services, travel packages, or any of a myriad of other item categories.
[00359] In operation 2612 one or more items that are to be considered within the subject domain are identified, and one or more items that are to be considered outside the subject domain are identified.
[00360] In operation 2614, a training database is provided which includes only documents that are considered to be within the subject domain. This training database includes the first items but not the second items.
[00361] In operation 2616 an embedding is learned in dependence upon only the provided training data, i.e. not based on any documents that are considered to be outside the subject domain. A machine learning algorithm can be used to learn this embedding.
[00362] In operation 2618, the catalog of documents is embedded into the embedding space using the learned embedding. Preferably the catalog of documents embedded into the embedding space is itself limited to documents within the subject domain. Subsequently processing can later continue with operations 412 or 414 of Fig. 4 or its variants as described herein.
Adjusting Thresholds and Other Variations
[00363] Described herein are implementations of the technology disclosed that adjust thresholds (of non-geometric or geometric constraints) throughout the process of the visual interactive search, and perform the embeddings at different points of the overall visual interactive search.
[00364] As previously described, documents are encoded in an embedding space such as a vector space or metric space (via a distance). Searches proceed as a sequence of query refinements. Query refinements are encoded as geometric constraints over the vector space or metric space. Discriminative candidate results are displayed to provide the user with the ability to add discriminative constraints. User inputs, e.g., selecting or deselecting results, are encoded as geometric constraints.
[00365] One variation of the overall visual interactive search may include embedding the documents after the initial query is performed and only those documents satisfying the query may be embedded. Similarly, the documents may be re-embedded using a different embedding at any point in the process. In this case, the geometric constraints would be re-interpreted in the new embedding.
[00366] Another variation of the overall visual interactive search may include augmenting the geometric constraints at any point with non-geometric constraints. In this case the candidate results can be filtered in a straightforward way to select only those satisfying the non-geometric constraints. In this way the interaction can be augmented with faceted search, text, or speech inputs. At each iteration of the process the geometric constraints can be managed together with a set of non-geometric constraints.
[00367] An example implementation may proceed through these steps:
1. Obtaining and identification of one or more prototype documents (e.g., images) from a user (the identification can identify one or more prototype documents or may include a text string identifying the one or more prototype documents);
2. Identifying, as candidate documents, all documents in a catalog of documents with a distance less than a threshold Tl from the one or more prototype documents (the distance can correspond to a predetermined measure of dissimilarity with respect to the one or more prototype documents, where the predetermined measure of dissimilarity can be defined using any of the techniques defined in the present disclosure or any other technique that would be apparent to a person of ordinary skill in the present technology);
3. Optionally identifying a discriminative subset of the documents collected in (2);
4. Presenting the discriminative subset of documents to the user in a 2-dimensional layout or presenting a collection of fewer than all of the candidate documents;
5. If the user is satisfied with one or more of the presented documents, receiving an indication of such satisfaction and taking desired action with respect to the one or more selected documents;
6. If the user is not yet satisfied, obtaining from the user a selection of one or more of the presented documents that are more like the desired result;
7. Optionally producing a revised collection of prototype documents;
8. Changing (e.g., increasing or decreasing) the threshold Tl and adjusting the candidate documents to exclude or include additional documents based on the adjusted threshold Tl;
9. Goto 2.
[00368] It is assumed in the above implementation that a database identifying a catalog of documents in the embedded space is provided or that a catalog of documents in the embedded space is provided. The above implementation may be viewed either from the viewpoint of the
user interacting with a computer system, or the viewpoint of a computer system interacting with a user, or both.
[00369] The documents may include images, audio, video, text, html, multimedia documents and product listings in a digital catalog.
[00370] The concept may also be generalized so that the identification of the one or more prototype documents obtained at step 1 is obtained as the result of the user performing a search (query) within another information retrieval system or search engine.
[00371] The concept may also be generalized so that step 8 is replaced with an option to provide a user interface that allows the user to decide whether to increase the threshold Tl, decrease the threshold Tl or to leave the threshold Tl unchanged.
[00372] The concept may also be generalized so that at steps 1, and 6 there are two collections of documents including one or more prototype images. The first collection of documents including the one or more prototype images obtained at step 1 and the second collection of documents including another collection of one or more prototype documents. At step 2 the system identifies images having both (i) a distance that is less than a threshold Tl of the first collection of documents and (ii) a distance that is greater than a threshold T2 of the second collection of documents. This concept may be further extrapolated in step 8, where the thresholds Tl and T2 are adjusted and the candidate documents are updated accordingly.
[00373] The concept may also be generalized so that at one iteration of step 6 the user selects one or more of the presented documents along a first subset of at least one axis, and at another iteration of step 6 the user selects one or more of the presented documents along a second subset of at least one axis, where the second subset of axes contains at least one axis not included in the first subset of axes.
Advantages of the Technology Disclosed Over Prior Systems
[00374] Various implementations described herein may yield one or more of the following advantages over prior systems.
[00375] One advantage is that an implementation of the technology disclosed need not be limited to a single fixed hierarchy of documents. More specifically, an implementation does not require an explicit determination of a taxonomy by which the document catalog is described. Nor does it require a clustering of documents into a static hierarchy. That is, the sequence of refinements that a user may perform need not be constrained to narrowing or broadening in some pre-defined taxonomy or hierarchy.
[00376] Another advantage is that implementations of the technology disclosed can be extremely flexible and may be applied to images, text, audio, video, and many other kinds of data.
[00377] Another advantage is that implementations are based on intuitions about the relationships among documents, which are often easier to express using notions of similarity or distance between documents rather than by using a taxonomy or tags.
[00378] A further advantage is that selecting and deselecting candidate results in a visual way is a more facile interface for performing search on a mobile device or a tablet.
[00379] Another advantage is that encoding query refinements in terms of geometric constraints allows for a more flexible user interaction. Specifically, in an implementation, the user is not required to be familiar with a pre-defined tagging ontology, or with a query logic used to combine constraints. Furthermore, in an implementation such geometric constraints can be more robust to errors in a feature tagging or annotation process.
[00380] An additional advantage is that the ability to incrementally refine a search is helpful to a productive user experience.
[00381] Another advantage is that the use of a discriminative subset of candidate results makes more effective use of limited display space. The clutter on the display is minimized while simultaneously capturing a high proportion of the information available in the complete results set and providing a wide variety of options for the user to refine a query.
[00382] Furthermore, given that distances, embeddings, and similarities may be machine learned, another advantage is that a system using this approach can provide the ability to specialize the search experience to individuals, groups, cultures, and document categories.
[00383] Compared to content based image retrieval (CBIR) techniques, an advantage is that an implementation of the present disclosure can be more amenable to incremental refinement of a search. Specifically, a user may take a photograph and use a CBIR system to identify related or highly similar photographs. However, if the user is dissatisfied with the results the CBIR system does not provide them with a way to refine search goals.
An Example Implementation
[00384] One implementation allows users to search a catalog of personal photographs. Users are initially shown an arbitrary photograph (the primary result), e.g., the most recent photograph taken or viewed. This is displayed in the center of a 3x3 grid of photographs from the catalog. Each of the photographs is selected to be close (defined below) to the primary result but different from each other along different axes relative to the primary result. For example, if the primary
result is a photograph taken with family last week at home, then other photographs may be a) with the family last year at home, b) with the family last week outdoors, c) without the family last week at home, etc. In some situations, the system may place two photographs on opposite sides of the primary result which are along the same axis but differ from each other in their positions along that axis. For example, the photo placed on the left side may show family member A more prominently than in the primary result, while the photo placed on the right side may show family member A less prominently than in the primary result.
[00385] The user selects one of the 9 photographs which then becomes the primary result. This is then laid out in an updated 3x3 grid of photographs again "close" to it but different from each other.
[00386] If at any point the user double clicks on the primary result then the definition of "close" changes to a "smaller scale" (defined below). If the user uses a "pinch out" gesture then the definition of "close" changes to a "larger scale" and the result set is updated. In this way a user may navigate a catalog of photographs to find specific ones.
[00387] In this example photographs may be considered similar with respect to a number of criteria, including: GPS location of the photograph; time of the photograph; color content of the photograph; whether the photograph was taken indoors or outdoors; whether there are people in the photograph; who is in the photograph; whether people in the photograph are happy or sad; the activity depicted in the photograph; and the objects contained in the photograph.
[00388] These criteria are captured into a numerical "distance," or as a vector locating photographs in some space. In the latter case a standard notion of similarity or distance may be used, e.g., the dot product or Euclidean distance. In an implementation, a normalization function can be applied in order that distances along different axes are comparable to each other.
[00389] As the user navigates a catalog of photos the "scale" at which the user is searching changes. This scale specifies how "close" the photos in the result set are to the primary result.
More precisely all photos in the result set must have a "distance" less than some threshold. As the scale increases or decreases this threshold increases or decreases.
[00390] Considering this example with respect to the steps described above:
[00391] Embedding: For each photograph in a user's catalog of personal photographs a vector is produced that has indices corresponding to, e.g., the longitude, the latitude, the time of day, the day of week, the number of faces, whether a given activity is depicted, among many others.
[00392] Initial Query: In this case the initial query is empty, that is all photos are candidate results and the one presented to the user is arbitrary.
[00393] Initial Query as geometric constraints: The initial query produces an empty set of geometric constraints
[00394] The geometric constraints are applied to the set of embedded photographs to identify those that satisfy the constraints, i.e., the candidate results
[00395] A discriminative subset of 9 photographs is selected from the candidate results using farthest first traversal.
[00396] The 9 photographs are presented to the user in a 3 x 3 grid
[00397] The user selects one of the photographs to indicate a desire to see more photographs like that one.
[00398] The user selected photograph is processed to yield a new geometric constraint which can be represented as a sphere around the selected photograph in the embedding space. This new constraint is added to the current set of constraints. The combined constraint is the intersection of spheres around all photographs selected so far.
Another Example Implementation
[00399] Another implementation looks at searching for accessories (apparel, furniture, apartments, jewelry, etc.). In this implementation the user searches using text, speech, or with a prototype image as an initial query. For example, a user searches for "brown purse" using text entry. The search engine responds by identifying a diverse set of possible results, e.g., purses of various kinds and various shades of brown. These results are laid out in a 2 dimensional arrangement (for example a grid), whereby more similar results are positioned closer to each other and more different results are positioned relatively far from each other. The user then selects one or more images, for example using radio buttons. The image selections are then used by the search engine to define a "search direction" or a vector in the embedding space along which further results may be obtained.
[00400] Considering this example with respect to the steps described above:
[00401] Embedding: For each entry in an accessories catalog a vector is produced using deep learning techniques trained to differentiate accessories.
[00402] Initial Query: In this case the initial query is a textual search that narrows further results to be within a portion of the full catalog. This restricted is the set of initial candidate results.
[00403] Initial Query as geometric constraints: The initial query produces an empty set of geometric constraints
[00404] The geometric constraints are applied to the set of embedded accessories in the restricted set (i.e., the initial candidate results) to identify those that satisfy the constraints, i.e., the candidate results
[00405] A diverse subset of 9 catalog entries is selected from the candidate results using farthest first traversal.
[00406] The 9 catalog entries are presented to the user in a 3 x 3 grid
[00407] The user selects one of the catalog entries to indicate a desire to see more accessories like that one.
[00408] The user selected accessory is processed to yield a new geometric constraint which can be represented as a sphere around the selected accessory in the embedding space. This new constraint is added to the current set of constraints. The combined constraint is the intersection of spheres around all accessories selected so far.
[00409] As used herein, a given event or value is "responsive" to a predecessor event or value if the predecessor event or value influenced the given event or value. If there is an intervening processing element, step or time period, the given event or value can still be "responsive" to the predecessor event or value. If the intervening processing element or step combines more than one event or value, the signal output of the processing element or step is considered "responsive" to each of the event or value inputs. If the given event or value is the same as the predecessor event or value, this is merely a degenerate case in which the given event or value is still considered to be "responsive" to the predecessor event or value. "Dependency" of a given event or value upon another event or value is defined similarly.
[00410] It will be appreciated that the logic described herein for implementing aspects of the invention herein can be implemented using processors programmed using computer programs stored in memory accessible to the computer systems and executable by the processors, by dedicated logic hardware, including field programmable integrated circuits, or by combinations of dedicated logic hardware and computer programs. Each step in a process described herein can be implemented in hardware or in software running on one or more computing processes executing on one or more computer systems. In one embodiment, each step illustrates the function of a separate module of software. In another embodiment, the logic of the step is performed by software code routines which are distributed throughout more than one module. In each embodiment, the code portions forming a particular module can be either grouped together in memory or dispersed among more than one different region of memory.
[00411] Applicant hereby discloses in isolation each individual feature described herein and each combination of two or more such features, to the extent that such features or combinations
are capable of being carried out based on the present specification as a whole in light of the common general knowledge of a person skilled in the art, irrespective of whether such features or combinations of features solve any problems disclosed herein, and without limitation to the scope of the claims. Applicant indicates that aspects of the present disclosure may consist of any such feature or combination of features. In view of the foregoing description it will be evident to a person skilled in the art that various modifications may be made within the scope of the invention.
[00412] Various aspects of the present disclosure can also be embodied as computer readable code on a non-transitory computer readable recording medium. A non-transitory computer readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the non-transitory computer readable recording medium include Read-Only Memory (ROM), Random-Access Memory (RAM), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices. The non-transitory computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion. Also, functional programs, code, and code segments for accomplishing the present disclosure can be easily construed by programmers skilled in the art to which the present disclosure pertains.
[00413] At this point it should be noted that various implementations of the present disclosure as described above typically involve the processing of input data and the generation of output data to some extent. This input data processing and output data generation may be implemented in hardware or software in combination with hardware. For example, specific electronic components may be employed in a mobile device or similar or related circuitry for implementing the functions associated with the various implementations of the present disclosure as described above. Alternatively, one or more processors operating in accordance with stored instructions may implement the functions associated with the various implementations of the present disclosure as described above. If such is the case, it is within the scope of the present disclosure that such instructions may be stored on one or more non- transitory processor readable mediums. Examples of the processor readable mediums include Read-Only Memory (ROM), Random- Access Memory (RAM), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices. The processor readable mediums can also be distributed over network coupled computer systems so that the instructions are stored and executed in a distributed fashion. Also, functional computer programs, instructions, and instruction segments for accomplishing the present disclosure can be easily construed by programmers skilled in the art to which the present disclosure pertains.
[00414] The foregoing description of preferred implementations of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in this art. In particular, and without limitation, any and all variations described, suggested or incorporated by reference in the Background section of this patent application are specifically incorporated by reference into the description herein of implementations of the invention. In addition, any and all variations described, suggested or incorporated by reference herein with respect to any one implementation are also to be considered taught with respect to all other implementations. The implementations described herein were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various implementations and with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following clauses and their equivalents.
CLAUSES:
1. A method for user identification of a desired document, comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l) and in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D),
where C is the sequence of documents Ci , Cj selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
2. The method of clause 1, further comprising, for each i'th iteration in the plurality of iterations, calculating the Posterior probability score for each document of the candidate list in dependence on the user selection of the i'th document from the (i-l)'th collection of candidate documents.
3. The method of clause 1, further comprising taking an action in response to user behavior identifying as the desired document a selected document in one of the collections of documents.
4. The method of clause 1, wherein the Prior probability score is calculated for each document of the candidate list in dependence on previous experience, not specific to the user, regarding the documents of the candidate list.
5. The method of clause 4, wherein the documents in the candidate list represent products for sale,
and wherein the previous experience includes previous sales experience of products represented by at least one of the documents of the candidate list relative to products represented by other documents of the candidate list.
6. The method of clause 1, wherein the Prior probability scores are calculated in dependence on previous indications by the user of preferences among documents of the candidate list.
7. The method of clause 1, wherein one or more previous identifications of desired documents by the user are represented by a mean embedding vector of the user's past identifications of desired documents,
and wherein calculating a Prior probability score for each document of a candidate list comprises calculating the Prior probability scores in dependence on a spherically symmetrical Gaussian centered at the mean embedding vector.
8. The method of clause 1, wherein the Prior probability scores are calculated in dependence on previous indications by one or more people other than the user, of preferences among documents of the candidate list.
9. The method of clause 8, wherein the one or more people are determined in dependence on criteria indicating similarity of the one or more people to the user.
10. The method of clause 1,
wherein the database identifies a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents,
wherein the method further includes, prior to the calculating of the Prior probability score for each document of the candidate list, identifying toward the user a preliminary collection of documents and receiving user selection of a seed document from the preliminary collection of documents,
and wherein calculating a Prior probability score for each document of a candidate list comprises calculating the Prior probability scores in dependence on a factor that decays as a function of distance from the seed document.
11. The method of clause 1, further comprising, after each i'th iteration of the plurality of iterations, removing a predetermined fraction of documents from the candidate list.
12. The method of clause 1, wherein P(C|D) is dependent upon probabilities determined with respect to the sequence of documents Ci , Ci selected by the user up through the i'th iteration.
13. The method of clause 1, wherein P(C|D) is given by ΓΤ}=ι P(c where each Cj is the document selected by the user in the j'th iteration.
14. The method of clause 1, wherein for an iteration i>l, the system gives at least one of the documents Ci , en less influence on P(C|D) than the influence given by the system to document Cj on P(C|D).
15. The method of clause 1, wherein for each iteration i>l, the system gives at least one of the documents Ci , en less influence on P(C|D) than the influence given by the system to document Ci on P(C|D).
16. The method of clause 1, wherein for an iteration i>l, the system gives each of the documents Ci , Ci-i less influence on P(C|D) than the influence given by the system to document Ci on P(C|D).
17. The method of clause 1, wherein for each iteration i>l, the system gives each of the documents Ci , en less influence on P(C|D) than the influence given by the system to document Ci on P(C|D).
18. The method of clause 1, wherein for an iteration i>l, the system gives each document Cj , j=l, i, an influence on P(C|D) which is related monotonically the iteration number j in which document Cj was selected by the user.
19. The method of clause 1, wherein identifying toward the user an i'th collection of documents comprises:
calculating the Posterior probability scores for at least a subset of more than Ni of the candidate documents from the candidate list; and
identifying toward the user the candidate documents having the Ni highest calculated Posterior probability scores.
20. The method of clause 1, wherein identifying toward the user an i'th collection of candidate documents comprises selecting documents from the candidate list, to be included in the i'th collection of candidate documents, randomly according to a probability distribution that is weighted in dependence on the Posterior probability scores.
21. The method of clause 1, wherein identification of the initial collection of candidate documents toward the user comprises selecting documents from the candidate list, to be included in the initial collection of candidate documents, randomly according to a probability distribution that is weighted in dependence on the calculated Prior probability scores.
22. The method of clause 1, wherein for each i'th iteration in the plurality of iterations, identifying toward the user an i'th collection of documents comprises:
calculating the Posterior probability scores for at least a subset of the candidate documents from the candidate list; and
assigning zero as the Posterior probability score for each unselected document from the (i-l)'th collection of documents.
23. The method of clause 1, further comprising:
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list; and
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line, wherein identifying toward the user an i'th collection of candidate documents comprises inserting documents into the i'th collection of candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the i'th selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk.
24. The method of clause 23, wherein, for each k'th tour, an edge is inserted from each vertex of the neighbor graph G to each of two other vertices of the neighbor graph G.
25. The method of clause 23, further comprising taking action in response to user behavior identifying, a selected document in one of the collections of documents, as the desired document.
26. The method of clause 23, further comprising, after each i'th iteration of the plurality of iterations, removing a predetermined fraction of vertices and connecting edges from the neighbor graph G.
27. The method of clause 23, wherein developing a plurality of tours further comprises removing redundant edges from the neighbor graph G belonging to different ones of the plurality of tours.
28. The method of clause 23, wherein the database identifies a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents, and
wherein developing a plurality of tours further comprises, for each k'th tour in the plurality of tours:
walking the vertices of the k'th tour for a plurality of laps; and
at each current vertex encountered in the walk, determining whether the document corresponding to the next vertex of the tour is farther away in the embedding space from the
document corresponding to the current vertex than the document corresponding to a vertex further downstream in the tour is from the document corresponding to the current vertex, and if so then swapping the next vertex with the downstream vertex in the tour.
29. The method of clause 23,
wherein the database identifies a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents, and
wherein developing a plurality of tours further comprises, after inserting into neighbor graph G all the edges of each k'th tour in the plurality of tours:
walking the vertices of the k'th tour for a plurality of laps;
at each current vertex encountered in the walk, determining whether the document corresponding to the next vertex of the tour is farther away in the embedding space from the document corresponding to the current vertex than the document corresponding to a vertex further downstream in the tour is from the document corresponding to the current vertex, and if so then swapping the next vertex with the downstream vertex in the tour; and
removing edges from the neighbor graph G belonging to the k'th tour which are redundant with edges belonging to prior tours in the plurality of tours.
30. The method of clause 23, wherein identifying toward the user an i'th collection of candidate documents comprises, for each i'th iteration in the plurality of iterations:
beginning with the vertex that corresponds to the i'th selected document, walking a predetermined number of steps through vertices of the neighbor graph G not corresponding to documents already in the i'th collection, each step from a current vertex including, if the document corresponding to all neighbors of the current vertex are not already in the i'th collection of documents, choosing a next vertex in dependence upon the Posterior probability score of at least one neighbor of the current vertex; and
inserting into the i'th collection of documents the document corresponding to the last vertex encountered in the walk.
31. A method for user identification of a desired document, comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents of the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, calculating a Posterior probability score for each document of the candidate list, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the calculated Posterior probability scores for the documents in the candidate list, Ni being smaller than the number of documents of the candidate list,
wherein the calculated Posterior probability score for each given document D is given by P(C|D)P(D), where C is the sequence of documents ci, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
32. A method for user identification of a desired document, comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list;
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line,
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, inserting documents into an i'th collection of Ni>l candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the it' selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk, Ni being smaller than the number of documents in the candidate list, and
identifying toward the user the i'th collection of candidate documents from the candidate list,
wherein the Posterior probability score for each given document D is given by
P(C|D)P(D), where C is the sequence of documents cls Cj selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
33. A method for user identification of a desired document, comprising:
providing, accessibly to a computer system, a database identifying (i) a catalog of documents in an embedding space and (ii) a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a
preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, assigning a weight w to each given document D in dependence on a Posterior probability score for each given document D, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the assigned weights w, the Posterior probability scores and a distance from each given document D to a closest document in the candidate list, such that i'th collection is a collection of Ni>l documents from the candidate list having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights w and Posterior probability scores, Ni being smaller than the number of documents of the candidate list,
wherein, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents cls Cj selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
34. A non-transitory computer-readable storage medium impressed with computer program instructions to provide user identification of a desired document, the instructions, when executed on a processor, implement a method comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability
scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l) and in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents cls Cj selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
35. The non-transitory computer-readable recording medium of clause 34, wherein the method further comprises, for each i'th iteration in the plurality of iterations, calculating the Posterior probability score for each document of the candidate list in dependence on the user selection of the i'th document from the (i-l)'th collection of candidate documents.
36. The non-transitory computer-readable recording medium of clause 34, wherein the method further comprises:
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list; and
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line, wherein identifying toward the user an i'th collection of candidate documents comprises inserting documents into the i'th collection of candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the i'th
selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk.
37. A non- transitory computer-readable storage medium impressed with computer program instructions to provide user identification of a desired document, the instructions, when executed on a processor, implement a method comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents of the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, calculating a Posterior probability score for each document of the candidate list, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the calculated Posterior probability scores for the documents in the candidate list, Ni being smaller than the number of documents of the candidate list,
wherein the calculated Posterior probability score for each given document D is given by P(C|D)P(D), where C is the sequence of documents ci, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
38. A non- transitory computer-readable storage medium impressed with computer program instructions to provide user identification of a desired document, the instructions, when executed on a processor, implement a method comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list;
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line,
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, inserting documents into an i'th collection of Ni>l candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the it' selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk, Ni being smaller than the number of documents in the candidate list, and
identifying toward the user the i'th collection of candidate documents from the candidate list,
wherein the Posterior probability score for each given document D is given by
P(C|D)P(D), where C is the sequence of documents cls Cj selected by the user up through the
i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
39. A non- transitory computer-readable storage medium impressed with computer program instructions to provide user identification of a desired document, the instructions, when executed on a processor, implement a method comprising:
providing, accessibly to a computer system, a database identifying (i) a catalog of documents in an embedding space and (ii) a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, assigning a weight w to each given document D in dependence on a Posterior probability score for each given document D, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the assigned weights w, the Posterior probability scores and a distance from each given document D to a closest document in the candidate list, such that i'th collection is a collection of Ni>l documents from the candidate list having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights w and Posterior probability scores, Ni being smaller than the number of documents of the candidate list,
wherein, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents ci, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
40. A system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l) and in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents Ci , Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
41. The system of clause 40, further comprising, for each i'th iteration in the plurality of iterations, calculating the Posterior probability score for each document of the candidate list in dependence on the user selection of the i'th document from the (i-l)'th collection of candidate documents.
42. The system of clause 40, further comprising:
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list; and
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line, wherein identifying toward the user an i'th collection of candidate documents comprises inserting documents into the i'th collection of candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the i'th selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk.
43. A system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents of the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, calculating a Posterior probability score for each document of the candidate list, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the calculated Posterior probability scores for the
documents in the candidate list, Ni being smaller than the number of documents of the candidate list,
wherein the calculated Posterior probability score for each given document D is given by P(C|D)P(D), where C is the sequence of documents cls Cj selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
44. A system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list;
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line,
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l):
in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, inserting documents into an i'th collection of Ni>l candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the it' selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk, Ni being smaller than the number of documents in the candidate list, and
identifying toward the user the i'th collection of candidate documents from the candidate list,
wherein the Posterior probability score for each given document D is given by
P(C|D)P(D), where C is the sequence of documents ci, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
45. A system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
providing, accessibly to a computer system, a database identifying (i) a catalog of documents in an embedding space and (ii) a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, assigning a weight w to each given document D in dependence on a Posterior probability score for each given document D, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the assigned weights w, the Posterior probability scores and a distance from each given document D to a closest document in the candidate list, such that i'th collection is a collection of Ni>l documents from the candidate list having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights w and Posterior probability scores, Ni being smaller than the number of documents of the candidate list,
wherein, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents cls Cj selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
46. A method for locating an endpoint document, comprising:
providing, accessibly to a computer system, a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the endpoint document;
a computer building an initial (i=0) database version of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial database version having fewer documents than the candidate list, the initial database version being stored in a computer system;
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): identifying an i'th relevant document from the (i-l)'th database version as the most relevant to the endpoint document of all the documents in the (i-l)'th database version,
updating the i'th database version in the computer system to have Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents Ci , Cj identified as most relevant up through the i'th iteration, where P(C|D) is the
system's view of the probability of C if the endpoint document is D and where P(D) is the calculated Prior probability score for document D,
the endpoint document being one of the documents in the last database version after the plurality of iterations; and
taking action in dependence upon identification of the endpoint document.
Claims
1. A method for user identification of a desired document, comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l) and in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents Ci , Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
2. The method of claim 1, further comprising, for each i'th iteration in the plurality of iterations, calculating the Posterior probability score for each document of the candidate list in dependence on the user selection of the i'th document from the (i-l)'th collection of candidate documents.
3. The method of claim 1, wherein the Prior probability scores are calculated in dependence on previous indications by the user of preferences among documents of the candidate list.
4. The method of claim 1, wherein one or more previous identifications of desired documents by the user are represented by a mean embedding vector of the user's past identifications of desired documents,
and wherein calculating a Prior probability score for each document of a candidate list comprises calculating the Prior probability scores in dependence on a spherically symmetrical Gaussian centered at the mean embedding vector.
5. The method of claim 1, wherein the Prior probability scores are calculated in dependence on previous indications by one or more people other than the user, of preferences among documents of the candidate list.
6. The method of claim 5, wherein the one or more people are determined in dependence on criteria indicating similarity of the one or more people to the user.
7. The method of claim 1,
wherein the database identifies a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents,
wherein the method further includes, prior to the calculating of the Prior probability score for each document of the candidate list, identifying toward the user a preliminary collection of documents and receiving user selection of a seed document from the preliminary collection of documents,
and wherein calculating a Prior probability score for each document of a candidate list comprises calculating the Prior probability scores in dependence on a factor that decays as a function of distance from the seed document.
8. The method of claim 1, wherein P(C|D) is dependent upon probabilities determined with respect to the sequence of documents Ci, Ci selected by the user up through the i'th iteration.
9. The method of claim 1, wherein for each iteration i>l, the system gives each of the documents Ci, Ci_i less influence on P(C|D) than the influence given by the system to document Ci on P(C|D).
10. The method of claim 1, wherein for an iteration i>l, the system gives each document Cj, j=l, i, an influence on P(C|D) which is related monotonically the iteration number j in which document Cj was selected by the user.
11. The method of claim 1, wherein identifying toward the user an i'th collection of documents comprises:
calculating the Posterior probability scores for at least a subset of more than Ni of the candidate documents from the candidate list; and
identifying toward the user the candidate documents having the Ni highest calculated Posterior probability scores.
12. The method of claim 1, further comprising:
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list; and
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line, wherein identifying toward the user an i'th collection of candidate documents comprises inserting documents into the i'th collection of candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the i'th selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk.
13. The method of claim 12, wherein, for each k'th tour, an edge is inserted from each vertex of the neighbor graph G to each of two other vertices of the neighbor graph G.
14. The method of claim 12,
wherein the database identifies a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents, and
wherein developing a plurality of tours further comprises, after inserting into neighbor graph G all the edges of each k'th tour in the plurality of tours:
walking the vertices of the k'th tour for a plurality of laps;
at each current vertex encountered in the walk, determining whether the document corresponding to the next vertex of the tour is farther away in the embedding space from the document corresponding to the current vertex than the document corresponding to a vertex further downstream in the tour is from the document corresponding to the current vertex, and if so then swapping the next vertex with the downstream vertex in the tour; and
removing edges from the neighbor graph G belonging to the k'th tour which are redundant with edges belonging to prior tours in the plurality of tours.
15. A method for user identification of a desired document, comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents of the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, calculating a Posterior probability score for each document of the candidate list, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the calculated Posterior probability scores for the documents in the candidate list, Ni being smaller than the number of documents of the candidate list,
wherein the calculated Posterior probability score for each given document D is given by P(C|D)P(D), where C is the sequence of documents cls Cj selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
16. A method for user identification of a desired document, comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list;
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line,
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, inserting documents into an i'th collection of Ni>l candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the it' selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk, Ni being smaller than the number of documents in the candidate list, and
identifying toward the user the i'th collection of candidate documents from the candidate list,
wherein the Posterior probability score for each given document D is given by
P(C|D)P(D), where C is the sequence of documents ci, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
17. A method for user identification of a desired document, comprising:
providing, accessibly to a computer system, a database identifying (i) a catalog of documents in an embedding space and (ii) a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, assigning a weight w to each given document D in dependence on a Posterior probability score for each given document D, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the assigned weights w, the Posterior probability scores and a distance from each given document D to a closest document in the candidate list, such that i'th collection is a collection of Ni>l documents from the candidate list having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights w and Posterior probability scores, Ni being smaller than the number of documents of the candidate list,
wherein, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents ci, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
18. A non- transitory computer-readable storage medium impressed with computer program instructions to provide user identification of a desired document, the instructions, when executed on a processor, implement a method comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l) and in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents Ci , Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
19. The non-transitory computer-readable recording medium of claim 18, wherein the method further comprises, for each i'th iteration in the plurality of iterations, calculating the Posterior probability score for each document of the candidate list in dependence on the user selection of the i'th document from the (i-l)'th collection of candidate documents.
20. The non-transitory computer-readable recording medium of claim 18, wherein the method further comprises:
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list; and
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line, wherein identifying toward the user an i'th collection of candidate documents comprises inserting documents into the i'th collection of candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the i'th selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk.
21. A non-transitory computer-readable storage medium impressed with computer program instructions to provide user identification of a desired document, the instructions, when executed on a processor, implement a method comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents of the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, calculating a Posterior probability score for each document of the candidate list, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the calculated Posterior probability scores for the
documents in the candidate list, Ni being smaller than the number of documents of the candidate list,
wherein the calculated Posterior probability score for each given document D is given by P(C|D)P(D), where C is the sequence of documents cls Cj selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
22. A non- transitory computer-readable storage medium impressed with computer program instructions to provide user identification of a desired document, the instructions, when executed on a processor, implement a method comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list;
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line,
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l):
in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, inserting documents into an i'th collection of Ni>l candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the it' selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk, Ni being smaller than the number of documents in the candidate list, and
identifying toward the user the i'th collection of candidate documents from the candidate list,
wherein the Posterior probability score for each given document D is given by
P(C|D)P(D), where C is the sequence of documents ci, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
23. A non-transitory computer-readable storage medium impressed with computer program instructions to provide user identification of a desired document, the instructions, when executed on a processor, implement a method comprising:
providing, accessibly to a computer system, a database identifying (i) a catalog of documents in an embedding space and (ii) a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, assigning a weight w to each given document D in dependence on a Posterior probability score for each given document D, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the assigned weights w, the Posterior probability scores and a distance from each given document D to a closest document in the candidate list, such that i'th collection is a collection of Ni>l documents from the candidate list having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights w and Posterior probability scores, Ni being smaller than the number of documents of the candidate list,
wherein, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents cls Cj selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
24. A system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l) and in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents Ci , Cj selected by the user up through the i'th iteration,
where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
25. The system of claim 24, further comprising, for each i'th iteration in the plurality of iterations, calculating the Posterior probability score for each document of the candidate list in dependence on the user selection of the i'th document from the (i-l)'th collection of candidate documents.
26. The system of claim 24, further comprising:
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list; and
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line, wherein identifying toward the user an i'th collection of candidate documents comprises inserting documents into the i'th collection of candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the i'th selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk.
27. A system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a
preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents of the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, calculating a Posterior probability score for each document of the candidate list, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the calculated Posterior probability scores for the documents in the candidate list, Ni being smaller than the number of documents of the candidate list,
wherein the calculated Posterior probability score for each given document D is given by P(C|D)P(D), where C is the sequence of documents ci, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
28. A system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
providing, accessibly to a computer system, a database identifying a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
initializing a neighbor graph G to include a corresponding vertex for each document of the candidate list;
developing a plurality of tours each touching all the vertices in the neighbor graph G corresponding to documents of the candidate list, including, for each k'th tour of the plurality of tours, beginning with a first (k=l) tour:
determining a perpendicular projection of each document of the candidate list onto a k'th randomly oriented projection line that passes through an origin of the embedding space,
inserting into the neighbor graph G an edge from each particular vertex of G, to all vertices of the particular vertex whose projections onto the k'th line neighbor the projection of the particular vertex onto the k'th line, and
inserting into the neighbor graph G an edge between the vertices corresponding to two documents of the candidate list having the outermost projections onto the k'th line,
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of candidate documents, inserting documents into an i'th collection of Ni>l candidate documents in dependence on a walk through the neighbor graph G beginning with the vertex in the graph corresponding to the it' selected document and guided by Posterior probability scores calculated for documents corresponding to vertices encountered during the walk, Ni being smaller than the number of documents in the candidate list, and
identifying toward the user the i'th collection of candidate documents from the candidate list,
wherein the Posterior probability score for each given document D is given by
P(C|D)P(D), where C is the sequence of documents cls Cj selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
29. A system including one or more processors coupled to memory, the memory loaded with computer instructions to provide for user identification of a desired document, the instructions, when executed on the processors, implement actions comprising:
providing, accessibly to a computer system, a database identifying (i) a catalog of documents in an embedding space and (ii) a distance between each pair of the documents in the embedding space and the distance corresponds to a predetermined measure of dissimilarity between the pair of documents;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the desired document;
a computer system identifying toward the user an initial (i=0) collection of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in the candidate list, the initial collection of candidate documents having fewer documents than the candidate list; and
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): in response to user selection of an i'th selected document from the (i-l)'th collection of documents, assigning a weight w to each given document D in dependence on a Posterior probability score for each given document D, and
identifying toward the user an i'th collection of Ni>l candidate documents from the candidate list in dependence on the assigned weights w, the Posterior probability scores and a distance from each given document D to a closest document in the candidate list, such that i'th collection is a collection of Ni>l documents from the candidate list having a lowest weighted average of distances to closest documents that are weighted based on the corresponding weights w and Posterior probability scores, Ni being smaller than the number of documents of the candidate list,
wherein, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents ci, Ci selected by the user up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the desired document is D and where P(D) is the calculated Prior probability score for document D.
30. A method for locating an endpoint document, comprising:
providing, accessibly to a computer system, a catalog of documents in an embedding space;
calculating a Prior probability score for each document of a candidate list including at least a portion of the documents of the embedding space, the Prior probability score indicating a preliminary probability, for each particular document of the candidate list, that the particular document is the endpoint document;
a computer building an initial (i=0) database version of N0>1 candidate documents from the candidate list in dependence on the calculated Prior probability scores for the documents in
the candidate list, the initial database version having fewer documents than the candidate list, the initial database version being stored in a computer system;
for each i'th iteration in a plurality of iterations, beginning with a first iteration (i=l): identifying an i'th relevant document from the (i-l)'th database version as the most relevant to the endpoint document of all the documents in the (i-l)'th database version,
updating the i'th database version in the computer system to have Ni>l candidate documents from the candidate list in dependence on Posterior probability scores for at least a portion of the documents in the candidate list, Ni being smaller than the number of documents in the candidate list, the Posterior probability score for each given document D being given by P(C|D)P(D), where C is the sequence of documents Ci , Ci identified as most relevant up through the i'th iteration, where P(C|D) is the system's view of the probability of C if the endpoint document is D and where P(D) is the calculated Prior probability score for document D, and
the endpoint document being one of the documents in the last database version after the plurality of iterations; and
taking action in dependence upon identification of the endpoint document.
Applications Claiming Priority (6)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201562265367P | 2015-12-09 | 2015-12-09 | |
US62/265,367 | 2015-12-09 | ||
US201662308744P | 2016-03-15 | 2016-03-15 | |
US62/308,744 | 2016-03-15 | ||
US15/373,897 | 2016-12-09 | ||
US15/373,897 US10102277B2 (en) | 2014-05-15 | 2016-12-09 | Bayesian visual interactive search |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017098475A1 true WO2017098475A1 (en) | 2017-06-15 |
Family
ID=59012739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/IB2016/057510 WO2017098475A1 (en) | 2015-12-09 | 2016-12-09 | Bayesian visual interactive search |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2017098475A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6574616B1 (en) * | 2000-02-16 | 2003-06-03 | Index Stock Imagery, Inc. | Stochastic visually based image query and retrieval system |
US20070011154A1 (en) * | 2005-04-11 | 2007-01-11 | Textdigger, Inc. | System and method for searching for a query |
US20140222789A1 (en) * | 2005-05-06 | 2014-08-07 | Seaton Gras | Hierarchical information retrieval from a coded collection of relational data |
US20150286957A1 (en) * | 2009-07-28 | 2015-10-08 | Fti Consulting, Inc. | Computer-Implemented System And Method For Assigning Concept Classification Suggestions |
-
2016
- 2016-12-09 WO PCT/IB2016/057510 patent/WO2017098475A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6574616B1 (en) * | 2000-02-16 | 2003-06-03 | Index Stock Imagery, Inc. | Stochastic visually based image query and retrieval system |
US20070011154A1 (en) * | 2005-04-11 | 2007-01-11 | Textdigger, Inc. | System and method for searching for a query |
US20140222789A1 (en) * | 2005-05-06 | 2014-08-07 | Seaton Gras | Hierarchical information retrieval from a coded collection of relational data |
US20150286957A1 (en) * | 2009-07-28 | 2015-10-08 | Fti Consulting, Inc. | Computer-Implemented System And Method For Assigning Concept Classification Suggestions |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10102277B2 (en) | Bayesian visual interactive search | |
US11216496B2 (en) | Visual interactive search | |
US20220156302A1 (en) | Implementing a graphical user interface to collect information from a user to identify a desired document based on dissimilarity and/or collective closeness to other identified documents | |
US20170039198A1 (en) | Visual interactive search, scalable bandit-based visual interactive search and ranking for visual interactive search | |
US10606883B2 (en) | Selection of initial document collection for visual interactive search | |
US10909459B2 (en) | Content embedding using deep metric learning algorithms | |
US11188831B2 (en) | Artificial intelligence system for real-time visual feedback-based refinement of query results | |
US9633045B2 (en) | Image ranking based on attribute correlation | |
AU2016225947B2 (en) | System and method for multimedia document summarization | |
CN112313697A (en) | System and method for generating interpretable description-based recommendations describing angle augmentation | |
Shen et al. | Large-scale item categorization for e-commerce | |
CN110532479A (en) | A kind of information recommendation method, device and equipment | |
US20130339344A1 (en) | Web-scale entity relationship extraction | |
JP7361942B2 (en) | Automatic and intelligent exploration of design space | |
Zhang et al. | Locality reconstruction models for book representation | |
CN111340071B (en) | System and method for personalized product recommendation using hierarchical Bayes | |
CN115244528A (en) | Automatic data quality improvement | |
Choo et al. | VisIRR: A visual analytics system for information retrieval and recommendation for large-scale document data | |
CN116975359A (en) | Resource processing method, resource recommending method, device and computer equipment | |
Withanawasam | Apache Mahout Essentials | |
WO2017098475A1 (en) | Bayesian visual interactive search | |
WO2017064561A2 (en) | Selection of initial document collection for visual interactive search | |
WO2017064563A2 (en) | Visual interactive search, scalable bandit-based visual interactive search and ranking for visual interactive search | |
Negandhi et al. | Bookbuddy: A Mood Based Book Recommendation System | |
Zhao et al. | ShoppingCat: relocating products from the Web in online shopping |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16872530 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2017546977 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16872530 Country of ref document: EP Kind code of ref document: A1 |