{"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/explora-efficient-exemplar-subset-selection","title":"EXPLORA: Efficient Exemplar Subset Selection for Complex Reasoning","arxiv_id":"2411.03877","date":"2024-11-06","proceeding":null,"authors":["Kiran Purohit","Venktesh V","Raghuram Devalla","Krishna Mohan Yerragorla","Sourangshu Bhattacharya","Avishek Anand"],"abstract":"Answering reasoning-based complex questions over text and hybrid sources, including tables, is a challenging task. Recent advances in large language models (LLMs) have enabled in-context learning (ICL), allowing LLMs to acquire proficiency in a specific task using only a few demonstration samples (exemplars). A critical challenge in ICL is the selection of optimal exemplars, which can be either task-specific (static) or test-example-specific (dynamic). Static exemplars provide faster inference times and increased robustness across a distribution of test examples. In this paper, we propose an algorithm for static exemplar subset selection for complex reasoning tasks. We introduce EXPLORA, a novel exploration method designed to estimate the parameters of the scoring function, which evaluates exemplar subsets without incorporating confidence information. EXPLORA significantly reduces the number of LLM calls to ~11% of those required by state-of-the-art methods and achieves a substantial performance improvement of 12.24%. We open-source our code and data (https://github.com/kiranpurohit/EXPLORA).","url_abs":"https://arxiv.org/abs/2411.03877v1","url_pdf":"https://arxiv.org/pdf/2411.03877v1.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":"explora-efficient-exemplar-subset-selection","repo_url":"https://github.com/kiranpurohit/explora","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"in-context-learning","task_name":"In-Context Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2411.03877","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2411.03877"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kiranpurohit/explora","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":1,"unverified":19},"by_repo_kind":{"official":{"samples":20,"ran":1,"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":20,"samples":[{"code_sha256_prefix":"f13f3af49bce9e05","entry":"clean_ans","repo":"kiranpurohit/explora","repo_kind":"official","path":"GSM8K/explora+SC.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/GSM8K/explora%2BSC.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f13f3af49bce9e05"}},{"code_sha256_prefix":"00a219f9f3fe0f93","entry":"get_completion","repo":"kiranpurohit/explora","repo_kind":"official","path":"StrategyQA/explora_api.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/StrategyQA/explora_api.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"00a219f9f3fe0f93"}},{"code_sha256_prefix":"0f457018f13bc946","entry":"get_completion","repo":"kiranpurohit/explora","repo_kind":"official","path":"TabMwp/chatgpt_explora+sc_tabmwp_old_dev.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/TabMwp/chatgpt_explora%2Bsc_tabmwp_old_dev.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0f457018f13bc946"}},{"code_sha256_prefix":"745710d33641d7ee","entry":"get_completion","repo":"kiranpurohit/explora","repo_kind":"official","path":"TabMwp/explora_tabmwp_chatpgt-new.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/TabMwp/explora_tabmwp_chatpgt-new.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"745710d33641d7ee"}},{"code_sha256_prefix":"399cf56509a4a4a4","entry":"in_context_manual_prediction","repo":"kiranpurohit/explora","repo_kind":"official","path":"AquaRat/chatgpt_explora+sc_aquarat.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/AquaRat/chatgpt_explora%2Bsc_aquarat.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"399cf56509a4a4a4"}},{"code_sha256_prefix":"faf6663c5058a31e","entry":"knn","repo":"kiranpurohit/explora","repo_kind":"official","path":"AquaRat/KNN+SC.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/AquaRat/KNN%2BSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"faf6663c5058a31e"}},{"code_sha256_prefix":"b7fc572b653fbab9","entry":"llm_output","repo":"kiranpurohit/explora","repo_kind":"official","path":"StrategyQA/explora_api.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/StrategyQA/explora_api.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b7fc572b653fbab9"}},{"code_sha256_prefix":"ac3da77da6dc7f0a","entry":"llm_output","repo":"kiranpurohit/explora","repo_kind":"official","path":"TabMwp/chatgpt_explora+sc_tabmwp_old_dev.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/TabMwp/chatgpt_explora%2Bsc_tabmwp_old_dev.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ac3da77da6dc7f0a"}},{"code_sha256_prefix":"eef068f54a1a9555","entry":"llm_output","repo":"kiranpurohit/explora","repo_kind":"official","path":"TabMwp/explora_tabmwp_chatpgt-new.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/TabMwp/explora_tabmwp_chatpgt-new.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"eef068f54a1a9555"}},{"code_sha256_prefix":"703228a09fc30e53","entry":"prompt_for_manual_prediction","repo":"kiranpurohit/explora","repo_kind":"official","path":"AquaRat/chatgpt_explora+sc_aquarat.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/AquaRat/chatgpt_explora%2Bsc_aquarat.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"703228a09fc30e53"}},{"code_sha256_prefix":"5fcb86babd6fcde9","entry":"prompt_for_manual_prediction","repo":"kiranpurohit/explora","repo_kind":"official","path":"AquaRat/explora+POT+SC.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/AquaRat/explora%2BPOT%2BSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5fcb86babd6fcde9"}},{"code_sha256_prefix":"ebe1dfd14699b4b2","entry":"prompt_for_manual_prediction","repo":"kiranpurohit/explora","repo_kind":"official","path":"AquaRat/explora+SC.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/AquaRat/explora%2BSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ebe1dfd14699b4b2"}},{"code_sha256_prefix":"14875498aa7a5a9e","entry":"prompt_for_manual_prediction","repo":"kiranpurohit/explora","repo_kind":"official","path":"FinQA/explora+SC.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/FinQA/explora%2BSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"14875498aa7a5a9e"}},{"code_sha256_prefix":"1aa6ff6b71e90b0a","entry":"prompt_for_manual_prediction","repo":"kiranpurohit/explora","repo_kind":"official","path":"AquaRat/KNN+SC.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/AquaRat/KNN%2BSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1aa6ff6b71e90b0a"}},{"code_sha256_prefix":"466c75811d194713","entry":"self_con","repo":"kiranpurohit/explora","repo_kind":"official","path":"AquaRat/explora+POT+SC.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/AquaRat/explora%2BPOT%2BSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"466c75811d194713"}},{"code_sha256_prefix":"0e1174d1cc5da5b7","entry":"self_con","repo":"kiranpurohit/explora","repo_kind":"official","path":"GSM8K/explora+SC.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/GSM8K/explora%2BSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0e1174d1cc5da5b7"}},{"code_sha256_prefix":"ff33a7f3b4ea10f1","entry":"self_con","repo":"kiranpurohit/explora","repo_kind":"official","path":"TabMwp/chatgpt_explora+sc_tabmwp_old_dev.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/TabMwp/chatgpt_explora%2Bsc_tabmwp_old_dev.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ff33a7f3b4ea10f1"}},{"code_sha256_prefix":"00e8c75ef2cd7809","entry":"self_con","repo":"kiranpurohit/explora","repo_kind":"official","path":"TabMwp/explora+POT+SC.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/TabMwp/explora%2BPOT%2BSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"00e8c75ef2cd7809"}},{"code_sha256_prefix":"68354f100235593d","entry":"self_con","repo":"kiranpurohit/explora","repo_kind":"official","path":"TabMwp/explora+SC_old.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/TabMwp/explora%2BSC_old.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"68354f100235593d"}},{"code_sha256_prefix":"2d0aa84a6e71c838","entry":"self_con","repo":"kiranpurohit/explora","repo_kind":"official","path":"TabMwp/explora_tabmwp_chatpgt-new.py","file_url":"https://github.com/kiranpurohit/explora/blob/HEAD/TabMwp/explora_tabmwp_chatpgt-new.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2d0aa84a6e71c838"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}