Information Retrieval · arXiv:2612.02668 v1 · submitted 1 Dec 2026 · 16 references
Generating Assignments for Domain-Specific Programming Languages with Retrieval-Augmented Generation
The paper says
“These preliminary results suggest that RAG may help streamline assignment creation for libraries and languages that are not well represented in LLM training data.”
The abstract
Large language models (LLMs) can help instructors quickly draft programming assignments, but it can be challenging to ensure that these assignments are fully aligned with course goals, course-specific software, and programming patterns. This is especially true when instructors use pedagogical libraries or teaspoon languages. We investigate the use of retrieval-augmented generation (RAG) to generate assignments based on BRIDGES, a research toolkit and API designed to support the visualization of data structures. Results show that RAG reduces both the iterations needed to produce functional assignments and the hallucination rate, although some hallucinations persist. These preliminary results suggest that RAG may help streamline assignment creation for libraries and languages that are not well represented in LLM training data.
from the abstract
Pith says
Holds up, with conditions. RAG reduces repair iterations and hallucinations when generating programming assignments for the BRIDGES API, though the study's small scale and single-instructor design limit generalizability.
Machine review · 3 Dec 2026 · Full text · 4 minor · 4 open questions
How this review was made
Machine review · deepseek-v4-flash · 3 Dec 2026 · read the full text (16,053 characters) · not checked by a person
The reviewer was given the whole text, 16,053 characters. Not checked: figures, code, what the 16 references say.
How the review went
5 passes by deepseek-v4-flash · 3 Dec 2026
- Reader holds up, with conditions
- Skeptic concern withdrawn: the paper already says this
- Referee 4 minor
- Check against the paper kept 0 of 5 objections
- Editor wrote the verdict above
Not run on this paper: the simulated authors' defence.
Pith's passes raised 5 objections. A check against the paper's text kept 0, withdrew 1 (1 the paper already says) and left 4 as questions.
The test under “What would settle it” is from Pith's summary of the paper.
What would settle it
A controlled experiment with multiple instructors and datasets, measuring student performance on RAG-generated versus manually written assignments, would settle whether RAG-generated assignments are pedagogically effective.
4 minor objections
- 3 Preliminary Results The paper uses the symbol tildex to denote the median but does not define it in the text. A brief definition would improve readability.
- 3 Preliminary Results The paper reports that 79/100 assignments had logged errors or exceptions but does not break this down by condition (LLM-only vs. RAG). Providing per-condition counts would help the reader assess whether the hallucination rate difference is driven by a few outliers.
- 3 Preliminary Results The paper mentions 'ChromaDB database' and 'GPT-5' without citations. While these may be well-known, providing references or version information would strengthen reproducibility.
- 2.2 Evaluating Quality and Costs The error coding is described as 'manually coded these errors using a deductive approach' but no further details are given. A brief description of the coding scheme or a reference would clarify the methodology.
Open questions (4)
Pith raised these and could not confirm them against the text of the paper it read. They are questions for the authors, not findings.
- 2.1 Assignment Generation Pith raised a concern here that it could not check against the text of the paper it was given, so it is not published as an objection.
- 3 Preliminary Results What is the p-value from Fisher's exact test comparing hallucination rates between RAG and LLM-only conditions?
- 3 Preliminary Results What token pricing model (e.g., GPT-5 input/output token rates) was used to estimate the generation cost per assignment?
- 2.1 Assignment Generation What was the source corpus, chunking strategy, embedding model, and retrieval method used for the RAG retrieval component?
A machine wrote this review. Check any line against the paper. If a line is wrong, say so, and the correction goes on the record.
Are you an author of this paper?
Reply on the record, clarify a point, or challenge an error.
A reply is published word for word beside the review once Pith has verified that the paper is yours. Until then, what you write is kept in this browser.
The review in full
The review in brief
This paper compares retrieval-augmented generation (RAG) with a plain LLM for generating programming assignments that use the BRIDGES educational API. The central finding is that RAG cuts the median number of repair attempts from two to one and raises the proportion of functional assignments from 68% to 88%, while reducing estimated generation cost by about 54%. These are concrete, practically relevant numbers for anyone building tools to help instructors create assignments for low-resource APIs or teaspoon languages. The study is well-structured: it uses a systematic pipeline, appropriate statistical tests (Fisher's exact, Mann–Whitney U, Holm correction), and reports both significant and non-significant results honestly. The authors also clearly state their limitations, including the single instructor, the single API, and the automated evaluation that measures technical correctness rather than pedagogical quality. The soft spots are real but not hidden. The sample is small (100 assignments), the API utilization difference was not statistically significant, and the evaluation does not include expert human review of the assignments' teaching value. The paper acknowledges that BRIDGES is not entirely absent from LLM training data, which tempers the claim about low-resource environments. These are limitations of scope, not flaws in the execution. The paper is a preliminary empirical contribution, not a definitive solution. It is written for the computing education community, especially researchers and tool builders working on assignment generation for specialized APIs. It deserves a serious referee because it provides a clean, reproducible comparison on a practical problem, and its limitations are openly stated rather than glossed over. I would send this to peer review.
The stress test's concern
Withdrawn: the paper already says this.
The paper says
“Our evaluation was limited to assignments generated in collaboration with one instructor using a single dataset.”
Pith's reading
The paper investigates whether retrieval-augmented generation (RAG) can improve the generation of programming assignments for domain-specific languages, using the BRIDGES educational API as a case study. It compares RAG with an LLM-only baseline on 100 assignments covering 25 ACM topics and 10 BRIDGES datasets. RAG produced more functional assignments (88% vs. 68%), required fewer repair attempts (median 1 vs. 2), and reduced estimated generation cost by 54%. However, improvements in API utilization and hallucination rate were not statistically significant, and some hallucinations persisted. The authors conclude that RAG may help streamline assignment creation for libraries and languages not well represented in LLM training data.
What carries the argument. The key machinery is retrieval-augmented generation (RAG) using ChromaDB to retrieve the five most relevant API documentation chunks for each generation step. This provides the LLM with context about available APIs, reducing hallucinations and improving functionality.
Core claim. The paper claims that retrieval-augmented generation (RAG) improves the generation of programming assignments for the BRIDGES educational API, a low-resource programming environment. Compared to an LLM-only baseline, RAG produced more functional assignments (88% vs. 68%), required fewer repair attempts (median 1 vs. 2), and reduced estimated generation cost by 54%. However, improvements in API utilization and hallucination rate were not statistically significant, and hallucinations persisted in both conditions.
The premise it rests on. The evaluation assumes that technical correctness (executability, API usage) is a sufficient proxy for pedagogical usefulness, but the paper acknowledges it does not measure actual student learning or instructor satisfaction.
If the paper is right
Instructors can use RAG to generate assignments for pedagogical libraries with less manual effort and lower cost.
RAG could be applied to other teaspoon languages and educational APIs that are poorly represented in LLM training data.
The 54% cost reduction makes automated assignment generation more feasible for resource-constrained institutions.
The persistence of hallucinations suggests that RAG alone is insufficient; further improvements in retrieval or prompt engineering are needed.
The paper's evaluation does not measure pedagogical value; future work should test whether RAG-generated assignments actually improve student learning outcomes.
The reliance on a single instructor's prompts limits generalizability; a multi-instructor study could reveal whether RAG adapts to different teaching styles.
The incomplete retrieval hypothesis suggests that increasing the number of retrieved chunks or using a more sophisticated retriever might further reduce hallucinations.
Check this review
What was read
The passes were given all 16,053 characters of the paper's LaTeX source.
Fingerprint of that text (SHA-256): 3e454fa5ec26483b86945407be66bde52d75e20c45ed64e06cc9a56e0bf3a9c7
Pith does not keep that text. Rebuilt from the paper's source or PDF by the same code, it has this fingerprint if it is the same text. From a copy of Pith's code:
PYTHONPATH=. python scripts/review_input_check.py 2612.02668
The passes, in the order they ran
- Reader deepseek-v4-flash · medium effort · $0.0080 · instructions of the Reader, fingerprint f9ead7300382…
- Skeptic deepseek-v4-flash · medium effort · $0.0010 · instructions of the Skeptic, fingerprint 8f88c0f61488…
- Referee deepseek-v4-flash · medium effort · $0.0010 · instructions of the Referee, fingerprint a852d99aea0d…
- Check against the paper deepseek-v4-flash · medium effort · $0.0013 · instructions of the Check against the paper, fingerprint 6c7a6883d551…
- Editor deepseek-v4-flash · medium effort · $0.0007 · instructions of the Editor, fingerprint e7211f6a3d27…
- Circularity check deepseek-v4-flash · medium effort · $0.0006 · instructions of the Circularity check, fingerprint e9946e39d67b…
- Summary for the page deepseek-v4-flash · medium effort · temperature 0.2 · $0.0009 · instructions of the Summary for the page, fingerprint e4f56bf568e7…
The passes cost $0.014 in model calls together.
Version stamped on this review: pith-pipeline@v1.4.1-daily-deepseek-or-medium+deepseek/deepseek-v4-flash+p.d60f54226f00
Each link opens a pass's instructions as plain text, the exact bytes its fingerprint was taken over. Every stored set of instructions.
curl -s https://pith.science/methodology/prompts/f9ead730038216984cfb56d7cb34332bdf691828296a1de4245f3d6667d4bf56 | sha256sum
prints the fingerprint of the reader's instructions. The same works for every pass.
The receipt
The review's fingerprint was taken on 3 Dec 2026. The review you are reading still matches it.
Fingerprint of the review (SHA-256): a534f8c4cfc52838a21a0f57a7daffc2fc9987e0785a41068c594ae03ea31f89
curl -s 'https://pith.science/api/v1/verdicts/2612.02668?form=canonical' | sha256sum
prints the fingerprint of the review as it stands now. The rule, in four steps.
A matching fingerprint shows the review has not changed since that date. It does not show that the review is right.
Reviews like this one: written by deepseek-v4-flash, from the paper's LaTeX source.
No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and the review is published here whatever it concludes. Request a human review
The paper
Abstract
Large language models (LLMs) can help instructors quickly draft programming assignments, but it can be challenging to ensure that these assignments are fully aligned with course goals, course-specific software, and programming patterns. This is especially true when instructors use pedagogical libraries or teaspoon languages. We investigate the use of retrieval-augmented generation (RAG) to generate assignments based on BRIDGES, a research toolkit and API designed to support the visualization of data structures. Results show that RAG reduces both the iterations needed to produce functional assignments and the hallucination rate, although some hallucinations persist. These preliminary results suggest that RAG may help streamline assignment creation for libraries and languages that are not well represented in LLM training data.
A classifier labelled each sentence of the abstract by the part it plays in the paper. The labels are kept beside the review and separate from it: the review read the paper's text, and these labels cover the abstract only. Every quoted sentence is the authors' own. No sentence in this record was written by a model.
abstract compiled · 3 Dec 2026
The main claim
“These preliminary results suggest that RAG may help streamline assignment creation for libraries and languages that are not well represented in LLM training data.”
Stated as hedged possibility.
The abstract, sentence by sentence
This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.
| Sentence | Role | The authors' own work | States the main conclusion | Strength |
|---|---|---|---|---|
| Large language models (LLMs) can help instructors quickly draft programming assignments, but it can be challenging to ensure that these assignments are fully aligned with course goals, course-specific software, and programming patterns. | background 0.91 | 0.07 | 0.03 | asserted 0.83 |
| This is especially true when instructors use pedagogical libraries or teaspoon languages. | background 0.93 | 0.06 | 0.02 | asserted 0.98 |
| We investigate the use of retrieval-augmented generation (RAG) to generate assignments based on BRIDGES, a research toolkit and API designed to support the visualization of data structures. | contribution 0.78 | 0.78 | 0.04 | asserted 0.80 |
| Results show that RAG reduces both the iterations needed to produce functional assignments and the hallucination rate, although some hallucinations persist. | result 1.00 | 0.95 | 0.61 | asserted 1.00 |
| These preliminary results suggest that RAG may help streamline assignment creation for libraries and languages that are not well represented in LLM training data. | interpretation 1.00 | 0.66 | 0.59 | hedged possibility 1.00 |
What kind of paper the classifier reports this is: empirical study 0.88 · evidence from observation or experiment 0.99
What was examined, and what was not
These lists are about the sentence labels. What the review read is said with the review.
Read
- arXiv listing abstract v1
Not read
- full text
- figures and tables
- references and citing sentences
- relations to other papers
Labelled
- abstract
Not labelled
- sections
- body sentences
- citations
- cross-paper relations
The main claim, as probabilities
picked as the main claim 0.76 · how strongly it is stated 1.00
What the abstract itself states, as probabilities
claims first 0.04 · states limitation 0.95 · human participants 0.27 · controlled comparison 0.23 · randomized assignment 0.02 · states quantitative result 0.10 · compares with prior results 0.48 · mentions code or data availability 0.04
How the labels were made
Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-12-03: 1 request, 4,249 input tokens.
This record as JSON, with every label and the probability the classifier gave it.
Figures (2)
References (16)
- [1] Language models are few-shot learners , author=. Advances in neural information processing systems , volume= on Pith
- [2] Burlinson, David and Mehedint, Mihai and Grafer, Chris and Subramanian, Kalpathi and Payton, Jamie and Goolkasian, Paula and Youngblood, Michael and Kosara, Robert , title =. Proceedings of the 47th ACM Technical Symposium on Computing Science Education , pages =. 2016 , isbn ... on Pithdoi:10.1145/2839509.2844635
- [3] ChatGPT for good? On opportunities and challenges of large language models for education , author=. Learning and individual differences , volume=. 2023 , publisher= on Pith
- [4] Retrieval-augmented generation for knowledge-intensive nlp tasks , author=. Advances in neural information processing systems , volume= on Pith
- [5] Jacobs, Sven and Peters, Henning and Jaschke, Steffen and Kiesler, Natalie , year=. Unlimited Practice Opportunities: Automated Generation of Comprehensive, Personalized Programming Tasks , url=. doi:10.1145/3724363.3729089 , booktitle= on Pithdoi:10.1145/3724363.3729089
- [6] Llm hallucinations in practical code generation: Phenomena, mechanism, and mitigation , author=. Proceedings of the ACM on Software Engineering , volume=. 2025 , publisher= on Pith
- [7] Codemirage: Hallucinations in code generated by large language models , author=. arXiv preprint arXiv:2408.08333 , year= on PithPith's reviewarXiv
- [8] Basit, Nada and Floryan, Mark and Hott, John R. and Huo, Allen and Le, Jackson and Zheng, Ivan , title =. Proceedings of the 56th ACM Technical Symposium on Computer Science Education V. 1 , pages =. 2025 , isbn =. doi:10.1145/3641554.3701957 , abstract = on Pithdoi:10.1145/3641554.3701957
- [9] Dakshit, Sagnik , title =. Proceedings of the 25th Annual Conference on Information Technology Education , pages =. 2024 , isbn =. doi:10.1145/3686852.3686864 , abstract = on Pithdoi:10.1145/3686852.3686864
- [10] Miroyan, Mihran and Mitra, Chancharik and Jain, Rishi and Ranade, Gireeja and Norouzi, Narges , title =. Proceedings of the 56th ACM Technical Symposium on Computer Science Education V. 1 , pages =. 2025 , isbn =. doi:10.1145/3641554.3701965 , abstract = on Pithdoi:10.1145/3641554.3701965
- [11] Guzdial, Mark and Dodoo, Emma and Naimpour, Bahare and Nelson-Fromm, Tamara and Padiyath, Aadarsh , title =. Commun. ACM , month = apr, pages =. 2023 , issue_date =. doi:10.1145/3587926 , abstract = on Pithdoi:10.1145/3587926
- [12] BRIDGES: Real world data, assignments and visualizations to engage and motivate CS majors , author=. Education and Information Technologies , volume=. 2024 , publisher= on Pith
- [13] Guzdial, Mark , title =. Proceedings of the 8th Annual Conference on Innovation and Technology in Computer Science Education , pages =. 2003 , isbn =. doi:10.1145/961511.961542 , abstract = on Pithdoi:10.1145/961511.961542
- [14] Guzdial, Mark , title =. SIGCSE Bull. , month = jun, pages =. 2003 , issue_date =. doi:10.1145/961290.961542 , abstract = on Pithdoi:10.1145/961290.961542
- [15] Abelson, Harold and diSessa, Andrea , title =. 1986 , publisher =. doi:10.7551/mitpress/6933.001.0001 , url = on Pithdoi:10.7551/mitpress/6933.001.0001
- [16] Goncharow, Alec and Mcquaigue, Matthew and Saule, Erik and Subramanian, Kalpathi and Payton, Jamie and Goolkasian, Paula , title =. Proceedings of the 52nd ACM Technical Symposium on Computer Science Education , pages =. 2021 , isbn =. doi:10.1145/3408877.3432388 , abstract = on Pithdoi:10.1145/3408877.3432388
Challenges and discussion
Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.
The week in your field, by email.
A short list of the week's newly reviewed papers. Nothing is sent until you confirm from your inbox, and every email has a link that stops it. No account. No tracking pixel.


No comments yet.
Sign in to comment