Writing tips
-
This article targets technical computer science papers that aim to introduce new contributions.
If you are writing something else (e.g., a technical blog post), these tips may or may not apply.
-
Know your audience.
Envision a community you want to sell your ideas to.
Know what people know and what people don’t know.
Know what people want to know.
Good writing requires reconstructing the readers' mind.
-
Start early.
Ideally, start as soon as you have a research idea.
Draft down why your idea makes sense, what is your idea, and what is your plan.
Iterate your writing over a long time (months or even years).
Good writing sharpens the intellectual understanding of your idea, which is itself required by good writing.
-
Get to the point fast.
Ideally, you want your audience to have a brief idea of what they are going to learn in 30 seconds as soon as they start reading (think of an elevator pitch).
The first paragraph of a paper is the most important paragraph.
If you waste one minute of each reader’s time and you have 1000 readers, you waste 1000 minutes in total (sorry for being a typical Asian teacher).
Good writing requires knowing what is important and what is not.
-
An obvious corollary of above is that you should never start a paper with "X is an important topic in field Y. It has applications in Z1, Z2, Z3." or "X is a method in field Y. It does Z." Don't waste readers' time. Experts will wonder what exactly is new in this paper, and novices don't know why X is so important anyway and you are not going to convince/teach them in one paragraph. It's also a red flag that you don't really know what problem your idea addresses and what is new. A way I often like to start my paper is "X' is a challenging problem because of Y. See Figure 1. In this paper we addresses X' using insight Z". Then in the later paragraphs you start to elaborate the problems, history, and your ideas. Maybe see this paper for an example.
-
Always start with “why” before “what” and “how”.
Ask “why” to every single sentence you write, and prepend the reason before the sentence.
Naturally, this forms a “top-down” structure of your piece starts from the biggest motivation.
One way is to start by writing: “I want to achieve X”, “but it’s hard because of the challenge(s) Y”, “therefore we do Z to address the challenge Y”.
You can then apply a recursive algorithm to expand your writing and clarify: Why do you want to achieve X?
Why is the challenge Y hard?
Why does Z solve the challenge Y?
What doesn’t Z solve?
The entire paper should be a fractal hierarchical structure of these questions and answers.
Motivation. Motivation. Motivation. Before presenting a mathametical definition, always say why we need this definition first. Before you say the why, always explain the why of the why.
Good writing exposes a good mental model of your problem, which is exactly the fractal hierarchical structure mentioned above.
(Now, practice this: how would you rewrite this paragraph to include the “why”?
Why is it better than the current version?)
-
Sort your points by their importance.
Rank from high-level ideas to low-level details.
Avoid dumping implementation and mathematical details early on in the paper.
Good writing requires knowing the relative importance.
-
The criteria of a good research project are: 1) do people care about it? 2) does it involve non-trivial unsolved challenges? 3) does your solution demonstrates intellectual insights? 4) is your solution sufficiently different from alternatives? 5) can you show both theoretically and empirically that your solution convincingly solve the non-trivial challenges? 6) can you show both theoretically and empirically that alternative solutions do not convincingly solve the non-trivial challenges?
Address all these points explicitly and spoon-feed them to your readers.
Good writing is explicit.
-
Strives for conciseness: for every section, ask yourself what the section is going to achieve, and if it is relevant to what you want to teach the audience in this article.
Even if it is a useful knowledge, ask yourself whether it is the most effective to say it in this article, or you should write a separate article about it.
Replace “section” with “subsection”, “paragraph”, “sentence”, “phrase”, and “word”.
Check for redundancy throughout the paper: do I need to repeat the same thing multiple times?
(Sometimes repetition is a good thing.)
Good writing is good compression of complex ideas.
-
A picture is worth a thousand words.
Make illustrations and figures first, and plan your narrative around the figures.
Treat the figures like how you would explain your idea to someone else on a whiteboard.
Ideally, a paper should be readable by reading the figures and the captions alone.
Pictures help significantly with the compression.
-
Examples are excellent tools for exposition. It's usually very useful to have a Figure 1 or Figure 2 (if Figure 1 is your killer app teaser) that explains a miniature of the problem you are solving, and use it as an example to guide your narrative. In graphics this will usually be a visualization of the intermediate states of some algorithms. In PL this will be an example program snippet that demonstrates the problem you are solving. See this paper again for an example. Good writing manages the mental capacity of your readers.
-
When making figures, legibility is key: focus on clarity of presentation, instead of prettiness.
Can I represent the same thing in 1D instead of 2D?
Can I represent the same thing in black-and-white instead of in color?
(Think of color-blind people.) Is everything still legible after printing out physically?
(Believe it or not, people still print out papers to read them.) Once you have aced legibility and clarity, you can start aim for prettiness if it does not sacrifice clarity.
-
In the results, academics are often looking for “surprises”.
What works unexpectedly well/bad?
Can we explain them?
Good writing surprises experts in good ways.
-
Treat your collaborators as potential readers.
If they don’t like certain part of the paper, that means many of your readers will not like those parts too.
You will get conflicting opinions from your collaborators.
Try to find the best middle ground, but you also sometimes have to make a opinionated choice.
Never simply ignore the comments from your collaborators.
Good writing requires different perspectives.
-
You yourself is arguably the most important reader. Read the paper yourself over and over and over again. Simulate the arguments in your head. Think about it 24 hours, 7 days a week. Criticize your writing fairly: what's good and what's bad? (If you can only see good or only see bad, you are not a good reader of your own article.) Good writing requires the ability to criticize your own writing, but not be anxious about other people's judgement.
-
Be nice to prior works like how you would like other people treat your works.
Read them deeply and emulate what the authors are thinking.
Always err on the generous side.
Good writing acknowledges the intellectual history of the problems.
-
Avoid acronyms at all cost.
“We apply MIS to BDPT using the PDF of BSDFs and NEE to reduce MSE when solving RE in GD.” Acronyms makes reading hard and doesn’t save you much space.
Just spell them out.
-
Make sure your paper is still completely readable without mathematical equations and (pseudo)code.
-
Avoid words that make you sound smart and pretentious: “utilize” (use), “leverage” (use), “exploit“ (use), “framework” (method), “paradigm” (method).
-
Break down long sentences.
For every comma you see, ask yourself if you can break it into two sentences.
-
Cleanup your biblography.
Pay respect to the authors/venues/journals, just like how you would want other people to pay respect to you.
-
Avoid letting language models write for you. It leads to homogenization of sentence structures and language choice, which makes academia more boring over time. People want to hear your voice, not an amalgamation of the voice on the internet. If you do use a tool to check grammar/typo, still type the whole things yourself. It makes the document infinitely more personal and interesting.
-
Once you have aced all of above (which is very hard), maybe start thinking about adding a little bit of “style” to make reading your paper more interesting.
Write something unexpected but reasonable.
Surprise your readers.
-
Aim for longevity. Think about readers 10 years from now and whether they can still appreciate/understand the paper. If you think your ideas are irrelevant 10 years from now, maybe rethink whether it's worth working on this idea.
-
Some resources:
Fredo Durand, Notes on writing
Simon Peyton Jones, How to write a great research paper
Bill Freeman, How to write a good research paper
Wojciech Jarosz, Common mistakes in technical writing
David Salesin, How to write a SIGGRAPH paper
Li-Yi Wei, How to write a SIGGRAPH Paper
Jonathan Shewchuk, Three Sins of Authors in Computer Science and Math
Derek Dreyet, How to write papers and give talks that people can follow