{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/compositional-demographic-word-embeddings","title":"Compositional Demographic Word Embeddings","arxiv_id":"2010.02986","date":"2020-10-06","proceeding":"EMNLP 2020 11","authors":["Charles Welch","Jonathan K. Kummerfeld","Verónica Pérez-Rosas","Rada Mihalcea"],"abstract":"Word embeddings are usually derived from corpora containing text from many individuals, thus leading to general purpose representations rather than individually personalized representations. While personalized embeddings can be useful to improve language model performance and other language processing tasks, they can only be computed for people with a large amount of longitudinal data, which is not the case for new users. We propose a new form of personalized word embeddings that use demographic-specific word representations derived compositionally from full or partial demographic information for a user (i.e., gender, age, location, religion). We show that the resulting demographic-aware word representations outperform generic word representations on two tasks for English: language modeling and word associations. We further explore the trade-off between the number of available attributes and their relative effectiveness and discuss the ethical implications of using them.","url_abs":"https://arxiv.org/abs/2010.02986v2","url_pdf":"https://arxiv.org/pdf/2010.02986v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"compositional-demographic-word-embeddings","repo_url":"https://github.com/dbamman/geoSGLM","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok"}}],"tasks":[{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"word-embeddings","task_name":"Word Embeddings"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2010.02986","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2010.02986"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/salesforce/awd-lstm-lm","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/dbamman/geoSGLM","reach":{"status":"ok"}}],"summary":{"ran_honours":2,"unverified":3},"by_repo_kind":{"found_in_text":{"samples":5,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"d38f82da04a3f93e","entry":"one_hot","repo":"salesforce/awd-lstm-lm","repo_kind":"found_in_text","path":"pointer.py","file_url":"https://github.com/salesforce/awd-lstm-lm/blob/HEAD/pointer.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"d38f82da04a3f93e"}},{"code_sha256_prefix":"4372bb4533fd1936","entry":"repackage_hidden","repo":"salesforce/awd-lstm-lm","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/salesforce/awd-lstm-lm/blob/HEAD/utils.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"4372bb4533fd1936"}},{"code_sha256_prefix":"6bd10c3dd56c2b8c","entry":"batchify","repo":"salesforce/awd-lstm-lm","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/salesforce/awd-lstm-lm/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"6bd10c3dd56c2b8c"}},{"code_sha256_prefix":"62d148258bdd054f","entry":"embedded_dropout","repo":"salesforce/awd-lstm-lm","repo_kind":"found_in_text","path":"embed_regularize.py","file_url":"https://github.com/salesforce/awd-lstm-lm/blob/HEAD/embed_regularize.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"62d148258bdd054f"}},{"code_sha256_prefix":"6f3c8e0b36d76af7","entry":"get_batch","repo":"salesforce/awd-lstm-lm","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/salesforce/awd-lstm-lm/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"6f3c8e0b36d76af7"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}