{"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/ra-isf-learning-to-answer-and-understand-from","title":"RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback","arxiv_id":"2403.06840","date":"2024-03-11","proceeding":null,"authors":["Yanming Liu","Xinyue Peng","Xuhong Zhang","Weihao Liu","Jianwei Yin","Jiannan Cao","Tianyu Du"],"abstract":"Large language models (LLMs) demonstrate exceptional performance in numerous tasks but still heavily rely on knowledge stored in their parameters. Moreover, updating this knowledge incurs high training costs. Retrieval-augmented generation (RAG) methods address this issue by integrating external knowledge. The model can answer questions it couldn't previously by retrieving knowledge relevant to the query. This approach improves performance in certain scenarios for specific tasks. However, if irrelevant texts are retrieved, it may impair model performance. In this paper, we propose Retrieval Augmented Iterative Self-Feedback (RA-ISF), a framework that iteratively decomposes tasks and processes them in three submodules to enhance the model's problem-solving capabilities. Experiments show that our method outperforms existing benchmarks, performing well on models like GPT3.5, Llama2, significantly enhancing factual reasoning capabilities and reducing hallucinations.","url_abs":"https://arxiv.org/abs/2403.06840v2","url_pdf":"https://arxiv.org/pdf/2403.06840v2.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":"ra-isf-learning-to-answer-and-understand-from","repo_url":"https://github.com/oceanntwt/ra-isf","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"rag","task_name":"RAG"},{"task_slug":"retrieval","task_name":"Retrieval"},{"task_slug":"retrieval-augmented-generation","task_name":"Retrieval-augmented Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2403.06840","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2403.06840"}},"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/oceanntwt/ra-isf","reach":{"status":"ok"}}],"summary":{"ran_fixture":1,"ran":3,"ran_honours":1,"unverified":7},"by_repo_kind":{"official":{"samples":12,"ran":5,"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":12,"samples":[{"code_sha256_prefix":"bc7a7a194c238080","entry":"add_embeddings","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"retrieval_contriever/passage_retrieval.py","file_url":"https://github.com/oceanntwt/ra-isf/blob/HEAD/retrieval_contriever/passage_retrieval.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bc7a7a194c238080"}},{"code_sha256_prefix":"e79de4f5e7a0318c","entry":"f1_score","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"main_gpt.py","file_url":"https://github.com/oceanntwt/ra-isf/blob/HEAD/main_gpt.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e79de4f5e7a0318c"}},{"code_sha256_prefix":"01971cc37e6fe583","entry":"gather_nograd","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"retrieval_contriever/src/dist_utils.py","file_url":"https://github.com/oceanntwt/ra-isf/blob/HEAD/retrieval_contriever/src/dist_utils.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"01971cc37e6fe583"}},{"code_sha256_prefix":"d28b00342c2a184e","entry":"load_dataset","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"main_gpt.py","file_url":"https://github.com/oceanntwt/ra-isf/blob/HEAD/main_gpt.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d28b00342c2a184e"}},{"code_sha256_prefix":"cc68703252773762","entry":"normalize_answer","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"main_gpt.py","file_url":"https://github.com/oceanntwt/ra-isf/blob/HEAD/main_gpt.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cc68703252773762"}},{"code_sha256_prefix":"a48fa9f5d4cfd2f3","entry":"embed_queries","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"retrieval_contriever/passage_retrieval.py","file_url":"https://github.com/oceanntwt/ra-isf/blob/HEAD/retrieval_contriever/passage_retrieval.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":"a48fa9f5d4cfd2f3"}},{"code_sha256_prefix":"9fb6e57668661c38","entry":"gather","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"retrieval_contriever/src/dist_utils.py","file_url":"https://github.com/oceanntwt/ra-isf/blob/HEAD/retrieval_contriever/src/dist_utils.py","link_basis":"harvester_set","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":"9fb6e57668661c38"}},{"code_sha256_prefix":"7e3ff777b4e92f06","entry":"load_data","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"utils.py","file_url":"https://github.com/oceanntwt/ra-isf/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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7e3ff777b4e92f06"}},{"code_sha256_prefix":"f1a772f125f7b119","entry":"print_exp","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"utils.py","file_url":"https://github.com/oceanntwt/ra-isf/blob/HEAD/utils.py","link_basis":"harvester_set","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":"f1a772f125f7b119"}},{"code_sha256_prefix":"28145bbcf1d4f9ea","entry":"print_now","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"utils.py","file_url":"https://github.com/oceanntwt/ra-isf/blob/HEAD/utils.py","link_basis":"harvester_set","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":"28145bbcf1d4f9ea"}},{"code_sha256_prefix":"e037474365501512","entry":"randomcrop","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"retrieval_contriever/src/data.py","file_url":"https://github.com/oceanntwt/ra-isf/blob/HEAD/retrieval_contriever/src/data.py","link_basis":"harvester_set","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":"e037474365501512"}},{"code_sha256_prefix":"b1ad8cd3a7168b7f","entry":"varsize_gather_nograd","repo":"oceanntwt/ra-isf","repo_kind":"official","path":"retrieval_contriever/src/dist_utils.py","file_url":"https://github.com/oceanntwt/ra-isf/blob/HEAD/retrieval_contriever/src/dist_utils.py","link_basis":"harvester_set","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":"b1ad8cd3a7168b7f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}