{"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/arxiv-2604-19779","title":"ESGLens: An LLM-Based RAG Framework for Interactive ESG Report Analysis and Score Prediction","arxiv_id":"2604.19779","date":"2026-03-29","proceeding":null,"authors":["Tsung-Yu Yang","Meng-Chi Chen"],"abstract":"Environmental, Social, and Governance (ESG) reports are central to investment decision-making, yet their length, heterogeneous content, and lack of standardized structure make manual analysis costly and inconsistent. We present ESGLens, a proof-of-concept framework combining retrieval-augmented generation (RAG) with prompt-engineered extraction to automate three tasks: (1)~structured information extraction guided by Global Reporting Initiative (GRI) standards, (2)~interactive question-answering with source traceability, and (3)~ESG score prediction via regression on LLM-generated embeddings. ESGLens is purpose-built for the domain: a report-processing module segments heterogeneous PDF content into typed chunks (text, tables, charts); a GRI-guided extraction module retrieves and synthesizes information aligned with specific standards; and a scoring module embeds extracted summaries and feeds them to a regression model trained against London Stock Exchange Group (LSEG) reference scores. We evaluate the framework on approximately 300 reports from companies in the QQQ, S\\&P~500, and Russell~1000 indices (fiscal year 2022). Among three embedding methods (ChatGPT, BERT, RoBERTa) and two regressors (Neural Network, LightGBM), ChatGPT embeddings with a Neural Network achieve a Pearson correlation of 0.48 ($R^{2} \\approx 0.23$) against LSEG ground-truth scores -- a modest but statistically meaningful signal given the ${\\sim}300$-report training set and restriction to the environmental pillar. A traceability audit shows that 8 of 10 extracted claims verify against the source document, with two failures attributable to few-shot example leakage. We discuss limitations including dataset size and restriction to environmental indicators, and release the code to support reproducibility.","url_abs":"https://arxiv.org/abs/2604.19779","url_pdf":"https://arxiv.org/pdf/2604.19779","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2604.19779","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.19779"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/tyy4ng/ESGLens","reach":null}],"summary":{"unverified":10},"by_repo_kind":{"found_in_text":{"samples":10,"ran":0,"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":10,"samples":[{"code_sha256_prefix":"05addca96cbd33e4","entry":"build_dataset","repo":"tyy4ng/ESGLens","repo_kind":"found_in_text","path":"esg_2_dataprocessing.py","file_url":"https://github.com/tyy4ng/ESGLens/blob/HEAD/esg_2_dataprocessing.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":"05addca96cbd33e4"}},{"code_sha256_prefix":"81773bceac64fe5a","entry":"docs_to_string","repo":"tyy4ng/ESGLens","repo_kind":"found_in_text","path":"esg_1_multi-files.py","file_url":"https://github.com/tyy4ng/ESGLens/blob/HEAD/esg_1_multi-files.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":"81773bceac64fe5a"}},{"code_sha256_prefix":"1c88ed4f5cbc3e50","entry":"find_matching_folders","repo":"tyy4ng/ESGLens","repo_kind":"found_in_text","path":"esg_2_dataprocessing.py","file_url":"https://github.com/tyy4ng/ESGLens/blob/HEAD/esg_2_dataprocessing.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":"1c88ed4f5cbc3e50"}},{"code_sha256_prefix":"cbc6688d81cb878f","entry":"get_tickers_from_reports","repo":"tyy4ng/ESGLens","repo_kind":"found_in_text","path":"esg_0_get_esg_score_LSEG.py","file_url":"https://github.com/tyy4ng/ESGLens/blob/HEAD/esg_0_get_esg_score_LSEG.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":"cbc6688d81cb878f"}},{"code_sha256_prefix":"56d1623bef34769b","entry":"json_to_df","repo":"tyy4ng/ESGLens","repo_kind":"found_in_text","path":"esg_1_multi-files.py","file_url":"https://github.com/tyy4ng/ESGLens/blob/HEAD/esg_1_multi-files.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":"56d1623bef34769b"}},{"code_sha256_prefix":"810bc9b5c53792a9","entry":"load_lseg_scores","repo":"tyy4ng/ESGLens","repo_kind":"found_in_text","path":"esg_2_dataprocessing.py","file_url":"https://github.com/tyy4ng/ESGLens/blob/HEAD/esg_2_dataprocessing.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":"810bc9b5c53792a9"}},{"code_sha256_prefix":"1fb41b550f8db5c0","entry":"merge_scores","repo":"tyy4ng/ESGLens","repo_kind":"found_in_text","path":"esg_0_get_esg_score_LSEG.py","file_url":"https://github.com/tyy4ng/ESGLens/blob/HEAD/esg_0_get_esg_score_LSEG.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":"1fb41b550f8db5c0"}},{"code_sha256_prefix":"eeb4c5d2c6df6eb2","entry":"pivot_yearly","repo":"tyy4ng/ESGLens","repo_kind":"found_in_text","path":"esg_0_get_esg_score_LSEG.py","file_url":"https://github.com/tyy4ng/ESGLens/blob/HEAD/esg_0_get_esg_score_LSEG.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":"eeb4c5d2c6df6eb2"}},{"code_sha256_prefix":"8a5647ec3773fa79","entry":"replace_sources","repo":"tyy4ng/ESGLens","repo_kind":"found_in_text","path":"esg_1_multi-files.py","file_url":"https://github.com/tyy4ng/ESGLens/blob/HEAD/esg_1_multi-files.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":"8a5647ec3773fa79"}},{"code_sha256_prefix":"ea3d0f66d187f3be","entry":"search_page","repo":"tyy4ng/ESGLens","repo_kind":"found_in_text","path":"esg_documents.py","file_url":"https://github.com/tyy4ng/ESGLens/blob/HEAD/esg_documents.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":"ea3d0f66d187f3be"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}