====== Information Retrieval - Academic Year 2022/2023 ====== ====== General Information ====== * ** Teacher **: [[http://www.di.unipi.it/~ferragin/|Paolo Ferragina]] * **Course ID**: 289AA * **CFU:** 6 (first semester) * **Language:** English * **Question time:** Monday 15-17 by appointment. Meeting will occur via video-conference in the [[https://teams.microsoft.com/l/team/19%3aH8PcHJsymX9SJa_mDm0m_2pLn6k3g3kZQ4szcVtp9lU1%40thread.tacv2/conversations?groupId=4b133e22-1e26-4920-ac1e-32b915b14e54&tenantId=c7456b31-a220-47f5-be52-473828670aa1|virtual room]] of the course. * **Official Lecture's Log:** Here it is the [[https://unimap.unipi.it/registri/dettregistriNEW.php?re=7088845::::&ri=9142|registro]]. * News about this course will be distributed via a [[ https://t.me/CourseIR2022 | Telegram channel]] \\ ====== Goals ====== Study, design and analysis of IR systems which are efficient and effective to process, mine, search, cluster and classify documents, coming from textual as well as any unstructured domain. In the lectures, we will: * study and analyze the main components of a modern search engine: Crawler, Parser, Compressor, Indexer, Query resolver, Query and Document annotator, Results Ranker; * dig into some basic algorithmic techniques which are now ubiquitous in any IR application for data compression, indexing and sketching; * describe few other IR tools which are used either as a component of a search engine or as independent tools and build up the previous algorithmic techniques, such as: Classification, Clustering, Recommendation, Random Sampling, Locality Sensitive Hashing. \\ ====== Schedule of the Lectures ====== ^ Week Schedule ^^^ ^ Day ^ Time Slot ^ Room ^ | Monday | 11:00 - 13:00 | Room C (Polo Fibonacci) | | Tuesday | 9:00 - 11:00 | Room C (Polo Fibonacci) | ====== Exams ====== The exam will consist of a written test including two parts: **exercises and "oral" questions**. The exam is passed if in both parts the student gets a sufficient score (expressed as 20+10), which are then summed. The first (exercises) and the second (theory questions) parts of the exam can be split into different exam dates, even of different exam sessions. The exam dates are the ones indicated in the calendar on ESAMI. In the case that the second part is not passed or the student abandons the exam, (s)he can keep the rank of the first exam, but this may occur just once. The second time this happens, the rank of the first part is dropped, and the student has to do both parts again. ^ Date ^ Room ^ Text ^ Notes | | 17/01/23, start at 09:00 | room E | {{ :magistraleinformatica:ir:ir22:ir230117.pdf |text}}, {{ :magistraleinformatica:ir:ir22:ir230117_solution.pdf |solution}}, {{ :magistraleinformatica:ir:ir22:informationretrieval-2023-jan.pdf |results}} | Correction will occur tomorrow Wednesday 18 January, at 16:00 (Ferragina's office). For registration only, just send me an email to accept the rank.\\ Students that have passed only the “exercises” part can repeat only the “theory” part on any of the following exam dates, they have to register on the portal “ESAMI” writing in the notes “only theory”. Moreover, they can come +45mins after the start of the exam, to join the class that did in the first hour the “exercises” part. | | 08/02/23, start at 11:00 | room A1 | {{ :magistraleinformatica:ir:ir22:ir230208.pdf |text}}, {{ :magistraleinformatica:ir:ir22:informationretrieval-2023-feb-a.pdf |results}}, {{ :magistraleinformatica:ir:ir22:ir230208_solution.pdf |solution}} | Correction will occur Monday 13 January, at 11:00 (Ferragina's office). For registration only, just send me an email to accept the rank.\\ Students that have passed only the “exercises” part can repeat only the “theory” part on any of the following exam dates, they have to register on the portal “ESAMI” writing in the notes “only theory”. Moreover, they can come +45mins after the start of the exam, to join the class that did in the first hour the “exercises” part. | | 05/06/2023, start at 16:00 | room C | {{ :magistraleinformatica:ir:ir22:ir230605.pdf |text}} | | | 05/07/2023, start at 11:00 | room A1 | {{ :magistraleinformatica:ir:ir22:ir230705.pdf |text}} | | | 24/07/2023, start at 14:00 | room C | {{ :magistraleinformatica:ir:ir22:ir230724.pdf |text}} | | | 07/09/2023, start at 14:00 | room A1 | {{ :magistraleinformatica:ir:ir22:ir230907.pdf |text}} | | ====== Materials for study ====== * **[MRS]** C.D. Manning, P. Raghavan, H. Schutze. //Introduction to Information Retrieval//. Cambridge University Press, 2008. [ [[http://nlp.stanford.edu/IR-book/information-retrieval-book.html| link]] ] * Some copies of papers or notes (linked below). * If you need to practice with exercises given at previous exams, please look at the [[http://didawiki.di.unipi.it/doku.php/magistraleinformatica/ir/start|pages of the course]] of the previous years, in the section where I list the exam dates, texts and solutions. \\ ====== Lectures ====== [[https://unipiit.sharepoint.com/:f:/s/a__td_54786/EsvPhODwDHlIqZlMOzfxqEIB2ZrdrK54SxqHeZKYgSKuxg?e=gSZUYc|Video-lectures]] of last year are available at the link and they are linked just for reference, if you wish to re-check something you listened in class. This year, lectures are in presence and the program of the course could be different. \\ ^ Date ^ Argument ^ Refs ^ | 19.09.2022 | Introduction to the course: modern IR, not just search engines! Boolean retrieval model. Matrix document-term. Inverted list: dictionary + postings. How to implement an AND, OR and NOT queries, and their time complexities. | [[https://www.dropbox.com/s/i4sy02qs412myk5/Lect%2001-introduction.ppt?dl=0|Slides]]. \\ Chapter 1 of [MRS] | | 20.09.2022 | Skip pointers, Zone indexes, Web search engine: its structure, difficulties in their design and their epochs. The Web graph: some useful structural properties (such as Bow Tie). | [[https://www.dropbox.com/s/i97m1op0crf0x18/Lect%2002-crawling%20%28part%20a%29.ppt?dl=0|Slides]].\\ Sections 19.1, 19.2, 19.4 of [MRS]. | | 27.09.2022 | Crawling: problems and algorithmic structure. An example: Mercator. The bloom filter: definition, time/space complexity and error bound. Spectral Bloom Filter. | [[https://www.dropbox.com/s/g87sguild871kqd/Lect%2003-crawling%20%28part%20b%29.ppt?dl=0|Slide]].\\ Sections 20.1, 20.2 of [MRS].\\ For doubts on Bloom Filters see [[http://didawiki.di.unipi.it/lib/exe/fetch.php/magistraleinformatica/ir/ir12/reading-bloomfilter.pdf|paper]].| | 03.10.2022 | Consistent Hashing. Web graph compression: properties of the web, power laws, and compressing the adjacency lists. | Sect 19.1 and 19.2 of [MRS] and this [[https://itnext.io/introducing-consistent-hashing-9a289769052e|page]] and [[http://web.stanford.edu/class/cs168/l/l1.pdf|note]] for consistent hashing.\\ Sect 20.3 and 20.4 of [MRS]. | | 04.10.2022 | Locality-sensitive hashing: basics, hamming distance, proof of the probability bounds. Use in an off-line and in an on-line setting. Comparison between LSH and K-means for the clustering problem. Exact-duplicate documents: Karp-Rabin's rolling hash (with properties and error probability). Near-duplicate documents: Shingling, Jaccard similarity, min-hashing. | [[https://www.dropbox.com/s/rfu1fk0t729kxi1/Lect%2004-LSH%20technique.pptx?dl=0|Slides 1]], [[https://www.dropbox.com/s/bz73ap39e12hnnm/Lect%2005-deduplication.pptx?dl=0|Slides 2]]. \\ Sect 19.6 of [MRS] | | 11.10.2022 | Min-hashing (with prob property). LSH on integer vectors. Cosine-similarity among vectors of real-features. Exercises on Consistent hashing, Web graph, hamming distance, LSH and shingling. | | | 17.10.2022 | The issue of hierarchical memories: I/O-model. Index construction: multi-way mergesort, BSBI and SPIMI. Sketch on MapReduce. Distributed indexing: Term-based vs Doc-based partitioning. Dynamic indexing: two indexes. | [[https://www.dropbox.com/s/8hkhrig7dkcr2sz/Lect%2006-construction.pptx?dl=0|Slides]].\\ Chapter 4 of [MRS]. | | 18.10.2022 | More on Dynamic indexing: a cascade of indexes. Parsing: tokenization, normalization, lemmatization, stemming, thesauri. Statistical properties of texts: Zipf law: classical and generalized, Heaps law, Luhn's consideration. Keyword extraction: statistical, chi-square test. | [[https://www.dropbox.com/s/2nyvci96aeerki4/Lect%2007-parsing%20and%20text%20laws.ppt?dl=0|Slides]].\\ Sect. 2.1, 2.2, 5.1 and 5.2 of [MRS]. | | 24.10.2022 | Rake tool. Compressed storage of documents: LZ-based compression. Storage and Transmission of single/group of file(s): Delta compression (Zdelta). | [[https://www.dropbox.com/s/c68o9fvcr5p5wug/Lect%2008-compression%20docs%20and%20rsync.ppt?dl=0|Slide]].\\ Suggest reading a [[https://www.dropbox.com/s/tsb6j1rmrx3e5zr/Lect%2007%20-%20reading%20-%20rsync%20and%20zsync.pdf?dl=0|paper]]. | | 25.10.2022 | File Synchronization (rsync, zsync). LSH for cosine similarity estimation. Exercises on file sync and zdelta. | | | 31.10.2022 | Posting list compression, codes: gamma, variable bytes (t-nibble), Simple9, Group variable, PForDelta, Elias-Fano indexing. | Sect. 5.3 of [MRS] and {{:magistraleinformaticanetworking/ae/ae2014/chap_9.pdf|Ferragina's notes}} (only the coders presented in class).\\ [[https://www.dropbox.com/s/sd6a5fiosjxa2em/Lect%2009%20-%20compression%20integers%20%28new%29.ppt?dl=0|Slides]].\\ [[https://unipiit.sharepoint.com/sites/a__td_54786/Shared%20Documents/General/Recordings/Lecture%20IR%2031_10_2022-20221031_110308-Meeting%20Recording.mp4?web=1|Video]] | | 07.11.2022 | Query processing: soft-AND. Phrase queries, biword index and positional index. Exact search: hashing. Prefix search: compacted trie, front coding, 2-level indexing. Edit distance with e-errors via brute-force approach, or Dynamic Programming (possibly weighted). Overlap measure with k-gram index. An index for e-error matches based on k-gram index (with false positives, no false negatives). | Sect. 2.3 and 2.4 of [MRS].\\ [[https://www.dropbox.com/s/c9yslt21191t3vi/Lect%2010%20-%20dict%20search.pptx?dl=0|Slides]] | | 08.11.2022 | Caching and Tiered index. An efficient filter for one-error match (with false positives, no false negatives). Wild-card queries (permuterm, k-gram). Phonetic match. Scoring and ranking spelling errors. | | | 14.11.2022 | Text-based ranking: dice, jaccard, tf-idf. Vector space model and cosine similarity doc-doc and query-doc. Storage of tf-idf and use for computing document-query similarity. Fast top-k retrieval: high idf, champion lists, many query terms, clustering.| Sect 6.2 and 6.3 and 7 from [MRS], [[https://unipiit.sharepoint.com/sites/a__td_54786/Shared%20Documents/General/Recordings/Lecture%20IR%20-%2014_11_2022-20221114_110231-Meeting%20Recording.mp4?web=1|video]], and [[https://www.dropbox.com/s/k9mzcweaav6q7pj/lect%2012-text%20ranking.ppt?dl=0|slides]] | | 15.11.2022 | Fast top-k retrieval: fancy hits. Exact Top-K: WAND and blocked-WAND. | | | 21.11.2022 | Relevance feedback, Rocchio, pseudo-relevance feedback, query expansion. Performance measures: precision, recall, F1, DCG and NDCG. | Sect 8.1-8.3 and 9 [MRS]. | | 22.11.2022 | Random Walks. Link-based ranking: PageRank. | Chap 21 of [MRS]. [[https://www.dropbox.com/s/bhr6sqe64kij3jo/lect%2013-Web%20ranking.ppt?dl=0|Slides]]. | | 24.11.2022 | **Extra lecture (16-18, room L1):** Lab on ElasticSearch, please bring your own laptop and make sure you have a working installation of a recent version of Python and [[https://www.anaconda.com/products/distribution|Anaconda]]. Use them to create a clean environment specific for this course. The only required package is ElasticSearch: install it via //pip install elasticsearch//. All material of the lecture is in this [[https://github.com/LorenzoBellomo/InformationRetrievalLab2022|github]]. | [[https://www.dropbox.com/s/pslui6eu8mv499v/IR-LAB22-23-Info.pptx?dl=0|Slides intro]]\\ [[https://www.dropbox.com/s/t2n2r49rdvj26p1/IR-LAB22-23-Indexing.pptx?dl=0|Slides on ElasticSearch]]| | 28.11.2022 | **Extra lecture:** Lab on ElasticSearch and TagMe, please bring your own laptop. | [[https://www.dropbox.com/s/sey5yfpwy20jt75/IR-LAB22-23-Annotators.pptx?dl=0|Slides on TagMe]] | | 29.11.2022 | Topic-based pagerank, personalized pagerank. HITS. Application to Text Summarization. | | | 01.12.2022 | **Extra lecture (room L1, 16 - 18):** Entity Linkers and Knowledge Graphs. Projections to smaller spaces: Latent Semantic Indexing (LSI). | Chap 18 from [MRS].\\ Slides [[https://www.dropbox.com/s/fwtflwp2xofzzur/Lect%2014%20-%20topic%20annotators%20%28breve%29.pptx?dl=0|tagme]] and Slides [[https://www.dropbox.com/s/rxd4p3qv60cnuuw/lect%2015%20-%20LSI%20and%20random%20proj%20%28breve%29.ppt?dl=0|LSI]]. | | 05.12.2022 | Exercises | | | 06.12.2022 | Exercises | | | 13.12.2022 | Exercises. | |