Skip to main content
QUICK REVIEW

[Paper Review] Re-Pair Compression of Inverted Lists

Francisco Claude, Antonio Fariña|ArXiv.org|Nov 17, 2009
Algorithms and Data CompressionComputer Science26 references4 citations
TL;DR

This paper proposes using Re-Pair compression on the differences between consecutive positions in inverted lists to enable fast random access and efficient list intersection. While Re-Pair offers strong compression and implicit skipping capabilities, the study finds it underperforms state-of-the-art methods like Rice coding and bitmap-based compression in the time/space tradeoff, especially when longer lists are converted to bitmaps.

ABSTRACT

Compression of inverted lists with methods that support fast intersection operations is an active research topic. Most compression schemes rely on encoding differences between consecutive positions with techniques that favor small numbers. In this paper we explore a completely different alternative: We use Re-Pair compression of those differences. While Re-Pair by itself offers fast decompression at arbitrary positions in main and secondary memory, we introduce variants that in addition speed up the operations required for inverted list intersection. We compare the resulting data structures with several recent proposals under various list intersection algorithms, to conclude that our Re-Pair variants offer an interesting time/space tradeoff for this problem, yet further improvements are required for it to improve upon the state of the art.

Motivation & Objective

  • To explore Re-Pair compression as an alternative to traditional difference encoding in inverted lists for efficient intersection operations.
  • To design Re-Pair variants that support fast random access and optimized list intersection in both main and secondary memory.
  • To evaluate the time/space tradeoff of Re-Pair-compressed inverted lists against recent state-of-the-art compression techniques.
  • To investigate the impact of combining Re-Pair with bitmap representations for long lists, especially in secondary memory scenarios.
  • To assess the performance of Re-Pair in comparison with byte codes, Rice codes, and bitmap-based compression under various intersection algorithms.

Proposed method

  • Apply Re-Pair, a grammar-based compression method, to the differences between consecutive positions in inverted lists.
  • Design specialized Re-Pair variants that support fast random access and implicit skipping over unsampled regions.
  • Integrate Re-Pair with existing sampling techniques to enable efficient secondary memory access.
  • Combine Re-Pair with bitmap compression for long lists, using a threshold based on the number of documents to determine when to switch to bitmaps.
  • Use lookup strategies and optimized dictionary representations to improve decompression speed and memory efficiency.
  • Compare Re-Pair with byte coding, Rice coding, and bitmap-based compression under multiple intersection algorithms and workload configurations.

Experimental results

Research questions

  • RQ1Can Re-Pair compression of differences in inverted lists achieve a better time/space tradeoff than traditional difference encoding methods?
  • RQ2How does Re-Pair perform in comparison to advanced compression schemes like Rice coding and bitmap representations in list intersection workloads?
  • RQ3To what extent does Re-Pair’s implicit skipping feature improve performance in random access and intersection operations?
  • RQ4What is the impact of replacing long lists with bitmaps on Re-Pair’s compression efficiency and intersection speed?
  • RQ5Can Re-Pair be effectively adapted for secondary memory environments where I/O cost is a major factor?

Key findings

  • Re-Pair achieves competitive compression and supports fast random access, benefiting from implicit skipping in unsampled regions.
  • Despite strong compression and fast decompression, Re-Pair is outperformed by Rice coding in the time/space tradeoff, especially when longer lists are compressed with bitmaps.
  • The use of bitmaps for long lists reduces Re-Pair’s compression advantage, as it cannot exploit repetitive gaps in long lists as effectively as other methods.
  • The lookup strategy with bitmaps achieves a better time/space tradeoff than the original bitmap proposal, indicating that optimization of bitmap integration is crucial.
  • Re-Pair’s performance is particularly outpaced when combined with bitmaps, suggesting that the criteria for list-to-bitmap conversion need further refinement.
  • The study confirms that byte coding remains a strong baseline, but Rice coding dominates in both compression and performance, highlighting room for improvement in Re-Pair-based approaches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.