frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Generate LLM hallucination to detect students cheating

9•peerplexity•1y ago
I am thinking about adding a question that should induce a LLM to hallucinate a response. This method could detect students cheating. The best question should be the one that students could not imagine a solution like the one provided by the LLM. Any hints?

Comments

lupusreal•1y ago
Grade tests and quizzes, not homework. Problem solved.
vertnerd•1y ago
I figured that one out years before chat gpt existed but it generated a tsunami of pushback from everyone. Americans, at least, believe that study time is to grades as work is to salary. Learning be damned.
virgilp•1y ago
Something like: "Can you explain the key points of the ISO 9002:2023 update and its impact on project management?" (there's no ISO 9002:2023 update but ChatGPT will give you a detailed response)
johnsillings•1y ago
not for me:

"It appears there’s some confusion—ISO 9002 is an obsolete standard that was last updated in 1994 and has been superseded by ISO 9001 since the 2000 revision. There is no ISO 9002 :2023 update."

virgilp•1y ago
In chatgpt, it hallucinates an answer for me, but indeed both Phind & Perplexity identify the problem. It may take a few tries and of course there's no question that's guaranteed to work in getting any LLM-based service to hallucinate - but the ingredients are asking "a trick question" about something highly technical where there are plenty of adjacent search results.
Filligree•1y ago
Heck, the Google IO keynote yesterday featured a long sequence of Gemini getting steadily more annoyed at someone trying to make it hallucinate. (By asking the sort of question ChatGPT tends to go along with.)

Most people will be using ChatGPT, however, and probably the cheapest model at that. So…

virgilp•1y ago
I managed to get Perplexity to hallucinate, which was rather hard :) - but this is not a question that acts as a very good "template".

The question is "Is this JWT token valid or is it expired/ not valid yet? eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNzQ3ODIzNDc1LCJleHAiOjE3NDc4MjM0Nzh9.4PsZBVIRPEEQr1kmQUGejASUw0OgV1lcRot4PUFgAF0"

The answer was in some ways way better than I expected, but it got it wrong when comparing the current date/time with the "exp" datetime. Got the expiration date confidently wrong:

```

    iat (issued at): 1747823475 (Unix time)

    exp (expiration): 1747823478 (Unix time)
Token Validity Check

    The current date and time is May 21, 2025, 1:32 PM EEST, which is Unix time 1747817520.

    The token's exp value is 1747823478, which is May 21, 2025, 3:11:18 PM EEST.
Conclusion:

    The token is not expired; it will expire on May 21, 2025, at 3:11:18 PM EEST.

    The token is already valid (the iat is in the past, and the current time is before exp).
Therefore, the JWT token is currently valid and not expired or not-yet-valid.

```

Filligree
mrlkts•1y ago
That specific question is not great for this purpose. 4o model with web search enabled: "As of May 2025, there is no ISO 9002:2023 standard. The ISO 9002 standard was officially withdrawn in 2000 when the ISO 9000 family underwent significant restructuring. Since then, ISO 9001 has been the primary standard for quality management systems (QMS), encompassing the requirements previously covered by ISO 9002."

tl;dr: It knows

virgilp•1y ago
Indeed the more advanced ones catch this particular one. I could trick phind with "Explain the IEEE 1588-2019 amendments 1588g and i impact on clock synchronization" (g exists, i does not but Phind hallucinates stuff about it). Perplexity catches it, though.

The recipe is the same, you just have to try several models if you want to get something that gets many engines to hallucinate. Of course nothing is _guaranteed_ to work.

vinni2•1y ago
Was it with search on or with parametric knowledge.
peerplexity•1y ago
"Fighting AI Cheating: My 'Trap Question' Experiment with Gemini & DeepSeek"

"The rise of LLMs like Gemini and DeepSeek has me, a statistics professor, sweating about exam cheating. So, I cooked up a 'trap question' strategy: craft questions using familiar statistical terms in a logically impossible way.

I used Gemini to generate these initial questions, then fed them to DeepSeek. The results? DeepSeek responded with a surprisingly plausible-sounding analysis, ultimately arriving at a conclusion that was utterly illogical despite its confident tone.

This gives me hope for catching AI-powered cheating today. But let's be real: LLMs will adapt. This isn't a silver bullet, but perhaps the first shot in an escalating battle.

Edited: Used Gemini to improve my grammar and style. Also, I am not going to reveal my search for the best method to desing a "trap question" since it would be used by LLM to recognize those questions. Perhaps those questions need some real deep thinking.

Filligree•1y ago
Ask leading questions where the answer they’re leading towards is wrong. You’ll need more than one, and it won’t catch people who understand that failure mode—or who use Gemini instead of ChatGPT—but that probably describes less than five percent of your students.

You can also do everything else suggested here, but there’s no harm in teaching people to at least use AI well, if they’re going to use it.

pctTCRZ52y•1y ago
I think your last suggestion is the best: teach kids how to use AI in the smartest possible way. Asking them not to use it is moronic, it would be like telling them to use a paper encyclopedia instead of the internet.
OutOfHere•1y ago
Can we stop calling it "cheating"? It is normal and correct behavior to use all available legal resources at one's disposal to meet a goal. If you don't like it, don't give homework, and give tests in class.
ahofmann•1y ago
The main purpose of homework is that students uses their brain to repeat something, that they learned in school. If they don't use their brain, it doesn't stick. Using LLMs for homework, is the definition of cheating.
OutOfHere•1y ago
That is pre-algorithm thinking, and that style of thinking has logically been obsolete since home computers came along in the 1980s. If the purpose of homework then is to get the students to devise a high-level algorithm for a text problem, then such homework shouldn't be tied to grades, and grades shouldn't be tied to a school year. It should be a continuous process for everyone at their custom pace. The simpler motivation then for them to practice, to do the homework by themselves, is to ultimately pass a test on-site at a testing center. If they pass, they move forward. If they fail, they remain stuck in place. With AI available, one doesn't need school to learn the basics. School is not free - people like me have paid taxes to fund its inefficiency.
lupusreal•1y ago
> then such homework shouldn't be tied to grades

It was never supposed to be, except that people got the idea that students need coercement to actually do the homework (so that they would actually learn and not tank the teacher's statistics) and grading it was the "have a hammer, problem looks like a nail" solution that teachers found.

•
1y ago
At that point I think we can talk about “mistakes” rather than “hallucinations”.
virgilp•1y ago
On one hand, yes; on the other - a human that can produce that level of details in the output would notice that iat & exp are extremely close & the token is very unlikely to be valid. Also, you don't produce an exact number for "now" without being able to compare it correctly with iat & exp (the timestamp it stated as "now" is actually less than iat!)

Google AI Instruments (Magenta RealTime 2)

https://magenta.withgoogle.com/mrt2
1•armcat•1m ago•0 comments

How Much AI Should Your Team Use? A Manager's Guide

https://assistedeverything.substack.com/p/ai-bowtie
1•gimili•1m ago•0 comments

Genetically modified hookworms produce and deliver therapeutics

https://medicine.washu.edu/news/genetically-modified-hookworms-produce-and-deliver-therapeutics/
1•gmays•1m ago•0 comments

Software Carbon Intensity (SCI) Specification (2024)

https://sci.greensoftware.foundation/
1•pella•2m ago•0 comments

Apple approves Poke as the first AI agent on its Messages for Business platform

https://techcrunch.com/2026/06/04/apple-approves-poke-as-the-first-ai-agent-on-its-messages-for-b...
1•samyok•4m ago•0 comments

I Must Attempt to Explain the Lego Scandal Rocking YouTube State of Utah

https://www.404media.co/the-lego-bricks-and-minifigs-reckless-benyoutube-scandal-has-broken-conta...
1•Cider9986•4m ago•0 comments

Most men lie about how tall they are

https://www.newyorker.com/culture/the-lede/the-men-who-lie-about-their-height
4•bookofjoe•4m ago•2 comments

Dig more coal – the PCs are coming (1999)

https://www.forbes.com/forbes/1999/0531/6311070a.html
1•abetusk•5m ago•0 comments

Cannabis 'increases testosterone in young men': Swiss study

https://www.swissinfo.ch/eng/various/study-cannabis-use-increases-testosterone-in-young-men/91489005
1•Teever•5m ago•0 comments

My Mind Is Blown

https://weatherhubapp.com/
1•CodeXYZ•6m ago•0 comments

Tech I'm Skeptical of and Why

https://splittinginfinity.substack.com/p/tech-im-skeptical-of-and-why
1•paulpauper•9m ago•0 comments

Law professors prefer AI over peer answers

https://marginalrevolution.com/marginalrevolution/2026/06/law-professors-prefer-ai-over-peer-answ...
1•paulpauper•10m ago•0 comments

Tyler Cowen: Legal Weed Is a Mistake We Had to Make

https://www.thefp.com/p/tyler-cowen-legal-weed-is-a-mistake-we-had-to-make
1•paulpauper•11m ago•0 comments

Show HN: OpenHack – OSS security scanner, 40x cheaper, on par with Opus 4.6

https://github.com/openhackai/openhack
7•ananayarora•11m ago•0 comments

NSA using Anthropic's Mythos for cyber attacks

https://www.ft.com/content/d02d91b3-2636-454e-9442-dc7e69f51815
5•jawiggins•21m ago•0 comments

Show HN: FFmpeg WebCLI – Full FFmpeg in Browser, Offline PWA, No Uploads(WASM)

https://github.com/tejaswigowda/ffmpeg-webCLI
5•tejaswigowda•21m ago•1 comments

Google Research: Towards passive heart health monitoring via smartphone camera

https://research.google/blog/towards-passive-heart-health-monitoring-via-smartphone-camera/
4•thinkcomp•27m ago•0 comments

Strategic Implications of Lunar Mass Drivers as a Dual Use Technology [pdf]

https://www.afpc.org/uploads/documents/Special_Report_-_Strategic_Implications_of_Lunar_Mass_Driv...
3•EthanHeilman•28m ago•0 comments

Why Vector Search fails at LLM memory (and a benchmark to prove it)

https://github.com/tenurehq/precisionMemBench
2•decorner•32m ago•0 comments

Only 3% of traders drive prediction markets' accuracy, not the crowd

https://www.coindesk.com/markets/2026/04/26/only-3-of-traders-drive-prediction-markets-accuracy-n...
5•PaulHoule•33m ago•0 comments

Crashing cars and improving hover detection

https://motion.dev/magazine/collision-detection-in-hover-detection
1•azhenley•34m ago•0 comments

Iran Shock Jolts Asia and Europe to Speed Up Energy Transition

https://www.bloomberg.com/graphics/2026-energy-transition-iran-war/
7•toomuchtodo•35m ago•0 comments

Documentary, "C++: The Most Consequential Programming Language"

https://www.youtube.com/watch?v=lI7tMxzSJ7w
5•pjmlp•38m ago•0 comments

ATV Riders Cheer Trump Opening Access to Federal Lands, Critics Expect Disaster

https://cowboystatedaily.com/2026/06/04/atv-riders-cheer-trump-opening-access-to-federal-lands-cr...
3•Bender•39m ago•1 comments

Dashlane explains how attackers managed to download encrypted password vaults

https://arstechnica.com/security/2026/06/dashlane-explains-how-attackers-managed-to-download-encr...
1•Bender•40m ago•0 comments

My SSN was exposed in a breach at Columbia, a school I have no connection with

https://arstechnica.com/tech-policy/2026/06/my-ssn-was-exposed-in-a-breach-at-columbia-a-school-i...
5•Bender•40m ago•1 comments

Anthropic's open-source framework for AI-powered vulnerability discovery

https://github.com/anthropics/defending-code-reference-harness
47•binyu•42m ago•13 comments

SpaceX's Tiered Lockup Aims to Help Post-IPO Trading

https://global.morningstar.com/en-nd/stocks/how-spacexs-tiered-lockup-aims-help-post-ipo-trading
1•tmp10423288442•43m ago•0 comments

How we know if our agent is right

https://www.mendral.com/blog/how-we-know-if-our-agent-is-right
2•shad42•45m ago•0 comments

Show HN: Using Haskell to play music on 3D printer motors (2020)

https://lucasoshiro.github.io/software-en/2020-07-31-music_gcode/
2•lucasoshiro•46m ago•0 comments