Publications by Carmine Zaccagnino

Explore our research publications: papers, articles, and conference proceedings from AImageLab.

Tip: type @ to pick an author and # to pick a keyword.

Active filters (Clear): Author: Carmine Zaccagnino

A Text Recognition Dataset from Sahidic Coptic Ancient Manuscripts

Authors: Quattrini, Fabio; Zaccagnino, Carmine; Bianchi, Costanza; Cascianelli, Silvia; Cucchiara, Rita

In this work, we target Handwritten Text Recognition (HTR) in low-resource scenarios, which arise from underrepresented languages, rare scripts, and … (Read full abstract)

In this work, we target Handwritten Text Recognition (HTR) in low-resource scenarios, which arise from underrepresented languages, rare scripts, and degraded visual conditions typical of historical documents. We introduce SCAM (Sahidic Coptic Ancient Manuscripts), a new line-level dataset built from digitized ancient manuscripts written in the extinct Sahidic Coptic dialect. The dataset reflects a realistic and challenging setting, as it combines heterogeneous acquisition conditions across libraries with typical manuscript degradations such as ink fading, bleed-through, and material deterioration. In addition to visual complexity, SCAM poses significant linguistic challenges due to the scarcity of resources for Sahidic Coptic, its uncommon alphabet, and dialect-specific diacritics. To support research in low-resource HTR, we benchmark several state-of-the-art approaches based on different paradigms, highlighting their limitations and strengths in this setting. Our results underline the gap between current HTR performance on well-resourced modern scripts and historically grounded, low-resource scenarios, thus providing a reference point for future developments.

2026 Relazione in Atti di Convegno

A Workflow for Cost- and Time-Aware Refueling Itinerary Optimization

Authors: Savarese, Marco; Zaccagnino, Carmine; De Blasi, Antonio; Salici, Giacomo; Cascianelli, Silvia; Vezzani, Roberto; Grazia, Carlo Augusto

The complete workflow of the RI-PIENO framework is presented, a system for refueling itinerary optimization that extends the original PIENO … (Read full abstract)

The complete workflow of the RI-PIENO framework is presented, a system for refueling itinerary optimization that extends the original PIENO design. While prior work introduced the conceptual modules of RI-PIENO, their operational pipeline was not described in detail. This study makes the workflow explicit, covering the end-to-end process from CAN Bus data acquisition and stop detection to the construction of daily trip graphs, refueling optimization, and mileage prediction. By clarifying the sequence of operations, the contribution provides a reproducible and extensible foundation for future research and development.

2026 Relazione in Atti di Convegno

Autoregressive Styled Text Image Generation, but Make it Reliable

Authors: Zaccagnino, Carmine; Quattrini, Fabio; Pippi, Vittorio; Cascianelli, Silvia; Tonioni, Alessio; Cucchiara, Rita

Generating faithful and readable styled text images (especially for Styled Handwritten Text generation-HTG) is an open problem with several possible … (Read full abstract)

Generating faithful and readable styled text images (especially for Styled Handwritten Text generation-HTG) is an open problem with several possible applications across graphic design, document understanding, and image editing. A lot of research effort in this task is dedicated to developing strategies that reproduce the stylistic characteristics of a given writer, with promising results in terms of style fidelity and generalization achieved by the recently proposed Autoregressive Transformer paradigm for HTG. However, this method requires additional inputs, lacks a proper stop mechanism, and might end up in repetition loops, generating visual artifacts. In this work, we rethink the autoregressive formulation by framing HTG as a multimodal prompt-conditioned generation task, and tackle the content controllability issues by introducing special textual input tokens for better alignment with the visual ones. Moreover, we devise a Classifier-Free-Guidance-based strategy for our autoregressive model. Through extensive experimental validation, we demonstrate that our approach, dubbed Eruku, compared to previous solutions requires fewer inputs, generalizes better to unseen styles, and follows more faithfully the textual prompt, improving content adherence.

2026 Relazione in Atti di Convegno

Editing Everything Everywhere All at Once

Authors: Quattrini, Fabio; Zaccagnino, Carmine; Simsar, Enis; Tintoré Gazulla, Marta; Cucchiara, Rita; Tonioni, Alessio; Cascianelli, Silvia

Published in: LECTURE NOTES IN COMPUTER SCIENCE

Editing multiple elements of an image in a single forward pass is a practical alternative to multi-turn image manipulation, offering … (Read full abstract)

Editing multiple elements of an image in a single forward pass is a practical alternative to multi-turn image manipulation, offering improved efficiency and potentially better harmonization. However, when several instructions target different regions, semantic interference often leads to attribute leakage and poor edit disentanglement, especially as the number of edits increases. In this work, we propose MICE (Multi-Instance Concurrent Editing), a training-free strategy for scalable multi-instance image editing with Multimodal Diffusion Transformers. MICE modifies the additive bias of joint attention to regulate interactions between instance-specific edit instructions, latent, and context tokens identified via user-provided segmentation masks. Specifically, MICE allows intra-instance attention, penalizes interactions between neighboring region tokens, and suppresses unrelated cross-instance attention. As a result, our method enforces attribute binding while preserving global visual consistency. We evaluate MICE on LoMOE-Bench and introduce MICE-Bench, a more challenging benchmark with an average of 8.5 concurrent edits per image. The experiments demonstrate that our approach outperforms strong baselines and recent competitors in terms of visual quality preservation and faithfulness to the editing instructions.

2026 Relazione in Atti di Convegno

Shifting the Breaking Point of Flow Matching for Multi-Instance Editing

Authors: Zaccagnino, Carmine; Quattrini, Fabio; Simsar, Enis; Tintoré Gazulla, Marta; Cucchiara, Rita; Tonioni, Alessio; Cascianelli, Silvia

Published in: PROCEEDINGS OF MACHINE LEARNING RESEARCH

Flow matching models have recently emerged as an efficient alternative to diffusion, especially for text-guided image generation and editing, offering … (Read full abstract)

Flow matching models have recently emerged as an efficient alternative to diffusion, especially for text-guided image generation and editing, offering faster inference through continuous-time dynamics. However, existing flow-based editors predominantly support global or single-instruction edits and struggle with multi-instance scenarios, where multiple parts of a reference input must be edited independently without semantic interference. We identify this limitation as a consequence of globally conditioned velocity fields and joint attention mechanisms, which entangle concurrent edits. To address this issue, we introduce Instance-Disentangled Attention, a mechanism that partitions joint attention operations, enforcing binding between instance-specific textual instructions and spatial regions during velocity field estimation. We evaluate our approach on both natural image editing and a newly introduced benchmark of text-dense infographics with region-level editing instructions. Experimental results demonstrate that our approach promotes edit disentanglement and locality while preserving global output coherence, enabling single-pass, instance-level editing.

2026 Relazione in Atti di Convegno

RI-PIENO - Revised and Improved Petrol-Filling Itinerary Estimation aNd Optimization

Authors: Savarese, Marco; De Blasi, Antonio; Zaccagnino, Carmine; Salici, Giacomo; Cascianelli, Silvia; Vezzani, Roberto; Grazia, Carlo Augusto

Efficient energy provisioning is a fundamental requirement for modern transportation systems, making refueling path optimization a critical challenge. Existing solutions … (Read full abstract)

Efficient energy provisioning is a fundamental requirement for modern transportation systems, making refueling path optimization a critical challenge. Existing solutions often focus either on inter-vehicle communication or intravehicle monitoring, leveraging Intelligent Transportation Systems, Digital Twins, and Software-Defined Internet of Vehicles with Cloud/Fog/Edge infrastructures. However, integrated frameworks that adapt dynamically to driver mobility patterns are still underdeveloped. Building on our previous PIENO framework, we present RI-PIENO (Revised and Improved Petrolfilling Itinerary Estimation aNd Optimization), a system that combines intra-vehicle sensor data with external geospatial and fuel price information, processed via IoT-enabled Cloud/Fog services. RI-PIENO models refueling as a dynamic, time-evolving directed acyclic graph that reflects both habitual daily trips and real-time vehicular inputs, transforming the system from a static recommendation tool into a continuously adaptive decision engine. We validate RI-PIENO in a daily-commute use case through realistic multi-driver, multi-week simulations, showing that it achieves significant cost savings and more efficient routing compared to previous approaches. The framework is designed to leverage emerging roadside infrastructure and V2X communication, supporting scalable deployment within next-generation IoT and vehicular networking ecosystems.

2025 Relazione in Atti di Convegno

μgat: Improving Single-Page Document Parsing by Providing Multi-page Context

Authors: Quattrini, Fabio; Zaccagnino, Carmine; Cascianelli, Silvia; Righi, Laura; Cucchiara, Rita

Published in: LECTURE NOTES IN COMPUTER SCIENCE

Regesta are catalogs of summaries of other documents and, in some cases, are the only source of information about the … (Read full abstract)

Regesta are catalogs of summaries of other documents and, in some cases, are the only source of information about the content of such full-length documents. For this reason, they are of great interest to scholars in many social and humanities fields. In this work, we focus on Regesta Pontificum Romanum, a large collection of papal registers. Regesta are visually rich documents, where the layout is as important as the text content to convey the contained information through the structure, and are inherently multi-page documents. Among Digital Humanities techniques that can help scholars efficiently exploit regesta and other documental sources in the form of scanned documents, Document Parsing has emerged as a task to process document images and convert them into machine-readable structured representations, usually markup language. However, current models focus on scientific and business documents, and most of them consider only single-paged documents. To overcome this limitation, in this work, we propose μgat, an extension of the recently proposed Document parsing Nougat architecture, which can handle elements spanning over the single page limits. Specifically, we adapt Nougat to process a larger, multi-page context, consisting of the previous and the following page, while parsing the current page. Experimental results, both qualitative and quantitative, demonstrate the effectiveness of our proposed approach also in the case of the challenging Regesta Pontificum Romanorum.

2025 Relazione in Atti di Convegno

P. I. E. N. O.—Petrol-Filling Itinerary Estimation aNd Optimization

Authors: Savarese, M.; De Blasi, A.; Zaccagnino, C.; Grazia, C. A.

Published in: IEEE ACCESS

The recent rise of intelligent transportation systems (ITS) has challenged the integration between different data sources. Reaching the goal of … (Read full abstract)

The recent rise of intelligent transportation systems (ITS) has challenged the integration between different data sources. Reaching the goal of sustainable mobility requires properly managing and merging information coming from the vehicle (intra-) and information coming off the vehicle (inter-). In this paper, we provide a proof-of-concept leveraging on data merging between intra- and inter-networking presenting our framework: Petrol-Filling Itinerary Estimation aNd Optimization (PIENO). PIENO is a system that not only automates the search for the best fuel station but also paves the road to significant reductions in fuel consumption, making eco-driving a practical reality from a user perspective. The PIENO framework is designed to be fuel-type independent, ensuring its adaptability to different vehicles and conditions. It achieves this by merging data from the vehicle through a CAN Access Module (CAM) and data outside the vehicle through a mobile application connected to the internet. Different domains are stressed to reach the goal: microcontroller and OEM to retrieve the fuel level from the car, national authorities to retrieve the daily fuel price, AI models to predict the price trend for the next days, and algorithms to compute the best fuel station and the best time to fill. The modularity of PIENO allows it to adapt to different OEMs by modifying the intra-network interface to properly collect the fuel level, as well as to adapt to different markets and countries, retrieving the station’s locations and fuel prices by modifying the inter-network interface.

2024 Articolo su rivista