Papers › Harmonizing Visual Text Comprehension and Generation

Harmonizing Visual Text Comprehension and Generation

23 Jul 2024arXiv:2407.16364archive 2025-07-28

Zhen Zhao, Jingqun Tang, Binghong Wu, Chunhui Lin, Shu Wei, Hao liu, Xin Tan, Zhizhong Zhang, Can Huang, Yuan Xie

In this work, we present TextHarmony, a unified and versatile multimodal generative model proficient in comprehending and generating visual text. Simultaneously generating images and texts typically results in performance degradation due to the inherent inconsistency between vision and language modalities. To overcome this challenge, existing approaches resort to modality-specific data for supervised fine-tuning, necessitating distinct model instances. We propose Slide-LoRA, which dynamically aggregates modality-specific and modality-agnostic LoRA experts, partially decoupling the multimodal generation space. Slide-LoRA harmonizes the generation of vision and language within a singular model instance, thereby facilitating a more unified generative process. Additionally, we develop a high-quality image caption dataset, DetailedTextCaps-100K, synthesized with a sophisticated closed-source MLLM to enhance visual text generation capabilities further. Comprehensive experiments across various benchmarks demonstrate the effectiveness of the proposed approach. Empowered by Slide-LoRA, TextHarmony achieves comparable performance to modality-specific fine-tuning results with only a 2% increase in parameters and shows an average improvement of 2.5% in visual text comprehension tasks and 4.0% in visual text generation tasks. Our work delineates the viability of an integrated approach to multimodal generation within the visual text domain, setting a foundation for subsequent inquiries. Code is available at https://github.com/bytedance/TextHarmony.

PaperPDFCodeCode Syntology ran

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

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

Code

Syntology Ran 11 of 18 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 2 ran · fixture could not drive it; 6 ran with no contract checked.

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

bytedance/textharmony officialmentioned in paperpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

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

1ran · honoured contract
2ran · our draft was wrong
2ran · fixture could not drive it
6ran
7unverified

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

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

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

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

load_jsonl bytedance/TextHarmony/evaluate.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 94e70fb96cf2444b · report
box_iou bytedance/textharmony/TextHarmony/utils/grounding_score.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · ce749f837424dd8c · report
colorEncode bytedance/textharmony/TextHarmony/custom_datasets/ade20k_preparation.py official repository ran Apache-2.0 (permissive) · f3030aefe59749fb · report
extract_answer bytedance/textharmony/TextHarmony/utils/vqa_score.py official repository ran fingerprinted Apache-2.0 (permissive) · c1b06375bdb265f4 · report
grounding_eval bytedance/textharmony/TextHarmony/utils/grounding_score.py official repository ran Apache-2.0 (permissive) · 218b45d457ba5f5b · report
load_annt_data bytedance/TextHarmony/inference.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 6ae320f7c8e2bf52 · report
model_gen bytedance/TextHarmony/evaluate.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · e6cb89e8ea67aeef · report
parse_box bytedance/textharmony/TextHarmony/utils/grounding_score.py official repository ran Apache-2.0 (permissive) · 13e859c753057e62 · report
tensor_to_pil bytedance/textharmony/TextHarmony/utils/clip_sim_score.py official repository ran Apache-2.0 (permissive) · 1af97eee0d5e9a78 · report
unique bytedance/textharmony/TextHarmony/custom_datasets/ade20k_preparation.py official repository ran Apache-2.0 (permissive) · e813a6aeca895c35 · report
update_texts bytedance/TextHarmony/inference.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 6aae1c40e557fe64 · report
calculate_activation_statistics bytedance/textharmony/TextHarmony/utils/fid_score.py official repository unverified Apache-2.0 (permissive) · 58f3cb144de3c6f9 · report
calculate_clip_sim_i2i bytedance/textharmony/TextHarmony/utils/clip_sim_score.py official repository unverified Apache-2.0 (permissive) · a2cc9c29fefca146 · report
calculate_frechet_distance bytedance/textharmony/TextHarmony/utils/fid_score.py official repository unverified Apache-2.0 (permissive) · 0def50a351111624 · report
clip_rerank_generated_images bytedance/textharmony/TextHarmony/utils/clip_sim_score.py official repository unverified Apache-2.0 (permissive) · b6d159b5ffc47aa4 · report
get_activations bytedance/textharmony/TextHarmony/utils/fid_score.py official repository unverified Apache-2.0 (permissive) · 696501a9b5a48e4b · report
vizwiz_vqa_eval bytedance/textharmony/TextHarmony/utils/vqa_score.py official repository unverified Apache-2.0 (permissive) · 521448a8a9392444 · report
vqa_eval bytedance/textharmony/TextHarmony/utils/vqa_score.py official repository unverified Apache-2.0 (permissive) · a80245c5d6d89489 · report

Tasks

Reading ComprehensionText Generationmultimodal generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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