Semantic Compression for Sound and Complete Query Answering Over Knowledge Graphs
Junhua Ma, Jianfeng Du, Hai Wan, Yue Yu, Kunxun Qi, Weilin Luo, Yanan Liu
Abstract
To improve storage efficiency, semantic compression approaches filter triples in knowledge graphs (KGs) by mining and applying semantic patterns. However, these approaches typically require full decompression, which limits their practicality. To avoid decompression while keeping the reasoning capacity of KGs, we propose QSC, a queryable semantic compression approach for KGs, enabling sound and complete query answering over compressed KGs without decompression. QSC relies on logical rules and we introduce the notion of first-order rewritable language to express the rules in QSC. Through a first-order rewritable set of rules, a KG can be compressed into another one with fewer triples, while any given query can be rewritten to another query to which the set of answers over the compressed KG is the same as the set of answers to the original query over the original KG. We present a Bayesian optimization-based method for efficiently selecting compression configurations that balance compression and query performance. We also introduce a lightweight redundancy identification mechanism that incrementally filters triples. Compared to the uncompressed baseline, QSC is empirically shown to reduce the number of triples to averagely , and while achieving averagely , 0.89×, and 1.08× queries-per-second (QPS) for PostgreSQL, DuckDB and Neo4j, respectively. The code has been open-sourced at https://github.com/ma853529615/QSC.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Related papers
- APEX2: Adaptive and Extreme Summarization for Personalized Knowledge GraphsZihao Li, Dongqi Fu, Mengting Ai, Jingrui HeKDD 2025 · 1 citation
- Knowledge Graph Embedding CompressionMrinmaya SachanACL 2020 · 22 citations
- Reasoning Path Compression: Compressing Generation Trajectories for Efficient LLM ReasoningJiwon Song, Dongwon Jo, Yulhwa Kim, Jae-Joon KimNeurIPS 2025 · 25 citations
- Enabling Efficient Update on Rule-Based Compressed GraphLin Feng, Feng Zhang, Zheng Chen, Yuxin Tang et al.SIGMOD 2026 · 1 citation
- What is Normal, What is Strange, and What is Missing in a Knowledge Graph: Unified Characterization via Inductive SummarizationCaleb Belth, Xinyi Zheng, Jilles Vreeken, Danai KoutraWWW 2020 · 50 citations
