--- name: paper-write description: Write, structure, or revise academic paper sections, keep notation consistent, refine figures and tables (including CVPR presentation), and set up or fix the LaTeX build (TeX distribution, biber vs bibtex, venue templates, compilation). Use when the user says "write the abstract", "structure the methods", "improve this section", "notation consistency", "figure refinement", "paper structure", "setup latex", "biber vs bibtex", "latex compilation error", "install latex packages", "venue template", or "texlive setup". --- # Paper Write: academic paper writing and LaTeX setup For LaTeX environment setup, biber vs bibtex, venue templates and compilation, follow [references/latex.md](references/latex.md). For CVPR papers, use the concise guidance, runnable plot templates and copyable LaTeX tables in [references/cvpr.md](references/cvpr.md). ## Core Principles 1. **Precision over elegance.** Every claim traces to code, data or a cited source. 2. **Conciseness.** Remove words that don't add information. ## Writing Process 1. **Read first.** Always read the existing section before writing. Before planning a submission, read the venue's official dates page, author guidelines and reviewer checklist, because they fix the deadlines and the statements the paper must contain. Check the dual-submission window before targeting a workshop. 2. **Identify the claim.** What is this paragraph trying to say? 3. **Find the evidence.** Where in code/results does this come from? 4. **Write the text.** State claim, present evidence, interpret. 5. **Verify.** Re-read against source to catch any drift, then compile with the project pipeline from [references/latex.md](references/latex.md) Step 5 and fix any error before the next edit. 6. **Fit the page budget.** Measure free space in the built PDF before cutting, and give each new float a fallback (totals in a sentence, the full table in the supplement). ## Section-Specific Guidance ### Abstract - Structure: problem → approach → key result → significance - Include only concrete numbers needed to convey the main result (dataset size, main metric improvement) - Every number must be traceable to a specific experiment - No citations in abstract unless venue requires it ### Introduction Adapt this outline to the paper and venue rather than enforcing a fixed paragraph count. - Paragraph 1: The research question and why it matters, with only a few lines of domain context. Move downstream applications to future work so the opening does not claim what was not tested. - Paragraph 2: Why existing approaches are insufficient (gap) - Paragraph 3: Your approach and why it addresses the gap - Paragraph 4: Contributions list (concrete, falsifiable claims) - Each contribution must map to a section that provides evidence - List a dataset as a contribution only when its public release by the camera-ready deadline is certain, since reviewers tie the claim to availability. Otherwise describe it fully in Experiments without claiming it. - After adding motivation, reread the title, abstract, first paragraph and closing sentence and confirm they still state the same finding. ### Related Work - Organize by theme/approach, not chronologically - For each group: what they do, what's missing, how your work differs - Be fair: acknowledge strengths of prior work, don't strawman - End each paragraph with how your work addresses the limitation ### Methods - Define all notation in a single place (notation table or first-use definitions) - Each method component should be independently understandable - Include enough detail that someone could reimplement from the paper - Cross-reference equations with corresponding code ### Experiments - Dataset: source or cohort, inclusion and exclusion criteria, annotation protocol and annotator qualification, class counts, splits and preprocessing. State the unit (subjects vs examinations, images vs instances) and count repeat visits within the included set only. - Counts: generate them from the source labels with a script that writes to the same results store as the metrics, never type them. - Assets: cite every dataset, code base and pretrained model you use like a paper, with its license. - Human subjects and personal data: name the approving body and the consent or waiver (anonymized for review), and say what subject data was sent to any third-party service such as a closed API. - Metrics: define formally, explain why these metrics - Baselines: justify selection, ensure fair comparison. Name a closed API model by the identifier and call date in the saved run records, not the provider's current documentation, which changes. - Results table: highlight best results within comparable settings, include std dev or CI if available - Ablations: one factor at a time, clearly show contribution of each component ### Conclusion - Summarize contributions (not the entire paper) - State limitations honestly, then future work and negative societal impact, and end with the take-home sentence - Future work: specific and feasible, not vague. Name each downstream application here, say plainly that it was not tested and why the reported metric does not measure it. ## Notation Consistency Protocol Define once, use identically everywhere. When writing or editing any section: 1. Read existing notation definitions in the paper 2. Use EXACTLY the same symbols. Do not introduce synonyms. 3. If a new symbol is needed, check it doesn't clash with existing ones 4. Maintain a notation table if the paper has one Common pitfalls: - Using both $x$ and $\mathbf{x}$ for the same concept - Defining $N$ as dataset size in methods but using $n$ in experiments - Inconsistent subscript conventions (e.g., $f_i$ vs $f(i)$) ## Figure Refinement Methodology ### 1. Specification Capture Before generating or modifying any figure: - What data does it show? (exact source file/variable) - What message should the reader take away? - What are the hard constraints? (venue/project font constraints, column width, color scheme) - What aspects of the current version are correct and must be preserved? ### 2. Constraint Preservation Across multiple rounds of revision, track constraints explicitly: ``` Constraints for Figure N: - [KEEP] Y-axis range 0-100 - [KEEP] Color scheme: blue=ours, gray=baselines - [CHANGE] Legend position: inside → outside - [ADD] Error bars from std_results.json ``` ### 3. Variant Generation When exploring design alternatives: - Generate 2-3 variants side by side when feasible - Each variant changes ONE visual aspect - Let the user compare and choose, don't pick for them ### 4. Visual Verification After generating any figure, ALWAYS: - Open the rendered image and look at it - Check data values, colors and axis ranges against the spec and constraint list above - Verify labels, legends, and annotations are correct - Confirm the takeaway message is clear from a glance ## Output Format When writing paper text: - Provide LaTeX-ready output that matches the paper's existing style - Include comments for any claim that needs verification: `% TODO: verify this number` - Define identifying phrases (institution, ethics body, annotator credentials, tools tied to an employer) once as macros behind an anonymity switch with neutral review-mode text, never inside generated files. Annotator credentials and small institutions can identify authors. - Reserve space for a pending fact, such as the ethics approval, with a clearly marked placeholder macro of the expected final length - Update the AI usage statement whenever tool use expands, for example to literature search, translation or data auditing - Flag any notation inconsistencies found during writing - Suggest specific improvements with before/after comparisons