SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.07439 · 2026

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

Brian Llinas

arXiv · PDF · Open in the Atlas

Code that ran

16 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 15 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2608.07439.json · badge: /api/ran/2608.07439.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
bllin001/qnlp-discocat-llms-finance-rewriting canonical (classifier label)
classifier basis: census
16 ran · 2 no recorded run
FunctionStatusWhere it lives
circuit_metric_summary Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_corpus_circuit_complexity.py
pointer only (licence: NONE) · get_code("cc56993fef5485b1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

collect_points Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/plot_discocat_accuracy_iterations.py
pointer only (licence: NONE) · get_code("e95b5e514707bbb9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv_labels_2d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
bllin001/qnlp-discocat-llms-finance-rewriting/code/run_discocat_variant_sweep.py
pointer only (licence: NONE) · get_code("57bca13703f1c099")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

diagram_metric_summary Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_prompt_circuit_complexity.py
pointer only (licence: NONE) · get_code("fe26685d4bda5c6d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

discover_backup_sources Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/build_discocat_final_results.py
pointer only (licence: NONE) · get_code("d262a7b95b361920")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

discover_hpc_sources Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/build_discocat_final_results.py
pointer only (licence: NONE) · get_code("12dcd0369fd0de6e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_duration Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/summarize_discocat_paper_runs.py
pointer only (licence: NONE) · get_code("1c8d4b29390d47af")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_rows Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_multisent_candidates.py
pointer only (licence: NONE) · get_code("96c385e0307d143e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_run Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/summarize_discocat_paper_runs.py
pointer only (licence: NONE) · get_code("990f13a6ccba7fb9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_sweep_module Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/run_discocat_variant_sweep_iterations.py
pointer only (licence: NONE) · get_code("0133a180a96ee460")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_figure Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/qnlp_viz_style.py
pointer only (licence: NONE) · get_code("21d180fee3d02491")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

match_names Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_multisent_candidates.py
pointer only (licence: NONE) · get_code("360f881d06c7bf3d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_low_dataset Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/run_discocat_variant_sweep.py
pointer only (licence: NONE) · get_code("320d022a1d418cb6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_low_dataset_bobcat_notebook Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/run_discocat_variant_sweep.py
pointer only (licence: NONE) · get_code("817753fd4ae65389")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_sentences Ran
ran; our contract draft was wrong, not the code
bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_prompt_circuit_complexity.py
pointer only (licence: NONE) · get_code("50fba3702f101dd5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

token_count Ran
ran, honoured the contract we drafted
bllin001/qnlp-discocat-llms-finance-rewriting/code/analyze_multisent_candidates.py
pointer only (licence: NONE) · get_code("eeff6154fe8588f7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

collect_all_sources Not yet run
unverified (harvested, no recorded run)
bllin001/qnlp-discocat-llms-finance-rewriting/code/build_discocat_final_results.py
pointer only (licence: NONE) · get_code("8eb6558383d86029")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

discover_snapshots Not yet run
unverified (harvested, no recorded run)
bllin001/qnlp-discocat-llms-finance-rewriting/code/plot_discocat_accuracy_iterations.py
pointer only (licence: NONE) · get_code("85a99a6af213d99a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bllin001/qnlp-discocat-llms-finance-rewriting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 18 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Quantum Natural Language Processing (QNLP) provides a grammar-aware framework for text modeling, with Distributional Compositional Categorical (DisCoCat) offering one of its theoretically grounded formulations. However, prior work on financial sentiment analysis has highlighted practical limitations of DisCoCat, including parser sensitivity, high simulation cost, and difficulty handling longer, more complex sentences. In this paper, we explore an LLM-assisted preprocessing workflow that uses controlled rewriting strategies to compress, simplify, or decompose moderate-complexity financial sentiment sentences into more parser-compatible and circuitefficient variants while preserving sentiment-bearing meaning. We compare multiple prompting strategies, LLMs, and filtering configurations against the low-complexity-only DisCoCat baseline of Stein et al. At the circuit level, prompt-based rewriting substantially reduces corpus-level complexity, with the strongest compression-based variants reducing average qubit count and gate count by more than 70% relative to the raw moderatecomplexity subset. Across repeated training runs, GPT-4.1-mini + Prompt B achieves the highest observed mean accuracy, reaching 0.550 ± 0.035 compared with 0.521 ± 0.050 for the baseline. We further find that larger training splits do not necessarily yield better downstream performance; across the evaluated configurations, training-split size had a moderately negative association with accuracy (Pearson r = -0.446). Taken together, these results provide exploratory evidence that LLM-assisted rewriting can make some moderate-complexity inputs usable within the evaluated DisCoCat configuration, while identifying prompt design, filtering, and circuit-aware preprocessing as important considerations in the broader effort toward more scalable and utility-oriented QNLP for financial sentiment analysis.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.07439")
get_code_for_paper("2608.07439")
have("2608.07439")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2608.07439.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2608.07439.svg)](https://syntology.ai/paper/2608.07439)

Connect an agent — have() is free.