Arxiv:2008.09236V1 [Cs.CL] 21 Aug 2020 Cial Media Data, Which Has a Strong Bias for Highly- Are Represented Using S2 Geometry1—A Hierarchical Populated Locations

Arxiv:2008.09236V1 [Cs.CL] 21 Aug 2020 Cial Media Data, Which Has a Strong Bias for Highly- Are Represented Using S2 Geometry1—A Hierarchical Populated Locations

Spatial Language Representation with Multi-Level Geocoding Sayali Kulkarni∗ Shailee Jain∗y Mohammad Javad Hosseiniy Google Research University of Texas, Austin University of Edinburgh [email protected] [email protected] [email protected] Jason Baldridge Eugene Ie Li Zhang Google Research Google Research Google Research [email protected] [email protected] [email protected] Abstract Joint loss We present a multi-level geocoding model L5 L6 L7 (MLG) that learns to associate texts to ge- Projections to multiple levels ographic locations. The Earth’s surface is represented using space-filling curves that de- Feature encoding Target Toponyms in Context compose the sphere into a hierarchy of simi- Toponym context words larly sized, non-overlapping cells. MLG bal- ances generalization and accuracy by combin- The five boroughs - Brooklyn, Queens, Manhattan, the Bronx and Staten Island - ing losses across multiple levels and predict- were consolidated into a single city in 1898. ing cells at each level simultaneously. With- out using any dataset-specific tuning, we show Figure 1: Overview of Multi-Level Geocoder, using that MLG obtains state-of-the-art results for multiple context features and jointly predicting cells at toponym resolution on three English datasets. multiple levels of the S2 hierarchy. Furthermore, it obtains large gains without any knowledge base metadata, demonstrating that it can effectively learn the connection between We present Multi-Level Geocoder (MLG, Fig. text spans and coordinates—and thus can be 1), a model that learns spatial language represen- extended to toponymns not present in knowl- tations that map toponyms from English texts to edge bases. coordinates on Earth’s surface. This geocoder is not restricted to resolving toponyms to specific lo- 1 Introduction cation entities, but rather to geo-coordinates di- rectly. MLG can thus be extended to non-standard Geocoding is the task of resolving a location ref- location references in future. For comparative eval- erence in text to a corresponding point or region uation, we use three toponym resolution datasets on Earth. It is often studied in the context of so- from distinct textual domains. MLG shows strong cial networks, where metadata and the network performance, especially when gazetteer metadata itself provide additional signals to geolocate nodes and population signals are unavailable. (usually people) (Backstrom et al., 2010; Rahimi MLG is a text-to-location neural geocoder simi- et al., 2015). These evaluate performance on so- lar to CamCoder (Gritta et al., 2018a). Locations arXiv:2008.09236v1 [cs.CL] 21 Aug 2020 cial media data, which has a strong bias for highly- are represented using S2 geometry1—a hierarchical populated locations. If the locations can be mapped discretization of the Earth’s surface based on space- to an entity in a knowledge graph, toponym reso- filling curves. S2 naturally supports spatial rep- lution – which is a special case of entity resolu- resentation at multiple levels, including very fine tion – can be used to resolve location references to grained cells (as small as 1cm2 at level 30); here, geo-coordinates, This can be done using heuristics we use different combinations of levels 4 (∼300K based on both location popularity (Leidner, 2007) km2) to 8 (∼1K km2). MLG predicts the classes at and distance between candidate locations (Speriosu multiple S2 levels by jointly optimizing for the loss and Baldridge, 2013), as well as learning associa- at each level to balance between generalization and tions from text to locations. accuracy. The example shown in Fig.1 covers an ∗Equal contribution y Work done during internship at Google 1https://s2geometry.io/ area around New York City by cell id 0x89c25 at source; as such, a k-d tree grid may not generalize level 8 and 0x89c4 at level 5. This is more fine- well to examples with different distributions from grained than previous work, which tends to use training resources. Spatial hierarchies based on arbitrary square-degree cells, e.g. 2◦-by-2◦ cells containment relations among entities relies heavily ( 48K km2)(Gritta et al., 2018a). The hierarchi- on metadata like GeoNames (Kamalloo and Rafiei, cal geolocation model over kd-trees of (Wing and 2018). Polygons for geopolitical entities such as Baldridge, 2014) can have some more fine-grained city, state, and country (Martins et al., 2015) are per- cells, but we predict over a much larger set of finer haps ideal, but these too require detailed metadata cells. Furthermore, we train a single model that for all toponyms, managing non-uniformity of the jointly incorporates multi-level predictions rather polygons, and general facility with GIS tools. The than learning many independent per-cell models Point-to-City (P2C) method applies an iterative k-d and do not rely on gazetteer-based features. tree-based method for clustering coordinates and We consider toponymn resolution for evaluation, associating them with cities(Fornaciari and Hovy, but focus on distance-based metrics rather than 2019b). S2 can represent such hierarchies in vari- standard resolution task metrics like top-1 accuracy. ous levels without relying on external metadata. When analyzing three common evaluation sets, we found inconsistencies in the true coordinates that Some of the early models used with grid-based we fix and unify to support better evaluation.2 representations were probabilistic language mod- els that produce document likelihoods in different 2 Spatial representations and models geospatial cells (Serdyukov et al., 2009; Wing and Baldridge, 2011; Dias et al., 2012; Roller et al., Geocoders maps a text span to geo-coordinates— 2012). Extensions include domain adapting lan- a prediction over a continuous space representing guage models from various sources (Laere et al., the surface of a (almost) sphere. We adopt the 2014), hierarchical discriminative models (Wing standard approach of quantizing the Earth’s surface and Baldridge, 2014; Melo and Martins, 2015), as a grid and performing multi-class prediction and smoothing sparse grids with Gaussian priors over the grid’s cells. There have been studies to (Hulden et al., 2015). Alternatively, Fornaciari model locations as standard bivariate Gaussians on and Hovy(2019a) use a multi-task learning setup multiple flattened regions (Eisenstein et al., 2010; that assigns probabilities across grids and also pre- Priedhorsky et al., 2014)), but this involves difficult dicts the true location through regression. Melo trade-offs between flattened region sizes and the and Martins(2017) covers a broad survey of doc- level of distortion they introduce. ument geocoding. Much of this work has been We construct a hierarchical grid using the S2 conducted on social media data like Twitter, where library. S2 projects the six faces of a cube onto the additional information beyond the text—such as Earth’s surface and each face is recursively divided the network connections and user and document into 4 quadrants, as shown in Figure1. Cells at each metadata—have been used (Backstrom et al., 2010; level are indexed using a Hilbert curve. Each S2 Cheng et al., 2010; Han et al., 2014; Rahimi et al., cell is represented as a 32-bit unsigned integer and 2 2015, 2016, 2017). MLG is not trained on social can represent spaces as granular as ≈ 1cm . S2 media data and hence, does not need additional net- cells preserves cell size across the globe compared ◦ ◦ work information. Further, the data does not have to commonly used degree-square grids (e.g. 1 x1 ) a character limit like tweets, so models can learn (Serdyukov et al., 2009; Wing and Baldridge, 2011). from long text sequences. Hierarchical triangular meshes (Szalay et al., 2007) and Hierarchical Equal Area isoLatitude Pixelation Toponym resolution identifies place mentions (Melo and Martins, 2015) are alternatives, though in text and predicting the precise geo-entity in lack the spatial properties of S2 cells. Furthermore, a knowledge base (Leidner, 2007; Gritta et al., S2 libraries provide excellent tooling. 2018b). The knowledge base is then used to ob- Adaptive, variable shaped cells based on k-d tain the geo-coordinates of the predicted entity for trees (Roller et al., 2012) perform well but depend the geocoding task. Rule-based toponym resolvers on the locations of labeled examples in a training re- (Smith and Crane, 2001; Grover et al., 2010; To- 2We will release these. Please contact the first author in bin et al., 2010; Karimzadeh et al., 2013) rely on the meantime if interested. hand-built heuristics like population from metadata S2 Level number of cells Avg area erarchical S2 grid that enables us to do multi-level L4 1.5k 332 prediction jointly, by optimizing for total loss com- L5 6.0k 83 puted from each level. L6 24.0k 21 L7 98.0k 5 3.1 Building blocks L8 393.0k 1 For a toponym in context, MLG predicts a distri- bution over all cells via a convolutional neural net- Table 1: S2 levels used in MLG. Average area is in 1k work. Optionally, the predictions may be snapped km2. to the closest valid cells that overlap the gazetteer locations for the toponym, weighted by their pop- resources like Wikipedia and GeoNames3 gazetteer. ulation similar to CamCoder. CamCoder incor- This works well for many common places, but it is porates side metadata in the form of its MapVec brittle and cannot handle unknown or uncommon feature vector, which encodes knowledge of po- place names. As such, machine learned approaches tential locations and their populations matching that use toponym context features have demon- all toponym in the text. For each toponym, the strated better performance (Speriosu and Baldridge, cells of all candidate locations are activated and 2013; Zhang and Gelernter, 2014; DeLozier et al., given a prior probability proportional to the high- 2015; Santos et al., 2015). A straightforward–but est population.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us