Bytes Are All You Need: Transformers Operating Directly On File Bytes
Not on the map. Why?
Abstract (arXiv)
Modern deep learning approaches usually utilize modality-specific processing. For example, the most common deep learning approach to image classification involves decoding image file bytes into an RGB tensor which is passed into a neural network. Instead, we investigate modality-independent representation learning by performing classification directly on file bytes, without the need for decoding files at inference time. This enables models to operate on various modalities without any hand-designed, modality-specific processing. Our model, ByteFormer, improves ImageNet Top-1 classification accuracy by 5% (from 72.2% to 77.33%) relative to DeIT models of similar size. Compared to Perceiver IO, our model requires absolutely no modality-specific processing at inference time, and uses an order of magnitude fewer parameters at equivalent accuracy on ImageNet. We demonstrate that the same ByteFormer architecture can perform audio classification without modifications or modality-specific preprocessing. We achieve 95.42% classification accuracy on the Speech Commands V2 dataset (comparable to the state-of-the-art accuracy of 98.7%). Additionally, we demonstrate that ByteFormer can operate jointly on images and audio, handling joint classification without explicit knowledge of the input modality. We release our code at https://github.com/apple/corenet/tree/main/projects/byteformer.
Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Builds on 28 of its 53 references that are in the map. First posted on arXiv 31 May 2023.
Builds on
28 of 53 references.
References · 28
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
- 2017Random Erasing Data Augmentationcited by 1,239
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,104
- 2018Speech Commands: A Dataset for Limited-Vocabulary Speech Recognitioncited by 752
16 more
- 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 724
- 2021AST: Audio Spectrogram Transformercited by 643
- 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 629
- 2022Unified-IO: A Unified Model for Vision, Language, and Multi-Modal Taskscited by 421
- 2022Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learningcited by 359
- 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 170
- 2020CrypTFlow2: Practical 2-Party Secure Inferencecited by 82
- 2021Exponential Moving Average Normalization for Self-supervised and Semi-supervised Learningcited by 78
- 2019CrypTFlow: Secure TensorFlow Inferencecited by 61
- 2021Broadcasted Residual Learning for Efficient Keyword Spottingcited by 48
- 2023Language Quantized AutoEncoders: Towards Unsupervised Text-Image Alignmentcited by 29
- 2022RGB no more: Minimally-decoded JPEG Vision Transformerscited by 18
- 2022CVNets: High Performance Library for Computer Visioncited by 16
- 2022ConvMixer: Feature Interactive Convolution with Curriculum Learning for Small Footprint and Noisy Far-field Keyword Spottingcited by 11
- 2020HATNet: An End-to-End Holistic Attention Network for Diagnosis of Breast Biopsy Imagescited by 1
- 2021Advances In Malware Detection- An Overviewcited by 1
Built on by
Citing papers per year: 2023: 4; 2024: 4; 2025: 3; 2026: 7.
18 papers.
Sort:
- 2023Challenges and Applications of Large Language Modelscited by 254
- 2023TransFace++: Rethinking the Face Recognition Paradigm with a Focus on Accuracy, Efficiency, and Securitycited by 22
- 2023Text Rendering Strategies for Pixel Language Modelscited by 22
- 2024Beyond Language Models: Byte Models are Digital World Simulatorscited by 22
- 2023DMLR: Data-centric Machine Learning Research -- Past, Present and Futurecited by 11
- 2024ByteNet: Rethinking Multimedia File Fragment Classification through Visual Perspectivescited by 5
- 2025Segment This Thing: Foveated Tokenization for Efficient Point-Prompted Segmentationcited by 5
- 2024Compressed-Language Models for Understanding Compressed File Formats: a JPEG Explorationcited by 4
- 2024JPEG-LM: LLMs as Image Generators with Canonical Codec Representationscited by 3
- 2026Proxy Compression for Language Modelingcited by 3
- 2026Cybersecurity is the True Frontier for Generative AI Success or Failurecited by 2
- 2026Bitstream Action Recognition is Byte Modelingcited by 2
6 more
- 2025GViT: Representing Images as Gaussians for Visual Recognitioncited by 1
- 2025Transformers from Compressed Representationscited by 0
- 2026Towards Bitstream-corrupted Harsh Visual Understanding: Through Bitstream Language Modeling as Robust Semantic Priorscited by 0
- 2026ByteAction: Byte-space Action Recognition Foundation Modelcited by 0
- 2026Image Bitstream Fine-grained Understanding for Privacy-Friendly AIoTcited by 0
- 2026Bytes to Threats: Byte-Sequence Transformer For Malware Detectioncited by 0
- 2026Bytes to Threats: Byte-Sequence Transformer For Malware Detection13 Oct 2026
- 2026Image Bitstream Fine-grained Understanding for Privacy-Friendly AIoT6 Oct 2026
- 2026ByteAction: Byte-space Action Recognition Foundation Model24 Aug 2026
- 2026Towards Bitstream-corrupted Harsh Visual Understanding: Through Bitstream Language Modeling as Robust Semantic Priors22 Aug 2026
- 2026Bitstream Action Recognition is Byte Modeling16 Aug 2026
- 2026Cybersecurity is the True Frontier for Generative AI Success or Failure27 Jun 2026
- 2026Proxy Compression for Language Modeling4 Feb 2026
- 2025Transformers from Compressed Representations26 Oct 2025
- 2025GViT: Representing Images as Gaussians for Visual Recognition30 Jun 2025
- 2025Segment This Thing: Foveated Tokenization for Efficient Point-Prompted Segmentation10 Jun 2025
- 2024ByteNet: Rethinking Multimedia File Fragment Classification through Visual Perspectives28 Oct 2024
- 2024JPEG-LM: LLMs as Image Generators with Canonical Codec Representations15 Aug 2024
6 more
- 2024Compressed-Language Models for Understanding Compressed File Formats: a JPEG Exploration27 May 2024
- 2024Beyond Language Models: Byte Models are Digital World Simulators29 Feb 2024
- 2023DMLR: Data-centric Machine Learning Research -- Past, Present and Future21 Nov 2023
- 2023Text Rendering Strategies for Pixel Language Models1 Nov 2023
- 2023TransFace++: Rethinking the Face Recognition Paradigm with a Focus on Accuracy, Efficiency, and Security20 Aug 2023
- 2023Challenges and Applications of Large Language Models19 Jul 2023
- 2023Challenges and Applications of Large Language Modelscited by 254
- 2023TransFace++: Rethinking the Face Recognition Paradigm with a Focus on Accuracy, Efficiency, and Securitycited by 22
- 2023Text Rendering Strategies for Pixel Language Modelscited by 22
- 2024Beyond Language Models: Byte Models are Digital World Simulatorscited by 22
- 2023DMLR: Data-centric Machine Learning Research -- Past, Present and Futurecited by 11
- 2024ByteNet: Rethinking Multimedia File Fragment Classification through Visual Perspectivescited by 5
- 2025Segment This Thing: Foveated Tokenization for Efficient Point-Prompted Segmentationcited by 5
- 2024Compressed-Language Models for Understanding Compressed File Formats: a JPEG Explorationcited by 4
- 2024JPEG-LM: LLMs as Image Generators with Canonical Codec Representationscited by 3
- 2026Proxy Compression for Language Modelingcited by 3
- 2026Cybersecurity is the True Frontier for Generative AI Success or Failurecited by 2
- 2026Bitstream Action Recognition is Byte Modelingcited by 2
12 most cited of 18 All 18 (JSON)
- 2026Bytes to Threats: Byte-Sequence Transformer For Malware Detection13 Oct 2026
- 2026Image Bitstream Fine-grained Understanding for Privacy-Friendly AIoT6 Oct 2026
- 2026ByteAction: Byte-space Action Recognition Foundation Model24 Aug 2026
- 2026Towards Bitstream-corrupted Harsh Visual Understanding: Through Bitstream Language Modeling as Robust Semantic Priors22 Aug 2026
- 2026Bitstream Action Recognition is Byte Modeling16 Aug 2026
- 2026Cybersecurity is the True Frontier for Generative AI Success or Failure27 Jun 2026
- 2026Proxy Compression for Language Modeling4 Feb 2026
- 2025Transformers from Compressed Representations26 Oct 2025
- 2025GViT: Representing Images as Gaussians for Visual Recognition30 Jun 2025
- 2025Segment This Thing: Foveated Tokenization for Efficient Point-Prompted Segmentation10 Jun 2025
- 2024ByteNet: Rethinking Multimedia File Fragment Classification through Visual Perspectives28 Oct 2024
- 2024JPEG-LM: LLMs as Image Generators with Canonical Codec Representations15 Aug 2024
12 newest of 18 All 18 (JSON)