Happenings

Plagiarism: Introduction

Having been been involved in various natural language problems at university, the area of study interests me greatly as a series of very difficult problems. Despite that, I’ve written very little about it. This series on plagiarism detection is an attempt to rectify that.

First, the problem: people are opportunistic, lying cheats who will take any advantage to get ahead. Well, if you believe the tabloids. While we might not all be like that, sadly, the number of people cheating in universities is increasing. Rather than work hard and produce their own work, professors are dismayed to find that several students hand in suspiciously similar pieces of work. Of course, with rather a lot of students in any given course, it can be very difficult to match up a handful as being similar. Lots of people, lots entries, not enough time to go through them and compare every single one against every other one by hand.

Take some time to appreciate the scale of the problem: if a class has 300 people, and you want to compare them all against each other, you’re invoking the classic handshake problem. To compare them all, you have to do 44850 checks. Ouch.

This is where plagiarism detection comes in: we want to automatically detect any near-duplicates in a group of submissions, eliminating any honest submissions in the process.

Note that although I will refer to most examples in terms of students, submissions and universities, you can substitute in a wide range of domains. Copied texts in a library, finding cross-quotations, finding duplicate entries in financial market systems, the list is nearly endless.

Next, a couple of useful terms: If one person copies another without that person knowing, we call that plagiarism. If two or more people copy one another intentionally, we call that collusion. For our purposes, these are the same thing. Why? It would be tremendously difficult, if not impossible, to infer the intentions of any entries marked as potential duplicates. Because of this and other possible failings in the system, it is never for the system to act as a final decision maker in whether or not people are cheating; it merely serves as an ordering system for someone else to make a decision. We will, therefore, use the terms “plagiarism” and “collusion” in interchangeably.

It’s worth reiterating that plagiarism detection systems are just ordering systems: they take in a bunch of entries, find groups of similar entries (normally simple pairs of entries), and order those groups by the similarity found within. A user would then look at the produced ordering and decide whether these entries really are similar. There’s nothing unusual about that, when you think about it. Google is doing something pretty similar: it takes a bunch of web pages and a query, groups them on key attributes (words, meta-data, rankings), and orders the pages by how similar they are to the query. A user would then look at the produced ordering and decide which entries best matched the query. You’ve done this a million times yourself, you know it mostly works.

You also know that, heck, sometimes it doesn’t; you can’t make decisions on the ordering with absolute certainty. In this way, plagiarism detection, search engines and other natural language problems are, at the time of writing, incomplete. While we don’t have the natural language problem nailed, we have to accept that they sometimes produce errors. In the case of plagiarism detection systems, those errors could lead to someone being kicked out of university if the risks are not understood. Again, these systems are just for ordering: not absolute decision making.

Another point worth noting is that plagiarism detection systems generally deal with intra corpus search. That is, we know and have absolutely every entry in the set: they all come from submissions for a set exercise with a set deadline. After the deadline, the set is fixed in size, it will never grow, and it is almost always relatively small in size (a few hundred or thousand entries). Compare with web search where the corpus of documents is continually increasing and has billions of entries. So we’re comparing the entries in a fixed size set of documents, and not against a wider set. It is possible to compare against a much larger set like, say, the internet to find people copying from there, but it’s beyond the scope of much of the series as it is a much more difficult problem.

We’re nearly down with this introduction, I hope by the time that I end this series, you will have a much better feel for how plagiarism detection works, how natural language problems can be solved, and what the trade-offs can by through-out.

Finally, I highly recommend that you read Tim Bray’s excellent On Search series. While reading the whole thing will do you no harm, if you’re lacking time I would read the sections on Precision and Recall and Stop Words as they hint at areas that need to be understood for most of this series.

Dual Monitors

After being almost dead against big monitors (I didn’t see the point given how close you sit to them anyway), low prices at play.com convinced me to get a new 19″ widescreen monitor. I am happy to say I was completely wrong and that the extra space is fantastic.

While finding a decent wallpaper for my desktop proved tricky, everything else is great. 1440*900 resolution lets you have a 1024*768 browser and enough space for any other active tasks that you might have, such as instant messenger windows. I recently bought Grand Theft Auto: San Andreas for the PC and playing it widescreen makes quite a difference to the views, particularly in the wilderness between Los Santos and San Fierro.

The one thing better than the wider screen is keeping the old one in a dual-screen set-up. You get all the benefits of the larger area, plus you can have one monitor dedicated to passive tasks (like IM contact lists, media players, bittorent clients) such that it works as an information display at a glance. I highly recommend the extra space to anyone.

Film Fight: September 2006

Another month, another bunch of films.

Normally, I abhor Owen Wilson. His acting abilities stretch to a single character: goofy and dazed. Thankfully, in You, Me and Dupree that’s exactly how he is cast. A lovable fuck-up that ends up living with newly married friends, we begin to see his character learn that he needs to make something of himself or forever be branded a loser. The real failure in this cast is Matt Dillion: a normally reasonably comic actor trying and failing to pull-off some trickier emotions. Not for one second will you believe his characters downward spiral or the subsequent, inevitable rise back to form. All in all, a watchable but forgettable film.

For fans of Broken Lizard, the comic writing, acting and directing team behind Super Troopers, Beerfest will hit all the sweet spots. A goofy comedy about something a little nonsensical, nods to it’s own stupidity, some fantastic quotes and over the top characters, and just a little grossness: a low-brow comedy for those of us beyond the cheap simplicity of teen gross-out comedies. Their debut was excellent, and Broken Lizard have once again shown they know how to write funny. Worth seeing.

The Black Dahlia is a beautifully shot piece full of ugly characters, motives, and premises; and that’s what makes it so good. A fictionalisation of a real murder, the film follows two detectives trying to solve the case of the most brutal unsolved murder in LA history. While the eventual conclusion is less than satisfying, the characterisation and interactions are so compelling that it does not matter. Another excellent film.

Jason Statham, by now, knows that his niche is in cheap action films. Crank is no exception. The plot is ridiculous (he’s been given a drug that will stop his heart unless he does progressively more extreme things as he tracks down the people who are killing him) but it doesn’t really matter. As dumb action goes, this hits all the sweet spots: excellent set pieces, hints of comedy without getting slapstick, all the while not taking itself seriously. If you can forgive the film the premise, acting and cringe-worthy moments (the falling scene, for example) and just enjoy it for what it is, a dumb action piece, then you’ll be fine.

The Children of Men future is one of the most convincing, well-conceived worlds ever seen. Set in the near future where, because women are no longer giving birth, hope is gone and the world is in turmoil, near civil war and refugees trying to escape fighting further afield. A disinterested, ex-activist is approached by a political group and asked to provide papers for a girl to leave the country; there’s something special about her. As various factions hunt down the pair, the film is relentlessly focussed on their escape, framing the political machinations and fighting all around as a background to their story, and not the other way around. Intense, emotional and unnerving; a beautifully imagined and desolate film. One of the best of the year.

Finally, Kevin Smith returns to his debut film in order to make a sequel. Clerks 2 is a smart enough piece of film making not to simply rehash the jokes and story of its predecessor, while being a disgusting enough look at current pop culture to set-up the main conflicts well. Again, we follow Dante and friends through a series of amusingly unpleasant conversations, and watch as their issues come to a head. While it’s hardly high-brow, it has the kind of honesty in dialogue many better films lack.

It has been a good month for cinema and, while Beerfest or Clerks 2 could have taken it for comedy in quieter months, the only real choice for winner is the excellent Children Of Men. Expect it to finish very high for the year.

Concentrate

One brave soul is dedicating himself to write a new application every day, for 30 days. You can find the fruits of his labour over at An App A Day. He’s already 20 days in and, as you would guess, that means he has written 20 apps already. While some are esoteric, one caught my eye as pretty useful.

Concentrate is a rip-off of a feature found in Expose on Mac OS X which dims all other active windows than the currently focussed window (if that’s a little off, I’m sure one of my mac loving friends can correct me). I’ve only been using it for a day or so and I have to say I’m surprised by just how effective it is; it really does make you focus more on the active window. I highly recommend a download for anyone who finds that they have app ADD. Couple it with Winplosion for double-expose rip-off action.

Tape It Off The Internet Beta

This morning I found out that I’ve been invited to join the Tape It Off The Internet Beta, after signing up months ago. The idea is that it’ll be the place to go for TV related stuff: whether commenting, leaving information or downloading.

It’s far too early in the beta to say anything much about it other than it’s a great idea (RSS feeds and the ability to attach your own torrents to episodes is sadly lacking). Instead, I have 5 invites to give away. If you want one, leave a comment, email my gmail account or find me on msn.