Papers › Deep contextualized word representations
Deep contextualized word representations
Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, Luke Zettlemoyer
We introduce a new type of deep contextualized word representation that models both (1) complex characteristics of word use (e.g., syntax and semantics), and (2) how these uses vary across linguistic contexts (i.e., to model polysemy). Our word vectors are learned functions of the internal states of a deep bidirectional language model (biLM), which is pre-trained on a large text corpus. We show that these representations can be easily added to existing models and significantly improve the state of the art across six challenging NLP problems, including question answering, textual entailment and sentiment analysis. We also present an analysis showing that exposing the deep internals of the pre-trained network is crucial, allowing downstream models to mix different types of semi-supervision signals.
In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.
Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, on Syntology's MCP service (how to connect):
get_harvested_code_for_paper(arxiv_id="1802.05365")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="1802.05365", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="1802.05365")
Code
Syntology 58 code samples harvested from 16 repositories linked to this paper: 30 ran (of which 12 constructed an object rather than computing a result; 24 with no instrument failure: 2 honoured, 0 violated, 22 with no contract checked; 6 where Syntology's instrument failed) · 28 unverified. Where Syntology's instrument failed: 4 where our contract draft was wrong; 2 where the contract check could not run; failures of Syntology's instrument, not of the code.
By repository: community (archive-listed): 58 samples from 16 repositories, 30 ran (24 with no instrument failure; 6 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
No sample is linked to this paper from 4 of its repositories that Syntology harvested for other papers:
- Hironsan/anago, community (archive-listed): harvested for another paper, listed under the repository
- IMPLabUniPr/UniParma-at-semeval-2021-task-5, community (archive-listed): harvested for another paper, listed under the repository
- richinkabra/CoVe-BCN, community (archive-listed): harvested for another paper, listed under the repository
- dmlc/gluon-nlp, community (archive-listed): harvested for another paper, listed under the repository
Levels written between 2026-09-22 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.
46 repositories listed; official and paper-mentioned ones first.
Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.
Code Syntology ran Syntology
58 samples harvested: 30 ran (of which 12 constructed an object rather than computing a result; 24 with no instrument failure: 2 honoured, 0 violated, 22 with no contract checked; 6 where Syntology's instrument failed) · 28 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.
Licence: 25 of the 58 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from 16 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 1 sample that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.
Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.
f4857820f24ff7ee · report
fixture: signature module:callable/0/?, inputs:Tensor/3/float, mask:Tensor/2/bool, hidden_state:NoneType/0/? · returned tuple · level recorded 2026-09-24 96ea7959d6f99e2d · report
fixture: signature dropout_probability:float/0/float, tensor_for_masking:Tensor/2/float · returned Tensor · level recorded 2026-09-22 eff324cdbb18e166 · report
fixture: signature mask:Tensor/2/float · returned Tensor · level recorded 2026-09-22 3858ae2af0c25703 · report
fixture: signature tensor:Tensor/3/float, sequence_lengths:Tensor/1/int · returned tuple · level recorded 2026-09-22 6558e478056b71fa · report
e5d0679ff3b7299a · report
a2735b43c037f7c3 · report
fixture: signature predictions:list/1/list, correct:list/1/list, idx2Label:dict/0/?, correctBIOErrors:str/0/str, encodingScheme:str/0/str · returned tuple · level recorded 2026-09-26 6e5cd3fa57bb3c06 · report
fixture: signature guessed_sentences:list/1/list, correct_sentences:list/1/list, O_Label:str/0/str · returned float · level recorded 2026-09-25 d3126a60257f6f1d · report
fixture: signature word:str/0/str · returned str · level recorded 2026-09-26 1e0cc173e3f36bb5 · report
fixture: signature embeddingsPickle:str/0/str · returned tuple · level recorded 2026-09-26 be7d0a8320f50877 · report
fixture: signature inputPath:str/0/str, cols:dict/0/?, commentSymbol:str/0/str · returned list · level recorded 2026-09-26 1b66320c71babcd2 · report
6f5b259e1a881655 · report
e13517b914ec8cfe · report
29092b6b1ee0e8b7 · report
cb17b856cfa85229 · report
6c990d1c4cc7d791 · report
821ed0b50fc8c75a · report
4fd105ebfe01259d · report
805b441d558f95ba · report
ea8c1ff4812c12cc · report
fixture: returned ELMo · level recorded 2026-09-22 7d29ba86c14005e5 · report
fixture: returned biLM · level recorded 2026-09-22 70c6e34d2c59e6e0 · report
fixture: returned LMCDecoder · level recorded 2026-09-22 6fdb9503aabdabb0 · report
fixture: signature center_ids:Tensor/1/int, metadata_ids:Tensor/1/int, context_ids:Tensor/2/int, mask:Tensor/2/bool, center_mask_p:float/0/float, context_mask_p:float/0/float, metadata_mask_p:NoneType/0/?, rel_weights:NoneType/0/? · returned tuple · level recorded 2026-09-24 e6951eb47d3fce83 · report
fixture: signature mu_a:Tensor/2/float, sigma_a:Tensor/2/float, mu_b:Tensor/2/float, sigma_b:Tensor/2/float, device:NoneType/0/? · returned Tensor · level recorded 2026-09-22 c5414c47b19c5b9d · report
fixture: signature mu_a:Tensor/2/float, sigma_a:Tensor/2/float, mu_b:Tensor/2/float, sigma_b:Tensor/2/float, device:NoneType/0/? · returned Tensor · level recorded 2026-09-22 da08f69778aa9246 · report
fixture: signature mu_a:Tensor/2/float, sigma_a:Tensor/2/float, mu_b:Tensor/2/float, sigma_b:Tensor/2/float · returned Tensor · level recorded 2026-09-22 951dfc35f0d874b9 · report
fixture: signature target_size:Size/1/int, num_contexts:list/1/int · returned Tensor · level recorded 2026-09-22 26c29c99ec231df8 · report
cfd68b12db2c3e17 · report
fixture: returned CharacterMapper · level recorded 2026-09-22 cc42189423d63e55 · report
fixture: returned Highway · level recorded 2026-09-22 348cfec97eece7e0 · report
fixture: signature character:int/0/int, padding_character:int/0/int, beginning_of_word_character:int/0/int, end_of_word_character:int/0/int, max_word_length:int/0/int · returned list · level recorded 2026-09-22 bd90a33e1d9f21db · report
a6db9151ad861684 · report
95c7c1548e5263c4 · report
2db008c201204db6 · report
fixture: returned Camouflage · level recorded 2026-09-22 57cb734e9a401a27 · report
fixture: returned Highway · level recorded 2026-09-22 e8b8fec264f99c0c · report
fixture: returned SampledSoftmax · level recorded 2026-09-22 16b8442b08116955 · report
fixture: returned TimestepDropout · level recorded 2026-09-22 ec674c5b8eeb7958 · report
fixture: signature inputs:list/1/EagerTensor · returned EagerTensor · level recorded 2026-09-24 e498f306dc760a89 · report
fixture: returned Highway · level recorded 2026-09-22 6c53dd25c20f1f9e · report
fixture: returned SampledSoftmax · level recorded 2026-09-22 a06d5cf0563d37c9 · report
fixture: returned TimestepDropout · level recorded 2026-09-22 c86e700a6dce3870 · report
fixture: signature dim1:tuple/1/int, dim2:tuple/1/int · returned bool · level recorded 2026-09-26 c1a15b755efa2454 · report
fixture: signature varname:str/0/str, weight_file:str/0/str, embedding_weight_file:str/0/str · returned function · level recorded 2026-09-25 c0a935408017d8e6 · report
4054d9b3dbaf33ca · report
0a6a6b9c70afd92f · report
103b3a72b5b4b48b · report
578b19fe4c168fa3 · report
13e6f293af47814a · report
census: 8 implementations from 7 papers, 7 distinct outputs across 6 buckets, one shared input per bucket Models/eLMO.py unverified no licence file found · pointer only ·
893138168f6ab89b · report
Method as code Syntology
What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it. Siblings are assemblies lifted from this paper in the same batch for the same method: alternative readings kept side by side; none replaces or supersedes another.
13 assemblies on this paper: 13 harvested, 0 generated, listed in 1 groups (siblings lifted in one batch form one group).
13 sibling assemblies for deep contextualized word representation (harvested), lifted in the same batch on 2026-09-09: alternative readings kept side by side; none replaces or supersedes another. Bricks printed for 12 of 13 sibling assemblies; the other 1 are listed with their counts; every brick is in this page's JSON twin.
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 2 bricks; individually on a fixture: 0 ran · 2 unverified. The assembly has not been run end-to-end.
one of 13 siblings
- ELMO entry · level 0 · unverified ·
9cc83b5b233b4295 - loss helper · level 0 · unverified ·
893138168f6ab89b
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 2 bricks; individually on a fixture: 0 ran · 2 unverified. The assembly has not been run end-to-end.
one of 13 siblings
- BidirectionalLanguageModelGraph entry · level 0 · unverified ·
4054d9b3dbaf33ca - _pretrained_initializer helper · level 0 · unverified ·
0a6a6b9c70afd92f
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 6 bricks; individually on a fixture: 3 ran (of which 2 constructed an object rather than computing a result; 3 with no instrument failure: 1 honoured, 0 violated, 2 with no contract checked; 0 where Syntology's instrument failed) · 3 unverified. The assembly has not been run end-to-end.
one of 13 siblings
- CharacterBertModel entry · level 0 · unverified ·
a6db9151ad861684 - BertCharacterEmbeddings model · level 0 · unverified ·
bd90a33e1d9f21db - CharacterCNN model · level 0 · unverified ·
95c7c1548e5263c4 - CharacterMapper helper · level 1 · ran ·
cfd68b12db2c3e17 - Highway helper · level 1 · ran ·
cc42189423d63e55 - _make_bos_eos helper · level 1 · ran · honoured contract ·
348cfec97eece7e0
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 2 bricks; individually on a fixture: 2 ran (of which 2 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified; every one of the 2 samples that ran constructed an object rather than computing a result. The assembly has not been run end-to-end.
one of 13 siblings
- ELMo entry · level 1 · ran ·
ea8c1ff4812c12cc - biLM model · level 1 · ran ·
7d29ba86c14005e5
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 7 bricks; individually on a fixture: 6 ran (of which 1 constructed an object rather than computing a result; 3 with no instrument failure: 1 honoured, 0 violated, 2 with no contract checked; 3 where Syntology's instrument failed) · 1 unverified. The assembly has not been run end-to-end.
one of 13 siblings
- LMC entry · level 0 · unverified ·
26c29c99ec231df8 - LMCDecoder model · level 1 · ran ·
70c6e34d2c59e6e0 - LMCEncoder model · level 1 · ran ·
6fdb9503aabdabb0 - compute_kl helper · level 1 · ran · our draft was wrong ·
e6951eb47d3fce83 - mask_2D helper · level 1 · ran; the contract check could not run (RAISES) ·
951dfc35f0d874b9 - kl_diag helper · level 1 · ran · our draft was wrong ·
c5414c47b19c5b9d - kl_spher helper · level 1 · ran · honoured contract ·
da08f69778aa9246
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 2 bricks; individually on a fixture: 0 ran · 2 unverified. The assembly has not been run end-to-end.
one of 13 siblings
- ELMO entry · level 0 · unverified ·
6c990d1c4cc7d791 - CharCNNEmbedding model · level 0 · unverified ·
cb17b856cfa85229
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 2 bricks; individually on a fixture: 0 ran · 2 unverified. The assembly has not been run end-to-end.
one of 13 siblings
- BidirectionalLanguageModelGraph entry · level 0 · unverified ·
103b3a72b5b4b48b - _pretrained_initializer helper · level 0 · unverified ·
0a6a6b9c70afd92f
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 5 bricks; individually on a fixture: 4 ran (of which 3 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 0 violated, 4 with no contract checked; 0 where Syntology's instrument failed) · 1 unverified. The assembly has not been run end-to-end.
one of 13 siblings
- ELMo entry · level 0 · unverified ·
c0aa2bc72c66ae0c - Camouflage helper · level 1 · ran ·
ec674c5b8eeb7958 - Highway model · level 1 · ran ·
e498f306dc760a89 - SampledSoftmax loss · level 1 · ran ·
6c53dd25c20f1f9e - TimestepDropout helper · level 1 · ran ·
a06d5cf0563d37c9
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 5 bricks; individually on a fixture: 4 ran (of which 4 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 0 violated, 4 with no contract checked; 0 where Syntology's instrument failed) · 1 unverified; every one of the 4 samples that ran constructed an object rather than computing a result. The assembly has not been run end-to-end.
one of 13 siblings
- ELMo entry · level 0 · unverified ·
5a6bde73a5e69f0d - Camouflage helper · level 1 · ran ·
2db008c201204db6 - Highway helper · level 1 · ran ·
57cb734e9a401a27 - SampledSoftmax loss · level 1 · ran ·
e8b8fec264f99c0c - TimestepDropout helper · level 1 · ran ·
16b8442b08116955
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 3 bricks; individually on a fixture: 0 ran · 3 unverified. The assembly has not been run end-to-end.
one of 13 siblings
- BidirectionalLanguageModelGraph entry · level 0 · unverified ·
578b19fe4c168fa3 - InvalidNumberOfCharacters helper · level 0 · unverified ·
13e6f293af47814a - _pretrained_initializer helper · level 0 · unverified ·
0a6a6b9c70afd92f
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 7 bricks; individually on a fixture: 4 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 3 where Syntology's instrument failed) · 3 unverified. The assembly has not been run end-to-end.
one of 13 siblings
- ElmobiLm entry · level 0 · unverified ·
8deb52d79571d50a - LstmCellWithProjection model · level 0 · unverified ·
6558e478056b71fa - _EncoderBase model · level 1 · ran ·
f4857820f24ff7ee - block_orthogonal helper · level 0 · unverified ·
e5d0679ff3b7299a - get_dropout_mask helper · level 1 · ran · our draft was wrong ·
96ea7959d6f99e2d - get_lengths_from_binary_sequence_mask helper · level 1 · ran · our draft was wrong ·
eff324cdbb18e166 - sort_batch_by_length helper · level 1 · ran; the contract check could not run (RAISES) ·
3858ae2af0c25703
harvested Assembly for deep contextualized word representation (graph method: deep contextualized word representation). 1 brick; individually on a fixture: 0 ran · 1 unverified. The assembly has not been run end-to-end.
one of 13 siblings
- weight_layers entry · level 0 · unverified ·
4fedf7f6b4d9dbba
- BidirectionalLanguageModelGraph · e84d6119709d0e84 · 2 bricks; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 1 unverified · The assembly has not been run end-to-end · assemblies[12] in the JSON twin
Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="1802.05365") returns these assemblies with each brick's role and wiring (how to connect).
Tasks
Results from the paper archive 2025-07-28
Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.
Methods
Introduced by this paper: ELMo
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections