A Byte-based GPT-2 Model for Bit-flip JPEG Bitstream Restoration
In this paper, we investigate the application of large language models (LLMs) for the recovery of corrupted bitstreams, specifically focusing on JPEG image data. We propose a byte-based GPT-2 model that directly processes byte sequences and predicts the subsequent byte, enabling its application to JPEG bitstream recovery. This architecture allows the model to capture the relationships between consecutive byte data within the bitstream of a JPEG image, such that the model can restore the bit-flip errors due to the damaged storage and malicious attack. We evaluate the model’s performance on bit-flip JPEG datasets with varying bit error rates (BERs). The experimental results demonstrate the model’s ability to implicitly learn patterns in the bitstream and correct erroneous bytes, showcasing the potential of LLMs in binary processing tasks. Our findings highlight the promise of byte-based LLMs in addressing data corruption issues and open up new avenues for research in this domain.
Authors
- Haoran Sun (ORCID: https://orcid.org/0009-0007-7390-2733)
- Hao Qin (ORCID: https://orcid.org/0000-0002-1431-4145)
- Yi Wang (ORCID: https://orcid.org/0000-0001-8327-3423)
Institutions
- Hong Kong Polytechnic University (HK)
Publication Details
- Published
- 2024-12-03
- DOI
- https://doi.org/10.1109/apsipaasc63619.2025.10849152
- Citations
- 2
- Primary Topic
- Advanced Data Storage Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.70