frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: Generate LLM hallucination to detect students cheating

9•peerplexity•6h 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•6h ago
Grade tests and quizzes, not homework. Problem solved.
vertnerd•5h 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•5h 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•5h 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•5h 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•5h 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•5h 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•5h ago
At that point I think we can talk about “mistakes” rather than “hallucinations”.
virgilp•5h 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!)
mrlkts•5h 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•5h 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•5h ago
Was it with search on or with parametric knowledge.
peerplexity•5h 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•5h 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•3h 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•3h 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•3h 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.

Mitochondria Are More Than Powerhouses–They're the Motherboard of the Cell

https://www.scientificamerican.com/article/why-mitochondria-are-more-like-a-motherboard-than-the-powerhouse-of-the-cell/
1•novia•32s ago•0 comments

Two lines of Cross-Document View Transitions code you can use on every website

https://webkit.org/blog/16967/two-lines-of-cross-document-view-transitions-code-you-can-use-on-every-website-today/
1•feross•1m ago•0 comments

A Map of Energy (first mapping of mitochondria) in the Brain

https://news.cnrs.fr/articles/a-map-of-energy-in-the-brain
1•mdp2021•1m ago•0 comments

Show HN: I made a widget to collect feature suggestions

https://www.feedbask.com/
1•pauline_cx•1m ago•0 comments

AI Assisted Coding Survey (OSS Results)

https://github.com/AI-Coding-Survey/survey-spring-2025
1•mikehostetler•2m ago•0 comments

Quest Link for macOS

https://lynxr.uk
1•nikita_xone•2m ago•0 comments

Measuring General Intelligence with Generated Games

https://arxiv.org/abs/2505.07215
1•jonbaer•3m ago•0 comments

Show HN: Extension that swaps "AI" for "army of interns"

https://github.com/tylermaran/army-of-interns
1•themanmaran•3m ago•0 comments

A Guide for Debugging LLM Training Data

https://cameronrwolfe.substack.com/p/llm-debugging
1•Brajeshwar•3m ago•0 comments

When customers buy your competitor's product and then buy yours

https://longform.asmartbear.com/buy-both/
1•Brajeshwar•3m ago•0 comments

Paris Agreement target won't protect polar ice sheets, scientists warn

https://arstechnica.com/science/2025/05/paris-agreement-target-wont-protect-polar-ice-sheets-scientists-warn/
2•rntn•4m ago•0 comments

Depth Anything V2

https://depth-anything-v2.github.io
2•Brajeshwar•4m ago•0 comments

Gender bias towards women entrepreneurs by VCs – a randomized response survey

https://www.tandfonline.com/doi/full/10.1080/13691066.2025.2493049
3•mcguire•6m ago•0 comments

Most SEOs are Terrible at SEO and that's being kind

https://medium.com/@simondodson.com/most-seos-are-terrible-at-seo-and-thats-being-kind-8d555f181d0c
1•simondodson•10m ago•0 comments

What if Making Cartoons Becomes 90% Cheaper?

https://www.nytimes.com/2025/05/21/business/media/ai-cartoons-animation.html
3•perihelions•13m ago•1 comments

Launch HN: SIM Studio (YC X25) – OS Figma-Like Canvas for Agent Workflows

1•waleedlatif1•14m ago•0 comments

We found fake CAPTCHAs hiding malware in uploaded files

https://www.tigrisdata.com/blog/fake-captchas/
1•ovaistariq•16m ago•1 comments

Local poser hat: a programmable e-ink hat [video]

https://www.instagram.com/reel/DJzpfIsB5u5/
1•bobbiechen•17m ago•0 comments

Show HN: Evolved.lua – An Evolved Entity Component System for Lua

https://github.com/BlackMATov/evolved.lua
4•blackmat•17m ago•0 comments

The Wheel of Nothing

https://danmall.com/posts/the-wheel-of-nothing/
3•ChrisArchitect•19m ago•0 comments

The Unreasonable Effectiveness of Reasonless Intermediate Tokens

https://arxiv.org/abs/2505.13775
1•YeGoblynQueenne•19m ago•0 comments

Show HN: I built a plain-English AI automation engine

https://www.versionseven.ai
1•avery-v7•21m ago•0 comments

Mercedes Owners: Instant Map Activation Codes and Car Data – Forget Dealer Price

https://mbretrofit.it
1•davidilie•21m ago•1 comments

Ask HN: How to accelerate learning dev and programming with LLMs?

1•justanything•21m ago•0 comments

Show HN: HNRelevant – Add a "related" section to Hacker News

https://github.com/imdj/HNRelevant
1•imadj•23m ago•0 comments

2 days in Barcelona at the Svelte summit

https://www.windmill.dev/blog/svelte-summit-2025
7•rubenfiszel•26m ago•0 comments

Catbox

https://nofun.catbox.moe/
2•ArinaS•26m ago•0 comments

Making 8-Bit Music from Scratch at the Commodore 64 Basic Prompt

https://www.youtube.com/watch?v=ly5BhGOt2vE
2•nialse•26m ago•0 comments

Fortnite Returns to the App Store for iPhone and iPad in the US

https://9to5mac.com/2025/05/20/fortnite-is-now-available-on-the-app-store-for-iphone-and-ipad/
2•hellisothers•27m ago•1 comments

The Other Covid Reckoning

https://www.astralcodexten.com/p/the-other-covid-reckoning
2•feross•27m ago•0 comments