NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RISK: Efficiently processing rich spatial-keyword queries on encrypted geo-textual data

Zhen Lv, Cong Cao, Hongwei Huo, Jiangtao Cui, Yanguo Peng, Hui Li, Yingfan LiuarXiv 2026

TL;DR

RISK introduces a unified, highly efficient framework for executing both secure range and $k$-nearest neighbor spatial-keyword queries on encrypted geo-textual data. By abandoning flawed property-preserving encryption in favor of standard cryptographic primitives and a novel hybrid tree structure, it slashes query response times by up to four orders of magnitude while drastically reducing cloud storage costs.

What Problem Does This Paper Address?

Location-based services (like Uber, Lyft, or Twitter) frequently query geo-textual data—data that combines geographic coordinates with textual descriptions. For example, a ride-hailing platform might need to find all "electric vehicles" within a 1-mile radius (a Range Spatial-Keyword or RSK query) or find the 3 closest "smoke-free" cars to a passenger (a $k$-Nearest Neighbor Spatial-Keyword or $k$SK query).

Fig. 1. Application scenarios for range and 2NN spatial-keyword queries.

To protect user privacy when outsourcing this data to public clouds, organizations use Symmetric Searchable Encryption (SSE). However, existing SSE solutions require separate, completely incompatible indices for RSK and $k$SK queries because their underlying spatial semantics conflict. Deploying both orthogonal structures doubles storage and maintenance overhead. Furthermore, most current methods rely on Property-Preserving Encryption (PPE), which is computationally heavy, vulnerable to security leaks, and lacks industrial standard support.

Methods

The authors propose RISK, a framework built on a "textual-first-then-spatial" paradigm that unifies both query types into a single secure index.

  1. The $k$NN Quadtree (kQ-tree): RISK textually partitions the dataset into keyword groups first. For each group, it builds a modified quadtree. To support neighbor queries within a range-based tree, each leaf node stores its local objects plus a pre-computed set of the $k_{max}$ nearest neighbors to a selected "representative object" in that cell.
  2. The Secure Quadtree (SkQ-tree): To secure the index without relying on risky PPEs, the kQ-tree is flattened into a key-value list. Keys (combining keywords and tree paths) are obfuscated using standard keyed hash functions ($H_{skH}$), and values are padded to a uniform length and encrypted using standard symmetric encryption ($Enc_{skE}$).
Fig. 2. The architecture of RISK. Here, the dotted arrows indicate off-line processes, and the continuous arrows are on-line processes which directly affects query time and is therefore critical to user experience. Thus, RISK mainly aims at reducing on-line time.
  1. Two-Phase Querying: For $k$SK queries, the cloud first locates the exact cell containing the query point. The client decrypts this cell's candidate set. If more candidates are needed to guarantee accuracy, the client calculates an expanded radius to safely fetch directly adjacent cells in a second phase.
Fig. 3. Generic indexing concept (kmax = 2 and d = 3). Virtual nodes (i.e., inner nodes), which only store structural semantics, are denoted by circles; real nodes (i.e., leaf nodes), which store objects, are represented by diamonds. All light blue numbers in the cells are unique identifiers, identical to the path of their corresponding nodes.

Datasets

The framework was evaluated using three real-world datasets and one synthetic dataset:

  • Twitter: 800,437 geotagged tweets from the 2020 U.S. election (highly skewed keyword frequency).
  • NewYork: 4,181,477 location points in New York City.
  • Paris: 5,711,822 location points in Paris.
  • Gaussian: A synthetic dataset of 10,000,000 objects with spatial coordinates conforming to a Gaussian distribution.

Key Insights and Ideas

  • Embedding Neighborhood Semantics: The "aha moment" of the paper is realizing that you can serve neighbor queries from a quadtree by pre-calculating and caching local neighborhood sets ($k_{max}$ NNs) directly inside the leaf nodes. This bridges the gap between range-based and neighbor-based indexing.
  • Ditching PPE for Standard Crypto: Moving away from complex, fragile property-preserving encryption schemes (like ASPE or SHVE) to standard AES and HMAC primitives satisfies strict industrial compliance and yields massive performance gains because symmetric operations are computationally lightweight.
  • Security via Obfuscation and False Positives: Because the client generates potential cell identifiers without knowing the exact tree structure, the query includes false-positive cells. This design implicitly hides precise access patterns from the honest-but-curious cloud, rendering file-injection attacks ineffective.

Key Results

  • Massive Speedups: RISK outperforms state-of-the-art (SOTA) methods by at least 0.5 orders of magnitude for 1% range queries and up to 4 orders of magnitude for 10-nearest neighbor queries in terms of response time.
  • Storage Reduction: It cuts cloud storage overhead by 1 to 3 orders of magnitude compared to PPE-based methods because standard symmetric encryption avoids massive ciphertext expansion.
  • Sub-150ms Latency: For millions of encrypted geo-textual objects, the total response time for 10-NN or 1% range queries remains consistently under 150 ms, making it highly practical for real-time applications.

Limitations and Future Work

  • Data Skew on Large-Scale Updates: While RISK supports dynamic updates (insertions and deletions), the SkQ-tree structure does not dynamically split or merge nodes during updates to avoid leaking structural changes to the cloud. Consequently, large-scale data updates can lead to severe data skew over time.
  • Future Directions: The authors note that future iterations should focus on extending this unified framework to support secure Top-$k$ queries, ensuring forward security (preventing newer updates from being linked to older queries), and adapting to more diverse data models.

Summary updated

BibTeX
@misc{lv2026risk,
  author = {Zhen Lv and Cong Cao and Hongwei Huo and Jiangtao Cui and Yanguo Peng and Hui Li and Yingfan Liu},
  title = {{RISK: Efficiently processing rich spatial-keyword queries on encrypted geo-textual data}},
  year = {2026},
  eprint = {2602.20952},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.20952},
}
Figure