{"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-2608-07439","title":"An Exploratory Evaluation of LLM-Assisted Rewriting of Moderate-Complexity Financial Sentences for DisCoCat-Based Sentiment Analysis","arxiv_id":"2608.07439","date":"2026-08-07","proceeding":null,"authors":["Brian Llinas","Nikos Chrisochoides"],"abstract":"Quantum natural language processing (QNLP) provides a grammar-aware framework for text modeling, and Distributional Compositional Categorical (DisCoCat) is one of its theoretically grounded formulations. Prior work on financial sentiment analysis has identified practical limitations of DisCoCat, including parser sensitivity, high simulation cost, and difficulty handling longer sentences. We study an LLM-assisted preprocessing workflow that uses controlled rewriting to compress, simplify, or decompose moderate-complexity financial sentiment sentences into parser-compatible, circuit-efficient variants while preserving sentiment-bearing meaning. We compare prompting strategies, language models, and filtering configurations with the low-complexity-only DisCoCat baseline of Stein et al. At the circuit level, the strongest compression variants reduce average qubit and gate counts by more than 70 percent relative to the raw moderate-complexity subset. Across repeated training runs, GPT-4.1-mini with Prompt B achieves the highest observed mean accuracy, $0.550 \\pm 0.035$, compared with $0.521 \\pm 0.050$ for the baseline. Larger training splits do not necessarily improve downstream performance; across evaluated configurations, training-split size has a moderately negative association with accuracy (Pearson $r=-0.446$). These results provide exploratory evidence that LLM-assisted rewriting can make some moderate-complexity inputs usable within the evaluated DisCoCat configuration, while highlighting prompt design, filtering, and circuit-aware preprocessing as considerations for more scalable QNLP-based financial sentiment analysis.","url_abs":"https://arxiv.org/abs/2608.07439","url_pdf":"https://arxiv.org/pdf/2608.07439","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=2608.07439","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2608.07439"}},"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/bllin001/qnlp-discocat-llms-finance-rewriting","reach":null}],"summary":{"ran":16,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":18,"ran":16,"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":18,"samples":[{"code_sha256_prefix":"cc56993fef5485b1","entry":"circuit_metric_summary","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/analyze_corpus_circuit_complexity.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/analyze_corpus_circuit_complexity.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":"cc56993fef5485b1"}},{"code_sha256_prefix":"e95b5e514707bbb9","entry":"collect_points","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/plot_discocat_accuracy_iterations.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/plot_discocat_accuracy_iterations.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":"e95b5e514707bbb9"}},{"code_sha256_prefix":"57bca13703f1c099","entry":"conv_labels_2d","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/run_discocat_variant_sweep.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/run_discocat_variant_sweep.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":"57bca13703f1c099"}},{"code_sha256_prefix":"fe26685d4bda5c6d","entry":"diagram_metric_summary","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/analyze_prompt_circuit_complexity.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/analyze_prompt_circuit_complexity.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":"fe26685d4bda5c6d"}},{"code_sha256_prefix":"d262a7b95b361920","entry":"discover_backup_sources","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/build_discocat_final_results.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/build_discocat_final_results.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":"d262a7b95b361920"}},{"code_sha256_prefix":"12dcd0369fd0de6e","entry":"discover_hpc_sources","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/build_discocat_final_results.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/build_discocat_final_results.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":"12dcd0369fd0de6e"}},{"code_sha256_prefix":"1c8d4b29390d47af","entry":"format_duration","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/summarize_discocat_paper_runs.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/summarize_discocat_paper_runs.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":"1c8d4b29390d47af"}},{"code_sha256_prefix":"96c385e0307d143e","entry":"load_rows","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/analyze_multisent_candidates.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/analyze_multisent_candidates.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":"96c385e0307d143e"}},{"code_sha256_prefix":"990f13a6ccba7fb9","entry":"load_run","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/summarize_discocat_paper_runs.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/summarize_discocat_paper_runs.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":"990f13a6ccba7fb9"}},{"code_sha256_prefix":"0133a180a96ee460","entry":"load_sweep_module","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/run_discocat_variant_sweep_iterations.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/run_discocat_variant_sweep_iterations.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":"0133a180a96ee460"}},{"code_sha256_prefix":"21d180fee3d02491","entry":"make_figure","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/qnlp_viz_style.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/qnlp_viz_style.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":"21d180fee3d02491"}},{"code_sha256_prefix":"360f881d06c7bf3d","entry":"match_names","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/analyze_multisent_candidates.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/analyze_multisent_candidates.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":"360f881d06c7bf3d"}},{"code_sha256_prefix":"320d022a1d418cb6","entry":"prepare_low_dataset","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/run_discocat_variant_sweep.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/run_discocat_variant_sweep.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":"320d022a1d418cb6"}},{"code_sha256_prefix":"817753fd4ae65389","entry":"prepare_low_dataset_bobcat_notebook","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/run_discocat_variant_sweep.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/run_discocat_variant_sweep.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":"817753fd4ae65389"}},{"code_sha256_prefix":"50fba3702f101dd5","entry":"split_sentences","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/analyze_prompt_circuit_complexity.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/analyze_prompt_circuit_complexity.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":"50fba3702f101dd5"}},{"code_sha256_prefix":"eeff6154fe8588f7","entry":"token_count","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/analyze_multisent_candidates.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/analyze_multisent_candidates.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":"eeff6154fe8588f7"}},{"code_sha256_prefix":"8eb6558383d86029","entry":"collect_all_sources","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/build_discocat_final_results.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/build_discocat_final_results.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":"8eb6558383d86029"}},{"code_sha256_prefix":"85a99a6af213d99a","entry":"discover_snapshots","repo":"bllin001/qnlp-discocat-llms-finance-rewriting","repo_kind":"found_in_text","path":"code/plot_discocat_accuracy_iterations.py","file_url":"https://github.com/bllin001/qnlp-discocat-llms-finance-rewriting/blob/HEAD/code/plot_discocat_accuracy_iterations.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":"85a99a6af213d99a"}}]},"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}