Papers › Beyond Isolated Words: Diffusion Brush for Handwritten Text-Line Generation

Beyond Isolated Words: Diffusion Brush for Handwritten Text-Line Generation

5 Aug 2025ICCVarXiv:2508.03256added by Syntology

Gang Dai, Yifan Zhang, Yutao Qin, Qiangya Guo, Shuangping Huang, Shuicheng Yan

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

Existing handwritten text generation methods primarily focus on isolated words. However, realistic handwritten text demands attention not only to individual words but also to the relationships between them, such as vertical alignment and horizontal spacing. Therefore, generating entire text lines emerges as a more promising and comprehensive task. However, this task poses significant challenges, including the accurate modeling of complex style patterns encompassing both intra- and inter-word relationships, and maintaining content accuracy across numerous characters. To address these challenges, we propose DiffBrush, a novel diffusion-based model for handwritten text-line generation. Unlike existing methods, DiffBrush excels in both style imitation and content accuracy through two key strategies: (1) content-decoupled style learning, which disentangles style from content to better capture intra-word and inter-word style patterns by using column- and row-wise masking; and (2) multi-scale content learning, which employs line and word discriminators to ensure global coherence and local accuracy of textual content. Extensive experiments show that DiffBrush excels in generating high-quality text lines, particularly in style reproduction and content preservation. Code is available at https://github.com/dailenson/DiffBrush.

PaperPDFCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 20 code samples harvested from 1 repository linked to this paper: 11 ran (of which 8 constructed an object rather than computing a result; 10 with no instrument failure: 0 honoured, 0 violated, 10 with no contract checked; 1 where Syntology's instrument failed) · 9 unverified. Where Syntology's instrument failed: 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 20 samples from 1 repository, 11 ran (10 with no instrument failure; 1 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

dailenson/DiffBrush found in paper text by SyntologySyntology: 20 samples, 11 ran (1 instrument-failed) · 9 unverified report

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

Code Syntology ran Syntology

20 samples harvested: 11 ran (of which 8 constructed an object rather than computing a result; 10 with no instrument failure: 0 honoured, 0 violated, 10 with no contract checked; 1 where Syntology's instrument failed) · 9 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran; the contract check could not run
10ran
9unverified

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

Harvested from dailenson/DiffBrush. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 4 samples that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

dailenson/DiffBrush found in paper text by Syntology 20 samples, 11 ran (1 instrument-failed) · 9 unverified
BasicBlock in 126 papers
census: 6 implementations from 6 papers, 5 distinct outputs on one shared input
models/unet.py ran fingerprinted MIT (permissive) · 3eeb7ad3e51182b6 · report fixture: returned BasicBlock · level recorded 2026-09-22
BasicTransformerBlock in 22 papers models/unet.py ran MIT (permissive) · 560b9460a4ba3c95 · report fixture: returned BasicTransformerBlock · level recorded 2026-09-22
CheckpointFunction in 6 papers models/unet.py ran MIT (permissive) · 513f01ae3d65b92a · report fixture: returned CheckpointFunction · level recorded 2026-09-22
CrossAttention in 85 papers models/unet.py ran MIT (permissive) · aaf73d2a3d84cc5b · report fixture: returned CrossAttention · level recorded 2026-09-22
Downsample in 58 papers models/unet.py ran fingerprinted MIT (permissive) · 763eaf30a7ec2801 · report fixture: returned Downsample · level recorded 2026-09-22
Proxy_Anchor models/unet.py ran MIT (permissive) · ca7d14825009b1a7 · report fixture: returned Proxy_Anchor · level recorded 2026-09-22
QKVAttention in 25 papers models/unet.py ran MIT (permissive) · a527744b4c918a23 · report fixture: signature qkv:Tensor/3/float · returned Tensor · level recorded 2026-09-24
QKVAttentionLegacy in 20 papers models/unet.py ran MIT (permissive) · 7f426ee49ae356e0 · report fixture: signature qkv:Tensor/3/float · returned Tensor · level recorded 2026-09-24
ResNet in 139 papers models/unet.py ran fingerprinted MIT (permissive) · cc61b25b0388b42d · report fixture: returned ResNet · level recorded 2026-09-22
Upsample in 77 papers models/unet.py ran fingerprinted MIT (permissive) · f827e7bcb16c1d75 · report fixture: returned Upsample · level recorded 2026-09-22
timestep_embedding in 79 papers
census: 22 implementations from 27 papers, 6 distinct outputs across 2 buckets, one shared input per bucket this sample: bucket 1 of 2, arg 1: rank 1, kind float, dtype float32
models/unet.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant MIT (permissive) · 1b261a79cdace383 · report fixture: signature timesteps:Tensor/1/float, dim:int/0/int, max_period:int/0/int, repeat_only:bool/0/bool · returned Tensor · level recorded 2026-09-22
AttentionBlock in 69 papers models/unet.py unverified MIT (permissive) · 5e204acfe6ae38ac · report
Mix_TR models/unet.py unverified MIT (permissive) · 4dab4ad094e29ef2 · report
SpatialTransformer in 23 papers models/unet.py unverified MIT (permissive) · a0fe4952c73f4e10 · report
TimestepBlock in 11 papers models/unet.py unverified MIT (permissive) · 6f183b4bfe4ad68f · report
TimestepEmbedSequential in 28 papers models/unet.py unverified MIT (permissive) · 661d22c736946198 · report
UNetModel in 23 papers models/unet.py unverified MIT (permissive) · 3761e7a226193538 · report
checkpoint in 42 papers models/unet.py unverified MIT (permissive) · 06599f1e1f23a978 · report
count_flops_attn models/unet.py unverified MIT (permissive) · d147ee9b766a6934 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for DiffBrush (graph method: DiffBrush). 32 bricks; individually on a fixture: 22 ran (of which 11 constructed an object rather than computing a result; 15 with no instrument failure: 0 honoured, 2 violated, 13 with no contract checked; 7 where Syntology's instrument failed) · 10 unverified. The assembly has not been run end-to-end.

  1. UNetModel entry · level 0 · unverified · 3761e7a226193538
  2. AttentionBlock model · level 0 · unverified · 5e204acfe6ae38ac
  3. Downsample model · level 1 · ran · 763eaf30a7ec2801
  4. Mix_TR helper · level 0 · unverified · 4dab4ad094e29ef2
  5. ResBlock model · level 0 · unverified · 9d2fcaf8335c2210
  6. SpatialTransformer model · level 0 · unverified · a0fe4952c73f4e10
  7. TimestepEmbedSequential model · level 0 · unverified · 661d22c736946198
  8. Upsample model · level 1 · ran · f827e7bcb16c1d75
  9. conv_nd helper · level 0 · unverified · fe4eb545bbb728e0
  10. normalization helper · level 1 · ran · our draft was wrong · daafc1c89511b8be
  11. timestep_embedding helper · level 1 · ran; the contract check could not run (RAISES) · 1b261a79cdace383
  12. zero_module helper · level 1 · ran · our draft was wrong · 129b804760b3115f
  13. QKVAttention helper · level 1 · ran · a527744b4c918a23
  14. QKVAttentionLegacy helper · level 1 · ran · 7f426ee49ae356e0
  15. checkpoint helper · level 0 · unverified · 06599f1e1f23a978
  16. Proxy_Anchor helper · level 1 · ran · ca7d14825009b1a7
  17. TimestepBlock helper · level 0 · unverified · 6f183b4bfe4ad68f
  18. BasicTransformerBlock helper · level 1 · ran · 560b9460a4ba3c95
  19. Normalize helper · level 1 · ran · our draft was wrong · c3a6b977022957cb
  20. GroupNorm32 helper · level 1 · ran · 426c2385fa431d9a
  21. count_flops_attn helper · level 0 · unverified · d147ee9b766a6934
  22. CheckpointFunction helper · level 1 · ran · 513f01ae3d65b92a
  23. binarize helper · level 1 · ran · our draft was wrong · 9501bf152737299c
  24. l2_norm helper · level 1 · ran · our draft was wrong · 45837478fdb29f78
  25. CrossAttention model · level 1 · ran · aaf73d2a3d84cc5b
  26. FeedForward helper · level 1 · ran · 3abfca8077fe9d76
  27. default helper · level 1 · ran · violated contract · 424012cb37b31172
  28. exists helper · level 1 · ran · violated contract · aa5486a3650902d8
  29. max_neg_value helper · level 1 · ran · our draft was wrong · f2fe51a4a5646c6f
  30. GEGLU helper · level 1 · ran · 387673fa5780bf50
  31. BasicBlock helper · level 1 · ran · 3eeb7ad3e51182b6
  32. ResNet helper · level 1 · ran · cc61b25b0388b42d

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2508.03256") returns these assemblies with each brick's role and wiring (how to connect).

Results from the paper

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

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