{"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":"/paper/global-selector-a-new-benchmark-dataset-and","title":"Uni-Encoder: A Fast and Accurate Response Selection Paradigm for Generation-Based Dialogue Systems","arxiv_id":"2106.01263","date":"2021-06-02","proceeding":null,"authors":["Chiyu Song","Hongliang He","Haofei Yu","Pengfei Fang","Leyang Cui","Zhenzhong Lan"],"abstract":"Sample-and-rank is a key decoding strategy for modern generation-based dialogue systems. It helps achieve diverse and high-quality responses by selecting an answer from a small pool of generated candidates. The current state-of-the-art ranking methods mainly use an encoding paradigm called Cross-Encoder, which separately encodes each context-candidate pair and ranks the candidates according to their fitness scores. However, Cross-Encoder repeatedly encodes the same lengthy context for each candidate, resulting in high computational costs. Poly-Encoder addresses the above problems by reducing the interaction between context and candidates, but with a price of performance drop. In this work, we develop a new paradigm called Uni-Encoder, that keeps the full attention over each pair as in Cross-Encoder while only encoding the context once, as in Poly-Encoder. Uni-Encoder encodes all the candidates with the context in one forward pass. We use the same positional embedding for all candidates to ensure they are treated equally and design a new attention mechanism to avoid confusion. Our Uni-Encoder can simulate other ranking paradigms using different attention and response concatenation methods. Extensive experiments show that our proposed paradigm achieves new state-of-the-art results on four benchmark datasets with high computational efficiency. For instance, it improves R10@1 by 2.9% with an approximately 4X faster inference speed on the Ubuntu V2 dataset.","url_abs":"https://arxiv.org/abs/2106.01263v5","url_pdf":"https://arxiv.org/pdf/2106.01263v5.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":"global-selector-a-new-benchmark-dataset-and","repo_url":"https://github.com/dll-wu/uni-encoder","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"computational-efficiency","task_name":"Computational Efficiency"},{"task_slug":"conversational-response-selection","task_name":"Conversational Response Selection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/conversational-response-selection-on-douban-1","task":"Conversational Response Selection","dataset":"Douban","model":"Uni-Enc+BERT-FP","rank_in_archive_order":2,"of":16,"metrics":{"MAP":"0.648","MRR":"0.688","P@1":"0.518","R10@1":"0.327","R10@2":"0.557","R10@5":"0.865"},"uses_additional_data":false},{"leaderboard":"/sota/conversational-response-selection-on-douban-1","task":"Conversational Response Selection","dataset":"Douban","model":"Uni-Encoder","rank_in_archive_order":7,"of":16,"metrics":{"MAP":"0.622","MRR":"0.662","P@1":"0.481","R10@1":"0.303","R10@2":"0.514","R10@5":"0.852"},"uses_additional_data":false},{"leaderboard":"/sota/conversational-response-selection-on-persona","task":"Conversational Response Selection","dataset":"Persona-Chat","model":"Uni-Encoder","rank_in_archive_order":1,"of":2,"metrics":{"MRR":"0.922","R20@1":"0.869"},"uses_additional_data":false},{"leaderboard":"/sota/conversational-response-selection-on-ubuntu-1","task":"Conversational Response Selection","dataset":"Ubuntu Dialogue (v1, Ranking)","model":"Uni-Enc+BERT-FP","rank_in_archive_order":3,"of":25,"metrics":{"R10@1":"0.916","R10@2":"0.965","R10@5":"0.994"},"uses_additional_data":false},{"leaderboard":"/sota/conversational-response-selection-on-ubuntu-1","task":"Conversational Response Selection","dataset":"Ubuntu Dialogue (v1, Ranking)","model":"Uni-Encoder","rank_in_archive_order":6,"of":25,"metrics":{"R10@1":"0.886","R10@2":"0.946","R10@5":"0.989"},"uses_additional_data":false},{"leaderboard":"/sota/conversational-response-selection-on-ubuntu-2","task":"Conversational Response Selection","dataset":"Ubuntu Dialogue (v2, Ranking)","model":"Uni-Encoder","rank_in_archive_order":1,"of":1,"metrics":{"R10@1":"0.859","R10@2":"0.938","R10@5":"0.990"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":null,"mcp":null,"developers":"https://syntology.ai/developers","held":null,"reason":"arxiv_id_not_in_atlas","checked_against":{"atlas_ids":549449,"atlas_ids_sha256":"afd72399dafd9906e9062927f70655952385a3d75488558e1f0484e950ab09b7","read_at":"2026-10-05T01:46:21Z"},"by_repo":[{"repo":"dll-wu/uni-encoder","kind":"official","samples":0,"ran":0,"instrument":0,"unverified":0}],"by_repo_is":"one row per repository in the archive's code links, Syntology's graph links or the samples; samples 0 means no sample is linked to this paper, a statement about Syntology's coverage, not about the repository: with harvested_for_other_papers present, Syntology harvested the repository for that many other papers, and without it, Syntology harvested nothing from it; placed_by_identical_code counts samples whose link records no repository, placed here because identical code was harvested from this repository for another paper; ran counts executions on a synthesized input and instrument counts failures of Syntology's instrument, not of the code"},"code_links_note":null,"arxiv_metadata":null,"syntology_extracted_results":null,"record_sha256":"f22a9c0d44916eae30bcd4732c9dd8548a37d7049cbd2bef48828d576b27927a","record_changed_at":"2026-09-28","record_changed_at_basis":"first_hashed"}