ZHANGYUXUAN-zR commited on
Commit
0543bef
·
verified ·
1 Parent(s): 4b33ef7

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. parse/dev/0RDcd5Axok/images/089f93b64428c027bf2a950afbf1f0c71a98197bfdbfdd26d5231d9173a4f135.jpg +3 -0
  2. parse/dev/0RDcd5Axok/images/08efaea948e4b8e31896a063d3d9ff883d744e25c54932f026083a5374a43c9f.jpg +3 -0
  3. parse/dev/0RDcd5Axok/images/0ba334a0921a08a0c6a1b31b1f0b22359bad748b65df0e005d128bc6735499b0.jpg +3 -0
  4. parse/dev/0RDcd5Axok/images/0cae0143a371d3d20d802c7754661581469a23b2c5a99fc1b9f5bba922f4f87f.jpg +3 -0
  5. parse/dev/0RDcd5Axok/images/15299331db8ef09694fe081540d4f93bbab6da1345a0b6935d59910e0aa8dfe3.jpg +3 -0
  6. parse/dev/0RDcd5Axok/images/2be889d74237c1555787a7c44f92253980d2236397ebd647588409b5e5f62eb7.jpg +3 -0
  7. parse/dev/0RDcd5Axok/images/3b583e4542c85d5a77c153f9671be5620121202770b5f0460f1bd76e61784b91.jpg +3 -0
  8. parse/dev/0RDcd5Axok/images/48b5db3956ac0e7f5ba107d05714f722771626ac6ba3466e02322f78b7a0070e.jpg +3 -0
  9. parse/dev/0RDcd5Axok/images/5e6da241c881465525b4a45c36e16ee3be4d24fb4a3a6f5ec4c1fc5c60f42e1c.jpg +3 -0
  10. parse/dev/0RDcd5Axok/images/649caf7eb49868967eb23e03d6682dac9585b1e77a503e63210bf71549b3ac19.jpg +3 -0
  11. parse/dev/0RDcd5Axok/images/64b10e3182022eabd7ae3d8dd60a2f0cae8790691bb51604f897bb0d6bf3728b.jpg +3 -0
  12. parse/dev/0RDcd5Axok/images/70a3e92d41bd5b1ec4a272f6b67b0465e4c5daf6117d24371899744c0722df6e.jpg +3 -0
  13. parse/dev/0RDcd5Axok/images/817d3636b1fd3352037dfcc37df9a02d25048bdc48931d091e4c6fddbc6d0118.jpg +3 -0
  14. parse/dev/0RDcd5Axok/images/846d59878d68877f969b500dac028638d0a5b16b4d6e3366752d799d1a1f64ab.jpg +3 -0
  15. parse/dev/0RDcd5Axok/images/8ef42e61f3f24f6dff976b460e696011d571e0cf7e273a9d7d42598b0f57144f.jpg +3 -0
  16. parse/dev/0RDcd5Axok/images/91465fc942a612d822db153689232aaafecdb1971dc32ba7922da75d199c8dca.jpg +3 -0
  17. parse/dev/0RDcd5Axok/images/b28a62ed2483e98fd1f71cf0f6114593aa0a48ba96f113edaec0cb39d5a64ea2.jpg +3 -0
  18. parse/dev/0RDcd5Axok/images/b4207abc5dbe958fa42175659003fde26b9c44e9d3358993a78afc32d25b4733.jpg +3 -0
  19. parse/dev/0RDcd5Axok/images/bf1f2c4fbf0d03088ae09a67d8175765c5927430618c1e6c84ee752a7ebb01fd.jpg +3 -0
  20. parse/dev/0RDcd5Axok/images/bfd47b7ac5dcc585f8293ecd8c4a66c357d735ee263aa3622fc820936609f5be.jpg +3 -0
  21. parse/dev/0RDcd5Axok/images/c0d3f7292300c639fc8c751c9d455d68c81d02592a786ed0007a1728a0fcb0ca.jpg +3 -0
  22. parse/dev/0RDcd5Axok/images/d051c5840ac628806d97ea98a2dc823b86c10625a3c67375d4f75bab612e1628.jpg +3 -0
  23. parse/dev/0RDcd5Axok/images/dc702ee3077619be3b01a1dc0d94ca4c45755440c068f489489ac840181210d7.jpg +3 -0
  24. parse/dev/0RDcd5Axok/images/dca06a014081f54d894a2ba4c0aed826ca5d7d5c7e868147bf469cfcded10223.jpg +3 -0
  25. parse/dev/0RDcd5Axok/images/e48ece8aaeae6c4520b396dbfbfa85c3cac2a8997db2274fc247664c93254df9.jpg +3 -0
  26. parse/dev/0RDcd5Axok/images/ed2872e8987c3789fd45b53e042a8d249dbe4d22df5d13958ff5aee7ae6ba30f.jpg +3 -0
  27. parse/dev/0RDcd5Axok/images/f586b789e71f4c2f99ed5106b7d47d4f035cf46bc1368a7ee339eb982a339215.jpg +3 -0
  28. parse/dev/157Usp_kbi/157Usp_kbi.md +298 -0
  29. parse/dev/157Usp_kbi/157Usp_kbi_middle.json +0 -0
  30. parse/dev/157Usp_kbi/157Usp_kbi_model.json +0 -0
  31. parse/dev/3itjR9QxFw/3itjR9QxFw.md +433 -0
  32. parse/dev/3itjR9QxFw/3itjR9QxFw_content_list.json +0 -0
  33. parse/dev/3itjR9QxFw/3itjR9QxFw_middle.json +0 -0
  34. parse/dev/3itjR9QxFw/3itjR9QxFw_model.json +0 -0
  35. parse/dev/7gE9V9GBZaI/images/0901b0009d3d3b6dec3a4207d30e08d232049dda50c62a32a48a055c282f2f6a.jpg +3 -0
  36. parse/dev/7gE9V9GBZaI/images/096c8e0b5d73c2415be28ae012b240a0cdf1c0acd618922fd2d26af9bfe949de.jpg +3 -0
  37. parse/dev/7gE9V9GBZaI/images/0dd2be9978c8615aa93dca9fe22a4a57d6426eb8bbad4886efdf4abf22fbf040.jpg +3 -0
  38. parse/dev/7gE9V9GBZaI/images/0de089d3cecaf79683d0ebe5bae66664b3394d64a575f49b8f546f19006569ea.jpg +3 -0
  39. parse/dev/7gE9V9GBZaI/images/0f3b904c9006568d1cb08aa0fa412d86aab5ac3e349857ac8558ac5b66161398.jpg +3 -0
  40. parse/dev/7gE9V9GBZaI/images/13c0aeac5b6d6469ab512f780639816145991fbdb77d1644892db2a745a00257.jpg +3 -0
  41. parse/dev/7gE9V9GBZaI/images/13d2c9e54e86fde38658337f645b2bcef4c60330e1d3360a079bbf5cde27c11c.jpg +3 -0
  42. parse/dev/7gE9V9GBZaI/images/22d77cfd65523e8b562391b0e65ab4b94592a9d15543c79d8df8cea09f6ac952.jpg +3 -0
  43. parse/dev/7gE9V9GBZaI/images/2c2ebe3ba21b0fd0c69b97eb9a22e7f608815fec9e68d157cac0afe86e8aff46.jpg +3 -0
  44. parse/dev/7gE9V9GBZaI/images/32914c57c158e823a15f4a872814efc9036af02db00861c4c7ebcc59458d4af1.jpg +3 -0
  45. parse/dev/7gE9V9GBZaI/images/361dd795551945a1d42eb0e90f9f90e6ae9b6708b7daa3d7a81d92dc95fd5ad3.jpg +3 -0
  46. parse/dev/7gE9V9GBZaI/images/370a505c01842140dda1f9353b992acff34b6c720e5568119ceace8d9fe5826f.jpg +3 -0
  47. parse/dev/7gE9V9GBZaI/images/5ccdad7e689c5b70cccc6aed06dec1b0b1c1a84a3d4520ff5eef6a43534b29d8.jpg +3 -0
  48. parse/dev/7gE9V9GBZaI/images/5d1ae9d9a6ebf5861669f883e38d9ba6c2fdd6d55fed8de7c66a2935cc0ee3f5.jpg +3 -0
  49. parse/dev/7gE9V9GBZaI/images/60741a322624e7a344d48dd39e648d3bdbec90b00204725405a64e566413b5ab.jpg +3 -0
  50. parse/dev/7gE9V9GBZaI/images/61defbed5b56ab5d4b39bf2a0015f7fd3393ec074e24f6fa04d3b6f9c0de2bbe.jpg +3 -0
parse/dev/0RDcd5Axok/images/089f93b64428c027bf2a950afbf1f0c71a98197bfdbfdd26d5231d9173a4f135.jpg ADDED

Git LFS Details

  • SHA256: cc3fe9f812deaed5371af66c0cf22db45534295f8ee3c7dd21a1a511d7218a11
  • Pointer size: 129 Bytes
  • Size of remote file: 3.17 kB
parse/dev/0RDcd5Axok/images/08efaea948e4b8e31896a063d3d9ff883d744e25c54932f026083a5374a43c9f.jpg ADDED

Git LFS Details

  • SHA256: 2bd5e54b1ab90448ba82e2603a2dd3953e1bd8d68a4c2a554630c88ac0a59b2a
  • Pointer size: 130 Bytes
  • Size of remote file: 40.9 kB
parse/dev/0RDcd5Axok/images/0ba334a0921a08a0c6a1b31b1f0b22359bad748b65df0e005d128bc6735499b0.jpg ADDED

Git LFS Details

  • SHA256: 9c7b94ec580c73eee010c9bce29ac450eee3ce17efd7341af83e54e08a2166a0
  • Pointer size: 130 Bytes
  • Size of remote file: 22.2 kB
parse/dev/0RDcd5Axok/images/0cae0143a371d3d20d802c7754661581469a23b2c5a99fc1b9f5bba922f4f87f.jpg ADDED

Git LFS Details

  • SHA256: 4722263e1661ade54796960019beeac1ccb961460c5dbb7e0365ef1c904e557c
  • Pointer size: 130 Bytes
  • Size of remote file: 59.9 kB
parse/dev/0RDcd5Axok/images/15299331db8ef09694fe081540d4f93bbab6da1345a0b6935d59910e0aa8dfe3.jpg ADDED

Git LFS Details

  • SHA256: ce04ff2fa1b0494b19a7c408a9be9258802431d8aa2c497d0da3490e27f3d3df
  • Pointer size: 129 Bytes
  • Size of remote file: 6.22 kB
parse/dev/0RDcd5Axok/images/2be889d74237c1555787a7c44f92253980d2236397ebd647588409b5e5f62eb7.jpg ADDED

Git LFS Details

  • SHA256: 9bca6027c01e673c19175af07ab4468ba457c3bbca00c9a4dbef9ce870806db1
  • Pointer size: 130 Bytes
  • Size of remote file: 22.7 kB
parse/dev/0RDcd5Axok/images/3b583e4542c85d5a77c153f9671be5620121202770b5f0460f1bd76e61784b91.jpg ADDED

Git LFS Details

  • SHA256: 0aeabbd47469ebfb4b89218c4ab57b073577033697198b61afc23658ce49ab61
  • Pointer size: 129 Bytes
  • Size of remote file: 9.17 kB
parse/dev/0RDcd5Axok/images/48b5db3956ac0e7f5ba107d05714f722771626ac6ba3466e02322f78b7a0070e.jpg ADDED

Git LFS Details

  • SHA256: 8a57618323ae798317167b52addcaf2ae80a41200432a986c401c79614bcdf83
  • Pointer size: 130 Bytes
  • Size of remote file: 96.3 kB
parse/dev/0RDcd5Axok/images/5e6da241c881465525b4a45c36e16ee3be4d24fb4a3a6f5ec4c1fc5c60f42e1c.jpg ADDED

Git LFS Details

  • SHA256: 710aeef953016746b3350b462d785ca9707a42d925bf72b4419f86f653594757
  • Pointer size: 130 Bytes
  • Size of remote file: 27.1 kB
parse/dev/0RDcd5Axok/images/649caf7eb49868967eb23e03d6682dac9585b1e77a503e63210bf71549b3ac19.jpg ADDED

Git LFS Details

  • SHA256: bceba89e79429e51ca69182fc799e1489fec7603bb67135b0d328c113208a1e4
  • Pointer size: 129 Bytes
  • Size of remote file: 7.78 kB
parse/dev/0RDcd5Axok/images/64b10e3182022eabd7ae3d8dd60a2f0cae8790691bb51604f897bb0d6bf3728b.jpg ADDED

Git LFS Details

  • SHA256: 0704d5d4d37720f9bf317cad4f7b60b4c5a12f1fc2a5188fd4c813a206e8aee7
  • Pointer size: 130 Bytes
  • Size of remote file: 10.8 kB
parse/dev/0RDcd5Axok/images/70a3e92d41bd5b1ec4a272f6b67b0465e4c5daf6117d24371899744c0722df6e.jpg ADDED

Git LFS Details

  • SHA256: bdc9a583c6a2a92c80a75da7f4f34b27bd1f5f1c68ec877f8dcb7e91d54f7c11
  • Pointer size: 129 Bytes
  • Size of remote file: 9.53 kB
parse/dev/0RDcd5Axok/images/817d3636b1fd3352037dfcc37df9a02d25048bdc48931d091e4c6fddbc6d0118.jpg ADDED

Git LFS Details

  • SHA256: 500a038b562b6d2c164273d98ec46187ceed0cd7d6420f24434f952539decbb0
  • Pointer size: 130 Bytes
  • Size of remote file: 45 kB
parse/dev/0RDcd5Axok/images/846d59878d68877f969b500dac028638d0a5b16b4d6e3366752d799d1a1f64ab.jpg ADDED

Git LFS Details

  • SHA256: ca2dbae7866614d365965c27875afd6fa4333c1e8b41309da25fa9261dd6a0fe
  • Pointer size: 130 Bytes
  • Size of remote file: 30.2 kB
parse/dev/0RDcd5Axok/images/8ef42e61f3f24f6dff976b460e696011d571e0cf7e273a9d7d42598b0f57144f.jpg ADDED

Git LFS Details

  • SHA256: eb96b06aed7d36639a8b7e565ccd72258485d3409d573c5bf99c5d40a1aa998a
  • Pointer size: 130 Bytes
  • Size of remote file: 35.4 kB
parse/dev/0RDcd5Axok/images/91465fc942a612d822db153689232aaafecdb1971dc32ba7922da75d199c8dca.jpg ADDED

Git LFS Details

  • SHA256: 7dbe7b9eed5fd015f61f94bdff58ce8bb9c32be372538c629af509330c1d7562
  • Pointer size: 129 Bytes
  • Size of remote file: 5.2 kB
parse/dev/0RDcd5Axok/images/b28a62ed2483e98fd1f71cf0f6114593aa0a48ba96f113edaec0cb39d5a64ea2.jpg ADDED

Git LFS Details

  • SHA256: 903064078db5c5f48a8eed442467a967796a6ff1f6a9ac1526bf62229c151f62
  • Pointer size: 130 Bytes
  • Size of remote file: 57.8 kB
parse/dev/0RDcd5Axok/images/b4207abc5dbe958fa42175659003fde26b9c44e9d3358993a78afc32d25b4733.jpg ADDED

Git LFS Details

  • SHA256: eabf26a823d768244a7a07978cb011ad563bc9b3195e1937e0e82aeacfb4ffa9
  • Pointer size: 130 Bytes
  • Size of remote file: 11.1 kB
parse/dev/0RDcd5Axok/images/bf1f2c4fbf0d03088ae09a67d8175765c5927430618c1e6c84ee752a7ebb01fd.jpg ADDED

Git LFS Details

  • SHA256: d51161a65af6476c72beeebb8d465e65433e2e67afe393f63047858de3378e82
  • Pointer size: 130 Bytes
  • Size of remote file: 38.5 kB
parse/dev/0RDcd5Axok/images/bfd47b7ac5dcc585f8293ecd8c4a66c357d735ee263aa3622fc820936609f5be.jpg ADDED

Git LFS Details

  • SHA256: 5d0f0a4be4e713b5eff6923425ef80a7c066df7efa943936d6e543ef7ff62250
  • Pointer size: 130 Bytes
  • Size of remote file: 36.1 kB
parse/dev/0RDcd5Axok/images/c0d3f7292300c639fc8c751c9d455d68c81d02592a786ed0007a1728a0fcb0ca.jpg ADDED

Git LFS Details

  • SHA256: 52d9d98724a9c511e37c6174f1149bfb31dd7846bd5176de60e65432279231d4
  • Pointer size: 130 Bytes
  • Size of remote file: 14 kB
parse/dev/0RDcd5Axok/images/d051c5840ac628806d97ea98a2dc823b86c10625a3c67375d4f75bab612e1628.jpg ADDED

Git LFS Details

  • SHA256: 3b69f9a3f8c7d14f3339ead142d7ffa3fb0865a63d79090394af9a80e937054d
  • Pointer size: 129 Bytes
  • Size of remote file: 3.62 kB
parse/dev/0RDcd5Axok/images/dc702ee3077619be3b01a1dc0d94ca4c45755440c068f489489ac840181210d7.jpg ADDED

Git LFS Details

  • SHA256: cfb123d9c051b3011529357adca9344bff4f2338f302e2250b12cd5ae812608e
  • Pointer size: 130 Bytes
  • Size of remote file: 25.2 kB
parse/dev/0RDcd5Axok/images/dca06a014081f54d894a2ba4c0aed826ca5d7d5c7e868147bf469cfcded10223.jpg ADDED

Git LFS Details

  • SHA256: bd32d9bba26f9c8bb7b390320dfe515c7368d6aff5bb19ad3b8bdb18b81302ad
  • Pointer size: 130 Bytes
  • Size of remote file: 33.4 kB
parse/dev/0RDcd5Axok/images/e48ece8aaeae6c4520b396dbfbfa85c3cac2a8997db2274fc247664c93254df9.jpg ADDED

Git LFS Details

  • SHA256: b1f5e15923cbb5a2219e74797f360ac02549567961867722aeea97fb523cb719
  • Pointer size: 129 Bytes
  • Size of remote file: 4.78 kB
parse/dev/0RDcd5Axok/images/ed2872e8987c3789fd45b53e042a8d249dbe4d22df5d13958ff5aee7ae6ba30f.jpg ADDED

Git LFS Details

  • SHA256: 6836aec3b389d5b279cb977c4f84b0cae366d0c967408e84dd9dbdef99a887cf
  • Pointer size: 130 Bytes
  • Size of remote file: 27.3 kB
parse/dev/0RDcd5Axok/images/f586b789e71f4c2f99ed5106b7d47d4f035cf46bc1368a7ee339eb982a339215.jpg ADDED

Git LFS Details

  • SHA256: 5c250153ee3b551e577ccb4f243bf2741f1a83b1cd1d0ee0b2e3948c085b6552
  • Pointer size: 130 Bytes
  • Size of remote file: 90.6 kB
parse/dev/157Usp_kbi/157Usp_kbi.md ADDED
@@ -0,0 +1,298 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Knowledge Distillation from A Stronger Teacher
2
+
3
+ Tao Huang1,2 Shan You1∗ Fei Wang3 Chen Qian1 Chang Xu2 1SenseTime Research 2School of Computer Science, Faculty of Engineering, The University of Sydney 3University of Science and Technology of China
4
+
5
+ # Abstract
6
+
7
+ Unlike existing knowledge distillation methods focus on the baseline settings, where the teacher models and training strategies are not that strong and competing as state-of-the-art approaches, this paper presents a method dubbed DIST to distill better from a stronger teacher. We empirically find that the discrepancy of predictions between the student and a stronger teacher may tend to be fairly severer. As a result, the exact match of predictions in KL divergence would disturb the training and make existing methods perform poorly. In this paper, we show that simply preserving the relations between the predictions of teacher and student would suffice, and propose a correlation-based loss to capture the intrinsic inter-class relations from the teacher explicitly. Besides, considering that different instances have different semantic similarities to each class, we also extend this relational match to the intra-class level. Our method is simple yet practical, and extensive experiments demonstrate that it adapts well to various architectures, model sizes and training strategies, and can achieve state-of-the-art performance consistently on image classification, object detection, and semantic segmentation tasks. Code is available at: https://github.com/hunto/DIST_KD.
8
+
9
+ # 1 Introduction
10
+
11
+ The advent of automatic feature engineering fuels deep neural networks to achieve remarkable success in a plethora of computer vision tasks, such as image classification [17, 19, 38, 48, 53], object detection [2, 23], and semantic segmentation [5, 54]. In the path of pursuing better performance, current deep learning models generally grow deeper and wider [13, 45]. However, such heavy models are clumsy to deploy in practice due to the limitations of computational and memory resources. For an efficient model with competitive performance to those larger models, knowledge distillation (KD) [16] has been proposed to boost the performance of the efficient model (student) by distilling the knowledge of a larger model (teacher) during training.
12
+
13
+ The essence of knowledge distillation relies on how to formulate and transfer the knowledge from teacher to student. The most intuitive yet effective approach is to match the probabilistic prediction (response) scores between the teacher and student via Kullback–Leibler (KL) divergence [16]. In this way, the student can be guided with more informative signals during training, and is thus expected to have more promising performance than that being trained stand-alone. Besides this vanilla prediction match, other works [11, 14, 34, 41] also investigate the knowledge within intermediate representations to further boost the distillation performance, but this usually induces additional training cost as a consequence. For example, OFD [14] proposes to distill the information via multiple intermediate layers, but requires additional convolutions for feature alignments; CRD [41] introduces a contrastive loss to transfer pair-wise relationships, but it needs to hold a memory bank for all 128-d features of ImageNet images, and produces additional 260M FLOPs of computation cost.
14
+
15
+ ![](images/3c98d691bf1e5ddef9f2ca4076934e2f714fa5c37330374aaa209dc25b59e6bb.jpg)
16
+ Figure 1: Comparisons of KD and our proposed DIST on ImageNet with different teachers. (a) The ResNet-18 students are trained using baseline strategy with different model sizes of the teacher. (b) The ResNet-18 students are trained using different strategies with ResNet-50 teachers.
17
+
18
+ Recently, a few studies [8, 29, 39] have been performed to address the poor learning issue of the student network when the student and teacher model sizes significantly differ. For example, TAKD [29] proposes to reduce the discrepancy of teacher and student by resorting to an additional teaching assistant of moderate model size; DGKD [39] further improves TAKD by densely gathering all the assistant models to guide the student. However, increasing the model size is only one of the popular approaches to have a stronger teacher. There lacks a thorough analysis on the training strategies to derive a stronger teacher and their effect on KD. Most importantly, a generic enough solution is preferred to address the difficulty of KD brought by stronger teachers, rather than struggling to deal with different types of stronger teachers (with larger model size or stronger training strategy) individually.
19
+
20
+ To understand what makes a stronger teacher and their effect on KD, we systematically study the prevalent strategies for designing and training deep neural networks, and show that:
21
+
22
+ • Beyond scaling up the model size, a stronger teacher can also be derived through advanced training strategies, e.g., label smoothing and data augmentation [51]. However, given a stronger teacher, the student’s performance on the vanilla KD could be dropped, even worse than training from scratch without KD, as shown in Figure 1. • The discrepancy between teacher and student tends to get fairly larger when we switch their training strategy to a stronger one (see Figure 2). In this case, an exact recovery of predictions via KL divergence could be challenging and lead to the failure of vanilla KD. • Preserving the relation of predictions between teacher and student is sufficient and effective. When transferring the knowledge from teacher to student, what we really care about is preserving the preference (relative ranks of predictions) by the teacher, instead of recovering the absolute values accurately. Correlation between teacher and student predictions could be favored to relax the exact match of KL divergence and distill the intrinsic relations.
23
+
24
+ In this paper, we thus leverage the Pearson correlation coefficient [33] as a new match manner to replace the KL divergence. In addition, besides the inter-class relations in prediction vector (see Figure 3), with the intuition that different instances have different spectrum of similarities with respect to each class, we also propose to distill the intra-class relations for further boosting the performance as Figure 3. Concretely, for each class, we gather its corresponding predicted probabilities of all instances in a batch, then transfer this relation from teacher to student. Our proposed method (dubbed DIST) is super simple, efficient, and practical, which can be implemented with only several lines of code (see Appendix A.1) and has almost the same training cost as the vanilla KD. As a result, the student can be liberated from the burden of matching the exact output of a strong teacher, but only be guided appropriately to distill those truly informative relations.
25
+
26
+ Extensive experiments are conducted on benchmark datasets to verify our effectiveness on various tasks, including image classification, object detection, and semantic segmentation. Experimental results show that our DIST significantly outperforms vanilla KD and those sophisticatedly-designed state-of-the-art KD methods. For example, with the same baseline settings on ImageNet, our DIST achieves the highest $7 2 . 0 7 \%$ accuracy on ResNet-18. With the stronger strategy, our method obtains $8 2 . 3 \%$ accuracy on the recent transformer Swin-T [27], improving KD by $1 \%$ .
27
+
28
+ ![](images/f3f3dab51630049eab346bb9d566a7028a1d93061af433377c97d78cb92e8c8f.jpg)
29
+ Figure 2: Discrepancy between the predictions of models trained standalone with different strategies on ImageNet validation set. R18B1 represents ResNet-18 trained with strategy B1 for instance. Details of training strategies B1 and B2 refer to Table 1.
30
+
31
+ # 2 Revisiting Prediction Match of KD
32
+
33
+ In vanilla knowledge distillation [16], the knowledge is transferred from a pre-trained teacher model to a student model by minimizing the discrepancy between the prediction scores of the teacher and student models.
34
+
35
+ Formally, with the logits $Z ^ { ( \mathrm { s } ) } \in \mathbb { R } ^ { B \times C }$ and $Z ^ { ( \mathrm { t } ) } \in \mathbb { R } ^ { B \times C }$ of student and teacher networks, where $B$ and $C$ denote batch size and the number of classes, respectively, the vanilla KD loss [16] is represented as
36
+
37
+ $$
38
+ \mathcal { L } _ { \mathrm { K D } } : = \frac { \tau ^ { 2 } } { B } \sum _ { i = 1 } ^ { B } \mathrm { K L } ( Y _ { i , : } ^ { ( \mathrm { t } ) } , Y _ { i , : } ^ { ( \mathrm { s } ) } ) = \frac { \tau ^ { 2 } } { B } \sum _ { i = 1 } ^ { B } \sum _ { j = 1 } ^ { C } Y _ { i , j } ^ { ( \mathrm { t } ) } \log \left( \frac { Y _ { i , j } ^ { ( \mathrm { t } ) } } { Y _ { i , j } ^ { ( \mathrm { s } ) } } \right) ,
39
+ $$
40
+
41
+ where $\mathrm { K L }$ refers to Kullback–Leibler divergence with
42
+
43
+ $$
44
+ Y _ { i , : } ^ { \mathrm { ( s ) } } = s o f t m a x ( Z _ { i , : } ^ { \mathrm { ( s ) } } / \tau ) , \quad Y _ { i , : } ^ { \mathrm { ( t ) } } = s o f t m a x ( Z _ { i , : } ^ { \mathrm { ( t ) } } / \tau ) ,
45
+ $$
46
+
47
+ being the probabilistic prediction vectors, and $\tau$ is the temperature factor to control the softness of logits.
48
+
49
+ In addition to the teacher’s soft targets in Eq.(1), KD [16] stated that it is beneficial to train the student together with ground-truth labels, and the overall training loss is composed of the original classification loss $\mathcal { L } _ { \mathrm { c l s } }$ and KD loss ${ \mathcal { L } } _ { \mathrm { K D } }$ , i.e.,
50
+
51
+ $$
52
+ \begin{array} { r } { \mathcal { L } _ { \mathrm { t r } } = \alpha \mathcal { L } _ { \mathrm { c l s } } + \beta \mathcal { L } _ { \mathrm { K D } } , } \end{array}
53
+ $$
54
+
55
+ where $\mathcal { L } _ { \mathrm { c l s } }$ is usually the cross-entropy loss between the predictions of student network and groundtruth labels, $\alpha$ and $\beta$ are factors for balancing the losses.
56
+
57
+ # 2.1 Catastrophic discrepancy with a stronger teacher
58
+
59
+ As illustrated in Section 1, the effect of a teacher on KD has not been sufficiently investigated, especially when the performance of pre-trained teacher grows stronger, such as with larger model size or being trained with more advanced and competing strategies, e.g., label smoothing, mix-up [51], auto augmentations [9], etc. With this regard, as Figure 2, we train ResNet-18 and ResNet-50 standalone with strategy B1 and strategy $\bar { \mathbf { B } \bar { 2 } }$ , and obtain 4 trained models (R18B1, R18B2, R50B1, and R50B2 with accuracies $6 9 . 7 6 \%$ , $7 3 . 4 \%$ , $7 6 . 1 3 \%$ , and $78 . 5 \%$ , respectively), then compare their discrepancy using KL divergence ( $\mathit { \check { \tau } } = 1$ and $\tau = 4$ ) on the predicted probabilities $\mathbf { Y }$ . We have the following observations:
60
+
61
+ ![](images/2bd1eb75068dbf9263a14589f57b9fc951fe07021affa3ae30f02f0e7cd2010b.jpg)
62
+ Figure 3: Difference between our DIST and existing KD methods. Conventional KD matches the outputs of student $( s \in \mathbb { R } ^ { 5 } )$ ) to teacher $( t \in \mathbb { R } ^ { 5 } )$ ) point-wisely; instance relation methods operate on the feature level and measure the internal correlations (corr.) between instances in student and teacher separately, then transfer the teacher’s correlations to student. Our DIST proposes to maintain the inter-class and intra-class relations between student and teacher. Inter-class relation: correlation between the predicted probabilistic distributions on each instance of teacher and student. Intra-class relation: correlation of the probabilities of all the instances on each class.
63
+
64
+ • The outputs of ResNet-18 do not change much with the stronger strategy compared to ResNet-50. This implies that the representational capacity limits the student’s performance, and it tends to be fairly challenging for the student to exactly match the teacher’s outputs as their discrepancy becomes larger.
65
+ When the teacher and student models are trained with a stronger strategy, the discrepancy between teacher and student would be larger. This indicates that when we adopt KD with a stronger training strategy, the misalignment between KD loss and classification loss would be severer, thus disturbing the student’s training.
66
+
67
+ As a result, the exact match (i.e., the loss reaches the minimal if and only if the teacher and student outputs are exactly identical) with KL divergence seems way too overambitious and demanding since the discrepancy between student and teacher can be considerably huge. Since the exact match can be detrimental with a stronger teacher, our intuition is to develop a relaxed manner for matching the predictions between the teacher and student.
68
+
69
+ # 3 DIST: Distillation from A Stronger Teacher
70
+
71
+ # 3.1 Relaxed match with relations
72
+
73
+ The prediction scores indicate the teacher’s confidence (or preference) over all classes. For a relaxed match of predictions between the teacher and student, we are motivated to consider what we really care about for the teacher’s output. Instead of the exact probabilistic values, actually, during inference, we are only concerned about their relations, i.e., relative ranks of predictions of teacher.
74
+
75
+ In this way, for some metric $d ( \cdot , \cdot )$ with $\mathbb { R } ^ { C } \times \mathbb { R } ^ { C } \mathbb { R } ^ { + }$ , the exact match can be formulated that $d ( { \pmb a } , { \pmb b } ) = 0$ if ${ \pmb a } = { \pmb b }$ for any two prediction vector as $Y _ { i , : } ^ { ( \mathrm { s } ) }$ and $Y _ { i , : } ^ { ( \mathrm { t } ) }$ in the KL divergence of Eq.(1). Then as a relaxed match, we can introduce additional mappings $\phi ( \cdot )$ and $\psi ( \cdot )$ with $\mathbb { R } ^ { C } \to \mathbb { R } ^ { C }$ such that
76
+
77
+ $$
78
+ d ( \phi ( \mathbf { a } ) , \psi ( \pmb { b } ) ) = d ( \mathbf { a } , \pmb { b } ) , \forall \mathbf { a } , \pmb { b }
79
+ $$
80
+
81
+ Therefore, $d ( { \pmb a } , { \pmb b } ) = 0$ does not necessarily require $\textbf { \em a }$ and $^ { b }$ should be exactly the same. Nevertheless, since we care about the relation within $\textbf { \em a }$ or $^ { b }$ , the mappings $\phi$ and $\psi$ should be isotone and do not affect the semantic information and inference result of the prediction vector.
82
+
83
+ With this regard, a simple yet effective choice for the isotone mapping is the positive linear transformation, namely,
84
+
85
+ $$
86
+ d ( m _ { 1 } { \pmb a } + n _ { 1 } , m _ { 2 } { \pmb b } + n _ { 2 } ) = d ( { \pmb a } , { \pmb b } ) ,
87
+ $$
88
+
89
+ where $m _ { 1 }$ $_ { \cdot 1 } , m _ { 2 } , n _ { 1 }$ , and $n _ { 2 }$ are constants with $m _ { 1 } \times m _ { 2 } > 0$ . As a result, this match could be invariant under separate changes in scale and shift for the predictions. Actually, to satisfy the property Eq.(5), we can thus adopt the widely-used Pearson’s distance as the metric, i.e.,
90
+
91
+ $$
92
+ \begin{array} { r } { d _ { \mathrm { p } } ( \pmb { u } , \pmb { v } ) : = 1 - \rho _ { \mathrm { p } } ( \pmb { u } , \pmb { v } ) . } \end{array}
93
+ $$
94
+
95
+ $\rho _ { \mathrm { p } } ( { \pmb u } , { \pmb v } )$ is the Pearson correlation coefficient between two random variables $\textbf { \em u }$ and $\textbf { { v } }$
96
+
97
+ $$
98
+ \rho _ { \mathrm { p } } ( { \pmb u } , { \pmb v } ) : = \frac { \mathrm { C o v } ( { \pmb u } , { \pmb v } ) } { \mathrm { S t d } ( { \pmb u } ) \mathrm { S t d } ( { \pmb v } ) } = \frac { \sum _ { i = 1 } ^ { C } ( u _ { i } - \bar { u } ) ( v _ { i } - \bar { v } ) } { \sqrt { \sum _ { i = 1 } ^ { C } ( u _ { i } - \bar { u } ) ^ { 2 } \sum _ { i = 1 } ^ { C } ( v _ { i } - \bar { v } ) ^ { 2 } } }
99
+ $$
100
+
101
+ where $\operatorname { C o v } ( u , v )$ is the covariance of $\textbf { \em u }$ and $v , { \bar { u } }$ and $\operatorname { S t d } ( { \pmb u } )$ denote the mean and standard derivation of $\textbf { \em u }$ , respectively.
102
+
103
+ In this way, we can define the relation as correlation. More specifically, and the original exact match in vanilla KD [16] can thus be relaxed and replaced by maximizing the linear correlation to preserve the relation of teacher and student on the probabilistic distribution of each instance, which we call inter-class relation. Formally, for each pair of prediction vector ${ Y } _ { i , : } ^ { ( \mathrm { s } ) }$ ) and Y (t)i,: , the inter-relation loss can be formulated as
104
+
105
+ $$
106
+ \mathcal { L } _ { \mathrm { i n t e r } } : = \frac { 1 } { B } \sum _ { i = 1 } ^ { B } d _ { \mathrm { p } } ( Y _ { i , : } ^ { ( \mathrm { s } ) } , Y _ { i , : } ^ { ( \mathrm { t } ) } ) .
107
+ $$
108
+
109
+ Some isotone mappings or metrics can also be used to relax the match as Eq.(4), such as cosine similarity investigated empirically in Section 4.5; other more advanced and delicate choices could be left as future work.
110
+
111
+ # 3.2 Better distillation with intra-relations
112
+
113
+ Besides the inter-class relation, where we transfer the relation of multiple classes in each instance, the prediction scores of multiple instances in each class are also informative and useful. This scores indicate the similarities of multiple instances to one class. For instance, suppose we have three images containing “cat”, “dog”, and “plane”, respectively, and they have three prediction scores on the ‘cat’ class, denoted as $e$ , $f$ , and $g$ . Generally, the picture “cat” should have the largest score to the “cat” class, while the “plane” should have the smallest score since it is inanimate. This relation of $^ { \bullet } e > f > g ^ { , \bullet }$ could also be transferred to the student. Besides, even for the images from the same class, the intrinsic intra-class variance of the semantic similarities is actually also informative. It indicates the prior from the teacher that which one is more reliable to cast in this class.
114
+
115
+ Therefore, we also encourage to distill this intra-relation for better performance. Actually, define prediction matrix Y (s) and Y (t) with each row as Y (si,: ) and Y (t)i,: , then the above inter-relation is to maximize the correlation row-wisely (see Figure 3). In contrast, for intra-relation, the corresponding loss is thus to maximize the correlation column-wisely, i.e.,
116
+
117
+ $$
118
+ \mathcal { L } _ { \mathrm { \mathrm { i n t r a } } } : = \frac { 1 } { C } \sum _ { j = 1 } ^ { C } d _ { \mathrm { p } } ( Y _ { : , j } ^ { ( \mathrm { s } ) } , Y _ { : , j } ^ { ( \mathrm { t } ) } ) .
119
+ $$
120
+
121
+ As a result, the overall training loss $\mathcal { L } _ { \mathrm { t r } }$ can be composed of the classification loss, inter-class KD loss, and intra-class KD loss, i.e.,
122
+
123
+ $$
124
+ \mathcal { L } _ { \mathrm { t r } } = \alpha \mathcal { L } _ { \mathrm { c l s } } + \beta \mathcal { L } _ { \mathrm { i n t e r } } + \gamma \mathcal { L } _ { \mathrm { i n t r a } } ,
125
+ $$
126
+
127
+ where $\alpha , \beta$ , and $\gamma$ are factors for balancing the losses. In this way, via the relation loss, we have endowed the student with freedom more or less to match the teacher network’s output adaptively, thus boosting the distillation performance to a great extent.
128
+
129
+ Table 1: Training strategies on image classification tasks. BS: batch size; $L R$ : learning rate; WD: weight decay; LS: label smoothing; EMA: model exponential moving average; RA: RandAugment [9]; $R E$ : random erasing; CJ: color jitter.
130
+
131
+ <table><tr><td>Strategy</td><td>Dataset</td><td>Epochs</td><td>Total Initial BS</td><td>LR</td><td>Optimizer</td><td>WD</td><td></td><td></td><td>LS EMA LR scheduler</td><td></td><td>Data augmentation</td></tr><tr><td>A1</td><td>CIFAR-100</td><td>240</td><td>64</td><td>0.05</td><td>SGD</td><td>5×10-4</td><td></td><td></td><td></td><td>×0.1 at 150,180,210 epochs crop + flip</td><td></td></tr><tr><td>B1</td><td>ImageNet</td><td>100</td><td>256</td><td>0.1</td><td>SGD</td><td>1×10-4</td><td></td><td>1</td><td>-</td><td>×0.1 every 30 epochs</td><td>crop + flip</td></tr><tr><td>B2</td><td>ImageNet</td><td>450</td><td>768</td><td>0.048</td><td>3RMSProp</td><td>1×10-5</td><td></td><td></td><td></td><td>0.10.9999 ×0.97 every 2.4 epochs</td><td>{Bl} +RA + RE</td></tr><tr><td>B3</td><td>ImageNet</td><td>300</td><td>1024</td><td>5e-4</td><td>AdamW</td><td>5×10-²</td><td>0.1</td><td></td><td>1 cosine</td><td></td><td>{B2} +CJ+ Mixup +CutMix</td></tr></table>
132
+
133
+ Table 2: Evaluation results of baseline settings on ImageNet. We use ResNet-34 and ResNet-50 released by Torchvision [28] as our teacher networks, and follow the standard training strategy (B1). Student (teacher) Teacher Student KD [16] OFD [14] CRD [41] SRRL [47] Review [7] DIST
134
+
135
+ <table><tr><td>ResNet-18 (ResNet-34)</td><td>Top-1 Top-5</td><td>73.31 91.42</td><td>69.76 89.08</td><td>70.66 89.88</td><td>71.08 90.07</td><td>71.17 90.13</td><td>71.73 90.60</td><td>71.61 90.51</td><td>72.07 90.42</td></tr><tr><td>MobileNet (ResNet-50)</td><td>Top-1 Top-5</td><td>76.16 92.86</td><td>70.13 89.49</td><td>70.68 90.30</td><td>71.25 90.34</td><td>71.37 90.41</td><td>72.49 90.92</td><td>72.56 91.00</td><td>73.24 91.12</td></tr></table>
136
+
137
+ # 4 Experiments
138
+
139
+ # 4.1 Experimental settings
140
+
141
+ Training strategies. The training strategies of image classification task are summarized in Table 1. CIFAR-100. For fair comparisons, we use the same training strategies (referred to $A l$ in Table 1) and pretrained models following CRD [41]. ImageNet. B1: for comparisons with previous KD methods, we train our baselines with the same simple training strategy as CRD [41]. B2: to validate the effectiveness of KD methods on modern training strategies, we follow EfficientNet [40] and design a training strategy B2, which can significantly improve the performance compared to B1. B3: the strategy B3 is used for training Swin-Transformers [27], and contains even more stronger data augmentations and regularization.
142
+
143
+ Loss weights. On CIFAR-100 and ImageNet, we set $\alpha = 1$ , $\beta = 2$ , and $\gamma = 2$ in Eq.(10). On object detection and semantic segmentation, these three factors are all equal to 1. For KD [16], we set $\alpha = 0 . 9$ , $\beta = 1$ in Eq.(3), and use a default temperature $\tau = 4$ . Specifically, instead of using $\tau = 1$ on ImageNet, we choose a larger temperature $\tau = 4$ on CIFAR-100, as it is easy to get overfit and the learned probabilistic distribution is sharp on CIFAR-100.
144
+
145
+ # 4.2 Image Classification
146
+
147
+ Baseline results on ImageNet. We first compare our method with prior works using the baseline settings. As shown in Table 2, our DIST significantly outperforms prior KD methods. Note that our method is only conducted on the outputs of models, and has a similar computational cost as KD [16]. Nevertheless, it even achieves better performance compared to those sophisticatedlydesigned methods. For example, CRD [41] needs to preserve a memory bank for all 128-d features of ImageNet images, and produces additional 260M FLOPs of computation cost; SRRL [47] and Review [7] require additional convolutions for feature alignments. The implementation of DIST can be found in Appendix A.1, which is quite simple compared to these methods.
148
+
149
+ Distillation from stronger teacher models. As the stronger teachers come from larger model sizes and stronger strategies, we here first conduct experiments to compare our DIST with the vanilla KD on different scales (model sizes) of ResNets with baseline strategy B1. As shown in Table 3, when the teacher goes larger, the ResNet-18 students perform even worse than that with a medium-sized ResNet-50 teacher. Nevertheless, our DIST shows an upward trend with larger teachers, and the improvements compared to KD also become more significant, indicating that our DIST tackles better on the large discrepancy between the student and larger teacher.
150
+
151
+ Distillation from stronger training strategies. Recently, the performance of models on ImageNet has been significantly improved by the sophisticated training strategies and strong data augmentations (e.g., TIMM [44] achieves $8 0 . 4 \%$ accuracy on ResNet-50 while the baseline strategy B1 only obtains $7 6 . 1 \%$ . However, most of the KD methods still conduct experiments with simple training settings. It is seldomly investigated whether the KD methods are suitable to the advanced strategies. In this way, we conduct experiments with advanced training strategies and compare our method with vanilla KD, instance relation-based RKD [30], and SRRL [47].
152
+
153
+ Table 3: Performance of ResNet-18 and ResNet-34 on ImageNet with different sizes of teachers.
154
+
155
+ <table><tr><td rowspan="2">Student</td><td rowspan="2">Teacher</td><td colspan="4">Top-1 ACC (%)</td></tr><tr><td> student</td><td>teacher</td><td>KD</td><td>DIST</td></tr><tr><td rowspan="4">ResNet-18</td><td>ResNet-34</td><td rowspan="4">69.76</td><td>73.31</td><td>71.21</td><td>72.07 (+0.86)</td></tr><tr><td>ResNet-50</td><td>76.13</td><td>71.35</td><td>72.12 (+0.77)</td></tr><tr><td>ResNet-101</td><td>77.37</td><td>71.09</td><td>72.08 (+0.99)</td></tr><tr><td>ResNet-152</td><td>78.31</td><td>71.12</td><td>72.24 (+1.12)</td></tr><tr><td rowspan="4">ResNet-34</td><td>ResNet-50</td><td rowspan="2">73.31</td><td>76.13</td><td>74.73</td><td>75.06 (+0.33)</td></tr><tr><td>ResNet-101</td><td>77.37</td><td>74.89</td><td>75.36 (+0.47)</td></tr><tr><td>ResNet-152</td><td>78.31</td><td>74.87</td><td>75.42 (+0.55)</td></tr><tr><td></td><td></td><td></td><td></td></tr></table>
156
+
157
+ Table 4: Performance of students trained with strong strategies on ImageNet. The Swin- $T$ is trained with strategy B3 in Table 1, others are trained with B2. †: trained by [44]. ‡: Pretrained on ImageNet-22K.
158
+
159
+ <table><tr><td rowspan="2">Teacher</td><td rowspan="2">Student</td><td colspan="4">Top-1 ACC (%)</td></tr><tr><td>teacher student</td><td>KD[16] RKD[30]</td><td>SRRL [47]</td><td>DIST</td></tr><tr><td rowspan="4">ResNet-50t</td><td>ResNet-18</td><td rowspan="4">80.1</td><td>73.4</td><td>72.6 72.9 71.2</td><td>74.5</td></tr><tr><td>ResNet-34</td><td>76.8</td><td>77.2 76.6 76.7</td><td> 77.8</td></tr><tr><td>MobileNetV2</td><td>73.6</td><td>71.7 73.1 69.2</td><td> 74.4</td></tr><tr><td>EfficientNet-B0</td><td>78.0 77.4</td><td>77.5 77.3</td><td>78.6</td></tr><tr><td rowspan="2">Swin-L</td><td>ResNet-50</td><td rowspan="2">86.3</td><td>78.5</td><td>80.0 78.9 78.6</td><td>80.2</td></tr><tr><td>Swin-T</td><td>81.3 81.5</td><td>81.2 81.5</td><td> 82.3</td></tr></table>
160
+
161
+ We first train traditional CNNs with strong strategies, and also use a strong ResNet-50 with $8 0 . 1 \%$ accuracy trained by [44] as the teacher. As results shown in Table 4, on both similar architectures (ResNet-18, ResNet-34) and dissimilar architectures (MobileNetV2, EfficientNet-B0), our DIST can achieve the best performance. Note that RKD and SRRL can perform worse than training from scratch, especially when the students are small (ResNet-18 and MobileNet) or the architectures of teacher and student are fairly different (ResNet-50 and Swin-L), this might be because they focus on the intermediate features, which can be more challenging for the student to recover teacher’s features compared to predictions.
162
+
163
+ Furthermore, we experiment on the recent state-of-the-art Swin-Transformer [27]. The results show that our DIST gains improvements on even more stronger models and strategies. For example, with Swin-L teacher, our method improves ResNet-50 and Swin-T by $1 . 7 \%$ and $1 . 0 \%$ , respectively.
164
+
165
+ CIFAR-100. The results on CIFAR-100 dataset in Table 5 show that, by distilling on the predicted logits, our method even outperforms those sophisticatedly-designed feature distillation methods.
166
+
167
+ # 4.3 Object Detection
168
+
169
+ We further investigate the effectiveness of DIST on downstream tasks. We conduct experiments on MS COCO object detection dataset [25], and simply leverage our DIST as an additional supervision on the final predictions of classes. Following [37, 52], we use the same standard training strategies and utilize Cascade Mask R-CNN [2] with ResNeXt-101 backbone as the teacher for two-stage student of Faster R-CNN [23] with ResNet-50 backbone; while for one-stage RetinaNet [24] with ResNet-50 backbone, the RetinaNet with ResNeXt-101 backbone is utilized as the teacher.
170
+
171
+ As shown in Table 6, our DIST achieves competitive results on COCO validation set. For comparisons, we train the vanilla KD under the same settings as our DIST, the results show that our DIST significantly outperforms vanilla KD by simply replacing the loss functions. Moreover, by combining
172
+
173
+ Table 5: Evaluation results on CIFAR-100 dataset. The upper and lower models denote teacher and student, respectively.
174
+
175
+ <table><tr><td rowspan="2">Method</td><td colspan="3">Same architecture style</td><td colspan="3">Different architecture style</td></tr><tr><td>WRN-40-2 WRN-40-1</td><td>ResNet-56 ResNet-20</td><td>ResNet-32x4 ResNet-8x4</td><td>ResNet-50 MobileNetV2 ShuffleNetV1 ShuffleNetV2</td><td>ResNet-32x4 ResNet-32x4</td><td></td></tr><tr><td>Teacher</td><td>75.61</td><td>72.34</td><td>79.42</td><td>79.34</td><td>79.42</td><td>79.42</td></tr><tr><td>Student</td><td>71.98</td><td>69.06</td><td>72.50</td><td>64.6</td><td>70.5</td><td>71.82</td></tr><tr><td colspan="7">Feature-based methods</td></tr><tr><td>FitNet [35]</td><td>72.24±0.24 69.21±0.36</td><td></td><td>73.50±0.28</td><td>63.16±0.47</td><td>73.59±0.15</td><td>73.54±0.22</td></tr><tr><td>VID [1]</td><td>73.30±0.13</td><td>70.38±0.14</td><td>73.09±0.21</td><td>67.57±0.28</td><td>73.38±0.09</td><td>73.40±0.17</td></tr><tr><td>RKD [30]</td><td>72.22±0.20</td><td>69.61±0.06</td><td>71.90±0.11</td><td>64.43±0.42</td><td>72.28±0.39</td><td>73.21±0.28</td></tr><tr><td>PKT [31]</td><td>73.45±0.19</td><td>70.34±0.04</td><td>73.64±0.18</td><td>66.52±0.33</td><td>74.10±0.25</td><td>74.69±0.34</td></tr><tr><td>CRD [41]</td><td>74.14±0.22</td><td>71.16±0.17</td><td>75.51±0.18</td><td>69.11±0.28</td><td>75.11±0.32</td><td>75.65±0.10</td></tr><tr><td colspan="7">Logits-based methods</td></tr><tr><td>KD [16]</td><td>73.54±0.20 70.66±0.24 73.33±0.25</td><td></td><td></td><td>67.35±0.32</td><td>74.07±0.19</td><td>74.45±0.27</td></tr><tr><td> DIST</td><td></td><td>74.73±0.24 71.75±0.30 76.31±0.19</td><td></td><td>68.66±0.23</td><td>76.34±0.18</td><td>77.35±0.25</td></tr></table>
176
+
177
+ Table 6: Results on COCO validation set. T: teacher; S: student. \*: We implement KD using $\tau = 1$ and other settings are the same as DIST.
178
+
179
+ <table><tr><td>Method</td><td colspan="5">AP AP50 AP75 APs APM APL</td></tr><tr><td>T: Cascade Mask RCNN-X101</td><td>Two-stage detectors</td><td>45.6 64.1 49.7</td><td>26.2</td><td>49.6 42.1</td><td>60.0 50.3</td></tr><tr><td>S: Faster RCNN-R50 KD [16]* FKD [52]</td><td>38.4 39.7 41.5</td><td>59.0 61.2 62.2</td><td>42.0 43.0 45.1</td><td>21.5 23.2 23.5</td><td>43.3 51.7 45.0 55.3</td></tr><tr><td>CWD [37] DIST DIST + mimic</td><td>41.7 40.4 61.7</td><td>62.0 45.5 43.8</td><td>23.3 23.9</td><td>45.5 44.6 41.8 62.4 45.6 23.4 46.1</td><td>55.5 52.6 55.0</td></tr><tr><td>T: RetinaNet-X101 S:RetinaNet-R50 KD [16]*</td><td>One-stage detectors 41.0 37.2 56.5</td><td>60.944.0 37.4 56.739.6</td><td>39.3 20.4</td><td>23.9 45.2 20.0 40.7 40.4</td><td>54.0 49.7 49.5</td></tr><tr><td>FKD [52] CWD [37]</td><td>39.6 40.8</td><td>558.8 60.4 59.5</td><td>42.1 43.4</td><td>22.7 43.3 22.7 44.5</td><td>52.5 55.3</td></tr><tr><td>DIST DIST + mimic</td><td>39.8 40.1 59.4</td><td>42.5 43.0</td><td>22.0</td><td>43.7 23.2 44.0</td><td>53.0 53.6</td></tr></table>
180
+
181
+ Table 7: Results on Cityscapes val dataset. All models are pretrained on ImageNet.
182
+
183
+ <table><tr><td rowspan=1 colspan=3>Method</td><td rowspan=1 colspan=1>mIoU (%)</td></tr><tr><td rowspan=1 colspan=3>T: DeepLabV3-R101</td><td rowspan=1 colspan=1>78.07</td></tr><tr><td rowspan=1 colspan=3>S: DeepLabV3-R18</td><td rowspan=1 colspan=1>74.21</td></tr><tr><td rowspan=1 colspan=3>SKD [26]</td><td rowspan=3 colspan=1>75.4275.59</td></tr><tr><td rowspan=2 colspan=2>IFVD [43]</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=2 colspan=3>CWD [37]</td></tr><tr><td rowspan=1 colspan=1>75.55</td></tr><tr><td rowspan=1 colspan=3>CIRKD [46]</td><td rowspan=1 colspan=1>76.38</td></tr><tr><td rowspan=1 colspan=3>DIST</td><td rowspan=1 colspan=1>77.10</td></tr><tr><td rowspan=1 colspan=3>S: PSPNet-R18</td><td rowspan=1 colspan=1>72.55</td></tr><tr><td rowspan=1 colspan=3>SKD [26]</td><td rowspan=3 colspan=1>73.2973.7174.36</td></tr><tr><td rowspan=1 colspan=3>IFVD [43]</td></tr><tr><td rowspan=1 colspan=3>CWD [37]</td></tr><tr><td rowspan=1 colspan=3>CIRKD [46]</td><td rowspan=1 colspan=1>74.73</td></tr><tr><td rowspan=1 colspan=3> DIST</td><td rowspan=1 colspan=1>76.31</td></tr></table>
184
+
185
+ DIST with mimic, which minimizes the mean square error between FPN features of teacher and student, we can even outperform the state-of-the-art KD methods designed for object detection.
186
+
187
+ # 4.4 Semantic Segmentation
188
+
189
+ We also perform experiments on semantic segmentation, a challenging dense prediction task. Following [37, 43, 46], we train DeepLabV3 [6] and PSPNet [54] with ResNet-18 backbone on Cityscapes dataset, and adopt our DIST on the predictions of classification head using a teacher with ResNet101 backbone of DeepLabV3. As the results summarized in Table 7, with only the supervision of class predictions, our DIST can significantly outperform existing knowledge distillation methods on semantic segmentation task. For example, our DIST outperforms recent state-of-the-art method CIRKD [46] by $1 . 5 8 \%$ on PSPNet-R18. This demonstrate our effectiveness on relation modeling.
190
+
191
+ # 4.5 Ablation studies
192
+
193
+ Effects of inter-class and intra-class correlations. This paper proposes two types of relations: interclass and intra-class relations. To validate the effectiveness of each relation, we conduct experiments to train students with these relations separately. The results on Table 8 verify that, both inter-class and intra-class relations can outperform the vanilla KD; also, the performance could be further boosted by combining them together.
194
+
195
+ Table 8: Ablation of inter-class and intra-class relations on ImageNet. The student and teacher models are ResNet-18 and ResNet-34, respectively.
196
+
197
+ <table><tr><td>Method</td><td>Inter</td><td>Intra</td><td>ACC (%)</td></tr><tr><td>KD</td><td>-</td><td>1</td><td>71.21</td></tr><tr><td>DIST (KL div.) DIST (KL div.)</td><td>× √</td><td>√ &lt;</td><td>70.61 71.62</td></tr><tr><td>DIST</td><td>√</td><td>×</td><td>71.63</td></tr><tr><td>DIST</td><td>×</td><td>√</td><td>71.55</td></tr><tr><td>DIST</td><td>√</td><td>√</td><td></td></tr><tr><td></td><td></td><td></td><td>72.07</td></tr></table>
198
+
199
+ Effect of intra-class relation in vanilla KD. To investigate the effectiveness of intra-class relation in vanilla KD, we adopt experiments to train our DIST using KL divergence as the relation metric, denoted as $D I S T ( K L { \dot { d } } i \nu . ) ^ { 3 }$ . As the results summarized in Table 8, adding intra-class relation in the vanilla KD can also improve the performance (from $7 1 . 2 1 \%$ to $7 1 . 6 2 \%$ ). However, when the student is trained with intra-class relation only, the improvement of using KL divergence is less significant than using Pearson correlation $7 0 . 6 1 \%$ vs. $7 1 . 5 5 \%$ ), since the means and variances of intra-class distributions could be varied.
200
+
201
+ Effect of training students with KD loss only. Training student with only the KD loss can better reflect the distillation ability and the information richness of supervision signals. As results in Table 9 show that, when the student is trained with only the KD loss, our DIST significantly outperforms the vanilla KD. Without using the ground-truth labels, it can even outperform the standalone training accuracy, which indicates the effectiveness of our DIST in distilling those truly-beneficial relations.
202
+
203
+ Table 9: Comparisons of training KD with or without the classification loss on ImageNet. The student and teacher models are ResNet-18 and ResNet-34, respectively. The original accuracy of ResNet-18 without KD is $6 9 . 7 6 \%$ .
204
+
205
+ <table><tr><td>Method</td><td>w/ cls. loss</td><td>w/o cls. loss</td></tr><tr><td>KD</td><td>71.21</td><td>68.12</td></tr><tr><td>DIST</td><td>72.07</td><td>70.65</td></tr></table>
206
+
207
+ More ablation studies can be found in Section A.3.
208
+
209
+ # 5 Conclusion
210
+
211
+ This paper presents a new knowledge distillation (KD) method named DIST to implement better distillation from a stronger teacher. We empirically study the catastrophic discrepancy problem between the student and a stronger teacher, and propose a relation-based loss to relax the exact match of KL divergence in a linear sense. Our method DIST is simple yet effective in handling strong teachers. Extensive experiments show our superiority in various benchmark tasks. For example, DIST even outperforms state-of-the-art KD methods designed specifically for object detection and semantic segmentation.
212
+
213
+ # Acknowledgements
214
+
215
+ This work was supported in part by the Australian Research Council under Project DP210101859 and the University of Sydney Research Accelerator (SOAR) Prize.
216
+
217
+ # References
218
+
219
+ [1] knowledge transfer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9163–9171, 2019. 8 [2] Z. Cai and N. Vasconcelos. Cascade r-cnn: High quality object detection and instance segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, page 1–1, 2019. 1, 7 [3] K. Chandrasegaran, N.-T. Tran, Y. ZHAO, and N. man Cheung. To smooth or not to smooth? on compatibility between label smoothing and knowledge distillation, 2022. 14 [4] H. Chen, Y. Wang, C. Xu, C. Xu, and D. Tao. Learning student networks via feature embedding. IEEE Transactions on Neural Networks and Learning Systems, 32(1):25–35, 2020. 13 [5] L.-C. Chen, G. Papandreou, F. Schroff, and H. Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017. 1 [6] L.-C. Chen, Y. Zhu, G. Papandreou, F. Schroff, and H. Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European conference on computer vision (ECCV), pages 801–818, 2018. 8 [7] P. Chen, S. Liu, H. Zhao, and J. Jia. Distilling knowledge via knowledge review. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5008–5017, 2021. 6 [8] J. H. Cho and B. Hariharan. On the efficacy of knowledge distillation. In Proceedings of the IEEE/CVF international conference on computer vision, pages 4794–4802, 2019. 2 [9] E. D. Cubuk, B. Zoph, J. Shlens, and Q. V. Le. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pages 702–703, 2020. 3, 6
220
+ [10] Y. Dodge. The concise encyclopedia of statistics. Springer Science & Business Media, 2008. 13
221
+ [11] S. Du, S. You, X. Li, J. Wu, F. Wang, C. Qian, and C. Zhang. Agree to disagree: Adaptive ensemble knowledge distillation in gradient space. advances in neural information processing systems, 33:12345– 12355, 2020. 1
222
+ [12] J. Gou, B. Yu, S. J. Maybank, and D. Tao. Knowledge distillation: A survey. International Journal of Computer Vision, 129(6):1789–1819, 2021.
223
+ [13] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016. 1
224
+ [14] B. Heo, J. Kim, S. Yun, H. Park, N. Kwak, and J. Y. Choi. A comprehensive overhaul of feature distillation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1921–1930, 2019. 1, 6
225
+ [15] B. Heo, M. Lee, S. Yun, and J. Y. Choi. Knowledge transfer via distillation of activation boundaries formed by hidden neurons. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3779–3787, 2019.
226
+ [16] G. Hinton, O. Vinyals, and J. Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 1, 3, 5, 6, 7, 8, 14
227
+ [17] A. G. Howard, M. Zhu, B. Chen, D. Kalenichenko, W. Wang, T. Weyand, M. Andreetto, and H. Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. 1
228
+ [18] T. Huang, Z. Li, H. Lu, Y. Shan, S. Yang, Y. Feng, F. Wang, S. You, and C. Xu. Relational surrogate loss learning. In International Conference on Learning Representations, 2022.
229
+ [19] T. Huang, S. You, B. Zhang, Y. Du, F. Wang, C. Qian, and C. Xu. Dyrep: Bootstrapping training with dynamic re-parameterization. arXiv preprint arXiv:2203.12868, 2022. 1
230
+ [20] M. G. Kendall. A new measure of rank correlation. Biometrika, 30(1/2):81–93, 1938. 13
231
+ [21] J. Kim, S. Park, and N. Kwak. Paraphrasing complex network: Network compression via factor transfer. arXiv preprint arXiv:1802.04977, 2018.
232
+ [22] S. Kong, T. Guo, S. You, and C. Xu. Learning student networks with few data. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 4469–4476, 2020.
233
+ [23] T.-Y. Lin, P. Dollár, R. Girshick, K. He, B. Hariharan, and S. Belongie. Feature pyramid networks for object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2117–2125, 2017. 1, 7
234
+ [24] T.-Y. Lin, P. Goyal, R. Girshick, K. He, and P. Dollár. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer vision, pages 2980–2988, 2017. 7
235
+ [25] T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer, 2014. 7
236
+ [26] Y. Liu, C. Shu, J. Wang, and C. Shen. Structured knowledge distillation for dense prediction. IEEE transactions on pattern analysis and machine intelligence, 2020. 8
237
+ [27] Z. Liu, Y. Lin, Y. Cao, H. Hu, Y. Wei, Z. Zhang, S. Lin, and B. Guo. Swin transformer: Hierarchical vision transformer using shifted windows. arXiv preprint arXiv:2103.14030, 2021. 3, 6, 7
238
+ [28] S. Marcel and Y. Rodriguez. Torchvision the machine-vision package of torch. In Proceedings of the 18th ACM international conference on Multimedia, pages 1485–1488, 2010. 6
239
+ [29] S. I. Mirzadeh, M. Farajtabar, A. Li, N. Levine, A. Matsukawa, and H. Ghasemzadeh. Improved knowledge distillation via teacher assistant. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 5191–5198, 2020. 2
240
+ [30] W. Park, D. Kim, Y. Lu, and M. Cho. Relational knowledge distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3967–3976, 2019. 7, 8, 13, 14
241
+ [31] N. Passalis, M. Tzelepi, and A. Tefas. Probabilistic knowledge transfer for lightweight deep representation learning. IEEE Transactions on Neural Networks and Learning Systems, 32(5):2030–2039, 2020. 8
242
+ [32] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32:8026–8037, 2019. 13
243
+ [33] K. Pearson. Vii. mathematical contributions to the theory of evolution.—iii. regression, heredity, and panmixia. Philosophical Transactions of the Royal Society of London. Series A, containing papers of a mathematical or physical character, (187):253–318, 1896. 2
244
+ [34] B. Peng, X. Jin, J. Liu, D. Li, Y. Wu, Y. Liu, S. Zhou, and Z. Zhang. Correlation congruence for knowledge distillation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 5007–5016, 2019. 1, 13
245
+ [35] A. Romero, N. Ballas, S. E. Kahou, A. Chassang, C. Gatta, and Y. Bengio. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014. 8
246
+ [36] Z. Shen, Z. Liu, D. Xu, Z. Chen, K.-T. Cheng, and M. Savvides. Is label smoothing truly incompatible with knowledge distillation: An empirical study. In International Conference on Learning Representations, 2020. 14
247
+ [37] C. Shu, Y. Liu, J. Gao, Z. Yan, and C. Shen. Channel-wise knowledge distillation for dense prediction. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 5311–5320, 2021. 7, 8
248
+ [38] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 1
249
+ [39] W. Son, J. Na, J. Choi, and W. Hwang. Densely guided knowledge distillation using multiple teacher assistants. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9395– 9404, 2021. 2
250
+ [40] M. Tan and Q. Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International Conference on Machine Learning, pages 6105–6114. PMLR, 2019. 6
251
+ [41] Y. Tian, D. Krishnan, and P. Isola. Contrastive representation distillation. In International Conference on Learning Representations, 2019. 1, 6, 8, 14
252
+ [42] F. Tung and G. Mori. Similarity-preserving knowledge distillation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1365–1374, 2019.
253
+ [43] Y. Wang, W. Zhou, T. Jiang, X. Bai, and Y. Xu. Intra-class feature variation distillation for semantic segmentation. In European Conference on Computer Vision, pages 346–362. Springer, 2020. 8
254
+ [44] R. Wightman, H. Touvron, and H. Jégou. Resnet strikes back: An improved training procedure in timm. arXiv preprint arXiv:2110.00476, 2021. 7
255
+ [45] S. Xie, R. Girshick, P. Dollár, Z. Tu, and K. He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1492–1500, 2017. 1
256
+ [46] C. Yang, H. Zhou, Z. An, X. Jiang, Y. Xu, and Q. Zhang. Cross-image relational knowledge distillation for semantic segmentation. arXiv preprint arXiv:2204.06986, 2022. 8
257
+ [47] J. Yang, B. Martinez, A. Bulat, and G. Tzimiropoulos. Knowledge distillation via softmax regression representation learning. In International Conference on Learning Representations, 2020. 6, 7, 14
258
+ [48] S. You, T. Huang, M. Yang, F. Wang, C. Qian, and C. Zhang. Greedynas: Towards fast one-shot nas with greedy supernet. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1999–2008, 2020. 1
259
+ [49] S. You, C. Xu, C. Xu, and D. Tao. Learning from multiple teacher networks. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 1285–1294, 2017.
260
+ [50] S. Zagoruyko and N. Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. arXiv preprint arXiv:1612.03928, 2016.
261
+ [51] H. Zhang, M. Cisse, Y. N. Dauphin, and D. Lopez-Paz. mixup: Beyond empirical risk minimization. In International Conference on Learning Representations, 2018. 2, 3
262
+ [52] L. Zhang and K. Ma. Improve object detection with feature-based knowledge distillation: Towards accurate and efficient detectors. In International Conference on Learning Representations, 2020. 7, 8
263
+ [53] X. Zhang, X. Zhou, M. Lin, and J. Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6848–6856, 2018. 1
264
+ [54] H. Zhao, J. Shi, X. Qi, X. Wang, and J. Jia. Pyramid scene parsing network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2881–2890, 2017. 1, 8
265
+
266
+ # Checklist
267
+
268
+ 1. For all authors...
269
+
270
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
271
+ (b) Did you describe the limitations of your work? [Yes] See Appendix.
272
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See Appendix.
273
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
274
+
275
+ 2. If you are including theoretical results...
276
+
277
+ (a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
278
+
279
+ 3. If you ran experiments...
280
+
281
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] Training details are provided in the paper. Training code and logs are released at GitHub: https://github.com/hunto/DIST_KD.
282
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
283
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] Standard deviations on CIFAR-100 are reported.
284
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes]
285
+
286
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
287
+
288
+ (a) If your work uses existing assets, did you cite the creators? [Yes]
289
+ (b) Did you mention the license of the assets? [Yes]
290
+ (c) Did you include any new assets either in the supplemental material or as a URL? [Yes] Code and training logs are included.
291
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
292
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
293
+
294
+ 5. If you used crowdsourcing or conducted research with human subjects...
295
+
296
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
297
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
298
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/dev/157Usp_kbi/157Usp_kbi_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/157Usp_kbi/157Usp_kbi_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/3itjR9QxFw/3itjR9QxFw.md ADDED
@@ -0,0 +1,433 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ANALOG BITS: GENERATING DISCRETE DATA USING DIFFUSION MODELS WITH SELF-CONDITIONING
2
+
3
+ Ting Chen, Ruixiang Zhang†, Geoffrey Hinton
4
+
5
+ Google Research, Brain Team {iamtingchen,ruixiangz,geoffhinton}@google.com
6
+
7
+ # ABSTRACT
8
+
9
+ We present Bit Diffusion: a simple and generic approach for generating discrete data with continuous state and continuous time diffusion models. The main idea behind our approach is to first represent the discrete data as binary bits, and then train a continuous diffusion model to model these bits as real numbers which we call analog bits. To generate samples, the model first generates the analog bits, which are then thresholded to obtain the bits that represent the discrete variables. We further propose two simple techniques, namely Self-Conditioning and Asymmetric Time Intervals, which lead to a significant improvement in sample quality. Despite its simplicity, the proposed approach can achieve strong performance in both discrete image generation and image captioning tasks. For discrete/categorical image generation, we significantly improve previous state-of-the-art on both CIFAR10 (which has $3 K$ discrete 8-bit tokens) and IMAGENET $6 4 \times 6 4$ (which has $1 2 K$ discrete 8-bit tokens), outperforming the best autoregressive model in both sample quality (measured by FID) and efficiency. For image captioning on MS-COCO dataset, our approach achieves competitive results compared to autoregressive models.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ State-of-the-art generative models for discrete data, such as discrete images and text, are based on autoregressive modeling (Van den Oord et al., 2016; Salimans et al., 2017; Parmar et al., 2018; Child et al., 2019; Roy et al., 2021; Jun et al., 2020; Sutskever et al., 2014; Brown et al., 2020; Chowdhery et al., 2022), where the networks, often Transformers (Vaswani et al., 2017), are trained to predict each token given its preceding ones in a sequential manner or with causal attention masks. One major drawback of such approaches is that they typically require computation and memory that is quadratic to the dimension of data (e.g., sequence length or image size), leading to difficulties in modeling large images or sequences. Another drawback is that, during generation, autoregressive models generate one token at a time so the total number of sequential sampling steps is often the same as the dimension of data, making it slow in generating large images or long sequences.
14
+
15
+ In contrast, diffusion models (Sohl-Dickstein et al., 2015; Ho et al., 2020; Song et al., 2020), or score-based generative models (Song & Ermon, 2019; 2020; Song et al., 2021), can model much higher dimensional data without running into computation and memory issues. During generation, diffusion models iteratively refine samples with a high degree of parallelism, so the total number of sequential sampling steps can be much less than the dimension of data. However, state-of-the-art diffusion models (Dhariwal & Nichol, 2021; Ho et al., 2022; Nichol et al., 2021; Ramesh et al., 2022; Saharia et al., 2022) can only generate continuous data (mainly real valued pixels), and have not yet achieved results competitive with autoregressive models in generating discrete/categorical data, such as generating discrete/categorical images (Hoogeboom et al., 2021; Austin et al., 2021).
16
+
17
+ In this work, we propose a simple and generic approach for enabling continuous state diffusion models to generate discrete data. The key ingredient in our approach is analog bits: real numbers used to model the bits that represent the discrete data. Analog bits can be directly modeled by continuous state diffusion models, without requiring a discrete state space or re-formulation of the continuous diffusion process. At sampling time, the generated analog bits can be decoded into discrete variables by a simple thresholding operation. Our approach, as illustrated in Figure 1, is based on the following high-level conjecture. With strong continuous generative models (diffusion models in particular), it should not be too difficult to generate highly concentrated bimodal data where each real-valued analog bit is close to a binary bit. To reduce the prediction loss (such as negative log likelihood), the network has to model structures among analog bits that can actually lead to meaningful discrete variables after thresholding.
18
+
19
+ ![](images/c0ed764f9997aa81e12b49cd8179d3850e34208d49de4be3680434adec455e9c.jpg)
20
+ Figure 1: Bit Diffusion: modeling discrete data using continuous diffusion models with analog bits.
21
+
22
+ Besides analog bits, we further propose two simple techniques, namely Self-Conditioning and Asymmetric Time Intervals that greatly improve the sample quality. We evaluate the proposed approach on both discrete image generation, and image-conditional text / caption generation. On discrete CIFAR-10 and IMAGENET $6 4 \times 6 4$ , the proposed Bit Diffusion model significantly improves both existing discrete diffusion models but also the best autoregressive model. For example, on categorical CIFAR-10, the best autoregressive model (Jun et al., 2020) obtains a FID of 12.75, while our model (with $^ 1 / 3$ of the model size of the autoregressive model, using 100 instead of 3072 sequential inference steps) achieves a much better 6.93. For image captioning on MS-COCO dataset, our model achieves a result competitive with a strong autoregressive captioner based on a Transformer.
23
+
24
+ # 2 METHOD
25
+
26
+ Preliminaries We start with a short introduction to diffusion models (Sohl-Dickstein et al., 2015; Ho et al., 2020; Song et al., 2020; 2021). Diffusion models learn a series of state transitions to map noise $\epsilon$ from a known prior distribution to $\scriptstyle { \mathbf { { \mathit { x } } } } _ { 0 }$ from the data distribution. To learn this (reverse) transition from the noise distribution to the data distribution, a forward transition from $\scriptstyle { \pmb x } _ { 0 }$ to $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ is first defined:
27
+
28
+ $$
29
+ { \pmb x } _ { t } = \sqrt { \gamma ( t ) } { \pmb x } _ { 0 } + \sqrt { 1 - \gamma ( t ) } { \pmb \epsilon } ,
30
+ $$
31
+
32
+ where $\epsilon \sim \mathcal { N } ( 0 , I )$ , $t \sim \mathcal { U } ( 0 , T )$ is a continuous variable, and $\gamma ( t )$ is a monotonically decreasing function from 1 to 0. Instead of directly learning a neural net to model the transition from $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ to $\pmb { x } _ { t - \Delta }$ , one can learn a neural net $f ( \boldsymbol { x } _ { t } , \dot { t } )$ to predict $\scriptstyle { \mathbf { { \mathit { x } } } } _ { 0 }$ (or $\epsilon$ ) from $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ , and estimate $\pmb { x } _ { t - \Delta }$ from $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ and estimated $\tilde { \mathbf { x } } _ { 0 }$ (or $\tilde { \epsilon }$ ). This training of $f ( \pmb { x } _ { t } , t )$ is based on denoising with a $\ell _ { 2 }$ regression loss:
33
+
34
+ $$
35
+ \begin{array} { r } { \mathcal { L } _ { { \pmb x } _ { 0 } } = \mathbb { E } _ { t \sim \mathcal { U } ( 0 , T ) , { \epsilon } \sim \mathcal { N } ( { \mathbf 0 } , { \mathbf 1 } ) } \| f ( \sqrt { \gamma ( t ) } { \pmb x } _ { 0 } + \sqrt { 1 - \gamma ( t ) } { \pmb \epsilon } , t ) - { \pmb x } _ { 0 } \| ^ { 2 } . } \end{array}
36
+ $$
37
+
38
+ To generate samples from a learned model, it follows a series of (reverse) state transition $\mathbf { \delta } _ { \mathbf { x } _ { T } } \to \mathbf { \delta } $ ${ \pmb x } _ { T - \Delta } \cdot \cdot \cdot { \pmb x } _ { 0 }$ . This can be achieved by iteratively applying denoising function $f$ on each state $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ to estimate $\scriptstyle { \mathbf { { \mathit { x } } } } _ { 0 }$ , and then make a transition to $\mathbf { \delta x } _ { t - \Delta }$ with the estimated $\tilde { \mathbf { x } } _ { 0 }$ (using transition rules such as those specified in DDPM (Ho et al., 2020) or DDIM (Song et al., 2020)). Note that state transitions in these diffusion models assume a continuous data space and state space. Therefore, one cannot directly apply it to model and generate discrete/categorical data.
39
+
40
+ Analog Bits A discrete data variable from an alphabet of size $K$ can be represented using $n =$ $\lceil \log _ { 2 } K \rceil$ bits, as $\{ 0 , 1 \} ^ { n }$ . Due to the discreteness, existing work has to re-formulate continuous diffusion models by adopting a discrete data space and state space (Sohl-Dickstein et al., 2015; Hoogeboom et al., 2021; Austin et al., 2021). In contrast, we propose to simply cast the binary bits $\{ 0 , \bar 1 \} ^ { n }$ into real numbers $\mathbb { R } ^ { n }$ for the continuous diffusion models 1. We term these real numbers analog bits since they learn to share the same bimodal values as binary bits but are modeled as real numbers. To draw samples, we follow the same procedure as sampling in a continuous diffusion model, except that we apply a quantization operation at the end by simply thresholding the generated analog bits. This yields binary bits which can be then converted into original discrete/categorical variables. Notably, there is no hard constraint to force the model to generate exact binary bits, but we expect a strong continuous generative model to generate real numbers that exhibit very clear bimodal concentrations and this is what happens in our experiments.
41
+
42
+ ![](images/6db7425edf9e8249ebde61d2284a0730646c07a01b44aa9f2ca88cdf548a8357.jpg)
43
+ (a) Standard reverse diffusion steps.
44
+
45
+ ![](images/f737574d4fc79cdf05a4a018341a712d2e29771633a9a7a0ad5b245f095afdb3.jpg)
46
+ (b) Self-Conditioning on the previous $\scriptstyle \mathbf { { \vec { x } } } 0$ estimate.
47
+ Figure 2: An illustration of reverse diffusion sampling steps (a) without or (b) with Self-Conditioning. $\tilde { \mathbf { x } } _ { 0 }$ denotes the estimation of data sample by the denoising network $f$ at a sampling step. We propose to condition the network directly on its previously generated/estimated samples.
48
+
49
+ For simplicity, we use the same regression loss function (Eq. 2) for modeling analog bits. However, it is possible to use other loss functions such as the cross entropy loss. We also note that the binary encoding mechanism for constructing analog bits is extensible as well (e.g., one-hot encoding). Extensions of loss functions and binary encoding are described in the appendix B.
50
+
51
+ Self-Conditioning Conditioning is a useful technique for improving diffusion models (Nichol & Dhariwal, 2021; Ho et al., 2022). However, a typical conditioning variable is either from some external sources, such as class labels (Nichol & Dhariwal, 2021) or low-resolution images from another network (Nichol & Dhariwal, 2021; Saharia et al., 2021; Ho et al., 2022). Here we propose a technique for the model to directly condition on previously generated samples of its own during the iterative sampling process, which can significantly improve the sample quality of diffusion models.
52
+
53
+ In a typical diffusion sampling process, the model iteratively predicts $\scriptstyle { \mathbf { { \vec { x } } } } _ { 0 }$ (or $\epsilon$ ) in order to progress the chain of mapping noise into data. However, as shown in Figure 2a, the previously estimated $\tilde { \mathbf { x } } _ { 0 }$ is simply discarded when estimating $\scriptstyle { \mathbf { { \mathit { x } } } } _ { 0 }$ from a new time step, i.e. the denoising function $f ( \pmb { x } _ { t } , t )$ does not directly depend on a previously estimated $\tilde { \mathbf { x } } _ { 0 }$ . Here we consider a slightly different denoising function of $f ( \pmb { x } _ { t } , \tilde { \pmb { x } } _ { 0 } , t )$ that also takes previous generated samples as its input, illustrated in Figure 2b. A simple implementation of Self-Conditioning is to concatenate $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ with previously estimated $\tilde { \mathbf { x } } _ { 0 }$ . Given that $\tilde { \mathbf { x } } _ { 0 }$ is from the earlier prediction of the model in the sampling chain, this comes at a negligible extra cost during sampling. In order to train the denoising function $f ( \pmb { x } _ { t } , \tilde { \pmb { x } } _ { 0 } , t )$ , we make some small changes to the training. With some probability (e.g., $5 0 \%$ ), we set $\tilde { \pmb { x } } _ { 0 } = { \bf 0 }$ which falls back to modeling without Self-Conditioning. At other times, we first estimate $\tilde { \pmb { x } } _ { 0 } = f ( \pmb { x } _ { t } , \mathbf { 0 } , t )$ and then use it for Self-Conditioning. Note that we do not backpropagate through the estimated $\tilde { \mathbf { x } } _ { 0 }$ so the overall increase of training time is small (e.g., less than $2 5 \%$ ).
54
+
55
+ Asymmetric Time Intervals Besides Self-Conditioning, we identify another factor, time step $t$ , that can also impact Bit Diffusion models. Time step $t$ is an integral part of both denoising network $f ( \pmb { x } _ { t } , t )$ as well as the state transitions. During a typical reverse diffusion process, the model takes symmetric time intervals (i.e., $\Delta$ as in $t \to t - \Delta _ { * }$ ) for both the state transition and time reduction itself, resulting in the same/shared $t$ for both arguments of $f ( \pmb { x } _ { t } , t )$ . However, we find that, when taking large reverse steps, using asymmetric time intervals, implemented via a simple manipulation of time scheduling at generation, can lead to improved sampling quality for Bit Diffusion models.
56
+
57
+ More specially, with asymmetric time intervals during the sampling process, we have $f ( \pmb { x } _ { t } , t ^ { \prime } )$ , where $t ^ { \prime } = t + \xi$ and $\xi$ is a small non-negative time difference parameter. Note that training remains unchanged, and the same/shared $t$ is used for both arguments of the $f ( \pmb { x } _ { t } , t )$ . Figure 3 illustrates the effect with a trained Bit Diffusion model, where it is asked to take two reversing steps from a state $x _ { t }$ constructed using the forward diffusion, and it shows that asymmetric time intervals reduce the number of noisy pixels (after thresholding and converting back to discrete variables).
58
+
59
+ ![](images/f72c43281e8ed1f0ec8e1e837f38cc9b0d83da14b82d3a69ed816260e93c9399.jpg)
60
+ Figure 3: When taking a large reverse step from ${ \bf { x } } _ { t = 0 . 6 }$ to ${ \bf { x } } _ { t = 0 . 1 }$ in Bit Diffusion with maximum time $T = 1 . 0$ , we see that asymmetric time intervals with a positive time difference $\xi$ improve the denoising quality of ${ \mathbf { \mathcal { x } } } _ { t = 0 . 1 }$ (by reducing the number of noisy pixels).
61
+
62
+ Putting it together Algorithm 1 and 2 summarize the training and sampling algorithms for the proposed Bit Diffusion model with Analog Bits, Self-Conditioning, and Asymmetric Time Intervals (via the td parameter). The proposed changes to the existing diffusion models are highlighted in blue. Note that unlike standard diffusion models (Sohl-Dickstein et al., 2015; Ho et al., 2020; Nichol & Dhariwal, 2021), we use a continuous time parameterization between 0 and 1 instead of a fixed discrete time for maximal flexibility but they perform similarly. More details of the algorithm (including some important functions) can be found in Appendix A.
63
+
64
+ # Algorithm 1 Bit Diffusion training algorithm.
65
+
66
+ # Algorithm 2 Bit Diffusion sampling algorithm.
67
+
68
+ def train_loss(x): # Binary encoding: discrete to analog bits. x_bits $=$ int2bit(x).astype(float) x_bits $=$ (x_bits \* 2 - 1) \* scale # Corrupt data. t $=$ uniform(0, 1) eps $=$ normal(mean ${ } = 0$ , std $= 1$ ) x_crpt $=$ sqrt(gamma(t)) \* x_bits + sqrt(1 - gamma(t)) \* eps # Compute self-cond estimate. x_pred $=$ zeros_like(x_crpt) if self_cond and uniform(0, 1) > 0.5: x_pred $=$ net(cat([x_crpt, x_pred], -1), t) x_pred $=$ stop_gradient(x_pred) # Predict and compute loss. x_pred $=$ net(cat([x_crpt, x_pred], -1), t) loss $=$ (x_pred - x_bits)\*\*2 return loss.mean()
69
+
70
+ def generate(steps, td=0): x_t $=$ normal(mean=0, std=1) x_pred $=$ zeros_like(x_t) for step in range(steps): # Get time for current and next states. t_now $\ c = ~ 1$ - step / steps t_next $=$ max(1 - (step+1+td) / steps, 0) # Predict x_0. if not self_cond: x_pred $=$ zeros_like $( \mathrm { x \_ t } )$ ) x_pred $=$ net(cat([x_t,x_pred],-1), t_now) # Estimate x at t_next. x_t $=$ ddim_or_ddpm_step( x_t, x_pred, t_now, t_next) # Binary decoding to discrete data. return bit2int(x_pred $> 0$ )
71
+
72
+ # 3 EXPERIMENTS
73
+
74
+ We experiment with two different discrete data generation tasks, namely discrete/categorical image generation, and image captioning (image-conditional text generation).
75
+
76
+ # 3.1 EXPERIMENTAL SETUP AND IMPLEMENTATION DETAILS
77
+
78
+ Datasets We use CIFAR-10 (Krizhevsky et al., 2009) and IMAGENET $6 4 \times 6 4$ (Deng et al., 2009) 2 for image generation experiments. We adopt widely used FID (Heusel et al., 2017) as the main evaluation metric, and it is computed between 50K generated samples and the whole training set. For image captioning, following (Chen et al., 2022), we use MS-COCO 2017 captioning dataset (Lin et al., 2014).
79
+
80
+ Binary encoding Each pixel consists of 3 sub-pixels (RGB channels), and each sub-pixel is an integer in [0, 256) representing the intensity. Standard continuous generative models cast RGB channels as real numbers and normalize them in $[ - 1 , 1 ]$ . For discrete image generation, we consider three discrete encoding for sub-pixels, namely UINT8, GRAY CODE, and UINT8 (RAND). In UINT8, we use 8-bit binary codes converted from the corresponding sub-pixel integer in [0, 256). In GRAY CODE, we assign 8-bit binary codes uniquely to each sub-pixel integer such that two adjacent integers only differ by 1 bit. And in UINT8 (RAND), we assign 8-bit binary codes to every sub-pixel integer by randomly shuffling the integer-to-bits mapping in UINT8. The binary codes in UINT8 and GRAY CODE are loosely correlated with its original sub-pixel intensities, while UINT8 (RAND) has no correlation so each sub-pixel is a categorical variable. The details of the binary codes and their correlations with sub-pixel intensity can be found in the appendix C. We shift and scale the binary bits from $0 , 1$ to $- 1 , 1$ for the analog bits.
81
+
82
+ For image captioning, we follow (Chen et al., 2022), and use sentencepiece (Kudo & Richardson, 2018) with a vocabulary of size 32K to tokenize the captions. After tokenization, we encode each token into 15 analog bits using the binary codes converted from the corresponding integer. We set the maximum number of tokens to 64 so the total sequence length is 960 bits. Since we directly model bits, it is also possible to directly work with their byte representations without a tokenizer, but we leave this for future work.
83
+
84
+ Table 1: Comparison of FIDs on unconditional and class-conditional CIFAR-10. Note that both UINT8 and GRAY CODE are only partial/weakly ordinal (see Appendix C). Our Bit Diffusion achieves state-of-the-art FIDs in generating discrete images, beating the best autoregressive model.
85
+
86
+ <table><tr><td>Method</td><td>State space</td><td>FID (Unconditional)</td><td>FID (Conditional)</td></tr><tr><td>On continuous pixels (as reference):</td><td></td><td></td><td></td></tr><tr><td>DDPM (Ho et al., 2020)</td><td>Continuous</td><td>3.17</td><td></td></tr><tr><td>DDPM (our reproduction)</td><td>Continuous</td><td>3.14</td><td>2.95</td></tr><tr><td>On discrete (partial) ordinal pixels:</td><td></td><td></td><td></td></tr><tr><td>D3PM Gauss+Logistic (Austin et al., 2021)</td><td>Discrete</td><td>7.34</td><td></td></tr><tr><td>TLDR-10 (Campbell et al., 2022)</td><td>Discrete</td><td>3.74</td><td></td></tr><tr><td>Bit Diffusion on UINT8</td><td>Continuous</td><td>3.48</td><td>2.72</td></tr><tr><td>Bit Diffusion on GRAY CODE</td><td>Continuous</td><td>3.86</td><td>2.94</td></tr><tr><td>On categorical pixels:</td><td></td><td></td><td></td></tr><tr><td>D3PM uniform (Austin et al., 2021)</td><td>Discrete</td><td>51.27</td><td></td></tr><tr><td>D3PM absorbing (Austin et al.,2021)</td><td>Discrete</td><td>30.97</td><td></td></tr><tr><td>Autoregressive Transformer (Jun et al.,2020)</td><td>Discrete</td><td>12.75</td><td></td></tr><tr><td>Bit Diffusion on UINT8 (RAND)</td><td>Continuous</td><td>6.93</td><td>6.43</td></tr></table>
87
+
88
+ Table 2: Comparison of FIDs on class-conditional IMAGENET $6 4 \times 6 4$ . The corresponding samples can be found in Figure 4 and 11.
89
+
90
+ <table><tr><td>DDPM (our repo.) on continuous pixels</td><td>Bit Diffusion on UINT8</td><td>Bit Diffusion On GRAY CODE</td><td>Bit Diffusion On UINT8 (RAND)</td></tr><tr><td>3.43</td><td>4.84</td><td>5.14</td><td>8.76</td></tr></table>
91
+
92
+ Architecture We use the U-Net architecture (Ho et al., 2020; Nichol & Dhariwal, 2021; Ronneberger et al., 2015) for image generation. For CIFAR-10, we use a single channel dimension of 256, 3 stages and 3 residual blocks (He et al., 2016) per stage, with a total of 51M parameters. We only use dropout (Srivastava et al., 2014) of 0.3 for continuous diffusion models on CIFAR-10. For IMAGENET $6 4 \times 6 4$ , following (Nichol & Dhariwal, 2021), we use a base channel dimension of 192, multiplied by 1,2,3,4 in 4 stages and 3 residual blocks per stage, which account for a total of 240M parameters 3. For UINT8 (RAND) encoding, we find the following “softmax factorization” architectural tweak on the final output layer can lead to a better performance. Instead of using a linear output layer to predict analog bits directly, we first predict a probability distribution over 256 classes per sub-pixel (with each class corresponds to one of the 256 different 8-bit codes), and then map class distribution into analog bits by taking weighted average over all 256 different 8-bit codes.
93
+
94
+ For image captioning, we follow the architecture used in (Chen et al., 2021; 2022), with a pre-trained image encoder using the object detection task, for both autoregressive baseline as well as the proposed method. Both decoders are randomly initialized 6-layer Transformer (Vaswani et al., 2017) decoder with 512 dimension per layer. For the autoregressive decoder, the token attention matrix is offset by the causal masks, but it is non-masked all-to-all attention for our Bit Diffusion.
95
+
96
+ Other settings We train our models with the Adam optimizer (Kingma & Ba, 2014). For CIFAR-10, we train the model for $1 . 5 { \bf M }$ steps with a constant learning rate of 0.0001 and batch size of 128. For IMAGENET $6 4 \times 6 4$ , we train the model for 500K steps with a constant learning rate of 0.0002 4 and batch size of 1024. For Bit Diffusion, we use Self-Conditioning by default, unless otherwise specified. We use an exponential moving average of the weights during training with a decay factor of 0.9999. For our best image generation results, we sweep over a few sampling hyper-parameters, such as sampler (DDIM vs DDPM), sampling steps in $\{ 1 0 0 , 2 5 0 , 4 0 0 , 1 0 0 0 \}$ , and time difference in $\{ 0 . , 0 . 0 1 , 0 . { \overset { \cdot } { 1 } } , 0 . 2 , 0 . 5 \}$ .
97
+
98
+ # 3.2 DISCRETE IMAGE GENERATION
99
+
100
+ We compare our model against state-of-the-art generative models (Ho et al., 2020; Austin et al., 2021; Campbell et al., 2022; Jun et al., 2020) on generating discrete CIFAR-10 images in Table 1. Our model achieves better results compared to both existing discrete diffusion models and the best autoregressive model. When compared to continuous diffusion models (i.e., DDPM), our Bit Diffusion models on UINT8 and GRAY CODE can achieve similar performance.
101
+
102
+ ![](images/07c841d2d466ccb4fe24e93ec5f8d90ad34328248073fe60f875375244969167.jpg)
103
+ Figure 4: Class-conditional generations on continuous v.s. discrete ImageNet $6 4 \times 6 4$ . Each row represents random samples conditioned on a class, and the classes are adopted from (Nichol & Dhariwal, 2021), namely, 9: ostrich, 11: goldfinch, 130: flamingo, 141: redshank, 154: pekinese, 157: papillon, 97: drake and 28: spotted salamander. More samples from random classes are shown in Figure 11.
104
+
105
+ Discrete generation of IMAGENET $6 4 \times 6 4$ is significantly harder than CIFAR-10, and we have not found other competing methods that report FIDs, so we only compare the proposed method against DDPM on continuous pixels. Results are shown in Table 2. We find that the diffusion model on continuous pixels has the best FID while the diffusion model on UINT8 (RAND), i.e., categorical data, has the worst FID, indicating the increase of hardness when removing intensity/order information in sub-pixels. Note that, in these experiments, there is no extra model capacity to compensate for the loss of intensity/order information since the model sizes are the same. Figure 4 shows generated images of different diffusion models on continuous and discrete IMAGENET $6 4 \times 6 4$ . Despite the differences in FIDs, visually these samples look similar.
106
+
107
+ Ablation of Self-Conditioning Figure 5 shows the effectiveness of the Self-Conditioning technique in both Bit Diffusion and continuous diffusion models. Note that the experiments are performed in three settings, namely CIFAR-10 with UINT8, CIFAR-10 with UINT8 (RAND), and IMAGENET
108
+
109
+ ![](images/f1829098c0e53d5b75d339e11962393f4d8d156eddb8d59297c587f22cdabe85.jpg)
110
+ Figure 5: Self-conditioning is a generic technique that not only greatly improves Bit Diffusion but also leads to improved results for continuous diffusion models.
111
+
112
+ ![](images/a222e73539e23289a138d993c86b82a68f7a1323b7a8eec48d0c2856682e5f18.jpg)
113
+ Figure 6: Effect of time difference in class-conditional IMAGENET $6 4 \times 6 4$ . Optimal time difference shrinks to zero as the number of sampling steps increases. For 100 sampling steps, non-zero time difference leads to improved FIDs.
114
+
115
+ $6 4 \times 6 4$ with continuous pixels, where the only difference for pairs in each setting is whether the Self-Conditioning is used. For CIFAR-10, we find that Self-Conditioning greatly improves the performance across different binary encodings. We also notice that for Bit Diffusion, predicting $\scriptstyle { \mathbf { { \mathit { x } } } } _ { 0 }$ is much more effective than predicting . For IMAGENET $6 4 \times 6 4$ , we find that the proposed Self-Conditioning also leads to improved FIDs for continuous diffusion (i.e., DDPM). Therefore, we conclude that Self-Conditioning by itself is a generic technique that can benefit diffusion models on both continuous and discrete data.
116
+
117
+ Ablation of asymmetric time intervals Figure 6 shows the FID on generated IMAGENET $6 4 \times 6 4$ samples as we vary the time difference parameter during the sampling process. We find that as the number of steps increases (from 100 to 400), the optimal time difference shrinks to 0. For 100 steps, a non-zero time difference leads to a significant improvement of FID. We also note that for Bit Diffusion on UINT8 (RAND), using 400 sampling steps actually leads to a drastically worse sample quality than using 100 steps. This is related to how the Self-Conditioning is applied and we present alternative Self-Conditioning sampling strategies in the Appendix G, some of which lead to improved FIDs at a cost of longer sampling time.
118
+
119
+ Concentration of generated analog bits Figure 7 visualizes the distribution of generated analog bits from 64 generated images on IMAGENET $6 4 \times 6 4$ . Although there is no hard constraint on the analog bits being binary / bimodal, the generated ones are highly concentrated on two modes, which makes the thresholding / quantization easy and robust.
120
+
121
+ ![](images/2711cf1eb2ef77e5962d7c44640a23d9e8daf8fe2b1b075ac8e049e8405a0470.jpg)
122
+ Figure 7: Histogram distribution (50 bins) of the analog bits from 64 randomly generated IMAGENET $6 4 \times 6 4$ samples at $\tilde { { \boldsymbol { x } } } _ { 0 }$ , with 100 DDIM steps. Most of the generated analog bits are very concentrated.
123
+
124
+ # 3.3 IMAGE CAPTIONING
125
+
126
+ We compare our Bit Diffusion model with an autoregressive Transformer baseline (Chen et al., 2022). As mentioned, both models have similar architectures, with an object detection pretrained (Chen et al., 2021) image encoder, and a randomly initialized Transformer (Vaswani et al., 2017) decoder. Table 3 presents the main comparison. Overall, our model achieves similar performance as the autoregressive model. We find that generally it only needs about 10 steps for the model to achieve good results, despite that there are a total of maximum 960 bits for caption that the model has to model. We find that the asymmetric time intervals play an important role in the final performance of our model, as demonstrated in Table 4, especially when sampling steps are fewer.
127
+
128
+ Table 3: Image captioning results on MS-COCO dataset with a randomly initialized text decoder.
129
+
130
+ <table><tr><td>Method</td><td>BLEU-4</td><td>CIDEr</td><td>ROUGE-L</td></tr><tr><td>Autoregressive Transformer</td><td>33.9</td><td>1.18</td><td>0.57</td></tr><tr><td>Bit Diffusion (5 steps)</td><td>31.5</td><td>1.00</td><td>0.55</td></tr><tr><td>Bit Diffusion (10 steps)</td><td>34.5</td><td>1.13</td><td>0.57</td></tr><tr><td>Bit Diffusion (20 steps)</td><td>34.7</td><td>1.15</td><td>0.58</td></tr><tr><td>Bit Diffusion (40 steps)</td><td>34.4</td><td>1.15</td><td>0.57</td></tr></table>
131
+
132
+ Table 4: Asymmetric time intervals significantly improves the performance of Bit Diffusion.
133
+ Table 5: Generated image captions under different number of sampling steps.
134
+
135
+ <table><tr><td rowspan="2"></td><td colspan="9">Time difference</td></tr><tr><td>0.0</td><td>1.0</td><td>2.0</td><td>3.0</td><td>4.0</td><td>5.0</td><td>6.0</td><td>7.0</td><td>8.0</td></tr><tr><td>5 steps</td><td>17.1</td><td>27.8</td><td>30.8</td><td>31.5</td><td>31.6</td><td>31.5</td><td>31.5</td><td>31.5</td><td>31.6</td></tr><tr><td>10 steps</td><td>17.6</td><td>26.3</td><td>30.7</td><td>32.6</td><td>33.4</td><td>34.0</td><td>34.3</td><td>34.5</td><td>34.6</td></tr><tr><td>20 steps</td><td>20.0</td><td>27.9</td><td>30.6</td><td>32.0</td><td>32.3</td><td>33.9</td><td>34.4</td><td>34.7</td><td>34.5</td></tr><tr><td>40 steps</td><td>20.7</td><td>27.5</td><td>30.7</td><td>32.2</td><td>32.9</td><td>33.2</td><td>33.8</td><td>34.4</td><td>34.4</td></tr></table>
136
+
137
+ Table 5 provides some generated samples of our model when different inference steps are used. The model makes mistakes when the sampling steps are too few, and the mistakes may not always be interpretable due to that the model directly predicts the bits behind the tokenized word pieces and a small difference in bits can lead to total different words.
138
+
139
+ ![](images/9aac52c53817dd45cbdf8027351f9eb9775cd9bd356b23f8455de14c97f024e6.jpg)
140
+
141
+ # 4 RELATED WORK
142
+
143
+ Autoregressive models for discrete data Autoregressive models have demonstrated state-of-the-art results when it comes to generating discrete data. In particular, text generation, or language modeling, is dominated by autoregressive approaches (Sutskever et al., 2014; Brown et al., 2020; Chowdhery et al., 2022). Autoregressive models are also applied to discrete/categorical image generation (Van den Oord et al., 2016; Salimans et al., 2017; Parmar et al., 2018; Child et al., 2019; Roy et al., 2021; Jun et al., 2020; Chen et al., 2020a), where they work well on small image resolutions. However, the computation cost and memory requirement increase drastically (typically in a quadratic relation) as the size of sequence or the image resolution increase, so it becomes very challenging to scale these approaches to data with large dimensions.
144
+
145
+ Diffusion models for discrete data State-of-the-art diffusion models (Dhariwal & Nichol, 2021; Ho et al., 2022; Nichol et al., 2021; Ramesh et al., 2022; Saharia et al., 2022) cannot generate discrete or categorical data. Existing extensions of these continuous diffusion models to discrete data are based on both discrete data space and state space (Sohl-Dickstein et al., 2015; Hoogeboom et al., 2021; Austin et al., 2021; Campbell et al., 2022). Compared to discrete state space, continuous state space is more flexible and potentially more efficient. Our approach is also compatible with both discrete and continuous time, and does not require re-formulation of existing continuous models, thus it is simpler and can potentially be plugged into a broader family of generative models.
146
+
147
+ Another line of discrete diffusion models is based on the embedding of discrete data (Li et al., 2022). One can also consider our binary encoding with analog bits as a simple fixed encoder, and the decoding / quantization of bimodal analog bits is easy and robust via a simple thresholding operation. In contrast, the quantization of real numbers in generated continuous embedding vectors may contain multiple modes per dimension, leading to potential difficulty in thresholding/quantization.
148
+
149
+ Normalizing Flows for discrete data Normalizing Flows (Rezende & Mohamed, 2015; Dinh et al., 2017; Kingma & Dhariwal, 2018) are a powerful family of generative models for high-dimensional continuous distributions based on some invertible mapping. However, straightforward application of flow-based models on categorical data is limited due to the inherent challenges on discrete support. Discrete flows (Tran et al., 2019; Hoogeboom et al., 2019; Lindt & Hoogeboom, 2021) introduce invertible transformations of random variables in discrete space without the need of computing the log-determinant of Jacobian. Other works (Lippe & Gavves, 2021; Hoogeboom et al., 2021; Tan et al., 2021) introduce various embedding methods for transforming discrete data into continuous space with disjoint support, which can be interpreted as a variational inference problem (Theis et al., 2015) with different dequantization distribution families. Several works (Kingma et al., 2016; Ziegler & Rush, 2019; Zhang et al., 2020) also explore normalizing flows on discrete data under the Variational Autoencoders (Kingma & Welling, 2013) framework by enriching the prior. Compared to our diffusion-based approach, these models suffer from strict invertible restrictions on network architecture, thus limiting their capacity.
150
+
151
+ Other generative models for discrete data Other generative models, such as Varational Autoencoders (VAE) (Kingma & Welling, 2013), Generateive Adversarial Networks (GAN) (Goodfellow et al., 2014; Yu et al., 2017; Che et al., 2017; Hjelm et al., 2017; Fedus et al., 2018) have also been applied to generate discrete data. These methods have not yet achieved the level of performance as autoregressive models on tasks such as discrete image generation or text generation, in terms of sample quality or data likelihood. Potentially, the proposed analog bits can also be applied to these continuous generative models, by having the networks directly model and generate analog bits, but it is not explored in this work.
152
+
153
+ Other related work The proposed Self-Conditioning technique shares some similarities with selfmodulation in GANs (Chen et al., 2018a) (where the earlier latent state can directly modulate the later latent states) and SUNDAE (Savinov et al., 2021) (where an inference step is incorporated for denoising).
154
+
155
+ # 5 CONCLUSION
156
+
157
+ We introduce a simple and generic technique that enables continuous state diffusion models to generate discrete data. The main idea is to encode discrete or categorical data into bits and then model these bits as real numbers that we call analog bits. We also propose two simple techniques, namely Self-Conditioning (i.e., condition the diffusion models directly on their previously generated samples) and Asymmetric Time Intervals, that lead to improved sample quality. We demonstrate that our approach leads to state-of-the-art results in discrete / categorical image generation, beating the best autoregressive model. In an image-conditional text generation task on MS-COCO dataset, we also achieve competitive results compared to autoregressive models. One limitation of our approach, similar to other existing diffusion models, is that they still require a significant number of inference steps for generating good (image) samples. However, we expect that future improvements from diffusion models for continuous data can also transfer to discrete data using analog bits.
158
+
159
+ # ACKNOWLEDGEMENTS
160
+
161
+ We would like to thank Priyank Jaini, Kevin Swersky for providing helpful feedback to our draft. Our implementation is partially based on the Pix2Seq codebase, and we thank Lala Li, Saurabh Saxena, for their contributions to the Pix2Seq codebase.
162
+
163
+ # REFERENCES
164
+
165
+ Jacob Austin, Daniel D Johnson, Jonathan Ho, Daniel Tarlow, and Rianne van den Berg. Structured denoising diffusion models in discrete state-spaces. Advances in Neural Information Processing Systems, 34:17981– 17993, 2021. (Cited on 1, 2, 5, 9)
166
+
167
+ Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018. (Cited on 4)
168
+
169
+ Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020. (Cited on 1, 8)
170
+
171
+ Andrew Campbell, Joe Benton, Valentin De Bortoli, Tom Rainforth, George Deligiannidis, and Arnaud Doucet. A continuous time framework for discrete denoising models. arXiv preprint arXiv:2205.14987, 2022. (Cited on 5, 9)
172
+
173
+ Tong Che, Yanran Li, Ruixiang Zhang, R Devon Hjelm, Wenjie Li, Yangqiu Song, and Yoshua Bengio. Maximum-likelihood augmented discrete generative adversarial networks. arXiv preprint arXiv:1702.07983, 2017. (Cited on 9)
174
+
175
+ Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In International conference on machine learning, pp. 1691–1703. PMLR, 2020a. (Cited on 8)
176
+
177
+ Ting Chen, Mario Lucic, Neil Houlsby, and Sylvain Gelly. On self modulation for generative adversarial networks. arXiv preprint arXiv:1810.01365, 2018a. (Cited on 9)
178
+
179
+ Ting Chen, Martin Renqiang Min, and Yizhou Sun. Learning k-way d-dimensional discrete codes for compact embedding representations. In International Conference on Machine Learning, pp. 854–863. PMLR, 2018b. (Cited on 14)
180
+
181
+ Ting Chen, Lala Li, and Yizhou Sun. Differentiable product quantization for end-to-end embedding compression. In International Conference on Machine Learning, pp. 1617–1626. PMLR, 2020b. (Cited on 14)
182
+
183
+ Ting Chen, Saurabh Saxena, Lala Li, David J Fleet, and Geoffrey Hinton. Pix2seq: A language modeling framework for object detection. arXiv preprint arXiv:2109.10852, 2021. (Cited on 5, 8)
184
+
185
+ Ting Chen, Saurabh Saxena, Lala Li, Tsung-Yi Lin, David J Fleet, and Geoffrey Hinton. A unified sequence interface for vision tasks. arXiv preprint arXiv:2206.07669, 2022. (Cited on 4, 5, 8)
186
+
187
+ Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. (Cited on 1, 8)
188
+
189
+ Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022. (Cited on 1, 8)
190
+
191
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009. (Cited on 4)
192
+
193
+ Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in Neural Information Processing Systems, 34:8780–8794, 2021. (Cited on 1, 9)
194
+
195
+ Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real NVP. In International Conference on Learning Representations, 2017. (Cited on 9)
196
+
197
+ William Fedus, Ian Goodfellow, and Andrew M Dai. Maskgan: better text generation via filling in the_. arXiv preprint arXiv:1801.07736, 2018. (Cited on 9)
198
+
199
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. Advances in neural information processing systems, 27, 2014. (Cited on 9)
200
+
201
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. (Cited on 5)
202
+
203
+ Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. Advances in neural information processing systems, 30, 2017. (Cited on 4)
204
+
205
+ R Devon Hjelm, Athul Paul Jacob, Tong Che, Adam Trischler, Kyunghyun Cho, and Yoshua Bengio. Boundaryseeking generative adversarial networks. arXiv preprint arXiv:1702.08431, 2017. (Cited on 9)
206
+
207
+ Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. In NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications, 2021. (Cited on 19)
208
+
209
+ Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840–6851, 2020. (Cited on 1, 2, 4, 5)
210
+
211
+ Jonathan Ho, Chitwan Saharia, William Chan, David J Fleet, Mohammad Norouzi, and Tim Salimans. Cascaded diffusion models for high fidelity image generation. J. Mach. Learn. Res., 23:47–1, 2022. (Cited on 1, 3, 9)
212
+
213
+ Emiel Hoogeboom, Jorn Peters, Rianne Van Den Berg, and Max Welling. Integer discrete flows and lossless compression. Advances in Neural Information Processing Systems, 32, 2019. (Cited on 9)
214
+
215
+ Emiel Hoogeboom, Didrik Nielsen, Priyank Jaini, Patrick Forré, and Max Welling. Argmax flows and multinomial diffusion: Learning categorical distributions. Advances in Neural Information Processing Systems, 34: 12454–12465, 2021. (Cited on 1, 2, 9)
216
+
217
+ Heewoo Jun, Rewon Child, Mark Chen, John Schulman, Aditya Ramesh, Alec Radford, and Ilya Sutskever. Distribution augmentation for generative modeling. In International Conference on Machine Learning, pp. 5006–5019. PMLR, 2020. (Cited on 1, 2, 5, 8)
218
+
219
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. (Cited on 5)
220
+
221
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. (Cited on 9)
222
+
223
+ Durk P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. Advances in neural information processing systems, 31, 2018. (Cited on 9)
224
+
225
+ Durk P Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved variational inference with inverse autoregressive flow. Advances in neural information processing systems, 29, 2016. (Cited on 9)
226
+
227
+ Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. (Cited on 4)
228
+
229
+ Taku Kudo and John Richardson. Sentencepiece: A simple and language independent subword tokenizer and detokenizer for neural text processing. arXiv preprint arXiv:1808.06226, 2018. (Cited on 4)
230
+
231
+ Xiang Lisa Li, John Thickstun, Ishaan Gulrajani, Percy Liang, and Tatsunori B Hashimoto. Diffusion-lm improves controllable text generation. arXiv preprint arXiv:2205.14217, 2022. (Cited on 9)
232
+
233
+ Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European Conference on Computer Vision, pp. 740–755. Springer, 2014. (Cited on 4)
234
+
235
+ Alexandra Lindt and Emiel Hoogeboom. Discrete denoising flows. arXiv preprint arXiv:2107.11625, 2021. (Cited on 9)
236
+
237
+ Phillip Lippe and Efstratios Gavves. Categorical normalizing flows via continuous transformations. In International Conference on Learning Representations, 2021. (Cited on 9)
238
+
239
+ Cheng Lu, Yuhao Zhou, Fan Bao, Jianfei Chen, Chongxuan Li, and Jun Zhu. Dpm-solver: A fast ode solver for diffusion probabilistic model sampling in around 10 steps. arXiv preprint arXiv:2206.00927, 2022. (Cited on 16)
240
+
241
+ Alex Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob McGrew, Ilya Sutskever, and Mark Chen. Glide: Towards photorealistic image generation and editing with text-guided diffusion models. arXiv preprint arXiv:2112.10741, 2021. (Cited on 1, 9)
242
+
243
+ Alexander Quinn Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic models. In International Conference on Machine Learning, pp. 8162–8171. PMLR, 2021. (Cited on 3, 4, 5, 6)
244
+
245
+ Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In International conference on machine learning, pp. 4055–4064. PMLR, 2018. (Cited on 1, 8)
246
+
247
+ Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 2022. (Cited on 1, 9)
248
+
249
+ Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. In International conference on machine learning, pp. 1530–1538. PMLR, 2015. (Cited on 9)
250
+
251
+ Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pp. 234–241. Springer, 2015. (Cited on 5)
252
+
253
+ Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. Transactions of the Association for Computational Linguistics, 9:53–68, 2021. (Cited on 1, 8)
254
+
255
+ Chitwan Saharia, Jonathan Ho, William Chan, Tim Salimans, David J Fleet, and Mohammad Norouzi. Image super-resolution via iterative refinement. arXiv preprint arXiv:2104.07636, 2021. (Cited on 3)
256
+
257
+ Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily Denton, Seyed Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, S Sara Mahdavi, Rapha Gontijo Lopes, et al. Photorealistic text-to-image diffusion models with deep language understanding. arXiv preprint arXiv:2205.11487, 2022. (Cited on 1, 9)
258
+
259
+ Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. arXiv preprint arXiv:1701.05517, 2017. (Cited on 1, 8)
260
+
261
+ Nikolay Savinov, Junyoung Chung, Mikolaj Binkowski, Erich Elsen, and Aaron van den Oord. Step-unrolled denoising autoencoders for text generation. arXiv preprint arXiv:2112.06749, 2021. (Cited on 9)
262
+
263
+ Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909, 2015. (Cited on 14)
264
+
265
+ Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pp. 2256–2265. PMLR, 2015. (Cited on 1, 2, 4, 9)
266
+
267
+ Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. arXiv preprint arXiv:2010.02502, 2020. (Cited on 1, 2)
268
+
269
+ Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. Advances in Neural Information Processing Systems, 32, 2019. (Cited on 1)
270
+
271
+ Yang Song and Stefano Ermon. Improved techniques for training score-based generative models. Advances in neural information processing systems, 33:12438–12448, 2020. (Cited on 1)
272
+
273
+ Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021. (Cited on 1, 2)
274
+
275
+ Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1): 1929–1958, 2014. (Cited on 5)
276
+
277
+ Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. Advances in neural information processing systems, 27, 2014. (Cited on 1, 8)
278
+
279
+ Shawn Tan, Chin-Wei Huang, Alessandro Sordoni, and Aaron Courville. Learning to dequantise with truncated flows. In International Conference on Learning Representations, 2021. (Cited on 9)
280
+
281
+ Lucas Theis, Aäron van den Oord, and Matthias Bethge. A note on the evaluation of generative models. arXiv preprint arXiv:1511.01844, 2015. (Cited on 9)
282
+
283
+ Dustin Tran, Keyon Vafa, Kumar Agrawal, Laurent Dinh, and Ben Poole. Discrete flows: Invertible generative models of discrete data. Advances in Neural Information Processing Systems, 32, 2019. (Cited on 9)
284
+
285
+ Aaron Van den Oord, Nal Kalchbrenner, Lasse Espeholt, Oriol Vinyals, Alex Graves, et al. Conditional image generation with pixelcnn decoders. Advances in neural information processing systems, 29, 2016. (Cited on 1, 8)
286
+
287
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. (Cited on 1, 5, 8)
288
+
289
+ Lantao Yu, Weinan Zhang, Jun Wang, and Yong Yu. Seqgan: Sequence generative adversarial nets with policy gradient. In Proceedings of the AAAI conference on artificial intelligence, volume 31, 2017. (Cited on 9)
290
+
291
+ Zijun Zhang, Ruixiang Zhang, Zongpeng Li, Yoshua Bengio, and Liam Paull. Perceptual generative autoencoders. In International Conference on Machine Learning, pp. 11298–11306. PMLR, 2020. (Cited on 9)
292
+
293
+ Zachary Ziegler and Alexander Rush. Latent normalizing flows for discrete sequences. In International Conference on Machine Learning, pp. 7673–7682. PMLR, 2019. (Cited on 9)
294
+
295
+ # A MORE DETAILS OF ALGORITHM 1 AND 2
296
+
297
+ Algorithm 3 and 4 provide more detailed implementations of functions in Algorithm 1 and 2.
298
+
299
+ Algorithm 3 Binary encoding and decoding algorithms (in Tensorflow).
300
+
301
+ import tensorflow as tf
302
+
303
+ def int2bit(x, $\mathrm { n } { = } 8$ ): # Convert integers into the corresponding binary bits. $\textrm { \textbf { x } } =$ tf.bitwise.right_shift(tf.expand_dims(x, -1), tf.range(n)) $\textrm { \textbf { x } } =$ tf.math.mod(x, 2) return x
304
+
305
+ def bit2int(x): # Convert binary bits into the corresponding integers. $\textrm { \textbf { x } } =$ tf.cast(x, tf.int32) n $=$ x.shape[-1] $\textrm { \textbf { x } } =$ tf.math.reduce_sum(x \* (2 \*\* tf.range(n)), -1) return x
306
+
307
+ # Algorithm 4 $x _ { t }$ estimation with DDIM / DDPM updating rules.
308
+
309
+ def gamma(t, $\scriptstyle \mathrm { n s = 0 } . 0 0 0 2$ , ds=0.00025): # A scheduling function based on cosine function. return numpy.cos(((t + ns) / (1 + ds)) $\star$ numpy.pi / 2)\*\*2 def ddim_step(x_t, x_pred, t_now, t_next): # Estimate x at t_next with DDIM updating rule. γnow $=$ gamma(t_now) γnext $=$ gamma(t_next) x_pred $=$ clip(x_pred, -scale, scale) eps = √ 11−γnow (x_t - γnow \* x_pred) x_next $\mathbf { \Sigma } = \mathbf { \Sigma } \sqrt { \gamma _ { \mathrm { n e x t } } }$ \* x_pred $^ +$ $\sqrt { 1 - \gamma _ { \mathrm { n e x t } } }$ \* eps return x_next
310
+
311
+ def ddpm_step(x_t, x_pred, t_now, t_next): # Estimate x at t_next with DDPM updating rule. γnow $=$ gamma(t_now) $\alpha _ { \Omega \circ w } =$ gamma(t_now) / gamma(t_next) $\sigma _ { \mathrm { n o w } } =$ sqrt $\mathrm { ~ ( ~ 1 ~ ~ - ~ } ~ \alpha _ { \mathrm { n o w } }$ ) $z =$ normal(mean ${ } = 0$ , std $^ { = 1 }$ ) x_pred $=$ clip(x_pred, -scale, scale) eps $= { \frac { 1 } { \sqrt { 1 - \gamma _ { \mathrm { n o w } } } } }$ \* (x_t - γnow \* x_pred) x_next = √ 1αnow \* (x_t - 1−γnow √1−αnow \* eps) + σnow \* z return x_next
312
+
313
+ # B ALTERNATIVE BINARY ENCODING AND LOSS FUNCTIONS
314
+
315
+ B.1 ANALOG BITS BASED ON ONE-HOT ENCODING
316
+
317
+ An alternative binary encoding to the base-2 encoding of the discrete data used in the main paper, is the one-hot encoding, where a discrete variable is represented as a vector whose length is the same as the vocabulary size $K$ , with a single slot being 1 and the rest being 0. The resulting one-hot vector can be similarly treated as analog bits and modeled by continuous state diffusion models. To obtain discrete variables corresponding to the generated analog bits, we use an arg max operation over all candidate categories, instead of the thresholding operation in base-2 analog bits. Note that the one-hot encoding requires $K$ bits, which is less efficient compared to base-2 encoding that only requires $\lceil \log _ { 2 } K \rceil$ bits, especially for large $K$ . 5
318
+
319
+ # B.2 SIGMOID CROSS ENTROPY LOSS
320
+
321
+ As we use $\ell _ { 2 }$ loss by default for its simplicity and compatibility with continuous diffusion models. The proposed Bit Diffusion models can work with other loss functions too. Since the analog bits are bimodal, we can use the following sigmoid cross entropy loss:
322
+
323
+ $$
324
+ \begin{array} { r } { \mathcal { L } _ { \pmb { x } _ { 0 } , \pmb { x } _ { t } , t } = \log \sigma ( \pmb { x } _ { 0 } f ( \pmb { x } _ { t } , t ) ) , } \end{array}
325
+ $$
326
+
327
+ where we assume $\pmb { x } _ { 0 } \in \{ - 1 , 1 \} ^ { n }$ , and $\sigma$ is a sigmoid function. During the sampling process, we use $2 \sigma ( f ( \pmb { x } _ { t } , t ) ) - 1$ as the output of denoising network.
328
+
329
+ # B.3 SOFTMAX CROSS ENTROPY LOSS
330
+
331
+ For one-hot analog bits, one could also add a softmax activation function for the output of denosing network $f$ , and use the following softmax cross entropy loss:
332
+
333
+ $$
334
+ \begin{array} { r } { \mathcal { L } _ { \pmb { x } _ { 0 } , \pmb { x } _ { t } , t } = \pmb { x } _ { 0 } \log \mathrm { s o f t m a x } ( f ( \pmb { x } _ { t } , t ) ) , } \end{array}
335
+ $$
336
+
337
+ where we assume $\pmb { x } _ { 0 } \in \{ 0 , 1 \} ^ { n }$ which is the one-hot representation.
338
+
339
+ # B.4 PRELIMINARY EXPERIMENTS
340
+
341
+ Table 6 presents FIDs of Bit Diffusion models with different types of analog bits and loss functions on unconditional CIFAR-10. Note that it is possible some of these results can be improved by more tuning of hyper-parameters or tweaks of the network, but we do not focus on them in this work.
342
+
343
+ Table 6: FIDs of Bit Diffusion models with different types of analog bits and loss functions on unconditional CIFAR-10.
344
+
345
+ <table><tr><td></td><td>l2 loss</td><td>Logistic loss</td><td>Softmax loss</td></tr><tr><td>ONE HOT</td><td>46.32</td><td>26.82</td><td>29.49</td></tr><tr><td>UINT8</td><td>3.48</td><td>3.53</td><td>1</td></tr><tr><td>GRAY CODE</td><td>3.86</td><td>3.71</td><td>=</td></tr><tr><td>UINT8 (RAND)</td><td>6.93</td><td>49.29</td><td>-</td></tr></table>
346
+
347
+ C ON BINARY ENCODING OF PIXELS: UINT8, GRAY CODE, UINT8 (RAND)
348
+
349
+ In the main paper, we describe three different types of binary encodings of pixels. Here we provide additional detail on how we generate UINT8 (RAND): we first apply a random permutation to 256 sub-pixel values, and then assign the binary binary bits of permuted integers to the non-permuted integers. For example, assume 0 is mapped to 228 after the permutation, the analog bits of 0 would be the binary bits of 228. The random permutation is generated by numpy.random.seed(42); numpy.random.shuffle(numpy.arange(256)).
350
+
351
+ ![](images/5c5048a370cbdae3ad4f4add0ee59c4dc8d0e03265bf05ba9e1544806945fd40.jpg)
352
+ Figure 8: Correlation between (absolute) difference in subpixel intensity and the Hamming distance of the corresponding binary bits.
353
+
354
+ Figure 8 show the correlation between Hamming distance of three different binary encodings we use and the (absolute) difference of sub-pixel intensity. This is done by taking every pair of subpixel integers (in [0, 256)), compute their absolute difference, as well as the Hamming distance between the corresponding binary bits. We find that both UINT8 and GRAY CODE exhibit partial correlation between the two quantities (with different correlation patterns), meaning that these codes partially contain the order information about the original sub-pixel intensity. However, UINT8 (RAND) exhibits no correlation between hamming distance and sub-pixel intensity, indicating the order information is fully removed, thus can be considered as categorical data.
355
+
356
+ # D A TOY EXAMPLE ON CONTINUOUS MODELING OF DISCRETE VARIABLES
357
+
358
+ An intuitive toy example of how a continuous generative model can generate binary data is given in Figure 9, where a mapping from prior distribution at $\mathbf { \nabla } _ { \mathbf { \mathcal { X } } T }$ to data distribution at $\scriptstyle { \mathbf { { \mathit { x } } } } _ { 0 }$ is shown. With a deterministic sampler (such as DDIM), it is straight-forward how they can represent any Bernoulli distribution by dividing the prior into two regions of probability densities corresponding to the Bernoulli distribution. For stochastic samplers, they can achieve a similar effect but the mapping from noise to data is stochastic. For an arbitrary discrete variable, represented as m-dimensional Bernoulli distribution, the mapping from continuous noise distribution to the target Bernoulli distribution also exists but it is more complicated (and difficult to visualize).
359
+
360
+ ![](images/5f6d559af6c6f590dc65c06be016cdac1595cb78b27323a2db579ba392e43fe2.jpg)
361
+ Figure 9: A toy example on continuous modeling of discrete variables.
362
+
363
+ # E ON OTHER SAMPLERS FOR CONTINUOUS DIFFUSION MODELS
364
+
365
+ As our models are based on continuous diffusion models, in theory our models are able to incorporate faster samplers. To this end, we conduct preliminary exploration of using DPM-Solver (Lu et al., 2022) for sampling some of our models.
366
+
367
+ We find that DPM-Solver provides a boost to diffusion models based on analog bits, similar to what it is able to do for continuous data. This shows a potential of our model enjoying faster continuous sampler while other baselines (e.g., D3PM) may not be able to do due to their use of discrete states. Table 7 below shows the FID scores of bit diffusion models on ImageNet-64x64 under different binary encoding schemes. We find that the DPM-Solver is able to provide a significant reduction in function evaluations for bit diffusion on discrete/categorical data (with 30 NFEs it gets comparable FIDs as 100 NFEs of DDIM), similar to that in continuous diffusion models.
368
+
369
+ Furthermore, we also find that self-conditioning continues to provide a boost with DPM-solver. For example, the table 8 shows FID scores of diffusion models on ImageNet 64x64 (continuous rgb values). And we find that the self-conditioning consistently improves the performance of DPM-Solver with fixed number of function evaluations.
370
+
371
+ # F EXTRA RANDOM SAMPLES ON CIFAR-10 AND IMAGENET $6 4 \times 6 4$
372
+
373
+ Figure 10 shows random samples (non cherry-picked) from unconditional diffusion models on CIFAR-10 with continuous pixels and analog bits.
374
+
375
+ Figure 11 shows random samples (non cherry-picked) from class-conditional diffusion models on IMAGENET $6 4 \times 6 4$ with continuous pixels and analog bits.
376
+
377
+ Table 7: Comparison of Continuous Diffusion Samplers. FIDs on ImageNet $6 4 \times 6 4$ shown below.
378
+
379
+ <table><tr><td>Samplers</td><td>UINT8</td><td>Gray Code</td><td>UINT8 (RAND)</td></tr><tr><td>DDIM @ 1000 NFE</td><td>5.51</td><td>5.14</td><td>58.45</td></tr><tr><td>DDPM @ 1000 NFE</td><td>7.71</td><td>6.91</td><td>64.08</td></tr><tr><td>DDIM @ 400 NFE</td><td>5.00</td><td>5.52</td><td>38.44</td></tr><tr><td>DDPM @ 400 NFE</td><td>4.84</td><td>5.37</td><td>40.91</td></tr><tr><td>DDIM @ 100 NFE</td><td>8.80</td><td>11.31</td><td>8.76</td></tr><tr><td>DDPM @ 100 NFE</td><td>13.04</td><td>12.77</td><td>9.25</td></tr><tr><td>DPM-Solver @ 30 NFE</td><td>7.85</td><td>9.64</td><td>10.39</td></tr><tr><td>DPM-Solver @ 50 NFE</td><td>6.46</td><td>7.61</td><td>10.96</td></tr></table>
380
+
381
+ Table 8: The effect of Self-Conditioning for sampling with DPM-Solver. FIDs on ImageNet $6 4 \times 6 4$ shown below.
382
+
383
+ <table><tr><td>Model</td><td>DPM-Solver @ 20 NFE|DPM-Solver @ 30 NFE</td><td></td></tr><tr><td>E prediction, w/o self-conditioning e prediction, w/ self-conditioning</td><td>6.10 4.24</td><td>5.58 4.15</td></tr><tr><td>xo prediction, w/o self-conditioning xo prediction, w/ self-conditioning</td><td>12.13 6.94</td><td>11.05 6.43</td></tr></table>
384
+
385
+ ![](images/39950aa93042e67fdc28e63a17ee0ba480d0808b29d949a36ad47b1fd1319276.jpg)
386
+ Figure 10: Random samples from unconditional models trained on CIFAR-10. (a) is for continuous image generation, (b), (c), and (d) are for discrete/categorial image generation.
387
+
388
+ ![](images/0087973f3f7fbbac5ed2501a0fe621a7bbfa949861342d891ce84a7ba0cba029.jpg)
389
+ Figure 11: Random samples from class-conditional models trained on IMAGENET $6 4 \times 6 4$ . (a) is for continuous image generation, (b), (c), and (d) are for discrete/categorial image generation.
390
+
391
+ # G ON SAMPLING STRATEGIES WITH SELF-CONDITIONING
392
+
393
+ # G.1 METHOD
394
+
395
+ In this section, we present extensions to the default sampling strategy with Self-Conditioning in Algorithm 2. The default sampling strategy utilizes data estimate from the previous step as the conditional input to the denoising network for producing data estimate at the current step. While this is both simple and effective, we observe that, for UINT8 (RAND) encoding of pixels, as the number of sampling steps increases (with both DDIM or DDPM samplers), the generated samples tend to be over-smoothed. We propose the following two extensions of the default sampling strategy to mitigate the issues and provide improvements when using larger sampling steps.
396
+
397
+ Self-Conditioning based on Momentum Estimate The first extension to the default sampling strategy is to adopt an exponential moving average over the previous data estimate to provide a more reliable conditioning input, similar to a momentum optimizer. The detailed procedure is shown in algorithm 5, where the differences from the default sampling strategy are highlighted in blue. Note that the default sampling strategy can also be considered as a special case of this generalized form in that the momentum is set to zero.
398
+
399
+ Self-Conditioning based on Self-Guidance One potential issue with the default sampling strategy is the slight discrepancy of the Self-Conditioning signal during training and inference/sampling. Specifically, during training, the Self-Conditioning signal is the data estimate from the same time step, while, during sampling, it is from the past time step(s). Therefore, here we propose an approach that also use the same step data estimate for self-conditioning, which comes at the cost of extra forward pass over the denoising network at sampling time. Specifically, we conduct two forward passes of denoising network per sampling step, one with zero data estimate and the other with current data step estimate, and then we use a weighted combination, similar to (Ho & Salimans, 2021), of both prediction to form the final prediction at the current step. The detailed procedure is given in algorithm 6 with differences to the default sampling strategy highlighted.
400
+
401
+ # Algorithm 5 Sampling with Self-Conditioning based on Momentum Estimate.
402
+
403
+ # Algorithm 6 Sampling with Self-Conditioning based on Self-Guidance.
404
+
405
+ ![](images/0056fbc804ba1f5cfe054d28ced48060002aa3630bff0e17c22d7352b912d3ce.jpg)
406
+
407
+ # G.2 EXPERIMENTS
408
+
409
+ Table 9 reports the best FID scores across various sampling strategies discussed here (as well as samplers, sampling steps, time difference in asymmetric time intervals).
410
+
411
+ Table 9: Best FIDs of Bit Diffusion models with different Self-Conditioning sampling strategies on conditional IMAGENET $6 4 \times 6 4$ .
412
+
413
+ <table><tr><td></td><td>UINT8</td><td>GRAY CODE</td><td>UINT8 (RAND)</td></tr><tr><td>Default sampling (momentum= 0)</td><td>4.84</td><td>5.14</td><td>8.76</td></tr><tr><td>Momentum Estimate</td><td>4.85</td><td>5.14</td><td>8.51</td></tr><tr><td>Self-Guidance</td><td>5.15</td><td>5.65</td><td>7.87</td></tr></table>
414
+
415
+ Figure 12 shows FIDs on conditional IMAGENET $6 4 \times 6 4$ with UINT8 encoding, using Momentum Estimate with different sampling steps. We find that the momentum on the data estimate is only helpful when sampling steps are larger.
416
+
417
+ Figure 13 shows FIDs on conditional IMAGENET $6 4 \times 6 4$ with UINT8 encoding, using Self-Guidance with different sampling steps. We find that a guidance weight between 3.0 and 5.0 is generally preferable and robust to other hyper-parameters (such as sampler choice, sampling steps, and time difference).
418
+
419
+ # G.3 SAMPLES
420
+
421
+ Figure 14 and 15 provide generated samples from different sampling strategies with 100 and 1000 DDIM sampling steps, respectively.
422
+
423
+ ![](images/e0cc712c3974b0d7aa91d39f7f4ca1200feea15ccb966b114d05e815e0f4bdfa.jpg)
424
+
425
+ ![](images/8d8810ce1d18fb7fcccc7187ed9ecd89bfb6e4e3edc67cf6004e1873fe0127b4.jpg)
426
+ Figure 12: FID on conditional IMAGENET $6 4 \times 6 4$ with UINT8 (RAND) encoding using selfcondition sampling based on momentum estimate. The statistics of FID scores in each group are aggregated over the number of sampling steps in $\{ 1 0 0 , 2 0 0 , 4 0 0 , 6 0 0 , 8 0 0 , 1 0 0 0 \}$ , time difference in $\{ 0 . 0 , 0 . 2 , 0 . 4 , 0 . 6 , 0 . 8 \}$ .
427
+ Figure 13: FID on conditional IMAGENET $6 4 \times 6 4$ with UINT8 (RAND) encoding using self-condition sampling based on self-guidance. The statistics of FID scores in each group are aggregated over the number of sampling steps in $\{ 1 0 0 , 2 0 0 , 4 0 0 , 6 0 0 , 8 0 0 , 1 0 0 0 \}$ , time difference in $\{ 0 . 0 , 0 . 1 \}$ .
428
+
429
+ ![](images/98c330bd3cfa80d1b5cfa628e7d92a67251242f56ef91dce4e362169079ed40f.jpg)
430
+ Figure 14: Random samples of Bit Diffusion with UINT8 (RAND) on categorical IMAGENET $6 4 \times 6 4$ using various Self-Conditioning sampling strategies. Different plots share the same set of $\mathbf { \nabla } _ { \mathbf { \mathcal { X } } \mathcal { T } }$ . Sampling with 100 steps of DDIM without asymmetric time intervals.
431
+
432
+ ![](images/b0406388784e46f6aaa31871b6b6b44bf9fb3267ea5db5e28d46a84a39b8b3f1.jpg)
433
+ Figure 15: Random samples of Bit Diffusion with UINT8 (RAND) on categorical IMAGENET $6 4 \times 6 4$ using various Self-Conditioning sampling strategies. Different plots share the same set of $\mathbf { \nabla } _ { \mathbf { \mathcal { X } } \mathcal { T } }$ . Sampling with 1000 steps of DDIM without asymmetric time intervals.
parse/dev/3itjR9QxFw/3itjR9QxFw_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/3itjR9QxFw/3itjR9QxFw_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/3itjR9QxFw/3itjR9QxFw_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/7gE9V9GBZaI/images/0901b0009d3d3b6dec3a4207d30e08d232049dda50c62a32a48a055c282f2f6a.jpg ADDED

Git LFS Details

  • SHA256: 3a278a216ece5b5623922273cd25479862c45569031b477b1a25acf25e7b0966
  • Pointer size: 130 Bytes
  • Size of remote file: 29.3 kB
parse/dev/7gE9V9GBZaI/images/096c8e0b5d73c2415be28ae012b240a0cdf1c0acd618922fd2d26af9bfe949de.jpg ADDED

Git LFS Details

  • SHA256: a2e7d088f5bd09ed04062198e37d1b5bdc3a3838e1c990c379164d1152b5db6c
  • Pointer size: 129 Bytes
  • Size of remote file: 7.33 kB
parse/dev/7gE9V9GBZaI/images/0dd2be9978c8615aa93dca9fe22a4a57d6426eb8bbad4886efdf4abf22fbf040.jpg ADDED

Git LFS Details

  • SHA256: 5616b8cddd2ab4461ed57b3e7f9df7e9d038433179cb549a0ce5ec939961cfd4
  • Pointer size: 130 Bytes
  • Size of remote file: 31.2 kB
parse/dev/7gE9V9GBZaI/images/0de089d3cecaf79683d0ebe5bae66664b3394d64a575f49b8f546f19006569ea.jpg ADDED

Git LFS Details

  • SHA256: 9f9d62e366bb1ca9405ccca80b8c7d1737c1aeb5a67f5cfa3f5c6153be503de3
  • Pointer size: 129 Bytes
  • Size of remote file: 5.68 kB
parse/dev/7gE9V9GBZaI/images/0f3b904c9006568d1cb08aa0fa412d86aab5ac3e349857ac8558ac5b66161398.jpg ADDED

Git LFS Details

  • SHA256: e7d13dbaff0c2b53750dd3ac7e1cdd695aa12c0d3f486d41ac80693d082ac2a6
  • Pointer size: 129 Bytes
  • Size of remote file: 9.36 kB
parse/dev/7gE9V9GBZaI/images/13c0aeac5b6d6469ab512f780639816145991fbdb77d1644892db2a745a00257.jpg ADDED

Git LFS Details

  • SHA256: 459e5bc5aa559fd511b89ccb38bea298959147ab00a68f7506bd1a36e24a7504
  • Pointer size: 130 Bytes
  • Size of remote file: 35.1 kB
parse/dev/7gE9V9GBZaI/images/13d2c9e54e86fde38658337f645b2bcef4c60330e1d3360a079bbf5cde27c11c.jpg ADDED

Git LFS Details

  • SHA256: a1b48986b2c99c03b94d30ea3f94885e464715bbeb6b329299f7ae3239260cb5
  • Pointer size: 129 Bytes
  • Size of remote file: 9.61 kB
parse/dev/7gE9V9GBZaI/images/22d77cfd65523e8b562391b0e65ab4b94592a9d15543c79d8df8cea09f6ac952.jpg ADDED

Git LFS Details

  • SHA256: 32b46643c6db626d9b39a314b57b2a166deb032c8388cc30ede9807dc29e8f33
  • Pointer size: 130 Bytes
  • Size of remote file: 62.4 kB
parse/dev/7gE9V9GBZaI/images/2c2ebe3ba21b0fd0c69b97eb9a22e7f608815fec9e68d157cac0afe86e8aff46.jpg ADDED

Git LFS Details

  • SHA256: e0106d067ca1254cdfe78577c44d166ab23c0fa7c8b55066d2c6fc5bd07b0070
  • Pointer size: 130 Bytes
  • Size of remote file: 50.2 kB
parse/dev/7gE9V9GBZaI/images/32914c57c158e823a15f4a872814efc9036af02db00861c4c7ebcc59458d4af1.jpg ADDED

Git LFS Details

  • SHA256: 16fbe712fe613a7150eaa01e31b05ee4feaea0564b8868c65aad93535657752e
  • Pointer size: 131 Bytes
  • Size of remote file: 144 kB
parse/dev/7gE9V9GBZaI/images/361dd795551945a1d42eb0e90f9f90e6ae9b6708b7daa3d7a81d92dc95fd5ad3.jpg ADDED

Git LFS Details

  • SHA256: 0be44aa5ac6eaafa7f038d67d2540168ab74918aaedaeb0c8d35d5b8a523b993
  • Pointer size: 130 Bytes
  • Size of remote file: 86.6 kB
parse/dev/7gE9V9GBZaI/images/370a505c01842140dda1f9353b992acff34b6c720e5568119ceace8d9fe5826f.jpg ADDED

Git LFS Details

  • SHA256: d3fe090626acf5f6480f0ffc187f940b3a433ab39272aefbc7cb0da3e3ef0e80
  • Pointer size: 130 Bytes
  • Size of remote file: 10.5 kB
parse/dev/7gE9V9GBZaI/images/5ccdad7e689c5b70cccc6aed06dec1b0b1c1a84a3d4520ff5eef6a43534b29d8.jpg ADDED

Git LFS Details

  • SHA256: 8a917706836a4262fe3f5d26bb188deac3428beba90f8ef5dd433457f242e896
  • Pointer size: 129 Bytes
  • Size of remote file: 5.77 kB
parse/dev/7gE9V9GBZaI/images/5d1ae9d9a6ebf5861669f883e38d9ba6c2fdd6d55fed8de7c66a2935cc0ee3f5.jpg ADDED

Git LFS Details

  • SHA256: a8bc0b14426aad17f8d6492feafcfa1f2dce0ea674745f49f9e4649892703f58
  • Pointer size: 130 Bytes
  • Size of remote file: 33.5 kB
parse/dev/7gE9V9GBZaI/images/60741a322624e7a344d48dd39e648d3bdbec90b00204725405a64e566413b5ab.jpg ADDED

Git LFS Details

  • SHA256: e00395cc073fae60b98903c2a0ee0a39a275e69a5946e7ce7a5b6327a527c687
  • Pointer size: 130 Bytes
  • Size of remote file: 34.8 kB
parse/dev/7gE9V9GBZaI/images/61defbed5b56ab5d4b39bf2a0015f7fd3393ec074e24f6fa04d3b6f9c0de2bbe.jpg ADDED

Git LFS Details

  • SHA256: 0c58e1b4ed94df18a57077b7f8d73499e642b42de809d4a39886f86ebf44a8ca
  • Pointer size: 129 Bytes
  • Size of remote file: 9.42 kB