{
  "id": 9740501,
  "title": "The Two-Pass Grading System: How Context Changes the Score",
  "url": "https://urgent.news/2026/09/25/the-two-pass-grading-system-how-context-changes-the-score",
  "topic": "ai",
  "section": "AI",
  "published": "2026-09-25T09:18:52.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/mayank_dewangan_08/the-two-pass-grading-system-how-context-changes-the-score-4f7n"
  },
  "original_language": "en",
  "account": "The Two-Pass Grading System: How Context Changes the Score\n\nIn the previous post, we explored the hardware limitations and the choice of a local LLM for grading messages. Now, let's delve into the grading pipeline itself.\n\nThe grading process involves a two-step approach, referred to as the two-pass system. During the first pass, the messages are graded individually, regardless of whether they are part of a batch. This ensures that each message receives an individual evaluation, even if multiple messages are sent in a batch.\n\nThe first question posed is whether all messages are being discarded. The answer is a resounding no. The grading system employs heuristic-based message dropping to eliminate obvious noise in the data. By combining length and regular expression techniques, the LLM's workload is reduced, and a significant portion of redundant data, approximately 12%, is removed before reaching the grading stage. False negatives are particularly undesirable in this context, as important messages should not be inadvertently dropped before reaching the grading pipeline.\n\nThe grading scale ranges from 1 to 5, with scores of 1 and 2 indicating noise, social, or logistical content. A score of 3 suggests that the message may be useful but lacks sufficient detail. Scores of 4 and 5 signify clear technical value, such as solutions, useful resources, practical experiences, or measured results. These valuable resources often include GitHub repositories, YouTube links, articles, or research papers.\n\nAfter the first pass, messages graded as 3 are flagged for a second evaluation. The system then extracts the full metadata of the messages before and after the quality 3 message during the second pass. The LLM is instructed to use the surrounding messages as context when re-grading the initially scored 3 message. This ensures that the grading system remains effective while retaining the important messages.\n\nInterestingly, the two-pass system was initially tested on a test dataset where the LLM's grading was compared against human verification. The system achieved a mean grading confidence of 0.89 on actual data. However, the researchers discovered that grade quality 3 was ambiguous, as it only received a 3 because it lacked enough data to support a higher grade in the grading scale.\n\nThe two-pass system was further tested on a real dataset, and it proved to be effective in grading messages on a domain-specific scale. The researchers found that individual messages in the tech domain could be accurately graded without the need to bundle them with surrounding context, as most of the data points in this domain are clearly relevant and do not require additional context for accurate grading. This approach prevents unnecessary exploitation of the context window and reduces the likelihood of dumping irrelevant information into the grading process.",
  "summary": "The Two-Pass Grading System: How Context Changes the Score In the previous post we covered the hardware constraints of the system, which is an RTX 4050 with 6GB VRAM and an Intel i7 processor, and why we are using a local LLM. Now we turn to the grading pipeline itself. The condition for correctly grading a message involves a response in a defined format as attached below. This ensures we have…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}