Final Report and Code

DUE MONDAY, DECEMBER 7 AT 11:59PM.

Table of contents


Overview

The final report is the culmination of your semester-long project. This report should be a self-contained, polished document that presents your completed implementation, experimental results, and analysis.

You are encouraged to build upon your Proposal and Milestone Report. For example, the “Evolving Methodology” section from your milestone should form the foundation of your Design/Methodology section, and your “Preliminary Results” should be expanded into your full Evaluation/Results section. Focus on what you implemented, what you found, and what you learned, rather than your progress or future plans.

Page Limit: Maximum 6 pages using the provided LaTeX template (excluding references). There is no minimum length. Failure to use the template or exceeding the page limit will result in point deductions.

Part 1: Final Report

Option 1: RAG System

Your report should be structured like a short research paper, focusing on your retrieval approach, its implementation, and an evaluation against the required baselines.

  1. Introduction
    • Introduce the problem your RAG system addresses and explain why effective retrieval matters.
    • Motivate your approach by discussing the limitations of existing solutions or retrieval baselines. Provide a high-level overview of your solution (no more than 1–2 paragraphs).
    • Summarize your main contributions and key experimental findings.
  2. Design and Implementation
    • System Architecture: Describe your end-to-end RAG pipeline, including document processing, chunking, indexing, retrieval, and answer generation. Include an architecture diagram showing the major components and data flow.
    • Proposed Approach: Explain the core algorithms and techniques you implemented (e.g., reranking, query expansion, hybrid retrieval, or agentic retrieval). Use pseudocode where helpful.
    • Implementation Details: Describe important implementation decisions, including the models, libraries, and frameworks used. Distinguish components you implemented from scratch from existing components you reused.
  3. Experimental Setup
    • Benchmarks: Describe both required benchmarks (QASPER and your selected second benchmark). Specify which portions of each benchmark you evaluated on (e.g., dataset split, subset of questions or documents), how you selected them, and the size of your evaluation workload.
    • Baselines: Describe the required sparse retrieval and dense retrieval baselines and how they are implemented. Use the same document chunking and corpus setup across baselines and your proposed approach to ensure a fair comparison.
    • Metrics and Evaluation Methodology: Define the metrics used to evaluate retrieval quality, end-to-end QA accuracy, and system performance. Explain how retrieved passages are matched against ground-truth evidence or relevance annotations, including any matching thresholds or heuristics.
    • Environment: Report relevant hardware, software, model configurations, and experimental settings.
  4. Evaluation Retrieval quality is the primary evaluation target. Present results using clear, well-labeled figures and tables. Your evaluation should not simply report numbers, but explain what they reveal about your approach.
    • Retrieval Quality: Report quantitative retrieval results for your proposed approach and both required baselines on both benchmarks. Use comparable metrics and experimental settings within each benchmark.
    • End-to-End QA Accuracy and Provenance: Evaluate generated answers against ground-truth answers, reporting QA accuracy separately from retrieval quality. Every generated answer must identify its supporting retrieved text chunks and source documents. Include representative examples showing answers alongside their supporting evidence.
    • System Performance: Report relevant efficiency measurements, such as latency breakdowns or LLM inference cost, as appropriate for your approach.
    • Analysis: Explain when and why your approach performs better or worse than the baselines, including limitations and trade-offs. Where appropriate, use sensitivity analysis (e.g., chunk size or retrieval depth), ablation studies, or error analysis to support your explanations.
  5. Lessons Learned
    • Design Evolution and Failed Attempts: Describe how your approach evolved throughout the project. What ideas, implementations, or optimizations did not work as expected, and what did you learn from them?
    • Key Takeaways: Summarize the most important insights from your implementation and experiments.

Option 2: Replicating Research

Your report should be structured like a replication study, clearly presenting the original work, your process, and a direct comparison of your results to the paper’s claims.

  1. Introduction
    • Introduce the selected paper, its core intellectual contributions, and their importance in its domain.
    • Clearly identify the specific result or claim you chose to replicate, referencing the original figure, table, or measurement. Explain why this result is significant to the paper’s overall contribution.
    • Summarize your main findings from the replication attempt, including whether your results support the original claims.
  2. Methodology
    • Original Methodology: Describe the method or system presented in the original paper, focusing on the components relevant to your replication target.
    • Your Implementation: Explain how you implemented or reconstructed the original approach. Include architectural diagrams, algorithms, or pseudocode where helpful. Discuss important implementation decisions and challenges.
    • Implementation Differences: Clearly distinguish components reused from the original work, components independently implemented, and any deviations from the paper’s methodology.
  3. Experimental Setup
    • Original Setup: Summarize the datasets, workloads, hardware, software, configurations, and evaluation metrics used for the target experiment in the original paper.
    • Your Setup: Describe your experimental environment, datasets, workloads, parameters, and evaluation procedures. Clearly define the metrics you use.
    • Differences: Identify significant differences (if any) between your setup and the original paper’s setup, and discuss how these differences might affect the results.
  4. Evaluation
    • Replication Results: Present your experimental results alongside the original paper’s results. Use comparative figures and tables with matched axes, scales, and units wherever possible.
    • Comparison and Analysis: Critically analyze whether your results support the original paper’s claims. Which findings agree with the paper, and which differ? Discuss both the direction and magnitude of the differences.
    • Explaining Discrepancies: Investigate possible causes of differences, such as hardware, software versions, datasets, experimental parameters, implementation choices, or unstated assumptions. Support your explanations with experimental evidence where possible.
    • Limitations: Discuss the scope and limitations of your replication, including any results you were unable to reproduce and why.
  5. Lessons Learned
    • Implementation and Replication Challenges: Describe important difficulties encountered when interpreting, implementing, or evaluating the original approach, and how you addressed them.
    • Key Takeaways: Summarize what your replication revealed about the original paper’s methods, assumptions, and conclusions. What insights would be valuable to others attempting to replicate this work?
    • Future Improvements: Suggest potential improvements to the original approach or the replication methodology.

Note: Your replication results do not need to match the original paper. Negative results and unsuccessful attempts are acceptable when supported by careful implementation, evaluation, and analysis.

Part 2: Code Submission

Submit well-organized, documented code that allows us to understand your implementation and verify the work described in your report.

Submission format: Upload all project code to Canvas using either a zip file or a link to your GitHub repository. If sharing a link, ensure the repository is public or that course staff have access.

Large files: If your data files are large (>100MB), do not include them directly. Instead, provide a script or instructions to download/generate them.

Documentation Requirements

Include a README that serves as a guide from your report to your code. A reader should be able to quickly locate the implementation behind each major component and the experiments supporting your reported results.

For each major component or experiment discussed in your report, identify:

  • Relevant code: The specific files, functions, or classes implementing the component, with a brief explanation of their roles.
  • Your contributions: Which code you wrote or modified, versus code reused from existing sources.
  • Experimental evidence: The scripts, configurations, and result files corresponding to the key figures and tables in your report

Example (Option 1: RAG System):

Section 2.2 (Proposed Retrieval Approach):
- src/retrieval.py::HybridRetriever.search():
  Implements our retrieval algorithm.
- src/reranker.py::rerank():
  Implements the proposed reranking method.

Section 4 (Evaluation):
- experiments/retrieval_eval.py:
  Evaluates BM25, dense retrieval, and our approach.
- results/retrieval_metrics.csv:
  Results reported in Table 1.
- experiments/qa_eval.py:
  Generates the QA results reported in Table 2.

For projects that reference or modify existing codebases, clearly identify which parts come from the original codebase versus your contributions.

Example (Option 2: Replicating Research):

Original Codebase: https://github.com/original/project

Section 2 (Implementation):
- src/new_algorithm.py: NEW FILE
  Implements the algorithm described in Section 3
  of the original paper.
- original_code/index.py: MODIFIED
  Added support for the new algorithm.

Section 4 (Evaluation):
- experiments/replication.py:
  Implements the experiment from Figure 5.
- results/figure5.csv:
  Measurements used in our Figure 2.

You do not need to document every file. Focus on the core implementations and experiments that support your report’s claims.

What We’ll Review

We will not run your code or grade it on functionality. However, we will:

  • Verify correspondence with report: Do the files you point to contain the implementations you describe?
  • Check documentation quality: Is your README clear? Can we understand your code structure and find the main implementations?
  • Code attribution: Are external sources properly cited?
  • Spot-check key implementations: Do the core files align with the algorithms, systems, and experiments described in the report?

Part 3: Team Dynamics Assessment Form

Generally, teams work constructively together to complete projects. It’s important for us to know whether this is the case in your project. In the case of substantially imbalanced contribution, we will adjust individual project grades to compensate.

So we can understand this, each member of the team needs to fill out the team feedback form. We will not return grades to your team until every team member has submitted the form.

Fill out the form here

Submission and Grading

What to submit:

  • Final report (PDF)
  • Code with README (zip file or GitHub repository link)

In addition, ALL team members must individually submit the team dynamics assessment form.

Grading: This assignment is worth 15% of your grade:

  • Report (10%): Evaluated on implementation effort, clarity, completeness, technical depth, and quality of experimental analysis.
  • Code and Documentation (5%): Evaluated on documentation quality, attribution, and correspondence between the implementation and the report.

The code will not be graded on functionality. Its purpose is to document and substantiate the work described in your report.