Hugging Face Papers ↗ · 2026-11-20
Explicit Style Extraction for Personalized Long-Form Text Generation
Media reports Hugging Face Papers Source language: Chinese
Introduces StylePrism and SP-Refine, explicitly extracting user style and revising drafts; achieves superior results on LongLaMP, beating baselines in 25 of 27 metrics.
Full text
Explicit Style Extraction for Personalized Long-Form Text Generation
Jenitha Reddy Patel Affiliation: University of Chicago Email: jenithapatel@uchicago.edu Sameeksha Kini Affiliation: University of Chicago Amulya Rayasam Affiliation: University of Chicago Anisa Dye Affiliation: University of Chicago Abhinav Sharma Affiliation: University of Massachusetts Amherst Sai Karthik Navuluru Affiliation: University of Texas at Dallas Bo Ni Affiliation: Vanderbilt University Li Li Affiliation: University of Southern California Junda Wu Affiliation: Adobe Research Affiliation: UCSD Tong Yu Affiliation: Adobe Research Nedim Lipka Affiliation: Adobe Research Xiaolei Huang Affiliation: University of Missouri Affiliation: University of Memphis Tyler Derr Affiliation: Vanderbilt University Yue Zhao Affiliation: University of Southern California Zhengzhong Tu Affiliation: Texas A&M University Yu Wang Affiliation: University of Georgia Affiliation: University of Oregon Hongjie Chen Affiliation: Dolby Laboratories Thien Huu Nguyen Affiliation: University of Oregon Affiliation: Amazon Nesreen K. Ahmed Affiliation: Cisco Franck Dernoncourt Affiliation: Adobe Research Ryan A. Rossi Affiliation: Zillow
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.
1 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 (Salemi et al., 2024b; Zhang et al., 2024), and the LongLaMP benchmark (Kumar et al., 2024) 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 (Salemi et al., 2024b; Kumar et al., 2024; Salemi et al., 2024a). 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).
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:
•
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.
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 F.
Lexical Choice
∙\bullet L1 Word Frequency & Preference -Detects idiosyncrasies and recurring words
∙\bullet L2 Stopword Avoidance / Usage -Does user avoid starting with “The”, “This”, etc.
∙\bullet L3 Domain-Specific Lexicon -Detects technical or field-specific vocabulary
∙\bullet L4 Intensifier & Modifier Use -Detects degree of assertiveness or emphasis
∙\bullet L5 Hedging Behavior -Detects cautious vs. assertive phrasing patterns
Syntactic Patterns
∙\bullet S1 Sentence Length/Complexity -Avg. sentence length and clause depth
∙\bullet S2 Passive vs. Active Voice -Ratio of passive to active constructions
∙\bullet S3 Coordination vs. Subordination -Preference for connecting or nesting ideas
∙\bullet S4 Punctuation Habits -Frequency of commas, parentheses, semicolons, etc.
∙\bullet S5 Enumerative Style -Frequency of lists or structured enumerations
Pragmatic & Tone
∙\bullet P1 Formality Level -Degree of formality or conversational tone.
∙\bullet P2 Politeness Strategy -Softening vs. direct tone and mitigation strategies.
∙\bullet P3 Audience Awareness -Inclusive or direct reference to reader.
∙\bullet P4 Figurative Language -Use of analogy, metaphor, or idiom.
∙\bullet P5 Certainty & Commitment -Confidence conveyed via modal verbs or stance.
Structural Organization
∙\bullet O1 Paragraph Structure -Average paragraph length and internal cohesion.
∙\bullet O2 Rhetorical Role Distribution -Freq. of problem, contribution, & implication
∙\bullet O3 Argument Framing -Logical order and transition structure.
∙\bullet O4 Section Naming Style -Naming consistency and section organization.
Discourse Markers
∙\bullet D1 Transitional Phrases -Recurrent connective or bridging expressions
∙\bullet D2 Opening Moves -Typical ways of beginning paragraphs or sections
∙\bullet D3 Closing Moves -How arguments or sections conclude
∙\bullet D4 Reference Density -Frequency of citations or attributions
Formatting & Layout
∙\bullet F1 Visual Structure -Use of bullets, numbering, or headings.
∙\bullet F2 Paragraph Density -Consistency of idea segmentation.
∙\bullet F3 Emphasis & Capitalization -Use of visual emphasis in text.
Cross-Task Variability
∙\bullet X1 Style Adaptation by Task -How writing style changes across task types.
∙\bullet X2 Content–Style Entanglement -Consistency of stylistic cues across content.
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 B.
2 Related Work
Personalized text generation.
LaMP (Salemi et al., 2024b) introduced a benchmark for personalizing LLM outputs with retrieved user history, and LongLaMP (Kumar et al., 2024) extended it to long-form generation. Most methods follow the retrieval-augmented recipe and improve the retriever (Salemi et al., 2024a; Mysore et al., 2024), summarize the user’s history (Richardson et al., 2023), or decompose personalization into multiple stages (Li et al., 2023); see Zhang et al. (2024) 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., 2022), and in style transfer (Jin et al., 2022). LLMs can transfer style from instructions and a few examples (Reif et al., 2022) and describe stylistic attributes in natural language (Patel et al., 2023). 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., 2023), and LLM judges are widely used to evaluate generation (Zheng et al., 2023; Liu et al., 2023), 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.
3 Method
3.1 Task Setup
Each test instance consists of a user uu with a history Pu={d1,…,dm}P_{u}=\{d_{1},\dots,d_{m}\} of previously written documents, a task input xx (e.g., a paper title and key items) of task type cc, and a reference output yy written by uu. A generator LLM MM must produce y^\hat{y} that is faithful to xx and written in uu’s style. Following LongLaMP, all personalized methods first retrieve the kk entries of PuP_{u} most relevant to xx, S=R(x,Pu,k)S=R(x,P_{u},k). The retriever RR 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., 2022) by mean-pooling its token embeddings; and the kk entries with the highest dot-product score are returned. We use k=4k=4, and all methods use the same SS. The LongLaMP baseline then generates y^=M(ϕLL(S,x))\hat{y}=M(\phi_{\text{LL}}(S,x)), where the template ϕLL\phi_{\text{LL}} joins the samples and appends the task input with an instruction such as “Following the given patterns”.
3.2 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 Σ\Sigma for the set of 28 aspects; descriptions and examples are in Appendix B.
3.3 SP-Refine
SP-Refine (Algorithm 1; full prompts in Appendix G) has four steps, each one call to the generator MM, and never sees the reference. Steps 1 and 2 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.
1. Extract style.
The prompt ϕext\phi_{\text{ext}} casts MM as a computational linguist analyzing the kk 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. MM returns the profile π\pi, a JSON object with one entry per aspect σ∈Σ\sigma\in\Sigma. 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 H).
2. Draft.
The prompt ϕdraft\phi_{\text{draft}} shows the numbered samples and the task, and asks MM 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, y0y_{0}. This step does not see π\pi.
3. Revise and score.
The prompt ϕrev\phi_{\text{rev}} casts MM as a writing evaluator and ghostwriter. It receives SS, π\pi, a task reminder (“complete this task and only this task”), and y0y_{0}. MM first revises y0y_{0} using π\pi and SS as style anchors, applying every applicable profile field (sentence length, voice, hedging, transitional phrases, paragraph density, formatting) without altering or adding facts, giving y1y_{1}. It then scores y1y_{1} against the samples from 1 to 5 on five style criteria AA = {Lexical, Syntactic, Tone & Formality, Discourse & Structure, Formatting}, each with anchored extremes, and names its weakest criteria and specific issues; we write a1∈{1,…,5}5a_{1}\in\{1,\dots,5\}^{5} for the scores.
4. Targeted revision.
The prompt ϕtgt\phi_{\text{tgt}} receives SS, π\pi, the task reminder, y1y_{1}, and a1a_{1} with the named issues. MM revises y1y_{1} 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 y^=y2\hat{y}=y_{2}.
Algorithm 1 SP-Refine. Inputs: task input xx of type cc; user history PuP_{u}; retriever RR and number of samples kk; generator LLM MM; StylePrism schema Σ\Sigma (28 aspects). ϕ⋅\phi_{\cdot} are prompt templates (Appendix G); M(⋅)M(\cdot) is one LLM call. π\pi maps each aspect σ\sigma to its pattern, quoted evidence EσE_{\sigma}, and avoid field; AA is the set of five style criteria; at∈{1,…,5}|A|a_{t}\in\{1,\dots,5\}^{|A|} are MM’s scores of draft yty_{t} against SS. 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).
1: x,c,Pu,R,k,M,Σx,c,P_{u},R,k,M,\Sigma
2: personalized output y^\hat{y}
3: S←R(x,Pu,k)S\leftarrow R(x,P_{u},k) ⊳\triangleright retrieve kk samples
4: π←ExtractStyle(S,Σ)\pi\leftarrow\textsc{ExtractStyle}(S,\Sigma) ⊳\triangleright step 1
5: y0←M(ϕdraft(S,c,x))y_{0}\leftarrow M(\phi_{\text{draft}}(S,c,x)) ⊳\triangleright step 2
6: (y1,a1)←Revise(S,π,c,x,y0)(y_{1},a_{1})\leftarrow\textsc{Revise}(S,\pi,c,x,y_{0}) ⊳\triangleright step 3
7: y2←TargetedRevise(S,π,c,x,y1,a1)y_{2}\leftarrow\textsc{TargetedRevise}(S,\pi,c,x,y_{1},a_{1}) ⊳\triangleright step 4
8: return y^←y2\hat{y}\leftarrow y_{2}
9:
10: function ExtractStyle(S,ΣS,\Sigma)
11: return π={σ↦(patternσ,Eσ,avoidσ)}σ∈Σ←M(ϕext(S,Σ))\pi=\{\sigma\mapsto(\text{pattern}_{\sigma},E_{\sigma},\text{avoid}_{\sigma})\}_{\sigma\in\Sigma}\leftarrow M(\phi_{\text{ext}}(S,\Sigma))
12: function Revise(S,π,c,x,y0S,\pi,c,x,y_{0}) ⊳\triangleright one call, ϕrev\phi_{\text{rev}}
13: y1←y0y_{1}\leftarrow y_{0} rewritten to match every applicable field of π\pi, anchored on SS; facts of xx unchanged
14: a1←a_{1}\leftarrow scores of y1y_{1} against SS on each criterion in AA, with the weakest criteria and specific issues
15: return (y1,a1)(y_{1},a_{1})
16: function TargetedRevise(S,π,c,x,y1,a1S,\pi,c,x,y_{1},a_{1}) ⊳\triangleright one call, ϕtgt\phi_{\text{tgt}}
17: fix {j:a1,j≤2}\{j:a_{1,j}\leq 2\}, then improve {j:a1,j=3}\{j:a_{1,j}=3\}; keep {j:a1,j≥4}\{j:a_{1,j}\geq 4\}
18: return revised draft y2y_{2} ⊳\triangleright rescores; scores unused
4 Experimental Setup
Data.
We use the three public long-form tasks of LongLaMP (Kumar et al., 2024) in the user setting, in which test users do not appear in training: abstract generation (title and key items →\rightarrow abstract), review writing (rating, product description, and summary →\rightarrow review), and topic writing (Reddit post summary →\rightarrow post). We evaluate on the full test sets: 4,560 abstract, 1,822 review, and 2,452 topic instances (Appendix A). 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 kk retrieved entries with LongLaMP’s own prompt templates (Kumar et al., 2024) and appends the 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 kk entries drawn at random from the user’s own history instead of the kk 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 G.
Reference-based metrics.
As LongLaMP does, we report ROUGE-1, ROUGE-L (Lin, 2004), and METEOR (Banerjee and Lavie, 2005), 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.
5 Results
Abstract Generation Review Writing Topic Writing
Method 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 C); ablations are in Table 3.
Abstract Review Topic
Method 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 F.
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).
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.2). 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.
6 What Does Style Extraction Capture?
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 ¬\neg 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).
Aggregate scores do not show whether the extracted profile describes the user. Because π\pi is built from the kk 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); Figures 7 and 8 (Appendix D) do the same for a review and a Reddit post.
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 fractional 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.
7 Ablations
Figure 4: SP-Refine and its ablations. MM is the generator LLM; all methods receive the same retrieved samples SS and task input xx (and the task type cc, omitted). SP-Refine makes style extraction an explicit function: step 1 fills the StylePrism schema Σ\Sigma with the user’s patterns, quoted evidence, and things to avoid, giving the profile π\pi; step 2 drafts y0y_{0} from SS; step 3 revises the draft against π\pi and SS and scores the revision y1y_{1} on five style criteria (a1a_{1}); step 4 fixes the lowest-scored criteria, giving y2y_{2}. SP-Profile keeps only step 1 and then writes from π\pi without SS; SP-Infer keeps only step 2.
Abstract Generation Review Writing Topic Writing
Variant R-L MET SF TQ R-L MET SF TQ R-L MET SF 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.
7.1 Variants
Each ablation removes part of SP-Refine (Figure 4).
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 G). 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.
SP-Profile: the profile replaces the samples.
SP-Profile is step 1 of SP-Refine followed by an apply call that receives only π\pi and xx. In one call, the apply prompt asks MM to draft while conforming to every applicable profile field, then to revise silently against it (e.g., sentence length within ±\pm20% of the profile’s value, every avoid item absent), without inventing facts. It tests whether a profile can stand in for the samples.
7.2 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 F) 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 π\pi 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 π\pi 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).
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 Coverage 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.
7.3 Oracles and Reference-Free Controls
To bound what refinement can achieve, we evaluate variants that use information unavailable at inference time (Table 7, Appendix E). 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 (y0y_{0}, y1y_{1}, y2y_{2}), 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).
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.
SP-Refine’s intermediate drafts are not much better.
Choosing the best of y0y_{0}, y1y_{1}, and y2y_{2} 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.
8 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. (2024). ROUGE and METEOR measure overlap with a single reference and capture 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 k=4k=4; other retrievers, values of kk, 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 (Kumar et al., 2024) 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.
References
Banerjee and Lavie (2005) S. Banerjee and A. Lavie 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, pp. 65–72. Cited by: §4.
Izacard et al. (2022) G. Izacard, M. Caron, L. Hosseini, S. Riedel, P. Bojanowski, A. Joulin, and E. Grave Unsupervised dense information retrieval with contrastive learning. Transactions on Machine Learning Research. Cited by: §3.1.
Jin et al. (2022) D. Jin, Z. Jin, Z. Hu, O. Vechtomova, and R. Mihalcea Deep learning for text style transfer: a survey. Computational Linguistics 48 (1), pp. 155–205. Cited by: §2.
Kumar et al. (2024) I. Kumar, S. Viswanathan, S. Yerra, A. Salemi, R. A. Rossi, F. Dernoncourt, H. Deilamsalehy, X. Chen, R. Zhang, S. Agarwal, N. Lipka, C. Van Nguyen, T. H. Nguyen, and H. Zamani LongLaMP: a benchmark for personalized long-form text generation. arXiv preprint arXiv:2407.11016. Cited by: Table 4, §1, §1, §2, §4, §4, Limitations, Ethics Statement.
Li et al. (2023) C. Li, M. Zhang, Q. Mei, Y. Wang, S. A. Hombaiah, Y. Liang, and M. Bendersky Teach LLMs to personalize – an approach inspired by writing education. arXiv preprint arXiv:2308.07968. Cited by: §2.
Lin (2004) C. Lin ROUGE: a package for automatic evaluation of summaries. In Text Summarization Branches Out, pp. 74–81. Cited by: §4.
Liu et al. (2023) Y. Liu, D. Iter, Y. Xu, S. Wang, R. Xu, and C. Zhu G-eval: NLG evaluation using GPT-4 with better human alignment. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 2511–2522. Cited by: §2.
Madaan et al. (2023) A. Madaan, N. Tandon, P. Gupta, S. Hallinan, L. Gao, S. Wiegreffe, U. Alon, N. Dziri, S. Prabhumoye, Y. Yang, S. Gupta, B. P. Majumder, K. Hermann, S. Welleck, A. Yazdanbakhsh, and P. Clark Self-refine: iterative refinement with self-feedback. In Advances in Neural Information Processing Systems, Cited by: §2.
Mysore et al. (2024) S. Mysore, Z. Lu, M. Wan, L. Yang, B. Sarrafzadeh, S. Menezes, T. Baghaee, E. B. Gonzalez, J. Neville, and T. Safavi 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), Cited by: §2.
Panickssery et al. (2024) A. Panickssery, S. R. Bowman, and S. Feng LLM evaluators recognize and favor their own generations. In Advances in Neural Information Processing Systems, Cited by: §2, §4.
Patel et al. (2023) A. Patel, D. Rao, A. Kothary, K. McKeown, and C. Callison-Burch Learning interpretable style embeddings via prompting LLMs. In Findings of the Association for Computational Linguistics: EMNLP 2023, Cited by: §2.
Reif et al. (2022) E. Reif, D. Ippolito, A. Yuan, A. Coenen, C. Callison-Burch, and J. Wei 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), pp. 837–848. Cited by: §2.
Richardson et al. (2023) C. Richardson, Y. Zhang, K. Gillespie, S. Kar, A. Singh, Z. Raeesy, O. Z. Khan, and A. Sethy Integrating summarization and retrieval for enhanced personalization via large language models. arXiv preprint arXiv:2310.20081. Cited by: §2.
Salemi et al. (2024a) A. Salemi, S. Kallumadi, and H. Zamani Optimization methods for personalizing large language models through retrieval augmentation. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development
Images from the source
