Batch Document Filtering Using Nearest Neighbor Algorithm

Ali Mustafa Qamar, Éric Gaussier, Nathalie Denos

Abstract

Document filtering involves identifying relevant items from a massive stream of data based on specific user profiles or topics. This paper explores a batch-processing approach for filtering 100,000 documents into 50 specific topics without real-time feedback. By utilizing a hybrid k-Nearest Neighbor (kNN) similarity measure and a simulated validation set, the proposed method achieves significantly higher recall and anticipation scores compared to traditional online filtering methods.

Introduction

Traditionally, document filtering is performed in an online fashion where documents arrive sequentially, and the system receives feedback to improve performance. The 2009 INFILE (INformation FILtering Evaluation) campaign introduced a batch filtering challenge: processing 100,000 documents simultaneously without any feedback. The primary difficulty lies in establishing category-specific thresholds without human intervention or a pre-existing validation set. This paper details a kNN-based approach designed to address these constraints.

Methodology

The study employs a modified k-Nearest Neighbor (kNN) algorithm using cosine similarity, centered on three core components:

1. Hybrid Similarity Measure

To bridge the gap between formal topic descriptions and news prose, a weighted similarity formula was used:

  • $s_1$: Direct similarity between the document and topic descriptive sentences.
  • $s_2$: Similarity between the document and other documents already assigned to that topic.

2. Initial Set Construction

In the absence of feedback, each of the 50 topics was "seeded" with the 10 documents most similar to the topic description (using $s_1$). This initial set served as a simulated validation set.

3. Dynamic Thresholding

A threshold ($\theta_i$) was established for each topic based on the minimum similarity in the seed set. As documents were processed, they were assigned to topics if they exceeded this threshold, which was then adaptively updated.

Results and Discussion

The performance of the batch filtering approach (Run 1) was compared against previous online filtering results (Run 2) using the INFILE English corpus.

Score evolution for Run 1 and Run 2 across various metrics as documents are filtered.

Performance Metrics

  • Recall: Run 1 achieved a recall of 0.295, outperforming the online task's 0.260. This indicates that the batch system successfully identified a higher percentage of the total relevant documents.
  • Anticipation: The batch approach scored 0.430 compared to 0.307 for online filtering, demonstrating a superior ability to identify the first relevant document for a topic quickly.
  • Precision: Precision decreased from 0.306 (online) to 0.256 (batch), likely due to the lack of human feedback leading to more false positives.
  • Detection Cost: The batch method proved highly economical with a detection cost of 0.002.
Comparison of retrieval volumes and relevance for the evaluated runs.

The success of the batch approach highlights the importance of seeing the entire document collection to better identify early-stage relevance. The incorporation of document-to-document similarity ($s_2$) effectively bridged the "structure gap" between topic descriptions and actual content. Furthermore, the use of the top 10 nearest neighbors as a proxy for feedback proved to be a robust strategy for threshold initialization.

Conclusion

Batch document filtering using kNN and simulated feedback offers a powerful alternative to online methods, particularly when human feedback is unavailable. The high anticipation and recall scores suggest that these techniques could be integrated into online systems to improve performance during the initial "cold start" phase of filtering. Future work may involve global threshold calculations to further refine performance across parallelized sub-tasks.

Summary updated

BibTeX
@inproceedings{qamar2009batch,
  author = {Ali Mustafa Qamar and Éric Gaussier and Nathalie Denos},
  title = {{Batch Document Filtering Using Nearest Neighbor Algorithm}},
  booktitle = {CLEF (Working Notes)},
  year = {2009},
}
Figure