WorksComputer Science
Explicit Style Extraction for Personalized Long-Form Text Generation
Abstract
Personalized long-form generation asks a language model to write new text the way a specific user would. The standard recipe, retrieval-augmented generation, places a few of the user's past texts in the prompt but leaves the model to decide what to take from them. We introduce StylePrism, a taxonomy of 28 stylistic aspects in seven categories, and SP-Refine, an inference-time method that makes style extraction an explicit step: the model first fills StylePrism with the user's patterns, quoted evidence, and habits to avoid, then drafts from the user's samples and revises the draft twice against this profile, guided by its own style scores. On the three long-form tasks of LongLaMP with three LLMs, SP-Refine outperforms LongLaMP's retrieval-augmented baseline in 25 of 27 ROUGE and METEOR comparisons, by 10.2% on average and by up to 35.8%. Annotating users' own texts with the extracted profiles shows that StylePrism captures concrete, checkable habits, from the order of rhetorical moves to a reviewer's sign-off. Ablations show that the profile helps as revision guidance, not as a replacement for the samples: writing from the profile alone is worse in all 27 comparisons, while a single implicit-inference call is a cheaper alternative that comes close. Oracle variants that let the reviser see the reference, together with reference-free controls, show that larger refinement gains require information unavailable at inference time.
Introduction
Large language models (LLMs) are increasingly used to draft text on a person’s behalf: research abstracts, product reviews, social media posts. For such text to be useful, it should be correct and fluent and also sound like its author. Personalized text generation studies this problem by conditioning a model on a user’s writing history [14, 16], and the LongLaMP benchmark [4] extends it to long-form outputs, where differences in style between users are most visible.
The dominant approach is retrieval-augmented personalization: retrieve the user’s past texts that are most relevant to the current input and place them in the prompt [14, 4, 13]. Retrieval decides which samples the model sees, but says little about what the model should take from them. In LongLaMP, the retrieved samples are followed by a single instruction such as “Following the given patterns”. Whether the model attends to sentence rhythm, hedging, discourse moves, or formatting is left implicit.
We make style an explicit, inspectable intermediate. STYLEPRISM Figure 2 organizes writing style into 28 aspects in seven categories, from lexical choice to cross-task fingerprints. SP-REFINE Algorithm 1 uses it as a function: given the retrieved samples, the model first extracts a style profile that fills every STYLEPRISM aspect with an observed pattern, quoted evidence, and habits to avoid; it then drafts the output from the samples, and revises the draft twice against the profile, scoring its own revision on five style criteria and fixing the weakest. Unlike retrieval-augmented generation, SP-REFINE produces a profile that a person can read and check Figure 3.

Figure 2. The STYLEPRISM framework: 28 stylistic aspects in seven categories that SP-REFINE extracts from a user’s past writing and uses to revise new text. Codes (L1–X2) and colors are used throughout the paper; descriptions and examples are in Appendix § 10.
We evaluate on the three long-form LongLaMP tasks with three LLM families, using reference-based metrics and a rubric-based LLM judge that scores style fidelity and task quality separately (Figure 1). Our contributions are:
Figure 1. LLM-judge scores (1–5) on the nine criteria, averaged over the three LongLaMP tasks, for each generator. The shaded half holds the five style criteria (Style Fidelity): Lexical (Lex), Syntax (Syn), Tone, Discourse (Disc), and Format (Fmt); the other half holds the four task-quality criteria: Coverage (Cov), Factuality (Fact), Fluency (Flu), and Length (Len). For all three generators, SP-REFINE (vermillion) and SP-INFER (orange) form the outer boundary on the style criteria, ahead of LONGLAMP (tied with it only on Format for GPT). SP-REFINE’s gains over LONGLAMP are largest with DeepSeek, where Format rises by almost one point, and smallest with GPT. NO PROFILE and RANDOM-SAMPLES are shown for reference. Per-criterion values are in Appendix § 14.
STYLEPRISM, a taxonomy of writing style that serves as the schema for extraction, the guide for revision, and the basis of our style rubric.
SP-REFINE, which outperforms LongLaMP’s retrieval-augmented baseline in 25 of 27 reference-based comparisons and improves LLM-judged style fidelity over it in 8 of 9 generator–task settings.
An annotation study of users’ reference texts showing which profile aspects are borne out by what the user actually wrote, and where users depart from their own profile.
Ablations and an oracle study showing that the profile works as revision guidance but not as a replacement for the samples, and separating gains achievable at inference time from those that need the reference.
Related Work
Personalized text generation. LaMP (Salemi et al. [14]) introduced a benchmark for personalizing LLM outputs with retrieved user history, and LongLaMP (Kumar et al. [4]) extended it to long-form generation. Most methods follow the retrieval-augmented recipe and improve the retriever ([13, 9]), summarize the user’s history (Richardson et al. [12]), or decompose personalization into multiple stages (Li et al. [5]); see Zhang et al. [16] for a survey. We keep retrieval fixed and study what the model is told to extract from the retrieved samples and how it uses it.
Representing writing style. Style has been studied in style representation learning, where a central difficulty is separating style from content (Wegmann et al. [15]), and in style transfer (Jin et al. [3]). LLMs can transfer style from instructions and a few examples (Reif et al. [11]) and describe stylistic attributes in natural language (Patel et al. [10]). STYLEPRISM organizes such attributes into a schema that an LLM fills from a handful of samples, with quoted evidence for each claim.
Refinement and LLM-based evaluation. LLMs can critique and revise their own outputs (Madaan et al. [8]), and LLM judges are widely used to evaluate generation ([17, 7]), although they can favor their own outputs (Panickssery et al. (2024)). SP-REFINE’s revisions are guided by an explicit style profile and never see the reference; we compare them with oracle revisions that do.
Method
Task Setup
Each test instance consists of a user with a history of previously written documents, a task input (e.g., a paper title and key items) of task type , and a reference output written by . A generator LLM must produce that is faithful to and written in ’s style. Following LongLaMP, all personalized methods first retrieve the entries of most relevant to , . The retriever follows LongLaMP’s construction: the query is the task input (for abstracts, only its list of key items); each history entry is represented by the concatenation of its fields (title and abstract; summary and post; rating, summary, product description, and review); query and entries are embedded with Contriever (Izacard et al. [2]) by mean-pooling its token embeddings; and the entries with the highest dot-product score are returned. We use , and all methods use the same . The LongLaMP baseline then generates , where the template joins the samples and appends the task input with an instruction such as “Following the given patterns”.
StylePrism
STYLEPRISM (Figure 2) has seven categories: lexical choice (L1–L5), syntactic patterns (S1–S5), discourse markers (D1–D4), structural organization (O1–O4), pragmatic tone (P1–P5), formatting and layout (F1–F3), and cross-task variability (X1–X2), which records how style shifts across task types and which fingerprints persist across content. We write for the set of 28 aspects; descriptions and examples are in Appendix § 10.
SP-Refine
SP-REFINE (Algorithm 1; full prompts in Appendix § 15) has four steps, each one call to the generator , and never sees the reference. Steps 1 and are the extraction call of SP-PROFILE and the single call of SP-INFER (§ 7); in our experiments their outputs are computed once per instance and reused, so the refinement stage itself (steps 3 and 4) adds two calls. Each entry per aspect . Each entry holds a natural-language pattern, a list of quoted evidence, and (for 22 aspects) an avoid field; some add typed fields such as average words per sentence, passive percentage, or Boolean use of bullets and headers (Appendix § 17).
1. Extract style. The prompt casts as a computational linguist analyzing the samples of one author. It requires every claim to be based on the text, exact phrases to be quoted as evidence, no pattern to be inferred that is not present, and “not observable from samples” to be written otherwise. returns the profile , a JSON object with one
2. Draft. The prompt shows the numbered samples and the task, and asks to silently identify the author’s recurring style features (sentence rhythm, word choices, hedging, transitions, paragraph structure, tone, formatting), draft the output, check the draft against the samples, and return only the final text, . This step does not see .
3. Revise and score. The prompt casts as a writing evaluator and ghostwriter. It receives , , a task reminder (“complete this task and only this task”), and . first revises using and as style anchors, applying every applicable profile field (sentence length, voice, hedging, transitional phrases, paragraph density, formatting) without altering or adding facts, giving . It then scores against the samples from 1 to 5 on five style criteria , each with anchored extremes, and names its weakest criteria and specific issues; we write for the scores.
4. Targeted revision. The prompt receives , , the task reminder, , and with the named issues. revises in a fixed order of priority: criteria scored 1–2 first, then criteria scored 3, leaving criteria scored 4–5 unchanged, again without altering or adding facts. It rescores the result; these scores are not used. The output is .
Experimental Setup
Data. We use the three public long-form tasks of LongLaMP [4] in the user setting, in which test users do not appear in training: abstract generation (title and key items → abstract), review writing (rating, product description, and summary → review), and topic writing (Reddit post summary → post). We evaluate on the full test sets: 4,560 abstract, 1,822 review, and 2,452 topic instances (Appendix § 9). No method is trained or tuned on these data.
Models. We generate with three LLMs from different providers, DeepSeek-V4-Flash, Grok-4.1-Fast (non-reasoning), and GPT-5.4-nano, accessed through Azure AI Foundry. Every call uses the same client and settings: the system message “You are a helpful assistant.” and the prompt as the user message; style extraction requests JSON output. A response blocked by the provider’s content filter is kept as an empty output and scored as such.
Baselines. NO PROFILE sends the task input alone (e.g., “Generate an abstract for the title . . . using the following items: . . . ”), with no samples and no added instruction. LONGLAMP formats the retrieved entries with LongLaMP’s own prompt templates [4] and appends the
Algorithm 1 SP-REFINE. Inputs: task input of type ; user history ; retriever and number of samples ; generator LLM ; STYLEPRISM schema (28 aspects). are prompt templates (Appendix § 15); is one LLM call. maps each aspect to its pattern, quoted evidence , and avoid field; is the set of five style criteria; are ’s scores of draft against . Steps 1 and 2 coincide with SP-PROFILE’s extraction and SP-INFER; their outputs are reused, so the refinement stage adds two calls (steps 3–4).
Input: Output: personalized output
1: ▷ retrieve samples 2: ▷ step 1 ▷ step 2 3: ▷ step 3 4: ▷ step 4 5: return
7: function 8: return
9: function ▷ one call, 10: rewritten to match every applicable field of , anchored on ; facts of unchanged 11: scores of against on each criterion in , with the weakest criteria and specific issues 12: return
13: function ▷ one call, 14: fix , then improve ; keep 15: return revised draft ▷ rescores; scores unused
task input, e.g., after “Following the given patterns” for reviews; the entries’ text is passed through unchanged. RANDOM-SAMPLES uses the same template, but with entries drawn at random from the user’s own history instead of the most relevant ones, which isolates the effect of retrieval. As in LongLaMP, profile abstracts are truncated to their first 750 words in all methods. All prompts are in Appendix § 15.
Reference-based metrics. As LongLaMP does, we report ROUGE-1, ROUGE-L [6], and METEOR [1], computed with the LongLaMP evaluation code and averaged over test instances.
LLM judge. Reference-overlap metrics reward shared content but say little about style. We therefore also score outputs with an LLM judge, GPT-5.4-nano with low reasoning effort. The judge sees the task, the full generated output, and the full reference, and rates the output from 1 to 5 on nine criteria with anchored descriptions of the extremes. Style Fidelity (SF) is the mean of Lexical, Syntax, Tone, Discourse, and Format; Task Quality (TQ) is the mean of Coverage, Factuality, Fluency, and Length. Both use the reference as the anchor; SP-REFINE’s own scores in steps 3–4 use the same five style criteria but the samples as the anchor, so the method never sees the judge’s anchor. Because the judge is also one of our generators, it may favor GPT-generated text (Panickssery et al., 2024); we therefore compare methods only within a generator.
Results
Reference-based metrics. Table 1 compares SP-REFINE with the baselines. SP-REFINE scores highest in 25 of 27 generator–task–metric comparisons. It is above NO PROFILE in all 27, so the gains come from using the user’s writing; LONGLAMP is above RANDOM-SAMPLES in all 27, so choosing the most relevant samples matters as well. Relative to LONGLAMP, which sees the same retrieved samples, SP-REFINE improves by 10.2% on average (14.9% with DeepSeek, 4.4% with Grok, 11.5% with GPT; Table 6). The largest gains are on METEOR for review writing: +35.8% with GPT (0.2559 vs. 0.1885) and +32.7% with DeepSeek (0.2806 vs. 0.2114). The two exceptions are METEOR on review and topic writing with Grok, where LONGLAMP is higher (0.2900 vs. 0.2744 and 0.2485 vs. 0.2360).
| Method | Abstract Generation | Review Writing | Topic Writing | ||||||
| R-1 | R-L | MET | R-1 | R-L | MET | R-1 | R-L | MET | |
| DeepSeek-V4-Flash | |||||||||
| No Profile | 0.3773 | 0.2026 | 0.2835 | 0.2910 | 0.1384 | 0.1685 | 0.2871 | 0.1256 | 0.2180 |
| Random-Samples | 0.3904 | 0.2073 | 0.3028 | 0.3229 | 0.1582 | 0.1983 | 0.2717 | 0.1294 | 0.1979 |
| LongLaMP | 0.4185 | 0.2344 | 0.3352 | 0.3345 | 0.1704 | 0.2114 | 0.2818 | 0.1427 | 0.2077 |
| SP-Refine | 0.4426 | 0.2639 | 0.3535 | 0.3872 | 0.1852 | 0.2806 | 0.3265 | 0.1604 | 0.2585 |
| Grok-4.1-Fast | |||||||||
| No Profile | 0.3469 | 0.1825 | 0.2714 | 0.3111 | 0.1305 | 0.2394 | 0.2625 | 0.1108 | 0.2208 |
| Random-Samples | 0.3502 | 0.1855 | 0.2720 | 0.3055 | 0.1272 | 0.2495 | 0.2641 | 0.1146 | 0.2095 |
| LongLaMP | 0.3902 | 0.2221 | 0.3065 | 0.3444 | 0.1582 | 0.2900 | 0.3049 | 0.1486 | 0.2485 |
| SP-Refine | 0.4318 | 0.2692 | 0.3273 | 0.3510 | 0.1684 | 0.2744 | 0.3052 | 0.1528 | 0.2360 |
| GPT-5.4-nano | |||||||||
| No Profile | 0.3539 | 0.1908 | 0.2511 | 0.2487 | 0.1267 | 0.1313 | 0.2758 | 0.1206 | 0.2028 |
| Random-Samples | 0.3667 | 0.1979 | 0.2704 | 0.3113 | 0.1425 | 0.1827 | 0.2755 | 0.1211 | 0.2129 |
| LongLaMP | 0.3857 | 0.2126 | 0.2902 | 0.3171 | 0.1463 | 0.1885 | 0.2854 | 0.1280 | 0.2183 |
| SP-Refine | 0.4027 | 0.2280 | 0.3411 | 0.3489 | 0.1529 | 0.2559 | 0.3048 | 0.1415 | 0.2322 |
Table 1. Results on the LongLaMP user setting (full test sets). R-1/R-L: ROUGE-1/ROUGE-L; MET: METEOR. Best per column within each generator in bold. Relative gains over LongLaMP are in Table 6 and Figure 6 (Appendix § 11); ablations are in Table 3.
| Abstract Generation | Review Writing | Topic Writing | |||||||
| R-1 | R-L | MET | R-1 | R-L | MET | R-1 | R-L | MET | |
| DeepSeek-V4-Flash | |||||||||
| LongLaMP | 0.4185 | 0.2344 | 0.3352 | 0.3345 | 0.1704 | 0.2114 | 0.2818 | 0.1427 | 0.2077 |
| SP-REFINE | 0.4426 | 0.2639 | 0.3535 | 0.3872 | 0.1852 | 0.2806 | 0.3265 | 0.1604 | 0.2585 |
| Δ | +0.0241 | +0.0295 | +0.0183 | +0.0527 | +0.0148 | +0.0692 | +0.0447 | +0.0177 | +0.0508 |
| Δ% | +5.8 | +12.6 | +5.5 | +15.8 | +8.7 | +32.7 | +15.9 | +12.4 | +24.5 |
| Grok-4.1-Fast | |||||||||
| LongLaMP | 0.3902 | 0.2221 | 0.3065 | 0.3444 | 0.1582 | 0.2900 | 0.3049 | 0.1486 | 0.2485 |
| SP-REFINE | 0.4318 | 0.2692 | 0.3273 | 0.3510 | 0.1684 | 0.2744 | 0.3052 | 0.1528 | 0.2360 |
| Δ | +0.0416 | +0.0471 | +0.0208 | +0.0066 | +0.0102 | −0.0156 | +0.0003 | +0.0042 | −0.0125 |
| Δ% | +10.7 | +21.2 | +6.8 | +1.9 | +6.4 | −5.4 | +0.1 | +2.8 | −5.0 |
| GPT-5.4-nano | |||||||||
| LongLaMP | 0.3857 | 0.2126 | 0.2902 | 0.3171 | 0.1463 | 0.1885 | 0.2854 | 0.1280 | 0.2183 |
| SP-REFINE | 0.4027 | 0.2280 | 0.3411 | 0.3489 | 0.1529 | 0.2559 | 0.3048 | 0.1415 | 0.2322 |
| Δ | +0.0170 | +0.0154 | +0.0509 | +0.0318 | +0.0066 | +0.0674 | +0.0194 | +0.0135 | +0.0139 |
| Δ% | +4.4 | +7.2 | +17.5 | +10.0 | +4.5 | +35.8 | +6.8 | +10.5 | +6.4 |
Table 6. Gains of SP-REFINE over the LongLaMP baseline: absolute difference (Δ) and relative difference (Δ%, positive values in bold). Averaged over all 27 comparisons, the relative gain is 10.2%.
LLM judge. Table 2 shows that SP-REFINE improves Style Fidelity over LONGLAMP in 8 of 9 generator–task settings, by 0.21 points on average, and over NO PROFILE in all 9. Its Task Quality is higher than LONGLAMP’s in 7 settings, equal in 1, and lower in 1 (GPT abstracts, 3.59 vs. 3.67), so the style gains do not come at the expense of content. The exception on Style Fidelity is GPT on review writing (2.18 vs. 2.34), where Format scores are low for every method that sees the samples (§ 7.3). Figure 1 breaks the scores down by criterion: with DeepSeek, SP-REFINE’s gain over LONGLAMP spans all five style criteria and is largest for Format (+0.97); with Grok, it is largest on Syntax and Tone; with GPT, all differences are within 0.13.
What Does Style Extraction Capture?
Aggregate scores do not show whether the extracted profile describes the user. Because is built from the retrieved samples only, the user’s reference text for the instance is held out from extraction and can serve as a check. Figure 3 annotates one reference abstract with the aspects of its profile (Grok-4.1-Fast); Figure 7 and Figure 8 (Appendix D) do the same for a review and a Reddit post.

Figure 7. Review instance, annotated as in Figure 3 (only the main matches are marked). The profile, extracted from four other reviews, predicts the opening on album history (D2), contrasts with earlier versions (O3), an audience-targeted close (D3), and the reviewer’s sign-off verbatim (X2); it even quotes a metaphor (“nosing their way”, P4) that the user reuses here.

Figure 8. Topic instance annotated as in Figure 3. Lexical and syntactic aspects (game vocabulary, parenthetical asides, coordination) match closely; the user departs from the profile by giving suggestions inline instead of as a numbered list (S5).
The profile predicts concrete, checkable habits. Extracted from four other abstracts, the profile predicts the abstract’s rhetorical order (problem, method, evaluation, results; O2), its transition “In this paper” (D1), the qualifiers “accurate” and “novel” (L4), a passive evaluation sentence built on the exact phrase “is carried out using” (S2), a comma-separated series (S5), superiority shown by comparison (“two to ten times faster than eight other … techniques”; O3), the single unbroken paragraph (F1–F2), and the sentence length (25.5 words vs. 24 predicted; S1). For the reviewer, the profile recovers the sign-off “[2008 hyperbolium dot com]” verbatim as a fingerprint (X2), the contrast-based evaluation against earlier versions of each song (O3), and even a metaphor the profile quotes from an earlier review (“nosing their way”; the reference has “nosed its way towards disco’s rhythms”, P4).
Users depart from their own profile. The abstract’s author writes in the first person (“we propose”, “we derive”) although the profile, built from impersonal samples, says to avoid it (P3), and closes on applications rather than a performance claim (D3). The reviewer omits the prefatorial star rating the profile lists as a fingerprint, and the Reddit user gives suggestions inline rather than as a numbered list (S5). Style varies across a user’s documents, which bounds how closely any profile-based method can match one reference.
Ablations
Variants
Each ablation removes part of SP-REFINE (Figure 4).

Figure 4. SP-REFINE and its ablations. is the generator LLM; all methods receive the same retrieved samples and task input (and the task type , omitted). SP-REFINE makes style extraction an explicit function: step 1 fills the STYLEPRISM schema with the user’s patterns, quoted evidence, and things to avoid, giving the profile ; step 2 drafts from ; step 3 revises the draft against and and scores the revision on five style criteria (); step 4 fixes the lowest-scored criteria, giving . SP-PROFILE keeps only step 1 and then writes from without ; SP-INFER keeps only step 2.
SP-INFER: implicit inference, no extraction or revision. SP-INFER is a single call that receives the numbered samples and the task and is asked to identify the author’s style silently, draft, check the draft against the samples, and return only the text (Appendix § 15). Its prompt names seven informal cues but does not use STYLEPRISM, and no profile is produced. SP-REFINE uses this same call to produce its first draft, so comparing the two measures what explicit extraction and profile-guided revision add.

Figure 3. What StylePRISM extraction captures. Only the user’s actual abstract is shown; each highlight marks text matching an aspect in the profile extracted before this abstract was seen, colored by category (Figure 2). Orange bracketed tags such as [O2: method] mark the rhetorical moves the profile predicts (O2). Colored underlines with ¬ mark where the user departs from the profile: first person (P3) and a closing on applications instead of a performance claim (D3). Whole-text matches: formal academic register (P1), one unbroken paragraph without headers (F1–F2), and 25.5 words per sentence (S1; profile: 24).
SP-PROFILE: the profile replaces the samples.
SP-PROFILE is step 1 of SP-REFINE followed by an apply call that receives only and . In one call, the apply prompt asks to draft while conforming to every applicable profile field, then to revise silently against it (e.g., sentence length within of the profile’s value, every avoid item absent), without inventing facts. It tests whether a profile can stand in for the samples.
Results
The profile helps as guidance, not as a replacement. SP-PROFILE uses the same samples and the same profile as SP-REFINE yet scores below it in all 27 reference-based comparisons, and below SP-INFER in all 27 (Table 3, Figure 6). The per-criterion judge scores (Appendix § 14) locate the loss: SP-PROFILE is below SP-INFER on Lexical in all 9 generator–task settings and on Coverage in 8 of 9, but above it on Format in 6 of 9, by 1.0–1.5 points on review writing. Writing from alone loses the samples’ concrete wording and content cues, while explicit formatting fields are enforced reliably. SP-REFINE keeps the samples in view at every step and uses only to correct a draft, and it keeps SP-PROFILE’s formatting gain on DeepSeek reviews (Format 3.37 vs. 3.32) while avoiding its lexical loss (1.90 vs. 1.83).
Figure 6. ROUGE-1, ROUGE-L, and METEOR for No Profile, LongLaMP, and the three StylePrism variants on each task and generator (full test sets; values in Table 1 and 3).
| Method | Abstract | Review | Topic | |||
| SF | TQ | SF | TQ | SF | TQ | |
| DeepSeek-V4-Flash | ||||||
| No Profile | 2.80 | 3.42 | 2.00 | 3.09 | 1.82 | 2.72 |
| Random-Samples | 3.04 | 3.36 | 2.24 | 3.10 | 1.81 | 2.57 |
| LongLamp | 3.12 | 3.42 | 2.26 | 3.13 | 1.86 | 2.60 |
| SP-REFINE | 3.49 | 3.53 | 2.69 | 3.17 | 2.28 | 2.81 |
| Grok-4.1-Fast | ||||||
| No Profile | 2.99 | 3.11 | 1.80 | 2.75 | 1.78 | 2.52 |
| Random-Samples | 3.08 | 3.21 | 1.81 | 2.68 | 1.88 | 2.54 |
| LongLamp | 3.27 | 3.36 | 2.07 | 2.75 | 2.10 | 2.67 |
| SP-REFINE | 3.40 | 3.46 | 2.32 | 3.03 | 2.18 | 2.70 |
| GPT-5.4-nano | ||||||
| No Profile | 3.10 | 3.58 | 2.15 | 3.04 | 1.80 | 2.82 |
| Random-Samples | 3.16 | 3.62 | 2.29 | 3.23 | 1.82 | 2.74 |
| LongLamp | 3.24 | 3.67 | 2.34 | 3.25 | 1.87 | 2.80 |
| SP-REFINE | 3.39 | 3.59 | 2.18 | 3.25 | 2.13 | 2.92 |
Table 2. LLM-judge scores (GPT-5.4-nano, 1–5). SF: Style Fidelity; TQ: Task Quality. Best per column within each generator in bold. Full test sets. Per-criterion scores are in Appendix § 14.
Implicit inference is a strong single call. Since SP-INFER is SP-REFINE’s own first draft, the difference between the two is exactly what extraction and revision add. On ROUGE and METEOR this is small and depends on the generator: revision helps with Grok and GPT, where SP-REFINE is higher in 13 of 18 comparisons by up to 0.015, but hurts with DeepSeek, where it is lower in 8 of 9 by up to 0.010. On judged Style Fidelity, SP-REFINE is higher in 5 of 9 settings, tied in 1, and lower in 3 by at most 0.04. The largest gain is on DeepSeek reviews (2.69 vs. 2.47), almost entirely from Format. In short, SP-INFER recovers most of SP-REFINE’s quality on its own, and the extraction and revision steps pay off mainly where the draft breaks the user’s formatting conventions.
Revision does not repair every formatting problem. On review writing, the Format scores of Grok and GPT stay low after revision (1.84 and 1.91), well below SP-PROFILE’s (2.84 and 3.36).
Why is SP-INFER better than SP-REFINE with DeepSeek? A likely explanation is that, with DeepSeek, revision trades overlap with the reference for conformance to the profile. On abstracts and reviews, SP-REFINE raises DeepSeek’s Style Fidelity over SP-INFER (by 0.09 and 0.22), mostly through Format (+0.43 and +1.06), and raises Cov-erage on abstracts (3.23 vs. 3.13), yet its ROUGE and METEOR are lower in 8 of 9 comparisons. DeepSeek’s drafts already have the highest overlap of the three generators (e.g., ROUGE-L 0.273 on abstracts vs. 0.254 for Grok and 0.217 for GPT). A revision that rewrites sentences toward the profile’s patterns and evidence phrases, which come from other documents, is then more likely to replace words the draft shared with the reference than to add new ones; with the weaker drafts of Grok and GPT, the same revisions repair more than they replace. DeepSeek may also follow “apply every applicable PSP field” more literally and rewrite more of the draft.
| Variant | Abstract Generation R-L | Abstract Generation MET | Abstract Generation SF | Abstract Generation TQ | Review Writing R-L | Review Writing MET | Review Writing SF | Review Writing TQ | Topic Writing R-L | Topic Writing MET | Topic Writing SF | Topic Writing TQ |
| DeepSeek-V4-Flash | ||||||||||||
| SP-REFINE | 0.264 | 0.353 | 3.49 | 3.53 | 0.185 | 0.281 | 2.69 | 3.17 | 0.160 | 0.259 | 2.28 | 2.81 |
| SP-INFER | 0.273 | 0.360 | 3.40 | 3.56 | 0.186 | 0.291 | 2.47 | 3.18 | 0.164 | 0.258 | 2.32 | 2.86 |
| SP-PROFILE | 0.247 | 0.325 | 3.46 | 3.51 | 0.165 | 0.225 | 2.61 | 3.20 | 0.143 | 0.219 | 2.23 | 2.82 |
| Grok-4.1-Fast | ||||||||||||
| SP-REFINE | 0.269 | 0.327 | 3.40 | 3.46 | 0.168 | 0.274 | 2.32 | 3.03 | 0.153 | 0.236 | 2.18 | 2.70 |
| SP-INFER | 0.254 | 0.320 | 3.40 | 3.51 | 0.167 | 0.278 | 2.27 | 3.04 | 0.149 | 0.236 | 2.19 | 2.75 |
| SP-PROFILE | 0.218 | 0.297 | 3.31 | 3.36 | 0.145 | 0.219 | 2.34 | 3.03 | 0.127 | 0.221 | 1.99 | 2.58 |
| GPT-5.4-nano | ||||||||||||
| SP-REFINE | 0.228 | 0.341 | 3.39 | 3.59 | 0.153 | 0.256 | 2.18 | 3.25 | 0.141 | 0.232 | 2.13 | 2.92 |
| SP-INFER | 0.217 | 0.332 | 3.36 | 3.60 | 0.151 | 0.253 | 2.17 | 3.24 | 0.139 | 0.229 | 2.14 | 2.94 |
| SP-PROFILE | 0.215 | 0.313 | 3.39 | 3.59 | 0.149 | 0.210 | 2.48 | 3.28 | 0.130 | 0.217 | 2.14 | 2.86 |
Table 3. SP-REFINE and its ablations (full test sets). SP-INFER keeps only the drafting call; SP-PROFILE keeps the extraction call but writes from the profile without the samples. Best per column within each generator in bold. ROUGE-1 for all variants is in Figure 6.
Oracles and Reference-Free Controls
To bound what refinement can achieve, we evaluate variants that use information unavailable at inference time (Table 7, Appendix § 13). ORACLE-REGEN gives a reviser the samples, the SP-INFER output, and the reference; in one call it scores the output on nine criteria (style against the samples; coverage and length against the reference) and writes a revision, told to match the reference’s length but not to copy its phrases. ORACLE-REGEN+P starts from the SP-PROFILE output instead. ORACLE-SELECT keeps, per instance, the candidate that the reference-anchored judge scores highest among {SP-INFER, ORACLE-REGEN}, among the three drafts SP-REFINE produces (, , ), or among {SP-PROFILE, ORACLE-REGEN+P}. The reference-free control SP-REGEN uses the ORACLE-REGEN prompt with the reference block, the length target, and the copy instruction removed (Algorithm 4).
| Method | Abstract Generation R-1 | Abstract Generation R-L | Abstract Generation MET | Review Writing R-1 | Review Writing R-L | Review Writing MET | Topic Writing R-1 | Topic Writing R-L | Topic Writing MET |
| DeepSeek-V4-Flash | |||||||||
| SP-INFER | 0.452 | 0.273 | 0.360 | 0.387 | 0.186 | 0.291 | 0.334 | 0.164 | 0.258 |
| SP-REFINE | 0.443 | 0.264 | 0.353 | 0.387 | 0.185 | 0.281 | 0.327 | 0.160 | 0.259 |
| ORACLE-REGEN† | 0.549 | 0.400 | 0.484 | 0.460 | 0.261 | 0.352 | 0.398 | 0.232 | 0.323 |
| ORACLE-REGEN+P† | 0.620 | 0.490 | 0.548 | 0.501 | 0.305 | 0.401 | 0.429 | 0.251 | 0.351 |
| ORACLE-SELECT(ORACLE-REGEN)† | 0.544 | 0.393 | 0.476 | 0.459 | 0.261 | 0.355 | 0.399 | 0.233 | 0.324 |
| ORACLE-SELECT(SP-REFINE)† | 0.451 | 0.272 | 0.360 | 0.391 | 0.189 | 0.288 | 0.334 | 0.165 | 0.261 |
| ORACLE-SELECT(ORACLE-REGEN+P)† | 0.557 | 0.407 | 0.470 | 0.449 | 0.256 | 0.336 | 0.400 | 0.222 | 0.316 |
| Grok-4.1-Fast | |||||||||
| SP-INFER | 0.424 | 0.254 | 0.320 | 0.355 | 0.167 | 0.278 | 0.306 | 0.149 | 0.236 |
| SP-REFINE | 0.432 | 0.269 | 0.327 | 0.351 | 0.168 | 0.274 | 0.305 | 0.153 | 0.236 |
| ORACLE-REGEN† | 0.529 | 0.375 | 0.418 | 0.438 | 0.242 | 0.355 | 0.426 | 0.268 | 0.335 |
| ORACLE-REGEN+P† | 0.522 | 0.380 | 0.395 | 0.423 | 0.233 | 0.303 | 0.418 | 0.264 | 0.321 |
| ORACLE-SELECT(ORACLE-REGEN)† | 0.507 | 0.347 | 0.397 | 0.431 | 0.235 | 0.349 | 0.406 | 0.244 | 0.318 |
| ORACLE-SELECT(SP-REFINE)† | 0.430 | 0.264 | 0.325 | 0.356 | 0.169 | 0.277 | 0.306 | 0.150 | 0.233 |
| ORACLE-SELECT(ORACLE-REGEN+P)† | 0.494 | 0.341 | 0.374 | 0.410 | 0.218 | 0.290 | 0.399 | 0.240 | 0.305 |
| GPT-5.4-nano | |||||||||
| SP-INFER | 0.396 | 0.217 | 0.332 | 0.350 | 0.151 | 0.253 | 0.305 | 0.139 | 0.229 |
| SP-REFINE | 0.403 | 0.228 | 0.341 | 0.349 | 0.153 | 0.256 | 0.305 | 0.141 | 0.232 |
| ORACLE-REGEN† | 0.411 | 0.233 | 0.331 | 0.348 | 0.154 | 0.234 | 0.309 | 0.143 | 0.227 |
| ORACLE-REGEN+P† | 0.408 | 0.231 | 0.313 | 0.334 | 0.149 | 0.211 | 0.301 | 0.134 | 0.215 |
| ORACLE-SELECT(ORACLE-REGEN)† | 0.406 | 0.227 | 0.334 | 0.349 | 0.154 | 0.240 | 0.310 | 0.143 | 0.230 |
| ORACLE-SELECT(SP-REFINE)† | 0.401 | 0.224 | 0.338 | 0.350 | 0.153 | 0.255 | 0.306 | 0.142 | 0.232 |
| ORACLE-SELECT(ORACLE-REGEN+P)† | 0.405 | 0.227 | 0.315 | 0.335 | 0.150 | 0.211 | 0.301 | 0.134 | 0.218 |
Table 7. Oracle variants on the full test sets, with SP-INFER and SP-REFINE for reference. †Shaded rows are oracles: they see the reference, directly or through reference-anchored judge scores used for selection, and are not deployable. Best per column within each generator in bold.
The reference, not the revision, drives the oracle gains. With the reference visible, ORACLE-REGEN raises ROUGE-L over SP-INFER by 0.07–0.13 for DeepSeek and Grok but at most 0.016 for GPT, and ORACLE-REGEN+P reaches ROUGE-L 0.490 on DeepSeek abstracts. Removing the reference (SP-REGEN, Table 8) leaves the same revision with a ROUGE-L change of at most 0.014 and lower METEOR in 6 of 9 settings. The oracle outputs reuse the reference: for DeepSeek, 57% of ORACLE-REGEN abstracts share an 8-word span with the reference that appears in neither the input nor the user’s samples, compared with 13% for SP-INFER.
| Method | Abstract R-L | Abstract MET | Review R-L | Review MET | Topic R-L | Topic MET |
| DeepSeek-V4-Flash | ||||||
| SP-INFER | 0.269 | 0.356 | 0.167 | 0.273 | 0.147 | 0.241 |
| SP-REGEN | 0.283 | 0.368 | 0.163 | 0.283 | 0.149 | 0.245 |
| ORACLE-REGEN† | 0.391 | 0.474 | 0.253 | 0.345 | 0.217 | 0.309 |
| Grok-4.1-Fast | ||||||
| SP-INFER | 0.248 | 0.307 | 0.150 | 0.254 | 0.149 | 0.242 |
| SP-REGEN | 0.255 | 0.290 | 0.148 | 0.247 | 0.150 | 0.225 |
| ORACLE-REGEN† | 0.381 | 0.409 | 0.208 | 0.318 | 0.279 | 0.347 |
| GPT-5.4-nano | ||||||
| SP-INFER | 0.214 | 0.328 | 0.149 | 0.251 | 0.130 | 0.220 |
| SP-REGEN | 0.223 | 0.324 | 0.148 | 0.236 | 0.128 | 0.208 |
| ORACLE-REGEN† | 0.232 | 0.331 | 0.153 | 0.234 | 0.134 | 0.219 |
Table 8. Table 8: Oracle revision vs. its reference-free control on the same random test instances (498/488/494 for abstract/review/topic). †Oracle (sees the reference). Best per column within each generator in bold.
SP-REFINE’s intermediate drafts are not much better. Choosing the best of , , and with the reference-anchored judge (ORACLE-SELECT(SP-REFINE)) changes ROUGE-L over SP-REFINE by at most 0.008 for DeepSeek and 0.006 for Grok and GPT. The returned draft is close to the best that SP-REFINE produces; larger gains require new information, such as the reference.
Conclusion
We introduced STYLEPRISM, a taxonomy of 28 stylistic aspects, and SP-REFINE, which uses it to make style extraction an explicit step in personalized long-form generation: the model writes down the user’s style with quoted evidence, then drafts from the user’s samples and revises against that profile. SP-REFINE outperforms LongLaMP’s retrieval-augmented baseline in 25 of 27 reference-based comparisons and improves judged style fidelity, and the extracted profiles predict concrete habits that users’ held-out texts bear out. Ablations show that the profile is useful as revision guidance but cannot replace the samples, and that a single implicit-inference call comes close. Oracle and control experiments show that larger refinement gains require the reference itself. Next steps are removing sample-format artifacts from the prompts and deciding per user or generator whether to revise.
Limitations
We evaluate only the user setting of LongLaMP and only English data. Our LongLaMP baseline uses LongLaMP’s prompt templates and retrieval but our generators and generation settings, so absolute numbers are not directly comparable to those of Kumar et al. [4]. ROUGE and METEOR measure overlap with a single reference and cap ture style only indirectly. Our LLM judge is a model, not a human, and also one of our generators; its scores use the reference as an anchor, so Style Fidelity partly reflects content similarity. SP-REFINE’s self-scores use the same five style criteria as the judge, anchored on the samples rather than the reference, which may favor SP-REFINE on the judge’s style criteria. The annotation study examines individual instances and is illustrative. We study prompting with a fixed retriever and ; other retrievers, values of , and fine-tuning are not explored. Oracle controls use a sample of test instances, and closed-model APIs may change over time.
Ethics Statement
Systems that imitate a person’s writing style can be misused to impersonate that person or to produce deceptive text attributed to them. Our methods operate only on a user’s own past writing for the purpose of assisting that user, and we do not release models trained to imitate specific individuals. Explicit profiles make what is being imitated inspectable, but they also summarize a person’s habits, including signature phrases and sign-offs, and should be treated as personal data. Generated text can repeat sentences from a user’s earlier documents and invent quantitative claims; deployed systems should check for both. We use the publicly released LongLaMP benchmark [4] for research purposes only, consistent with its intended use; its Hugging Face release does not state a license. The data are derived from public scientific abstracts, Amazon reviews, and Reddit posts and may contain personal information, which we do not redistribute; the user texts shown in our figures are taken from the public benchmark.
Use of AI assistants. We used AI assistants (Claude) to help write and debug experiment and analysis code, to format tables and figures, and to draft and edit parts of the text. The authors designed the study, ran all experiments, checked every number against the experiment outputs, and take full responsibility for the content.
Dataset Statistics
| Task | #train | #val | #test | Input len. | Output len. |
| Abstract | 13,693 | 4,560 | 4,560 | 33.8±5.7 | 144.3±68.4 |
| Review | 14,745 | 1,826 | 1,822 | 119.4±73.1 | 304.5±228.6 |
| Topic | 11,442 | 2,452 | 2,452 | 28.4±36.1 | 263.0±243.3 |
Table 4. LongLaMP user-setting statistics; lengths are mean ± s.d. in tokens as reported by Kumar et al. [4]. We evaluate on all test instances.
StylePrism in Full
Table 5 describes each of the 28 aspects of StylePrism with an example. The codes used in our annotations (L1–X2) number the aspects in the order listed, as in Figure 2.
Additional Results
Figure 6 plots ROUGE-1, ROUGE-L, and METEOR for the baselines and all StylePrism variants, and Table 6 gives the gains of SP-REFINE over LongLaMP for every comparison. Figure 5 shows, for each judge criterion and generator–task setting, the difference between SP-REFINE and LongLaMP: the style gains are largest for DeepSeek, mostly in Format, and the one loss in Style Fidelity (GPT on reviews) comes entirely from Format.
Figure 5. Per-criterion LLM-judge difference between SP-REFINE and LongLaMP (1–5 scale) for each generator and task (Abs.: abstract generation; Rev.: review writing; Top.: topic writing). Blue cells are gains for SP-REFINE, red cells losses. The upper block holds the five style criteria, the lower block the four task-quality criteria.
Annotated Review and Topic Examples
Figure 7 and Figure 8 use the same markup as Figure 3: highlights mark text that matches an aspect of the profile extracted from the user’s retrieved samples, colored by StylePrism category; underlines with ¬ mark departures from the profile.
Oracle Variants and Controls
Table 7 reports every oracle variant on the full test sets (§ 7.4); Table 8 compares Oracle-Regen with its reference-free control SP-Regen on the same sample of instances.
| Category | Stylistic Aspect | Description | Example |
| LEXICAL CHOICE | Word Frequency & Preference | Detects recurring words, preferred synonyms, and idiosyncratic vocabulary. | Uses vitally important instead of very important. |
| LEXICAL CHOICE | Stopword Avoidance / Usage | Whether user avoids starting with “The”, “This”, etc. | Starts abstracts with content words. |
| LEXICAL CHOICE | Domain-Specific Lexicon | Detects technical or field-specific vocabulary tendencies. | Uses “serves as”, “gives rise to”, “provides a foundation for”. |
| LEXICAL CHOICE | Intensifier & Modifier Use | Detects degree of assertiveness or emphasis. | Frequent “extremely”, “remarkably”, “fundamentally”. |
| LEXICAL CHOICE | Hedging Behavior | Detects cautious vs. assertive phrasing patterns. | “May”, “might”, “could” vs. “is”, “demonstrates”. |
| SYNTACTIC PATTERNS | Sentence Length & Complexity | Average sentence length, clause depth, punctuation frequency. | Long multi-clause vs. short direct sentences. |
| SYNTACTIC PATTERNS | Passive vs. Active Voice | Ratio of passive to active constructions. | “We propose” vs. “is proposed”. |
| SYNTACTIC PATTERNS | Coordination vs. Subordination | Preference for connecting or nesting ideas. | “Because”, “although” vs. “and”, “then”. |
| SYNTACTIC PATTERNS | Punctuation Habits | Frequency of commas, parentheses, semicolons, etc. | Avoids dashes, prefers commas. |
| SYNTACTIC PATTERNS | Enumerative Style | Frequency of lists or structured enumerations. | “(1). . . (2). . . ” common in academic writing. |
| DISCOURSE MARKERS | Transitional Phrases | Recurrent connective or bridging expressions. | “As a first step toward”, “In practice”, “The key challenge is that”. |
| DISCOURSE MARKERS | Opening Moves | Typical ways of beginning paragraphs or sections. | “We propose. . . ”, “This paper. . . ”, or direct noun start. |
| DISCOURSE MARKERS | Closing Moves | How arguments or sections conclude. | “This provides a foundation. . . ”, “Overall, we demonstrate. . . ”. |
| DISCOURSE MARKERS | Reference Density | Frequency of citations or attributions. | Uses “(Smith et al., 2023)” often. |
| STRUCTURAL ORGANIZATION | Paragraph Structure | Average paragraph length and internal cohesion. | Short dense vs. long narrative paragraphs. |
| STRUCTURAL ORGANIZATION | Rhetorical Role Distribution | Frequency of problem, contribution, and implication statements. | “The goal is to. . . ”, “We make the following contributions. . . ”. |
| STRUCTURAL ORGANIZATION | Argument Framing | Logical order and transition structure. | “The key challenge is that. . . We address this by. . . ”. |
| STRUCTURAL ORGANIZATION | Section Naming Style | Naming consistency and section organization. | Prefers “Motivation” over “Introduction”. |
| PRAGMATIC & TONE | Formality Level | Degree of formality or conversational tone. | Emails: “Hi”, “Thanks” vs. formal memos. |
| PRAGMATIC & TONE | Politeness Strategy | Softening vs. direct tone and mitigation strategies. | “I appreciate your input” vs. “This is incorrect”. |
| PRAGMATIC & TONE | Audience Awareness | Inclusive or direct reference to reader. | “We” vs. “you”. |
| PRAGMATIC & TONE | Figurative Language | Use of analogy, metaphor, or idiom. | “Gives rise to a new wave of methods.” |
| PRAGMATIC & TONE | Certainty & Commitment | Confidence conveyed via modal verbs or stance. | “Clearly shows” vs. “suggests”. |
| FORMATTING & LAYOUT | Visual Structure | Use of bullets, numbering, or headings. | Lists in emails or papers. |
| FORMATTING & LAYOUT | Paragraph Density | Consistency of idea segmentation. | One idea per paragraph vs. merged ideas. |
| FORMATTING & LAYOUT | Emphasis & Capitalization | Use of visual emphasis in text. | “IMPORTANT”, “(!!!)”, etc. |
| CROSS-TASK VARIABILITY | Style Adaptation by Task | How writing style changes across task types. | Polite in casual emails to friends vs. professional emails. |
| CROSS-TASK VARIABILITY | Content–Style Entanglement | Consistency of stylistic cues across content. | “Key challenge” appears in papers and reviews. |
Table 5. Table 5: Overview of our STYLEPRISM framework. Stylistic aspects that our approach learns from a set of text written by the user, which we then use for improving personalized text generation for that user.
Per-Criterion LLM-Judge Scores
Tables 9–11 give all nine criterion scores (GPT-5.4-nano judge, full test sets; for DeepSeek SP-REFINE on abstracts, 4,557 of the 4,560 instances have an output).
| Task | Method | Lex. | Syn. | Tone | Disc. | Fmt. | SF | Cov. | Fact. | Flu. | Len. | TQ |
| Abstract | NO PROFILE | 2.62 | 2.74 | 3.61 | 2.81 | 2.24 | 2.80 | 2.88 | 3.31 | 4.54 | 2.95 | 3.42 |
| Abstract | RANDOM-SAMPLES | 2.64 | 2.84 | 3.62 | 2.84 | 3.24 | 3.04 | 2.95 | 3.09 | 4.52 | 2.89 | 3.36 |
| Abstract | LONGLAMP | 2.83 | 2.95 | 3.73 | 2.99 | 3.08 | 3.12 | 3.16 | 3.08 | 4.55 | 2.90 | 3.42 |
| Abstract | SP-PROFILE | 2.85 | 3.16 | 3.84 | 3.12 | 4.31 | 3.46 | 3.01 | 3.33 | 4.57 | 3.14 | 3.51 |
| Abstract | SP-INFER | 2.92 | 3.17 | 3.88 | 3.19 | 3.83 | 3.40 | 3.13 | 3.32 | 4.60 | 3.18 | 3.56 |
| Abstract | SP-REFINE | 2.93 | 3.17 | 3.90 | 3.18 | 4.26 | 3.49 | 3.23 | 3.23 | 4.61 | 3.06 | 3.53 |
| Review | NO PROFILE | 1.56 | 2.05 | 2.53 | 2.09 | 1.79 | 2.00 | 1.88 | 3.37 | 4.55 | 2.55 | 3.09 |
| Review | RANDOM-SAMPLES | 1.67 | 2.17 | 2.69 | 2.22 | 2.43 | 2.24 | 1.94 | 3.32 | 4.57 | 2.59 | 3.10 |
| Review | LONGLAMP | 1.71 | 2.21 | 2.72 | 2.27 | 2.39 | 2.26 | 1.98 | 3.32 | 4.56 | 2.66 | 3.13 |
| Review | SP-PROFILE | 1.83 | 2.41 | 2.94 | 2.54 | 3.32 | 2.61 | 2.02 | 3.32 | 4.53 | 2.92 | 3.20 |
| Review | SP-INFER | 1.92 | 2.48 | 3.01 | 2.63 | 2.31 | 2.47 | 2.20 | 3.09 | 4.52 | 2.90 | 3.18 |
| Review | SP-REFINE | 1.90 | 2.47 | 3.01 | 2.69 | 3.37 | 2.69 | 2.22 | 3.02 | 4.56 | 2.87 | 3.17 |
| Topic | NO PROFILE | 1.35 | 1.80 | 2.13 | 1.90 | 1.93 | 1.82 | 1.80 | 2.66 | 4.29 | 2.12 | 2.72 |
| Topic | RANDOM-SAMPLES | 1.36 | 1.76 | 2.09 | 1.78 | 2.06 | 1.81 | 1.59 | 2.68 | 4.03 | 1.97 | 2.57 |
| Topic | LONGLAMP | 1.44 | 1.82 | 2.18 | 1.80 | 2.07 | 1.86 | 1.69 | 2.72 | 4.02 | 1.98 | 2.60 |
| Topic | SP-PROFILE | 1.53 | 2.16 | 2.48 | 2.18 | 2.78 | 2.23 | 1.73 | 3.00 | 4.19 | 2.35 | 2.82 |
| Topic | SP-INFER | 1.62 | 2.24 | 2.56 | 2.33 | 2.87 | 2.32 | 1.87 | 2.91 | 4.27 | 2.41 | 2.86 |
| Topic | SP-REFINE | 1.59 | 2.21 | 2.48 | 2.30 | 2.81 | 2.28 | 1.90 | 2.78 | 4.21 | 2.34 | 2.81 |
Table 9. Per-criterion LLM-judge scores (1–5) for DeepSeek-V4-Flash. Style: Lexical, Syntax, Tone, Discourse, Format; Task Quality: Coverage, Factuality, Fluency, Length. Best per column within each task in bold.
| Task | Method | Lex. | Syn. | Tone | Disc. | Fmt. | SF | Cov. | Fact. | Flu. | Len. | TQ |
| Abstract | NO PROFILE | 2.54 | 2.66 | 3.46 | 2.78 | 3.53 | 2.99 | 3.14 | 2.13 | 4.48 | 2.70 | 3.11 |
| Abstract | RANDOM-SAMPLES | 2.57 | 2.70 | 3.51 | 2.82 | 3.81 | 3.08 | 3.12 | 2.39 | 4.53 | 2.79 | 3.21 |
| Abstract | LONGLAMP | 2.81 | 2.91 | 3.69 | 3.03 | 3.93 | 3.27 | 3.31 | 2.63 | 4.60 | 2.90 | 3.36 |
| Abstract | SP-PROFILE | 2.79 | 2.98 | 3.72 | 2.96 | 4.13 | 3.31 | 3.13 | 2.82 | 4.51 | 3.00 | 3.36 |
| Abstract | SP-INFER | 2.84 | 3.07 | 3.80 | 3.07 | 4.22 | 3.40 | 3.05 | 3.21 | 4.57 | 3.19 | 3.51 |
| Abstract | SP-REFINE | 2.91 | 3.10 | 3.84 | 3.04 | 4.14 | 3.40 | 2.99 | 3.32 | 4.46 | 3.09 | 3.46 |
| Review | NO PROFILE | 1.46 | 1.89 | 2.21 | 2.02 | 1.40 | 1.80 | 2.08 | 2.43 | 4.40 | 2.10 | 2.75 |
| Review | RANDOM-SAMPLES | 1.48 | 1.88 | 2.11 | 1.99 | 1.57 | 1.81 | 2.05 | 2.41 | 4.33 | 1.94 | 2.68 |
| Review | LONGLAMP | 1.70 | 2.09 | 2.51 | 2.27 | 1.77 | 2.07 | 2.25 | 2.35 | 4.37 | 2.04 | 2.75 |
| Review | SP-PROFILE | 1.74 | 2.22 | 2.60 | 2.29 | 2.84 | 2.34 | 2.04 | 2.97 | 4.38 | 2.72 | 3.03 |
| Review | SP-INFER | 1.89 | 2.40 | 2.86 | 2.48 | 1.71 | 2.27 | 2.18 | 2.84 | 4.40 | 2.72 | 3.04 |
| Review | SP-REFINE | 1.94 | 2.44 | 2.92 | 2.46 | 1.84 | 2.32 | 2.18 | 2.94 | 4.28 | 2.72 | 3.03 |
| Topic | NO PROFILE | 1.30 | 1.72 | 2.02 | 1.83 | 2.05 | 1.78 | 1.83 | 2.19 | 4.12 | 1.92 | 2.52 |
| Topic | RANDOM-SAMPLES | 1.36 | 1.82 | 2.02 | 1.91 | 2.26 | 1.88 | 1.74 | 2.31 | 4.07 | 2.04 | 2.54 |
| Topic | LONGLAMP | 1.57 | 2.04 | 2.29 | 2.14 | 2.47 | 2.10 | 1.96 | 2.42 | 4.13 | 2.17 | 2.67 |
| Topic | SP-PROFILE | 1.45 | 1.96 | 2.06 | 2.00 | 2.47 | 1.99 | 1.79 | 2.37 | 3.96 | 2.20 | 2.58 |
| Topic | SP-INFER | 1.59 | 2.13 | 2.38 | 2.21 | 2.64 | 2.19 | 1.89 | 2.67 | 4.13 | 2.33 | 2.75 |
| Topic | SP-REFINE | 1.63 | 2.19 | 2.39 | 2.15 | 2.54 | 2.18 | 1.90 | 2.60 | 3.98 | 2.32 | 2.70 |
Table 10. Per-criterion LLM-judge scores (1–5) for Grok-4.1-Fast. Style: Lexical, Syntax, Tone, Discourse, Format; Task Quality: Coverage, Factuality, Fluency, Length. Best per column within each task in bold.
| Task | Method | Lex. | Syn. | Tone | Disc. | Fmt. | SF | Cov. | Fact. | Flu. | Len. | TQ |
| Abstract | NO PROFILE | 2.66 | 2.85 | 3.65 | 2.81 | 3.52 | 3.10 | 2.83 | 3.79 | 4.63 | 3.06 | 3.58 |
| Abstract | RANDOM-SAMPLES | 2.67 | 2.91 | 3.72 | 2.91 | 3.58 | 3.16 | 2.97 | 3.75 | 4.68 | 3.08 | 3.62 |
| Abstract | LONGLAMP | 2.80 | 2.99 | 3.79 | 3.04 | 3.60 | 3.24 | 3.12 | 3.76 | 4.70 | 3.09 | 3.67 |
| Abstract | SP-PROFILE | 2.77 | 3.02 | 3.85 | 3.05 | 4.25 | 3.39 | 3.07 | 3.73 | 4.64 | 2.93 | 3.59 |
| Abstract | SP-INFER | 2.78 | 2.98 | 3.85 | 3.10 | 4.07 | 3.36 | 3.20 | 3.66 | 4.71 | 2.81 | 3.60 |
| Abstract | SP-REFINE | 2.84 | 3.01 | 3.88 | 3.12 | 4.10 | 3.39 | 3.20 | 3.69 | 4.68 | 2.79 | 3.59 |
| Review | NO PROFILE | 1.51 | 2.01 | 2.49 | 2.03 | 2.70 | 2.15 | 1.65 | 3.81 | 4.60 | 2.10 | 3.04 |
| Review | RANDOM-SAMPLES | 1.58 | 2.13 | 2.59 | 2.31 | 2.83 | 2.29 | 1.82 | 3.75 | 4.69 | 2.66 | 3.23 |
| Review | LONGLAMP | 1.65 | 2.17 | 2.65 | 2.35 | 2.89 | 2.34 | 1.86 | 3.76 | 4.68 | 2.71 | 3.25 |
| Review | SP-PROFILE | 1.67 | 2.23 | 2.72 | 2.44 | 3.36 | 2.48 | 1.86 | 3.82 | 4.65 | 2.79 | 3.28 |
| Review | SP-INFER | 1.68 | 2.22 | 2.76 | 2.38 | 1.84 | 2.17 | 1.95 | 3.67 | 4.61 | 2.75 | 3.24 |
| Review | SP-REFINE | 1.68 | 2.23 | 2.72 | 2.38 | 1.91 | 2.18 | 1.95 | 3.68 | 4.61 | 2.74 | 3.25 |
| Topic | NO PROFILE | 1.27 | 1.73 | 2.09 | 1.86 | 2.07 | 1.80 | 1.62 | 3.24 | 4.39 | 2.04 | 2.82 |
| Topic | RANDOM-SAMPLES | 1.31 | 1.76 | 2.11 | 1.86 | 2.06 | 1.82 | 1.65 | 3.03 | 4.29 | 1.99 | 2.74 |
| Topic | LONGLAMP | 1.36 | 1.81 | 2.19 | 1.91 | 2.06 | 1.87 | 1.73 | 3.07 | 4.32 | 2.07 | 2.80 |
| Topic | SP-PROFILE | 1.41 | 2.04 | 2.40 | 2.16 | 2.69 | 2.14 | 1.67 | 3.22 | 4.30 | 2.25 | 2.86 |
| Topic | SP-INFER | 1.46 | 2.06 | 2.45 | 2.17 | 2.53 | 2.14 | 1.79 | 3.24 | 4.42 | 2.31 | 2.94 |
| Topic | SP-REFINE | 1.46 | 2.08 | 2.43 | 2.15 | 2.54 | 2.13 | 1.79 | 3.23 | 4.38 | 2.27 | 2.92 |
Table 11. Per-criterion LLM-judge scores (1–5) for GPT-5.4-nano. Style: Lexical, Syntax, Tone, Discourse, Format; Task Quality: Coverage, Factuality, Fluency, Length. Best per column within each task in bold.
Prompts and Algorithms
Runtime fields are shown in braces. Samples are rendered per task as “Title: . . . Abstract: . . . ” (abstracts), “Rating: . . . Product: . . . Summary: . . . Review: . . . ” (reviews), or “Summary: . . . Post: . . . ” (topics), and numbered with “– SAMPLE i –” separators.
SP-Refine (all four steps, in full)
SP-REFINE step 1: EXTRACTSTYLE (ϕext; also call 1 of SP-PROFILE)
You are an expert computational linguist specializing in writing analysis. Below are {n} writing samples from ONE author. Read all carefully and build a Personal Style Profile (PSP).
Rules:
- Base all claims on the text
- Quote exact phrases as evidence
- Do NOT infer patterns not present
- If not observable, write: "not observable from samples"
=======================
SAMPLES
=======================
{samples}
=======================
Analyze across ALL categories: lexical choice, syntactic patterns, discourse markers, structural organization, pragmatic tone, formatting & layout, cross-task variability.
Return ONLY valid JSON with this schema (replace the "..." values with your analysis):
{
"lexical_choice": {
"word_frequency_and_preference": {"pattern": "...", "evidence": ["..."], "avoid": "..."},
"stopword_avoidance": {"pattern": "...", "evidence": ["..."], "avoid": "..."},
"domain_specific_lexicon": {"pattern": "...", "evidence": ["..."], "avoid": "..."},
"intensifier_and_modifier_use": {"pattern": "...", "evidence": ["..."], "avoid": "..."},
"hedging_behavior": {"pattern": "...", "evidence": ["..."], "avoid": "..."}
},
"syntactic_patterns": {
"sentence_length_and_complexity": {
"avg_words_per_sentence": 0, "pattern": "...",
"evidence": ["..."], "avoid": "..."
},
"passive_vs_active_voice": {"dominant": "...",
"passive_percentage": "...", "pattern": "...",
"evidence": ["..."], "avoid": "..."},
"coordination_vs_subordination": {"dominant": "...",
"pattern": "...", "evidence": ["..."], "avoid":
"..."},
"punctuation_habits": {"pattern": "...",
"evidence": ["..."], "avoid": "..."},
"enumerative_style": {"uses_enumeration":
false, "format": "...", "evidence": ["..."],
"avoid": "..."}
},
"discourse_markers": {
"transitional_phrases": {"top_phrases": ["..."],
"evidence": ["..."], "avoid": "..."},
"opening_moves": {"pattern": "...", "evidence":
["..."], "avoid": "..."},
"closing_moves": {"pattern": "...", "evidence":
["..."], "avoid": "..."},
"reference_density": {"frequency": "...", "format":
"...", "evidence": ["..."]}
},
"structural_organization": {
"paragraph_structure": {
"avg_sentences_per_paragraph": 0, "style": "...",
"evidence": ["..."], "avoid": "..."
},
"rhetorical_role_distribution": {"pattern": "...",
"sequence": "...", "evidence": ["..."], "avoid":
"..."},
"argument_framing": {"pattern": "...",
"evidence": ["..."], "avoid": "..."},
"section_naming_style": {"pattern": "...",
"evidence": ["..."]}
},
"pragmatic_tone": {
"formality_level": {"level": "...", "pattern":
"...", "evidence": ["..."], "avoid": "..."},
"politeness_strategy": {"pattern": "...",
"evidence": ["..."], "avoid": "..."},
"audience_awareness": {"pronoun": "...", "pattern":
"...", "evidence": ["..."], "avoid": "..."},
"figurative_language": {"uses_fig urative_language":
false, "pattern": "...", "evidence": ["..."],
"avoid": "..."},
"certainty_and_commitment": {"stance": "...",
"strong_verbs": ["..."], "hedge_words": ["..."],
"evidence": ["..."], "avoid": "..."}
},
"formatting_layout": {
"visual_structure": {"uses_bullets": false,
"uses_numbered_lists": false, "uses_headers": false,
"pattern": "...", "evidence": ["..."]},
"paragraph_density": {"style": "...",
"evidence": ["..."], "avoid": "..."},
"emphasis_and_capitalization":{"uses_emphasis": false,
"methods": "none", "evidence": ["..."]}
},
"cross_task_variability": {
"style_adaptation_by_task": {"pattern": "...",
"evidence": ["..."]},
"content_style_entanglement": {"fingerprint_patterns":
["..."], "evidence": ["..."], "note": "..."}
}
}
SP-REFINE step 2: DRAFT (ϕdraft; the entire SP-INFER method)
You are writing in the style of a specific author. Below are {k} writing samples from this author. Read them carefully, infer the author's style, and then complete the task in that style. Do not produce a written analysis -- internalize the style and write.
======================= AUTHOR'S WRITING SAMPLES ======================= {numbered_samples}
======================= TASK ======================= Task type: {task_type} Task input: {task_input}
======================= INSTRUCTIONS =======================
Silently identify the author's recurring style features
sentence rhythm, word choices, hedging, transitions, paragraph structure, tone, formatting.
Draft the task output matching those features.
Briefly self-check that your draft matches the style of the samples; revise if it drifts.
Output ONLY the final text -- no preamble, no analysis, no fences.
SP-REFINE step 3: REVISE (ϕrev)
You are an expert writing evaluator and ghostwriter. You will complete two steps in this call.
======================= AUTHOR'S WRITING SAMPLES
```` (k=4 retrieved profile entries -- your style reference for this call) ======================= {numbered_samples} =======================
PERSONAL STYLE PROFILE (PSP) (structured style specification extracted from the author's writing history) ======================= {psp_json} =======================
TASK REMINDER ======================= Task type: {task_type} Task input: {task_input}
Your output must complete this task and only this task. Do not change the subject matter.
=======================
INITIAL DRAFT TO IMPROVE (generated by SP-Infer) ======================= {initial_draft}
=======================
STEP 1 -- PSP-CONDITIONED REVISION ======================= Using the PSP and writing samples as style anchors, revise the initial draft to better match the author's style. Apply every applicable PSP field: sentence length, voice, hedging, transitional phrases, paragraph density, and formatting. Do not alter factual content. Do not introduce new facts not present in the task input.
Produce a revised draft. This is your Round 1 draft.
=======================
STEP 2 -- DIMENSION A SCORING (score your Round 1 draft against the author's writing samples above) =======================
Score the Round 1 draft on each Dimension A criterion below using a 1-5 scale.
Scoring scale: 1 = Poor | 2 = Below average | 3 = Adequate | 4 = Good | 5 = Excellent
DIMENSION A -- STYLISTIC FIDELITY (compare Round 1 draft to the author's writing samples): A1. Lexical Match -- vocabulary is entirely generic with no overlap (1) -> word choices indistinguishable from the author (5) A2. Syntactic Match -- sentence length and voice are opposite to the author (1) -> length, complexity, and voice indistinguishable from the author (5) A3. Tone & Formality -- register is completely wrong (1) -> formality, hedging, and certainty stance indistinguishable from the author (5) A4. Discourse & Structure -- no recognizable transitions or paragraph density (1) -> discourse organization indistinguishable from the author (5) A5. Formatting -- formatting is opposite to the author's (1) -> bullets, headers, and prose structure indistinguishable from the author (5)
Return your Dimension A scores in this exact JSON format: { "round": 1, "dimension_a_scores": { "A1_lexical_match": 0, "A2_syntactic_match": 0, "A3_tone_formality": 0, "A4_discourse_structure": 0, "A5_formatting": 0 }, "style_fidelity_score": 0.0, "weakest_criteria": ["...", "..."], "specific_issues": "..." } ````
````
=======================
OUTPUT FORMAT
=======================
Return your response in exactly this structure:
ROUND 1 DRAFT:
<your revised draft text only, no preamble, no fences>
DIMENSION A SCORES (ROUND 1):
```json
<your scores JSON from Step 2>
````
SP-REFINE step 4: TARGETED REVISE ()
You are an expert writing evaluator and ghostwriter continuing an iterative style refinement pipeline.
======================= AUTHOR'S WRITING SAMPLES (k=4 retrieved profile entries -- your style reference for this call) ======================= {numbered_samples}
=======================
PERSONAL STYLE PROFILE (PSP) ======================= {psp_json}
=======================
TASK REMINDER ======================= Task type: {task_type} Task input: {task_input}
Your output must complete this task and only this task. Do not change the subject matter.
=======================
ROUND 1 DRAFT (produced in the previous call) ======================= {round1_draft}
=======================
ROUND 1 DIMENSION A SCORES (from the previous call -- use these to guide your revision) ======================= {round1_scores_json}
=======================
STEP 1 -- TARGETED REVISION ======================= Using the Round 1 Dimension A scores and specific issues above, revise the Round 1 draft.
Revision priorities:
Fix criteria scored 1 or 2 first -- these are critical style failures.
Then improve criteria scored 3 -- bring them to 4 or 5.
Do not change criteria already scoring 4 or 5.
Style corrections must not alter factual content.
Do not introduce new facts not present in the task input.
Produce a revised draft. This is your Round 2 draft.
=======================
STEP 2 -- DIMENSION A RESCORE (score your Round 2 draft against the author's writing samples above) ======================= Score the Round 2 draft on each Dimension A criterion below using a 1-5 scale.
Scoring scale: 1 = Poor | 2 = Below average | 3 = Adequate | 4 = Good | 5 = Excellent
DIMENSION A -- STYLISTIC FIDELITY (compare Round 2 draft to the author's writing samples):
A1. Lexical Match -- vocabulary is entirely generic with no overlap (1) -> word choices indistinguishable from the author (5)
A2. Syntactic Match -- sentence length and voice are opposite to the author (1) -> length, complexity, and voice indistinguishable from the author (5)
A3. Tone & Formality -- register is completely wrong (1) -> formality, hedging, and certainty stance indistinguishable from the author (5)
A4. Discourse & Structure -- no recognizable transitions or paragraph density (1) -> discourse organization indistinguishable from the author (5)
A5. Formatting -- formatting is opposite to the author's (1) -> bullets, headers, and prose structure indistinguishable from the author (5)
Return your Dimension A scores in this exact JSON format:
{
"round": 2,
"dimension_a_scores": {
"A1_lexical_match": 0,
"A2_syntactic_match": 0,
"A3_tone_formality": 0,
"A4_discourse_structure": 0,
"A5_formatting": 0
},
"style_fidelity_score": 0.0,
"weakest_criteria": ["...", "..."],
"specific_issues": "..."
}
====================== OUTPUT FORMAT ======================
Return your response in exactly this structure:
ROUND 2 DRAFT: <your revised draft text only, no preamble, no fences>
DIMENSION A SCORES (ROUND 2):
<your scores JSON from Step 2>
SP-Profile
Call 1 is EXTRACTSTYLE above; call 2 is:
SP-PROFILE call 2: APPLY ()
You are writing in the style of a specific author. Below is their Personal Style Profile (PSP), built from analyzing prior writing samples. Your job is to produce text that matches this PSP as closely as possible while completing the requested task accurately.
====================== PERSONAL STYLE PROFILE ======================
{psp_json}
====================== TASK ======================
Task type: {task_type}
Task input:
{task_input}
====================== INSTRUCTIONS ======================
Step 1 -- DRAFT (silent): Write a draft that completes the task. While drafting, actively conform to every applicable PSP field -- sentence length, voice, hedging, transitional phrases, paragraph density, formatting choices. Use the “evidence” phrases as stylistic anchors but do NOT copy them verbatim if they would be content-irrelevant to this task.
Step 2 -- REVISE (silent): Re-read your draft against the PSP. For each PSP category, ask: does the draft match the stated pattern? If a PSP field says “avoid X,” confirm X is absent. If avg_words_per_sentence is N, check your draft is within +/-20% of N. If passive_percentage is “low,” count passives. Rewrite anywhere the draft drifts.
Baselines
LONGLAMP (LongLaMP’s templates; are the retrieved entries)
Abstract: “{abstract of }” is the abstract for the title “{title of e_k}” is the abstract for the title “{title of $e_k}”. Use the above abstracts as context to understand the style and language of the user and, {task_input}
Review: “{rating}” is a rating for the product with description “{description}”. “{summary}” is summary for “{review text}”, and . . . Following the given patterns {task_input}
Topic: “{summary}” is a summary for “{post}”, and . . . . Following the given patterns, {task_input}
NO PROFILE and RANDOM-SAMPLES
No Profile: the task input alone, e.g. Generate an abstract for the title “{title}” using the following items: {items}.
Random-Samples: the LongLaMP template above, filled with entries sampled uniformly at random from the user's own history (not the entries retrieved by Contriever).
Oracles and controls (abridged)
ORACLE-REGEN and ORACLE-REGEN+P (oracle; abridged)
You are an expert writing evaluator and ghostwriter. Your task has two steps:
STEP 1 -- evaluate a generated text using the ground truth as a scoring reference only.
STEP 2 -- produce an improved version WITHOUT referencing the ground truth.
[AUTHOR'S WRITING SAMPLES] [TASK INPUT] [GENERATED OUTPUT TO EVALUATE] (SP-Infer output for Oracle-Regen; SP-Profile output for Oracle-Regen+P)
STEP 1 -- EVALUATE (the ground truth below is for scoring reference only -- do not copy it)
Ground truth output (scoring reference only): {ground_truth}
Score 1-5: A1-A5 (compare to the author's writing samples), B1 Content Coverage (relative to ground truth), B2 Factual Consistency, B3 Fluency & Coherence, B4 Length Appropriateness (relative to ground truth). Return JSON with scores, weakest_criteria, specific_issues.
TASK REMINDER: re-read the original task. Do not introduce content from the ground truth.
STEP 2 -- REGENERATE (work only from the task input and author samples -- do NOT copy from the ground truth): Fix criteria scored 1–2 first, then 3; do not change criteria scoring 4–5; do not alter or add facts. The improved output must: complete the same task using only the task input as content source; match the author's style; be comparable in length to the ground truth; contain no preamble; NOT reproduce phrases or sentences from the ground truth.
Return: EVALUATION: {json} REGENERATED OUTPUT: <text>
SP-REGEN and SP-REGEN+ (reference-free controls): changes relative to the oracle prompt
Removed: the ground-truth block and every mention of the ground truth.
B1 Content Coverage: "key information from the task input present and well-represented" (was: relative to ground truth).
B4 Length Appropriateness: "output length relative to the author's writing samples" (was: relative to ground truth).
Removed: "Be comparable in length to the ground truth" and "NOT reproduce phrases or sentences from the ground truth".
All other text identical; same model, same initial drafts.
ORACLE-SELECT (oracle selection rule)
For each test instance, score every candidate draft with the LLM judge (reference-anchored) and keep the draft with the highest 0.5 * StyleFidelity + 0.5 * TaskQuality.
Candidate sets: {SP-Infer, Oracle-Regen}; {SP-Refine (= SP-Infer), , }; {SP-Profile, Oracle-Regen+P
LLM judge (abridged)
You are an expert writing evaluator performing a final blind evaluation of a generated text output.
TASK REMINDER -- Task type: {task_type} Task input: {task_input}
GENERATED OUTPUT (the text to evaluate): {generated_output}
GROUND TRUTH (what the author actually wrote for this task -- evaluation anchor for both dimensions): {ground_truth}
Score the generated output on all criteria below using a 1–5 scale (1 = Poor, 3 = Adequate, 5 = Excellent). Both dimensions use the ground truth as the evaluation anchor.
DIMENSION A -- STYLISTIC FIDELITY (compare to the ground truth as style reference):
A1. Lexical Match -- entirely generic vocabulary (1) -> word choices indistinguishable from ground truth (5)
A2. Syntactic Match -- sentence length and voice opposite (1) -> indistinguishable (5)
A3. Tone & Formality -- register completely wrong (1) -> formality, hedging, certainty indistinguishable (5)
A4. Discourse & Structure -- no recognizable transitions or paragraph density (1) -> indistinguishable (5)
A5. Formatting -- formatting opposite (1) -> bullets, headers, prose structure indistinguishable (5)
DIMENSION B -- TASK QUALITY (compare to the ground truth):
B1. Content Coverage -- most key information missing (1) -> all key information present (5)
B2. Factual Consistency -- multiple invented or contradicting facts (1) -> every claim grounded in the task input (5)
B3. Fluency & Coherence -- incoherent (1) -> fully fluent and well-structured (5)
B4. Length Appropriateness -- deviates from ground-truth length by more than 50% (1) -> within ~10% (5)
Return ONLY a JSON object with dimension_a (A1–A5), dimension_b (B1–B4), weakest_criteria, and evaluation_notes.
SF and TQ are computed by us as the means of the criterion scores; the judge’s own aggregate fields are ignored.
Notation
Table 12 lists every symbol used in Algorithms –.
| Symbol | Meaning |
| , | a user and their history of previously written documents |
| , | task input (e.g., title, key and key items) and task type (abstract, review, or topic) |
| , | the user’s reference output (used only for evaluation and by the oracles) and the generated output |
| , | retriever and number of samples: returns the entries of with the highest Content-Retriever dot-product score for (); |
| the retrieved samples, , shared by all methods | |
| , | the generator LLM; is one call with prompt |
| , | the STYLEPRISM schema of 28 aspects; one aspect |
| the style profile: for each , a pattern, quoted evidence , and (for 22 aspects) an avoid field | |
| , , , ; , , | prompt templates of SP-REFINE’s four steps () and prompt templates of SP-PROFILE’s second call, of LONG LAMP, and of the oracles |
| , , | SP-REFINE’s draft (step 2), revised draft (step 3), and output (step 4); |
| , | the five style criteria (Lexical, Syntactic, Tone & Formality, Discourse & Structure, Formatting) and ’s 1–5 scores of on them, judged against |
| , | an oracle’s nine criteria scores and its revised output |
| a set of candidate outputs for ORACLE-SELECT | |
| , | the LLM judge’s Style Fidelity and Task Quality of candidate , using as anchor |
Table 12. Notation.
Algorithms for the ablations and oracles
| Algorithm 2 | SP-INFER: a single call with implicit style inference and self-check. |
| Input: | , , , , , |
| 1: | |
| 2: | return infer style, draft, self-check |
Table 2 (PDF p. 19).
| Algorithm 3 | SP-PROFILE: explicit extraction, then generation from the profile without the samples. |
| Input: | , , , , , , |
| 1: | |
| 2: | as in Alg. 1 |
| 3: | return not shown |
Table 3 (PDF p. 19).
Algorithm 4 ORACLE-REGEN and its reference-free control SP-REGEN; ORACLE-SELECT. For the +P variants, is the SP-PROFILE output instead. is the reviser’s nine criterion scores; is a set of candidate outputs.
Input: , , , , , ; reference (oracles only)
; SP-INFER output
▷ SP-REGEN: removed
return
ORACLE-SELECT: return
Example Style Profile
The complete profile extracted for the abstract instance in Figure 3.

Figure 3 (PDF p. 20). Full style profile for idx_13 (abstract generation, Grok-4.1-Fast), exactly as returned
{
"lexical_choice": {
"word_frequency_and_preference": {
"pattern": "prefers precise, technical terms with repetition of key concepts",
"evidence": [
"tunnelled (repeated 4x in Sample 1)",
"class B traffic (repeated 6x in Sample 2)",
"monitoring-cycles (m-cycles) (repeated across Samples 3-4)",
"fault detection (repeated in Samples 3-4)"
],
"avoid": "not observable from samples"
},
"stopword_avoidance": {
"pattern": "standard use of stopwords, no notable avoidance",
"evidence": [
"is an essential element",
"are wide in scope",
"are tunnelled over HTTP"
],
"avoid": "not observable from samples"
},
"domain_specific_lexicon": {
"pattern": "heavy use of networking and optical network terminology",
"evidence": [
"HTTP tunnels",
"NetFlow v5",
"Resilient Packet Ring (RPR)",
"monitoring-cycles (m-cycles)",
"all-optical networks (AONs)",
"NSFNET, ARPA2, SmallNet, and Bellcore."
],
"avoid": "not observable from samples"
},
"intensifier_and_modifier_use": {
"pattern": "sparse use of intensifiers, favors precise qualifiers like 'novel', 'accurate'",
"evidence": [
"novel approach",
"accurate classification",
"accurate and effective",
"nearly optimal performance"
],
"avoid": "not observable from samples"
},
"hedging_behavior": {
"pattern": "minimal hedging, uses qualifiers like 'nearly'",
"evidence": [
"nearly optimal performance (Samples 3-4)"
],
"avoid": "extensive hedges like 'may', 'possibly'"
},
"syntactic_patterns": {
"sentence_length_and_complexity": {
"avg_words_per_sentence": 24,
"pattern": "long, complex sentences with multiple clauses",
"evidence": [
"Accurate traffic classification is an essential element of emergent cloud and datacenter architectures. (12 words)",
"Applications tunnelled over HTTP are wide in scope and diverse in nature, and include mapping, email, video, image, audio and file. (19 words)"
],
"avoid": "not observable from samples"
},
"passive_vs_active_voice": {
"dominant": "mixed, slight passive preference",
"passive_percentage": "approx 40%",
"pattern": "passive for technical descriptions",
"evidence": [
"is carried out using information",
"is tested on live data traffic",
"is formulated as a cycle cover problem"
],
"avoid": "not observable from samples"
},
"coordination_vs_subordination": {
"dominant": "subordination",
"pattern": "heavy use of subordinate clauses and conjunctions",
"evidence": [
"thereby making accurate classification a challenge",
"using information that is only available from flow-based protocols",
"competing with background class C traffic"
],
"avoid": "not observable from samples"
},
"punctuation_habits": {
"pattern": "standard use, colons for lists, commas for series",
"evidence": [
"namely video, audio and file-transfer.",
"NSFNET, ARPA2, SmallNet, and Bellcore.",
"the grade of fault localization, wavelength overhead, and the number of cycles"
],
"avoid": "excessive dashes or semicolons"
},
"enumerative_style": {
"uses_enumeration": true,
"format": "colon-introduced series or lists",
"evidence": [
"namely video, audio and file-transfer.",
"NSFNET, ARPA2, SmallNet, and Bellcore.",
"grade of fault localization, wavelength overhead, and the number of cycles"
],
"avoid": "not observable from samples"
}
}
},
"discourse_markers": {
"transitional_phrases": {
"top_phrases": [
"This paper presents",
"In this paper",
"The results show",
"In comparison to"
],
"evidence": [
"This paper presents a novel approach (Sample 1)",
"This paper reports on simulation results (Sample 2)",
"In this paper, an m-cycle construction (Sample 3)"
],
"avoid": "not observable from samples"
},
"opening_moves": {
"pattern": "problem statement then proposed solution",
"evidence": [
"Accurate traffic classification is an essential element... making accurate classification a challenge. This paper presents (Sample 1)",
"The IEEE P802.17 workgroup is currently standardizing ... This paper reports (Sample 2)"
],
"avoid": "not observable from samples"
},
"closing_moves": {
"pattern": "results summary with performance claims",
"evidence": [
"the proposed scheme outperforms them by at least 10%
(Sample 1)",
"it achieves nearly optimal performance (Samples 3-4)"
],
"avoid": "not observable from samples"
},
"reference_density": {
"frequency": "low",
"format": "bracketed numbers",
"evidence": [
"[8] (Sample 4)"
],
"avoid": "not observable from samples"
},
"structural_organization": {
"paragraph_structure": {
"avg_sentences_per_paragraph": 1,
"style": "single dense paragraph abstracts",
"evidence": [
"All samples are single-paragraph abstracts"
],
"avoid": "not observable from samples"
},
"rhetorical_role_distribution": {
"pattern": "problem -> method -> evaluation -> results
",
"sequence": "challenge/problem, proposal, testing/
application, performance metrics",
"evidence": [
"challenge... This paper presents... tested on...
accurately classifies (Sample 1)"
],
"avoid": "not observable from samples"
},
"argument_framing": {
"pattern": "proposal superiority via comparison/metrics
",
"evidence": [
"outperforms them by at least 10% (Sample 1)",
"achieves nearly optimal performance (Samples 3-4)"
],
"avoid": "not observable from samples"
},
"section_naming_style": {
"pattern": "descriptive titles with method/network
focus",
"evidence": [
"Classification of applications in HTTP tunnels.",
"Spanning-tree based monitoring-cycle construction for
fault detection and localization in mesh AONs."
]
}
},
"pragmatic_tone": {
"formality_level": {
"level": "high",
"pattern": "academic technical prose",
"evidence": [
"emergent cloud and datacenter architectures",
"formulated as a cycle cover problem with certain
constraints"
],
"avoid": "colloquialisms"
},
"politeness_strategy": {
"style": "neutral objective",
"pattern": "no direct politeness",
"evidence": "not observable from samples",
"avoid": "not observable from samples"
},
"audience_awareness": {
"pronoun": "none (impersonal)",
"pattern": "no personal pronouns",
"evidence": [
"We previously showed (Samples 3-4, rare 1st person
plural)"
],
"avoid": "1st/2nd person extensively"
},
"figurative_language": {
"uses_figurative_language": false,
"pattern": "literal only",
"evidence": "not observable from samples",
"avoid": "not observable from samples"
},
"certainty_and_commitment": {
"stance": "confident with qualifiers",
"strong_verbs": [
"presents",
"proposes",
"show",
"outperforms"
],
"hedge_words": [
"nearly",
"at least"
],
"evidence": [
"accurately classifies at least 70%",
"achieves nearly optimal performance"
],
"avoid": "not observable from samples"
}
},
"formatting_layout": {
"visual_structure": {
"uses_bullets": false,
"uses_numbered_lists": false,
"uses_headers": false,
"pattern": "plain text with -- delimiters in samples",
"evidence": [
"-- SAMPLE 1 --",
"Title: ... Abstract: ..."
]
},
"paragraph_density": {
"style": "high density, single block paragraphs",
"evidence": [
"All abstracts are unbroken paragraphs"
],
"avoid": "not observable from samples"
},
"emphasis_and_capitalization": {
"uses_emphasis": false,
"methods": [
"none"
],
"evidence": [
"standard title case, no italics/bold"
]
}
},
"cross_task_variability": {
"style_adaptation_by_task": {
"pattern": "highly consistent across topics",
"evidence": [
"Formulaic structure and phrasing repeated: 'This/In
this paper... proposed... applied to... results show
...' in all samples"
]
},
"content_style_entanglement": {
"fingerprint_patterns": [
"novel/heuristic proposal",
"network names listed",
"performance metrics at end",
"'This/In this paper' opener"
],
"evidence": [
"novel approach (1), heuristic... proposed (3-4)",
"NSFNET, ARPA2... (3-4)",
"accurately classifies at least 70% (1), nearly
optimal (3-4)"
],
"note": "Samples 3-4 nearly identical, reinforcing
stable style"
}
}References
- [1]Satanjeev Banerjee and Alon Lavie. 2005. METEOR: An automatic metric for MT evaluation with improved correlation with human judgments. In Proceedings of the ACL Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and/or Summarization, pages 65–72.
- [2]Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, and Edouard Grave. 2022. Unsupervised dense information retrieval with contrastive learning. Transactions on Machine Learning Research.arxiv.org/abs/2112.09118
- [3]Di Jin, Zhijing Jin, Zhiting Hu, Olga Vechtomova, and Rada Mihalcea. 2022. Deep learning for text style transfer: A survey. Computational Linguistics, 48(1):155–205.
- [4]Ishita Kumar, Snigdha Viswanathan, Sushrita Yerra, Alireza Salemi, Ryan A. Rossi, Franck Dernoncourt, Hanieh Deilamsalehy, Xiang Chen, Ruiyi Zhang, Shubham Agarwal, Nedim Lipka, Chien Van Nguyen, Thien Huu Nguyen, and Hamed Zamani. 2024. LongLaMP: A benchmark for personalized long-form text generation. arXiv preprint arXiv:2407.11016.arxiv.org/abs/2407.11016
- [5]Cheng Li, Mingyang Zhang, Qiaozhu Mei, Yaqing Wang, Spurthi Amba Hombaiah, Yi Liang, and Michael Bendersky. 2023. Teach LLMs to personalize – an approach inspired by writing education. arXiv preprint arXiv:2308.07968.arxiv.org/abs/2308.07968
- [6]Chin-Yew Lin. 2004. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pages 74–81.
- [7]Yang Liu, Dan Iter, Yichong Xu, Shuohang Wang, Ruochen Xu, and Chenguang Zhu. 2023. G-eval: NLG evaluation using GPT-4 with better human alignment. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 2511–2522.arxiv.org/abs/2303.16634
- [8]Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder, Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh, and Peter Clark. 2023. Self-refine: Iterative refinement with self-feedback. In Advances in Neural Information Processing Systems.arxiv.org/abs/2303.17651
- [9]Sheshera Mysore, Zhuoran Lu, Mengting Wan, Longqi Yang, Bahareh Sarrafzadeh, Steve Menezes, Tina Baghaee, Emmanuel Barajas Gonzalez, Jennifer Neville, and Tara Safavi. 2024. Pearl: Personalizing large language model writing assistants with generation-calibrated retrievers. In Proceedings of the 1st Workshop on Customizable NLP: Progress and Challenges in Customizing NLP for a Domain, Application, Group, or Individual (CustomNLP4U).arxiv.org/abs/2311.09180
- [10]Ajay Patel, Delip Rao, Ansh Kothary, Kathleen McKeown, and Chris Callison-Burch. 2023. Learning interpretable style embeddings via prompting LLMs. In Findings of the Association for Computational Linguistics: EMNLP 2023.
- [11]Emily Reif, Daphne Ippolito, Ann Yuan, Andy Coenen, Chris Callison-Burch, and Jason Wei. 2022. A recipe for arbitrary text style transfer with large language models. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 837–848.
- [12]Chris Richardson, Yao Zhang, Kellen Gillespie, Sudipta Kar, Arshdeep Singh, Zeynab Raeesy, Omar Zia Khan, and Abhinav Sethy. 2023. Integrating summarization and retrieval for enhanced personalization via large language models. arXiv preprint arXiv:2310.20081.arxiv.org/abs/2310.20081
- [13]Alireza Salemi, Surya Kallumadi, and Hamed Zamani. 2024a. Optimization methods for personalizing large language models with retrieval augmentation. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval.arxiv.org/abs/2404.05970
- [14]Alireza Salemi, Sheshera Mysore, Michael Bendersky, and Hamed Zamani. 2024b. LaMP: When large language models meet personalization. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7370–7392.
- [16]Zhehao Zhang, Ryan A. Rossi, Branislav Kveton, Yijia Shao, Diyi Yang, Hamed Zamani, Franck Dernoncourt, et al. 2024. Personalization of large language models: A survey. arXiv preprint arXiv:2411.00027.arxiv.org/abs/2411.00027
- [17]Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric P. Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. 2023. Judging LLM-as-a-judge with MT-bench and chatbot arena. In Advances in Neural Information Processing Systems (Datasets and Benchmarks Track).arxiv.org/abs/2306.05685
Machine contribution statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.


