thomas-tanay / post--L2-regularization

Distill submission
33 stars 1 forks source link

Small Diagrams + Text #3

Open colah opened 6 years ago

colah commented 6 years ago

One nice trick that might be helpful in this article -- especially in the "Preamble" section, due to its two dimensional nature -- is combining some of the text with small diagrams.

Below, I've included a few examples I threw together really quickly. Please don't take them too seriously. They're just there to stimulate discussion. You could do the illustrations in lots of different ways! And you should probably sharpen the text a bit if you want to do this -- this kind of illustration works best if you can use sharp concise prose to accompany the diagrams.

Example: Effect of angle on adversarial examples

The effect of angle on adversarial examples (in a few different styles):

image

image

image

Example: Construction of adversarial examples

Not sure that this is really necessary as a standalone diagram but it gives an idea:

image

Benefits

thomas-tanay commented 6 years ago

I like this idea and will try to add more diagrams (I like the "construction of adversarial examples" one for instance). Do you recommend a specific tool for the creation of these diagrams? (I've been using d3 so far but wasn't very efficient at it)

colah commented 6 years ago

I usually use Adobe Illustrator or Inkscape (free) for static diagrams, but any vector graphics tool would work. (Figma looks cool and I've been meaning to try it.) These tools have a steep learning curve, but really powerful once you're used to them. :)

One challenge is that you'll want to have consistent style between your interactive diagrams and your static diagrams. It will just look weird if they're different. For that, it might be best to wait until we've really pinned down one diagram, then grab the SVG produced by D3 and import it into the tool your using for static diagrams... Or just carefully mimic its style.

colah commented 6 years ago

There's some lovely examples of this in Gabriel's momentum article. For example:

image

Some related techniques are integrating text into diagrams (example) and integrating text into equations (example).

(Again, these are all just tools for you to use if you feel like it. Please don't feel like you have to!)