Papers › An Exploratory Evaluation of LLM-Assisted Rewriting of Moderate-Complexity Financial...

An Exploratory Evaluation of LLM-Assisted Rewriting of Moderate-Complexity Financial Sentences for DisCoCat-Based Sentiment Analysis

7 Aug 2026arXiv:2608.07439added by Syntology

Brian Llinas, Nikos Chrisochoides

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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 ±0.035, compared with 0.521 ±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.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2608.07439")

Code

Syntology Ran 16 of 18 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 16 ran with no contract checked.

By repository: found in paper text by Syntology: 18 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

bllin001/qnlp-discocat-llms-finance-rewriting found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 16 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

16ran
2unverified

Licence: 18 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from bllin001/qnlp-discocat-llms-finance-rewriting. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

circuit_metric_summary bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_corpus_circuit_complexity.py found in paper text by Syntology ran no licence file found · pointer only · cc56993fef5485b1 · report
collect_points bllin001/qnlp-discocat-llms-finance-rewriting/code/plot_discocat_accuracy_iterations.py found in paper text by Syntology ran no licence file found · pointer only · e95b5e514707bbb9 · report
conv_labels_2d bllin001/qnlp-discocat-llms-finance-rewriting/code/run_discocat_variant_sweep.py found in paper text by Syntology ran no licence file found · pointer only · 57bca13703f1c099 · report
diagram_metric_summary bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_prompt_circuit_complexity.py found in paper text by Syntology ran no licence file found · pointer only · fe26685d4bda5c6d · report
discover_backup_sources bllin001/qnlp-discocat-llms-finance-rewriting/code/build_discocat_final_results.py found in paper text by Syntology ran no licence file found · pointer only · d262a7b95b361920 · report
discover_hpc_sources bllin001/qnlp-discocat-llms-finance-rewriting/code/build_discocat_final_results.py found in paper text by Syntology ran no licence file found · pointer only · 12dcd0369fd0de6e · report
format_duration bllin001/qnlp-discocat-llms-finance-rewriting/code/summarize_discocat_paper_runs.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 1c8d4b29390d47af · report
load_rows bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_multisent_candidates.py found in paper text by Syntology ran no licence file found · pointer only · 96c385e0307d143e · report
load_run bllin001/qnlp-discocat-llms-finance-rewriting/code/summarize_discocat_paper_runs.py found in paper text by Syntology ran no licence file found · pointer only · 990f13a6ccba7fb9 · report
load_sweep_module bllin001/qnlp-discocat-llms-finance-rewriting/code/run_discocat_variant_sweep_iterations.py found in paper text by Syntology ran no licence file found · pointer only · 0133a180a96ee460 · report
make_figure bllin001/qnlp-discocat-llms-finance-rewriting/code/qnlp_viz_style.py found in paper text by Syntology ran no licence file found · pointer only · 21d180fee3d02491 · report
match_names bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_multisent_candidates.py found in paper text by Syntology ran no licence file found · pointer only · 360f881d06c7bf3d · report
prepare_low_dataset bllin001/qnlp-discocat-llms-finance-rewriting/code/run_discocat_variant_sweep.py found in paper text by Syntology ran no licence file found · pointer only · 320d022a1d418cb6 · report
prepare_low_dataset_bobcat_notebook bllin001/qnlp-discocat-llms-finance-rewriting/code/run_discocat_variant_sweep.py found in paper text by Syntology ran no licence file found · pointer only · 817753fd4ae65389 · report
split_sentences bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_prompt_circuit_complexity.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 50fba3702f101dd5 · report
token_count bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_multisent_candidates.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · eeff6154fe8588f7 · report
collect_all_sources bllin001/qnlp-discocat-llms-finance-rewriting/code/build_discocat_final_results.py found in paper text by Syntology unverified no licence file found · pointer only · 8eb6558383d86029 · report
discover_snapshots bllin001/qnlp-discocat-llms-finance-rewriting/code/plot_discocat_accuracy_iterations.py found in paper text by Syntology unverified no licence file found · pointer only · 85a99a6af213d99a · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2608.07439, was issued in August 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections