arXiv:2608.27865cs.PFAug 2026

Manuscript Offprint

arXiv:2608.27865

FFSlim: An Efficient and Lightweight Format for Multi-modal Data Storage and Retrieval

Long Yang, Yu Mao, Yuchen Shao, Yumiao Zhao, Yaqi Li, Xuan Liu, Xiaolong Shen, Tao Yu, Gezi Li, Jing Wang, Chengcheng Wan, Liang Shi

Long Yang ID^{ID}, Yu Mao ID^{ID}, Yuchen Shao ID^{ID}, Yumiao Zhao ID^{ID}, Yaqi Li ID^{ID}, Xuan Liu ID^{ID}, Xiaolong Shen ID^{ID}, Tao Yu ID^{ID}, Gezi Li ID^{ID}, Jing Wang ID^{ID}, Chengcheng Wan ID^{ID}, and Liang Shi ID^{ID}, Member, IEEE

Abstract—With the rapid expansion of large-scale media-text corpora, multi-modal datasets increasingly require efficient storage and retrieval. Existing formats such as Files, TDP, and FFRecord work adequately for uni-modal data but expose fundamental limitations in multi-modal settings, including storage redundancy, massive small-file overheads, cache-unfriendly layouts, and heavy index structures. These issues jointly inflate storage and memory usage and make I/O the dominant bottleneck in real training workloads. We present FFSlim, a lightweight format for storing and retrieving multi-modal data. FFSlim improves storage efficiency and loading throughput through three components: a unified file format that removes media duplication and avoids small-file proliferation; an adaptive retrieval mechanism that enables low-overhead pair-level access and accelerates repeated media loading; and a redundancy detection and aggregation module that converts existing datasets into the FFSlim layout. The experimental results demonstrate that FFSlim achieves 2.07×2.07\times and 8.26×8.26\times higher data-loading and write throughput on average than the strongest baseline, with minimal storage and index overhead. Consequently, these underlying I/O accelerations enable FFSlim to reduce end-to-end training time by 5.36%–14.18% across seven diverse multi-modal models.

Index Terms—Multi-modal Dataset, Lightweight Storage, Cache-Friendly Data Format, Adaptive Indexing, I/O Performance Optimization

I. INTRODUCTION

Multi-modal models have demonstrated exceptional performance across a wide spectrum of artificial intelligence tasks [1] and are increasingly deployed in diverse real-world application scenarios [2]. However, recent profiling studies reveal that data I/O has emerged as a severe bottleneck in multi-modal training [3]. This bottleneck fundamentally stems from a widening hardware performance gap: AI accelerators (e.g., GPUs, ASICs) have advanced at a much faster pace than underlying storage devices [4]. This physical I/O disparity is further compounded by modern training pipelines, which increasingly rely on massive, heterogeneous multimodal datasets [5]. For instance, WebLI [6], the largest open-source image-text dataset, contains over 100 billion pairs. Furthermore, training frameworks rigorously reshuffle these massive datasets at the beginning of every epoch to ensure statistical randomness, severely disrupting spatial locality and exacerbating I/O inefficiency [7].

Several methods have been proposed to address this problem. The Files format [8] stores each sample's media and text as separate files organized by directory hierarchy and naming rules, as shown in Figure 1. During training, indices are computed on the fly to load samples when needed. This design is simple and works reasonably well for uni-modal

Figure

Fig. 1: A storage example of an image-text multi-modal dataset. Naive multi-modal data organization suffers from several fundamental limitations.

datasets. However, on multi-modal datasets, it suffers from two major issues: high storage usage and poor I/O performance. These limitations come from storage redundancy, a very large number of small files, and a data layout that does not work well with common caching mechanisms. Recent work explores two directions. TDP [9] separates modalities to reduce redundancy, cut down small files, and provide a more cache-friendly layout. This improves storage usage and I/O efficiency, but it still leaves many small files unresolved and introduces heavy indexing with high memory cost. FFRecord [10] packs the dataset into a single large file, which removes the small-file issue and improves I/O performance. However, it ignores storage redundancy and keeps a cache-unfriendly layout, resulting in high storage usage and limited loading speed.

Multi-modal data naturally follow a one-to-many structure rather than a one-to-one pattern. This structure is ubiquitous across image-text, video-text, and audio-text datasets (see Table I), where a single media object is typically paired with multiple text descriptions, captions, questions, or narrations. This one-to-many structure arises from several inherent properties of multi-modal data. Real-world media are inherently multi-faceted, and no single text description can fully capture their semantic richness. This drives practitioners to collect multiple linguistic views, a process that is far more efficient than acquiring new media because text annotations are inexpensive and scalable. These diverse aligned texts, in turn, provide richer cross-modal supervision, enabling models to approximate human-like multi-modal cognition and learn more robust associations. However, existing storage systems such as TDP and FFRecord do not incorporate this structural property into their design. They continue to manage data at the media-text-pair granularity, implicitly assuming a one-to-one structure. As a result, they suffer significant inefficiencies and performance degradation on modern multi-modal workloads.

TABLE I: Statistics of representative multi-modal datasets. In most multi-modal datasets, a single media object is associated with multiple text descriptions, and the media objects are typically far larger than the text.

DatasetModalityQuantityQuantity Avg RatioAvg SizeAvg Size Ratio
MediaTextMediaText
Flickr30k [11]image-text31K155K1:5.0136KB63B2207:1
F30-E [12]image-text31K155K1:5.0136KB330B421:1
MSCOCO [13]image-text118K590K1:5.0159KB52B3140:1
VQA2 [14]image-text82K443K1:5.4153KB826B190:1
GQA [15]image-text69K943K1:13.6138KB125B1133:1
MSRVTT [16]video-text10K200K1:20.0656KB48B14003:1
Clotho [17]audio-text20K100K1:5.01933KB63B31415:1

that rely heavily on one-to-many relationships.

To address these issues, we first conduct a comprehensive evaluation of Files, TDP, and FFRecord on 7 representative multi-modal datasets and identify a common root cause. All three formats assume a one-to-one data structure, while real multi-modal datasets typically follow a one-to-many structure. This mismatch leads to redundant storage, excessive small files, heavy indexing overhead, and poor cache behavior.

Based on these observations, we design FFSlim, a lightweight and efficient storage format that minimizes storage and memory usage while improving retrieval and caching performance. It manages data at the Media2Texts granularity, storing each media once together with all its associated texts. This design removes cross-modal redundancy, avoids repeated storage, and enables cache reuse of the media across samples within an epoch. Retrieval and caching are also performed at the Media2Texts level. When a media-text pair is requested, the full object is loaded, the target pair is returned, and the remaining pairs are cached for later access. Since media are much larger than texts, the small amount of extra reading has negligible cost, and caching brings consistent performance gains. FFSlim further organizes the entire dataset in a single large file to eliminate the massive number of small files and adopts an adaptive sample-level indexing scheme that selects simple and efficient index structures based on dataset characteristics. This avoids the overhead of the complex, one-size-fits-all indexing used in prior formats. In addition, FFSlim supports one-click conversion from existing formats.

Through these designs, FFSlim surpass TDP and FFRecord on four aspects: storage redundancy, large number of small files, cache-unfriendly data layouts, and expensive data indexing. It provides a high-performance multi-modal storage format that has the potential to serve as a new community standard.

We rigorously evaluate FFSlim against three widely used storage baselines—Files, FFRecord, and TDP—across several diverse media-text multi-modal datasets. Extensive microbenchmarks demonstrate that FFSlim significantly outperforms existing formats. Specifically, it achieves an average speedup of 2.07×2.07\times in data-loading throughput and 8.26×8.26\times in write throughput. Crucially, FFSlim delivers these substantial I/O improvements while strictly maintaining the lowest storage overhead and a minimal index memory footprint. Furthermore, to quantify the macroscopic benefits, we conduct comprehensive evaluations across seven diverse multi-modal models. By effectively eliminating I/O bottlenecks, FFSlim successfully translates its micro-level data access efficiency into tangible end-to-end accelerations, reducing the total training time by 5.36%–14.18% compared to the best-performing baseline.

In summary, this paper offers the following contributions:

  • Comprehensive analysis of existing formats. We evaluate 3 existing data formats across 7 multi-modal datasets and reveal that they all suffer from the same root cause: assuming a one-to-one data structure, while real-world multi-modal datasets follow a one-to-many pattern.

  • An efficient and lightweight storage format. We propose FFSlim, which stores, manages and retrieves multi-modal data at the Media2Texts granularity, and employs an adaptive lightweight indexing scheme tailored to dataset characteristics to enable efficient, sample-level (media-text pair) random access.

  • Substantial Performance and Resource Efficiency Gains. Extensive evaluation demonstrates that FFSlim significantly enhances both data loading and writing throughput while strictly minimizing storage and index memory overhead.

References (39)