<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>DTAI Stories</title><link>https://dtai.cs.kuleuven.be/stories/authors/anastasia-dimou/</link><atom:link href="https://dtai.cs.kuleuven.be/stories/authors/anastasia-dimou/index.xml" rel="self" type="application/rss+xml"/><description>DTAI Stories</description><generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator><language>en-us</language><lastBuildDate>Sun, 12 Nov 2023 17:03:29 +0100</lastBuildDate><image><url>img/map[gravatar:%!s(bool=false) shape:circle]</url><title>DTAI Stories</title><link>https://dtai.cs.kuleuven.be/stories/authors/anastasia-dimou/</link></image><item><title>TorchicTab: Semantic Table Annotation</title><link>https://dtai.cs.kuleuven.be/stories/post/anastasia-dimou/torchictab/</link><pubDate>Sun, 12 Nov 2023 17:03:29 +0100</pubDate><guid>https://dtai.cs.kuleuven.be/stories/post/anastasia-dimou/torchictab/</guid><description>
&lt;div class="card relpub">
&lt;div class="card-body">
&lt;small>
&lt;p>This post is based on the following publications:&lt;/p>
&lt;p>
&lt;a href="https://lirias.kuleuven.be/4121809&amp;amp;lang=en" target="_blank" rel="noopener">TorchicTab: Semantic Table Annotation with Wikidata and Language Models&lt;/a>. Dasoulas, I., Yang, D., Duan, X., Dimou, A., SemTab’23: Semantic Web Challenge on Tabular Data to Knowledge Graph Matching 2023, co-located with the 22nd International Semantic Web Conference (ISWC), November 6-10, 2023, Athens, Greece.&lt;/p>
&lt;p>This publication won the
&lt;a href="https://sem-tab-challenge.github.io/2023/" target="_blank" rel="noopener">SemTab 2023&lt;/a> challenge award at the 22nd International Sematic Web Conference. The SemTab challenge benchmarks systems that assigns semantic tags to the elements of the table by comparing their accuracy.&lt;/p>
&lt;/small>
&lt;/div>
&lt;/div>
&lt;p>&lt;strong>TorchicTab&lt;/strong> is a semantic table annotation system that automatically understands the content of a table and assigns semantic tags to its elements with high accuracy. TorchicTab provides annotations both by leveraging heuristic methods to link table concepts with Wikidata entities and properties, as well as by applying classification methods to annotated tables to predict columns and predicates for unseen tables. It was developed to participate in the
&lt;a href="https://sem-tab-challenge.github.io/2023/" target="_blank" rel="noopener">SemTab&lt;/a> challenge which benchmarks systems that assign semantic tags to the elements of a table by comparing their accuracy. TorchicTab consists of two complementary subsystems: &lt;em>TorchicTab-Heuristic&lt;/em> and &lt;em>TorchicTab-Classification&lt;/em>.&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>TorchicTab-Heuristic&lt;/strong> leverages heuristic data mining to link tables with existing RDF graphs. It annotates tables by inferring the subject column from other elements in the table and predicts properties and qualifiers from large RDF graphs, such as Wikidata, for n-ary relations.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>TorchicTab-Classification&lt;/strong> requires a sufficiently large number of annotated tables for training to leverage the pre-trained language model DODUO that learns from provided table annotations. It adopts a sub-table sampling strategy to address larger tables.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="featured.png" alt="High level view of TorchicTab.">&lt;/p>
&lt;h1 id="semtab-challenge">SemTab Challenge&lt;/h1>
&lt;p>The Semantic Web Challenge on Tabular Data to Knowledge Graph Matching (SemTab) benchmarks table annotation systems over different tables&amp;rsquo; types (complete, horizontal, etc.) and annotation tasks:&lt;/p>
&lt;ul>
&lt;li>The &lt;em>Cell Entity Annotation&lt;/em> (&lt;strong>CEA&lt;/strong>) task associates a table cell with an entity.&lt;/li>
&lt;li>The &lt;em>Column Type Annotation&lt;/em> (&lt;strong>CTA&lt;/strong>) task assigns a semantic type to a column.&lt;/li>
&lt;li>The &lt;em>Column Property Annotation&lt;/em> (&lt;strong>CPA&lt;/strong>) task discovers a semantic relation contained in the RDF graph that best represents the relation between two columns.&lt;/li>
&lt;li>The &lt;em>Topic Detection&lt;/em> (&lt;strong>TD&lt;/strong>) task identifies the topic of a table that lacks a subject column and assigns a class.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="semtab_wd_tasks.png" alt="SemTab tasks: CEA, CPA and CTA. The entire table is considered for TD.">&lt;/p>
&lt;h1 id="torchictab">TorchicTab&lt;/h1>
&lt;p>TorchicTab consists of 2 subsystems: (1) &lt;em>TorchicTab-Heuristic&lt;/em> to annotate datasets with
&lt;a href="https://www.wikidata.org" target="_blank" rel="noopener">Wikidata&lt;/a> as reference knowledge base, and (2) &lt;em>TorchiTab-Classification&lt;/em> to annotate datasets based on a sufficiently large number of annotated tables for training.&lt;/p>
&lt;h2 id="torchictab-heuristic">TorchicTab-Heuristic&lt;/h2>
&lt;p>The &lt;strong>TorchicTab-Heuristic&lt;/strong> semantically annotates tables with entities and relations from Wikidata. We followed two similar workflows depending on whether the table has an entity column or not.&lt;/p>
&lt;h3 id="complete-tables">Complete tables&lt;/h3>
&lt;p>To semantically annotate complete tables (i.e. tables that do have entity columns), TorchicTab-Heuristic follows four steps:&lt;/p>
&lt;p>&lt;img src="semtab_wikidata_workflow.png" alt="TorchicTab-Heuristic.">&lt;/p>
&lt;p>(1) &lt;strong>Table pre-processing&lt;/strong>: all tables are pre-processed, e.g., non-cell values and HTML tags are removed or incorrect encodings are fixed, and columns are distinguisted into &lt;em>NE-columns&lt;/em> whose values can be named entities in the reference RDF graph or &lt;em>L-columns&lt;/em> whose values can be literal values.&lt;/p>
&lt;p>(2) &lt;strong>Candidate search&lt;/strong>: candidate entities are assigned to all NE-column cells. We employ 4 lookup strategies targeting an
&lt;a href="https://www.elastic.co/" target="_blank" rel="noopener">Elasticsearch&lt;/a> index which contains names and aliases from Wikidata:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>The &lt;em>Complete Cell Strategy&lt;/em> uses the complete cell;&lt;/p>
&lt;/li>
&lt;li>
&lt;p>the &lt;em>Fuzzy Strategy&lt;/em> leverages Elasticsearch fuzzy queries for noisy cells and cells with spelling mistakes;&lt;/p>
&lt;/li>
&lt;li>
&lt;p>the &lt;em>Cell Token Strategy&lt;/em> removes stop-words, splits cells into tokens and queries the index for each token separately; and&lt;/p>
&lt;/li>
&lt;li>
&lt;p>the &lt;em>Cell Token Combinations Strategy&lt;/em> removes stop-words from the cell and splits it into tokens.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>(3) &lt;strong>Ranking&lt;/strong>: The candidates are ranked based on &lt;em>string similarity&lt;/em>, comparing their labels to the table’s cells, and &lt;em>context similarity&lt;/em>, comparing their sub-graphs within the RDF graph to the cell’s context within the table and a confidence score is assigned to each candidate.&lt;/p>
&lt;p>(4) &lt;strong>Task estimation&lt;/strong>: The candidates’ scores and properties are used to calculate the most suitable relations between columns, via majority voting (CPA). The outputs of the CPA and candidate ranking are used to select the most suitable candidate for each NE-column cell (CEA). The outputs of CEA are then used for each NE-column to rank candidate types that could represent them and select the best (CTA).&lt;/p>
&lt;h3 id="entity-less-tables">Entity-less tables&lt;/h3>
&lt;p>To semantically annotate tables that lack a subject column, the workflow is similar to the one for complete tables, but the candidate selection step is adjusted to account for the lack of a subject column. To achieve this, we extend our Elasticsearch, adding an index containing all Wikidata triples, as we can no longer rely on extracting candidates using only entities’ names and aliases.&lt;/p>
&lt;h2 id="torchictab-classification">TorchicTab-Classification&lt;/h2>
&lt;p>The &lt;strong>TorchicTab-Classification&lt;/strong> considers pre-defined terms from vocabularies like
&lt;a href="schema.org">Schema.org&lt;/a> and
&lt;a href="https://www.dbpedia.org/" target="_blank" rel="noopener">DBpedia&lt;/a>, unlike TorchicTab-Heuristic which focused on entity discovery in Wikidata. We consider the task as multi-class classifications where each column or column pair can be annotated with only one label and apply
&lt;a href="https://doi.org/10.1145/3514221.3517906" target="_blank" rel="noopener">DODUO&lt;/a>, a multi-task learning framework based on pre-trained language models.&lt;/p>
&lt;p>However, due to the limitations imposed by the maximum length of token inputs (typically 512 tokens) in most language models, it becomes challenging to analyze the entire table with DODUO. Moreover, DODUO only models the information contained in labeled columns, disregarding the extensive context from the unlabeled columns, and it only captures information within those columns for upcoming predictions.&lt;/p>
&lt;p>&lt;img src="semtab_doduo_data_augmentation_new.drawio.png" alt="TorchicTab-Classification.">&lt;/p>
&lt;h3 id="sub-table-sampling-strategy">Sub-table Sampling Strategy&lt;/h3>
&lt;p>To deal with DODUO&amp;rsquo;s limitations, we followed a sub-table sampling strategy to split the larger tables and incorporate richer context within the original DODUO. We perform several steps before and after applying DODUO:&lt;/p>
&lt;p>(1) &lt;strong>Row selection&lt;/strong>: A specific number of rows (e.g., 40 out of 56 rows of a table) was randomly selected; these rows are randomly divided into smaller equal sub-tables (e.g., 8 sub-tables with 5 rows each); each sub-table serves as a single unit as training sample after further processing.&lt;/p>
&lt;p>(2) &lt;strong>Column selection&lt;/strong>: Each sub-table will be reduced to a maximum of 10 columns; the selection of these columns is random (e.g., 10 out of 14 columns). While some columns may be shared among sub-tables from the same large table, they may also have different columns.&lt;/p>
&lt;p>(3) &lt;strong>Token construction&lt;/strong>: For each sub-table, we have 50 tabular cells to represent as an individual sample for training and predicting, thus the maximum tabular cell length is 10 sub-word level tokens to fulfill the limitation by the maximum length of token inputs (512) in language models.&lt;/p>
&lt;p>(4) &lt;strong>Majority voting&lt;/strong>: Once the column’s type or relation predictions within sub-tables were done by DODUO, we employed a majority voting strategy to consolidate the final predicted outcome of the column or column pair, which involved aggregating the individual predictions based on sub-tables and selecting the most frequent predicted type or relation as the final result.&lt;/p>
&lt;h1 id="evaluation">Evaluation&lt;/h1>
&lt;p>Our results include the f1-score (F1), precision (P) and recall (R) for the validation and test sets provided by the competition with four groups of datasets across two rounds.&lt;/p>
&lt;h2 id="datasets">Datasets&lt;/h2>
&lt;p>The datasets which were used by the challenge are:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>WikidataTables&lt;/strong>:
&lt;a href="https://doi.org/10.5281/zenodo.8393535" target="_blank" rel="noopener">datasets&lt;/a> with tables generated using an improved version of SemTab&amp;rsquo;s data generator that creates realistic-looking tables using SPARQL queries. The target knowledge graph for this dataset is Wikidata, and the tasks are CEA, CTA, and CPA.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>tFood&lt;/strong>:
&lt;a href="https://doi.org/10.5281/zenodo.7828163" target="_blank" rel="noopener">datasets&lt;/a> derived from the Food domain. tFood has &lt;em>horizontal&lt;/em> relational tables where each table represents a collection of entities, and &lt;em>entity&lt;/em> tables, each representing a single entity. The target knowledge graph for this dataset is Wikidata, and the tasks are CEA, CTA, CPA and CQA.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>SOTAB&lt;/strong>: a benchmark
&lt;a href="https://doi.org/10.5281/zenodo.8422037" target="_blank" rel="noopener">dataset&lt;/a> created using tables from the WDC Schema.org Table Corpus for the CTA and CPA tasks. The column types and the column relationships are annotated using the Schema.org and DBpedia.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>CQA&lt;/strong>: a
&lt;a href="https://doi.org/10.5281/zenodo.8398347" target="_blank" rel="noopener">dataset&lt;/a> based on Wikary, consisting of Wikipedia tables for the CQA task.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;h2 id="results">Results&lt;/h2>
&lt;p>&lt;img src="ResultsRound2.png" alt="Results SOTAB.">&lt;/p>
&lt;p>Round 2 was concluded with 6 core participants. TorchicTab outperforms other systems, in some cases with a very high margin, with F1 scores of up to 0.9.
Thanks to its high accuracy, TorchicTab won the price for the SemTab challenge during the
&lt;a href="https://iswc2023.semanticweb.org/awards/" target="_blank" rel="noopener">ISWC2023&lt;/a> conference!&lt;/p></description></item><item><title>Semantic web and knowledge graphs</title><link>https://dtai.cs.kuleuven.be/stories/post/anastasia-dimou/semantic_web_and_knowledge_graphs/</link><pubDate>Fri, 10 Dec 2021 11:15:16 +0100</pubDate><guid>https://dtai.cs.kuleuven.be/stories/post/anastasia-dimou/semantic_web_and_knowledge_graphs/</guid><description>&lt;p>A new research track, details available in 2022.&lt;/p></description></item></channel></rss>