[Paper Review] End-to-end Network for Twitter Geolocation Prediction and Hashing
This paper proposes an end-to-end deep neural network for tweet-level geolocation prediction that requires minimal feature engineering and is language-independent. It achieves 2-6% higher accuracy than state-of-the-art models and introduces a novel end-to-end hashing method that compresses learned representations into compact binary codes, outperforming benchmark hashing techniques in retrieval tasks.
We propose an end-to-end neural network to predict the geolocation of a tweet. The network takes as input a number of raw Twitter metadata such as the tweet message and associated user account information. Our model is language independent, and despite minimal feature engineering, it is interpretable and capable of learning location indicative words and timing patterns. Compared to state-of-the-art systems, our model outperforms them by 2%-6%. Additionally, we propose extensions to the model to compress representation learnt by the network into binary codes. Experiments show that it produces compact codes compared to benchmark hashing algorithms. An implementation of the model is released publicly.
Motivation & Objective
- To develop a language-independent, end-to-end neural network for tweet-level geolocation prediction with minimal feature engineering.
- To improve upon state-of-the-art geolocation prediction systems by leveraging raw tweet metadata without gazetteers or language-specific tools.
- To extend the model to compress learned representations into compact binary codes for efficient retrieval.
- To evaluate the effectiveness of the binary codes in fast retrieval tasks using Hamming distance.
- To demonstrate that the model’s learned representations are more effective than word2vec embeddings when used as input for hashing algorithms.
Proposed method
- The model uses a deep neural network that takes raw tweet metadata—including message text, user timezone, and user location—as input, with no language-specific preprocessing.
- It employs a multi-layered architecture with dense and residual connections, followed by a final layer that outputs a real-valued representation vector.
- To enable end-to-end hashing, the model adds Gaussian noise and a regularization loss term to push the final representation toward ±1, enabling binarization via the sign function.
- The regularization loss penalizes non-extremal values in the representation vector, promoting binary output without significant accuracy drop.
- The model is trained using cross-entropy loss for classification and fine-tuned with noise and loss to enhance binarization.
- Binary codes are generated via the sign function on the final representation, and retrieval performance is evaluated using mean average precision (MAP) on Hamming distance.
Experimental results
Research questions
- RQ1Can an end-to-end deep learning model achieve superior geolocation prediction accuracy compared to state-of-the-art systems with minimal feature engineering?
- RQ2Does the model learn interpretable, location-indicative patterns such as regional words and timing behaviors without language-specific tools?
- RQ3Can the learned representation be effectively compressed into compact binary codes using an end-to-end differentiable approach?
- RQ4How does the performance of the proposed hashing method compare to established hashing techniques like LSH and FastHash?
- RQ5Does using the model’s representation as input to external hashing algorithms improve retrieval performance over standard word2vec embeddings?
Key findings
- The model outperforms state-of-the-art systems by 2–6% in tweet-level geolocation prediction, even without language-specific preprocessing or gazetteers.
- The model learns interpretable location-indicative words and regional activity patterns, as evidenced by attention and activation analysis.
- Adding Gaussian noise and a regularization loss term improves binarization of the representation vector, pushing values toward ±1 without significant accuracy drop.
- For 200–400-bit codes, the combination of FastHash and deepgeo representation achieves 2–4% higher MAP than deepgeo with noise alone, indicating superior retrieval performance.
- The deepgeo representation is more compact and effective than word2vec embeddings: even with 100-bit codes, FastHash with deepgeo outperforms FastHash with word2vec on larger bit sizes.
- The model’s representation enables effective hashing, as shown by the fact that LSH with deepgeo input significantly outperforms LSH with word2vec input, especially at smaller bit sizes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.