Alert button
Picture for Adrián Bazaga

Adrián Bazaga

Alert button

SQLformer: Deep Auto-Regressive Query Graph Generation for Text-to-SQL Translation

Oct 27, 2023
Adrián Bazaga, Pietro Liò, Gos Micklem

In recent years, there has been growing interest in text-to-SQL translation, which is the task of converting natural language questions into executable SQL queries. This technology is important for its potential to democratize data extraction from databases. However, some of its key hurdles include domain generalisation, which is the ability to adapt to previously unseen databases, and alignment of natural language questions with the corresponding SQL queries. To overcome these challenges, we introduce SQLformer, a novel Transformer architecture specifically crafted to perform text-to-SQL translation tasks. Our model predicts SQL queries as abstract syntax trees (ASTs) in an autoregressive way, incorporating structural inductive bias in the encoder and decoder layers. This bias, guided by database table and column selection, aids the decoder in generating SQL query ASTs represented as graphs in a Breadth-First Search canonical order. Comprehensive experiments illustrate the state-of-the-art performance of SQLformer in the challenging text-to-SQL Spider benchmark. Our implementation is available at https://github.com/AdrianBZG/SQLformer

* 11 pages, 4 figures 
Viaarxiv icon

Unsupervised Fact Verification by Language Model Distillation

Sep 28, 2023
Adrián Bazaga, Pietro Liò, Gos Micklem

Unsupervised fact verification aims to verify a claim using evidence from a trustworthy knowledge base without any kind of data annotation. To address this challenge, algorithms must produce features for every claim that are both semantically meaningful, and compact enough to find a semantic alignment with the source information. In contrast to previous work, which tackled the alignment problem by learning over annotated corpora of claims and their corresponding labels, we propose SFAVEL (Self-supervised Fact Verification via Language Model Distillation), a novel unsupervised framework that leverages pre-trained language models to distil self-supervised features into high-quality claim-fact alignments without the need for annotations. This is enabled by a novel contrastive loss function that encourages features to attain high-quality claim and evidence alignments whilst preserving the semantic relationships across the corpora. Notably, we present results that achieve a new state-of-the-art on the standard FEVER fact verification benchmark (+8% accuracy) with linear evaluation.

Viaarxiv icon

Translating synthetic natural language to database queries: a polyglot deep learning framework

Apr 14, 2021
Adrián Bazaga, Nupur Gunwant, Gos Micklem

Figure 1 for Translating synthetic natural language to database queries: a polyglot deep learning framework
Figure 2 for Translating synthetic natural language to database queries: a polyglot deep learning framework
Figure 3 for Translating synthetic natural language to database queries: a polyglot deep learning framework
Figure 4 for Translating synthetic natural language to database queries: a polyglot deep learning framework

The number of databases as well as their size and complexity is increasing. This creates a barrier to use especially for non-experts, who have to come to grips with the nature of the data, the way it has been represented in the database, and the specific query languages or user interfaces by which data are accessed. These difficulties worsen in research settings, where it is common to work with many different databases. One approach to improving this situation is to allow users to pose their queries in natural language. In this work we describe a machine learning framework, Polyglotter, that in a general way supports the mapping of natural language searches to database queries. Importantly, it does not require the creation of manually annotated data for training and therefore can be applied easily to multiple domains. The framework is polyglot in the sense that it supports multiple different database engines that are accessed with a variety of query languages, including SQL and Cypher. Furthermore Polyglotter also supports multi-class queries. Our results indicate that our framework performs well on both synthetic and real databases, and may provide opportunities for database maintainers to improve accessibility to their resources.

Viaarxiv icon

A Convolutional Neural Network for the Automatic Diagnosis of Collagen VI related Muscular Dystrophies

Jan 30, 2019
Adrián Bazaga, Mònica Roldán, Carmen Badosa, Cecilia Jiménez-Mallebrera, Josep M. Porta

Figure 1 for A Convolutional Neural Network for the Automatic Diagnosis of Collagen VI related Muscular Dystrophies
Figure 2 for A Convolutional Neural Network for the Automatic Diagnosis of Collagen VI related Muscular Dystrophies
Figure 3 for A Convolutional Neural Network for the Automatic Diagnosis of Collagen VI related Muscular Dystrophies
Figure 4 for A Convolutional Neural Network for the Automatic Diagnosis of Collagen VI related Muscular Dystrophies

The development of machine learning systems for the diagnosis of rare diseases is challenging mainly due the lack of data to study them. Despite this challenge, this paper proposes a system for the Computer Aided Diagnosis (CAD) of low-prevalence, congenital muscular dystrophies from confocal microscopy images. The proposed CAD system relies on a Convolutional Neural Network (CNN) which performs an independent classification for non-overlapping patches tiling the input image, and generates an overall decision summarizing the individual decisions for the patches on the query image. This decision scheme points to the possibly problematic areas in the input images and provides a global quantitative evaluation of the state of the patients, which is fundamental for diagnosis and to monitor the efficiency of therapies.

* Submitted for review to Expert Systems With Applications 
Viaarxiv icon