← all repositories
xlang-ai/UnifiedSKG

One text-to-text pipeline for 21 structured knowledge tasks

UnifiedSKG exists to end the siloed-pipeline madness by casting 21 heterogeneous structured-knowledge tasks—spanning tables, databases, and knowledge graphs—into a single text-to-text format.

566 stars Python Language ModelsML Frameworks
UnifiedSKG
Not currently ranked — collecting fresh signals.
star history

What it does

UnifiedSKG is a research framework that reformats 21 structured-knowledge-grounding tasks—think semantic parsing over databases, question answering over knowledge bases, and table-based reasoning—into a uniform seq2seq text-to-text pipeline. It treats T5 (and BART) as the universal backbone, showing that a single architecture with minor tweaks can hit state-of-the-art on nearly all tasks without hand-crafted task-specific heads. The codebase wraps HuggingFace Transformers and Datasets into a multi-task training environment where prefix-tuning and fine-tuning are first-class citizens.

The interesting bit

The real value isn’t just the unification; it’s the controlled experimentation it enables. Because every task speaks the same text-to-text language, you can isolate how T5’s sensitivity to structured encoding—say, linearizing a table versus serializing a knowledge graph—varies across domains. The authors also use it as a stress test for zero-shot and few-shot generalization, where T0, GPT-3, and Codex reportedly struggle.

Key highlights

  • Unifies 21 SKG tasks spanning semantic parsing, fact verification, data-to-text, and KB/DB QA under one seq2seq roof
  • T5-based models achieve state-of-the-art results on nearly all tasks with only light task-specific modifications
  • Multi-task prefix-tuning improves most tasks simultaneously, suggesting genuine cross-task transfer
  • Ships with HuggingFace Hub checkpoints, a Colab demo, and DeepSpeed configs for T5-3B training
  • Modular codebase split into configure, metrics, models, and seq2seq_construction directories for adding new tasks

Caveats

  • T5’s sensitivity to structured knowledge encoding still varies across tasks, so unification doesn’t erase every domain-specific quirk
  • The repository is research scaffolding, not a polished SDK: you’ll be editing configs and managing third-party submodules

Verdict

Researchers working at the intersection of structured data and language models should bookmark this; if you’re looking for a turnkey API to query your Postgres database in natural language, this is the wrong address.

Frequently asked

What is xlang-ai/UnifiedSKG?
UnifiedSKG exists to end the siloed-pipeline madness by casting 21 heterogeneous structured-knowledge tasks—spanning tables, databases, and knowledge graphs—into a single text-to-text format.
Is UnifiedSKG open source?
Yes — xlang-ai/UnifiedSKG is open source, released under the Apache-2.0 license.
What language is UnifiedSKG written in?
xlang-ai/UnifiedSKG is primarily written in Python.
How popular is UnifiedSKG?
xlang-ai/UnifiedSKG has 566 stars on GitHub.
Where can I find UnifiedSKG?
xlang-ai/UnifiedSKG is on GitHub at https://github.com/xlang-ai/UnifiedSKG.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.