{"about":{"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.","site":"https://codewithpapers.app","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","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/method/knowprompt","slug":"knowprompt","name":"KnowPrompt","full_name":"KnowPrompt","full_name_withheld":false,"description_markdown":"**KnowPrompt** is a prompt-tuning approach for relational understanding. It injects entity and relation knowledge into prompt construction with learnable virtual template words as well as answer words and synergistically optimize their representation with knowledge constraints. To be specific, TYPED MARKER is utilized around entities initialized with aggregated entity-type embeddings as learnable virtual template words to inject entity type knowledge. The average embeddings of each token are leveraged in relation labels as virtual answer words to inject relation knowledge. Since there exist implicit structural constraints among entities and relations, and virtual words should be consistent with the surrounding contexts, synergistic optimization is introduced to obtain optimized virtual templates and answer words. Concretely, a context-aware prompt calibration method is used with implicit structural constraints to inject structural knowledge implications among relational triples and associate prompt embeddings with each other.","description_state":"present","introduced_year":null,"introduced_by":{"title":"KnowPrompt: Knowledge-aware Prompt-tuning with Synergistic Optimization for Relation Extraction","paper":"/paper/adaprompt-adaptive-prompt-based-finetuning","first_author":"Xiang Chen","n_authors":9,"url_abs":null,"archive_paper_url":"https://paperswithcode.com/paper/adaprompt-adaptive-prompt-based-finetuning"},"source":{"url":"https://arxiv.org/abs/2104.07650v7","title":"KnowPrompt: Knowledge-aware Prompt-tuning with Synergistic Optimization for Relation Extraction","url_on_a_paper_host":true},"code_snippet_url":null,"code_snippet_url_on_a_code_host":false,"categories":[{"area":"General","area_id":"general","collection":"Prompt Engineering","url":"/methods/category/prompt-engineering","pwc_aliases":[]}],"n_papers_tagged":6,"archive_num_papers":6,"papers_newest_first":[{"paper":"/paper/exploring-prompting-large-language-models-as","slug":"exploring-prompting-large-language-models-as","title":"Exploring Prompting Large Language Models as Explainable Metrics","date":"2023-11-20","arxiv_id":"2311.11552","n_code_links":1,"syntology":null},{"paper":"/paper/decoupling-knowledge-from-memorization","slug":"decoupling-knowledge-from-memorization","title":"Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning","date":"2022-05-29","arxiv_id":"2205.14704","n_code_links":2,"syntology":{"ran":1,"of":1,"n_ran_checked":0,"n_instrument":1,"unverified":0,"pointer_only":0,"phrase":"1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified","official":{"repos":["zjunlp/promptkg"],"state":"official (archive's flag): 1 ran","n_ran":1,"n_constructed":0,"n_ran_no_instrument_failure":0,"n_unverified":0,"ran_from_kinds":["official"]}}},{"paper":"/paper/relation-extraction-as-open-book-examination","slug":"relation-extraction-as-open-book-examination","title":"Relation Extraction as Open-book Examination: Retrieval-enhanced Prompt Tuning","date":"2022-05-04","arxiv_id":"2205.02355","n_code_links":1,"syntology":null},{"paper":"/paper/easynlp-a-comprehensive-and-easy-to-use","slug":"easynlp-a-comprehensive-and-easy-to-use","title":"EasyNLP: A Comprehensive and Easy-to-use Toolkit for Natural Language Processing","date":"2022-04-30","arxiv_id":"2205.00258","n_code_links":1,"syntology":null},{"paper":"/paper/deepke-a-deep-learning-based-knowledge","slug":"deepke-a-deep-learning-based-knowledge","title":"DeepKE: A Deep Learning Based Knowledge Extraction Toolkit for Knowledge Base Population","date":"2022-01-10","arxiv_id":"2201.03335","n_code_links":1,"syntology":null},{"paper":"/paper/adaprompt-adaptive-prompt-based-finetuning","slug":"adaprompt-adaptive-prompt-based-finetuning","title":"KnowPrompt: Knowledge-aware Prompt-tuning with Synergistic Optimization for Relation Extraction","date":"2021-04-15","arxiv_id":"2104.07650","n_code_links":1,"syntology":null}],"papers_shown":6,"papers_order":"date (newest first), then slug","paper_counts":{"archive_papers_tagged":6,"with_a_code_link":6,"where_syntology_ran_a_sample":1,"not_listed_spam_title":0,"listed":6,"listed_where_code_ran":1,"where_syntology_ran_a_sample_split":{"with_a_run_with_no_instrument_failure":0,"every_run_a_failure_of_syntologys_instrument":1,"listed_with_a_run_with_no_instrument_failure":0,"listed_every_run_a_failure_of_syntologys_instrument":1,"filter":{"states":["a run with no instrument failure","any run, instrument failures included"],"default":"a run with no instrument failure","note":"on the 'only where code ran' pages the default hides, in the browser, the rows where every run was a failure of Syntology's instrument; the second state shows them again. Rows are hidden, never re-ordered; these twins list every row"}},"definition":"distinct papers the archive tags; 'where Syntology ran a sample' counts papers with at least one harvested sample that ran, which is not a correctness claim"},"papers_where_code_ran":1,"papers_where_code_ran_first_page":"/method/knowprompt/papers/ran/1","papers_where_code_ran_caption":"We ran code from the paper's repository; we did not isolate this method inside it.","pages":[{"order":"ran","page":1,"of":1,"url":"/method/knowprompt/papers/ran/1","json":"/method/knowprompt/papers/ran/1.json","rows":1}],"tasks":[{"task":"/task/relation-extraction","name":"Relation Extraction","papers":4},{"task":"/task/few-shot-learning","name":"Few-Shot Learning","papers":2},{"task":"/task/memorization","name":"Memorization","papers":2},{"task":"/task/named-entity-recognition-ner","name":"Named Entity Recognition (NER)","papers":2},{"task":"/task/prompt-engineering","name":"Prompt Engineering","papers":2},{"task":null,"name":"Relation","papers":2},{"task":"/task/retrieval","name":"Retrieval","papers":2},{"task":"/task/attribute","name":"Attribute","papers":1},{"task":"/task/attribute-extraction","name":"Attribute Extraction","papers":1},{"task":"/task/cross-domain-named-entity-recognition","name":"Cross-Domain Named Entity Recognition","papers":1},{"task":"/task/dialog-relation-extraction","name":"Dialog Relation Extraction","papers":1},{"task":"/task/few-shot-text-classification","name":"Few-Shot Text Classification","papers":1},{"task":"/task/knowledge-base-population","name":"Knowledge Base Population","papers":1},{"task":"/task/knowledge-distillation","name":"Knowledge Distillation","papers":1},{"task":"/task/language-modeling","name":"Language Modeling","papers":1},{"task":"/task/language-modelling","name":"Language Modelling","papers":1},{"task":"/task/masked-language-modeling","name":"Masked Language Modeling","papers":1},{"task":"/task/named-entity-recognition-1","name":"Named Entity Recognition","papers":1},{"task":"/task/prompt-learning","name":"Prompt Learning","papers":1},{"task":"/task/representation-learning","name":"Representation Learning","papers":1}],"tasks_shown":20,"n_tasks":23,"usage_by_year":[{"year":"2021","papers":1},{"year":"2022","papers":4},{"year":"2023","papers":1}],"row_source":"methods_table","archive":{"source":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","archive_url":"https://paperswithcode.com/method/knowprompt"},"syntology_read_at":"2026-10-05T00:36:11+00:00","syntology":{"source":"Syntology's have check for this name (the free coverage lookup), read from Syntology's graph","have_url":"https://syntology.ai/api/graph/have?x=KnowPrompt","read_at":"2026-10-05T00:58:19+00:00","query":"KnowPrompt","kind":"paper","have":"declared_code","tier":"repo_known","verified_implementation":false,"level":null,"level_meaning":"the served verification level, per answer; never summed across methods","resolved_to":{"arxiv_id":"2104.07650"},"resolution":"paper","resolved_name_differs":false,"absence_asserted":false,"absence_unchecked":null,"no_code_is_about_this_method":false,"subject":"same_paper","archive_paper_arxiv_id":"2104.07650","repositories":{"listed":1,"in_graph":1,"list_truncated":false,"strongest_link":"official"},"retrieve_with":null,"name_competition":{"verdict":"sole_bearer","may_be_wrong_sense":false,"bearers_found":1,"served":{"arxiv_id":"2104.07650","citations":510},"leading_other_bearer":null,"n_other_bearers_listed":0,"note":"Nothing else in this corpus is named 'KnowPrompt'. That is a statement about this corpus and not about the field: short names are reused, and a sense we never collected cannot show up here. Confirm `served.arxiv_id` if you had a specific paper in mind."},"name_competition_text":null,"near_matches":null,"code_nearby":[],"code_nearby_caption":null,"origin_paper":{"arxiv_id":"2104.07650","page":"/paper/adaprompt-adaptive-prompt-based-finetuning","syntology_url":"https://syntology.ai/paper/2104.07650","in_graph_layer":false,"samples":0},"line":"repository known, no verified implementation (declared_code; repositories: 1 listed of 1 in the graph, strongest link: official). The lookup matched a paper by its title, arXiv:2104.07650, not a method entry. This answer is about arXiv:2104.07650, the paper the archive credits with this method.","level_legend":null},"syntology_have_state":"loaded","record_sha256":"292c308fdf1ed05892b4055ae9599dad2439b9249e9cfbd52868a70d078b6bbd","record_changed_at":"2026-10-05","record_changed_at_basis":"changed"}