HNHacker News
TopNewBestAskShowJobs

ubutler

813 karma · joined October 11, 2023

isaacus.com
submissionscomments
ubutler··on Cosine Similarity
Although worth noting that more recent techniques (eg, Transformers) need stop words for context.
ubutler··on Automatically Detecting Under-Trained Tokens in Large Language Models
There are two reasons I can think of why someone might reuse a tokeniser:

1. They want to continue pretraining a model instead of starting from scratch. But actually people might not know that you can pretty easily reuse model weights even when training with a new tokeniser (I’ve got a blog post on how to do that: https://umarbutler.com/how-to-reuse-model-weights-when-train... ).

2. Because it’s convenient for end users. Tokenising and chunking really large corpora can take a long time and it’s nice that I can use the GPT2 tokeniser and then train a bunch of different models on that data without having to retokenise everything.

ubutler··on Automatically Detecting Under-Trained Tokens in Large Language Models
I’ve trained tokenizers on medium-sized datasets (+5GB of text, although that could be considered small or large depending on who you ask) and have always found training quite fast. As in, it takes a couple minutes.

Maybe if we’re talking terabytes it might not scale as well but so far in my experience training tokenizers has never been an issue. It’s training models that takes ages.

ubutler··on Why you can hear the temperature of water
It surprises me that this is a surprise, I thought this was a given.
ubutler··on The history of 'OK' (2023)
Also, I’m not too sure that saying ‘ok’ is to ‘affirm or to express agreement’. Sometimes it can be used to simply acknowledge that someone has said something, such as when you say ‘ok sure’ or ‘ok but’.

And if I am wrong, and it does mean to affirm, then doesn’t that by necessity mean that it involves ‘offering an opinion’? Affirmation and/or agreement is not neutral.

ubutler··on Understanding UMAP (2019)
Check out PaCMAP, AFAIK it’s the current SoTA in dimensionality reduction: https://github.com/YingfanWang/PaCMAP
ubutler··on AI Photo Geolocation
The LLM’s logits should be translatable into probabilities although I’m not too sure how meaningful those might be as models can sometimes be quite confident in entirely invalid predictions.
ubutler··on DNSViz: A DNS Visualization Tool
Thanks for sharing this, it reminded me that I needed to activate DNSSEC for my domain, which I've done now.
ubutler··on British Placename Mapper
This reminds me of an episode of Map Men where they offhandedly point out that by plotting British place names of Viking origins, it is possible to see the true extent of their invasion: https://youtu.be/uYNzqgU7na4?si=l-b6-p4fSeviWmMs&t=310. In fact, the map they show in that episode (https://www.reddit.com/r/MapPorn/comments/n2s2qu/map_of_brit...) looks strikingly similar to this map I've found on Wikipedia of Celtic, Danish and English territory in 878: https://en.wikipedia.org/wiki/File:England_878.svg
ubutler··on TSMC wins $6.6B US subsidy for Arizona chip production
@dang I think this is the same story as another post published an hour earlier: https://news.ycombinator.com/item?id=39967707
ubutler··on New CSS Logical Properties
(2018)
ubutler··on How one programmer broke the internet by deleting a tiny piece of code (2016)
See also xkcd #2347: https://xkcd.com/2347/
ubutler··on Mapping almost every law, regulation and case in Australia
The dimensionality reduction model I used, PaCMAP, had only a single parameter I could tweak, which I did not. However, it is somewhat non-deterministic AFAIK, so the final arrangement can vary on each run, but in my experience, the arrangements tend to look the same, just oriented differently.
ubutler··on Mapping almost every law, regulation and case in Australia
> I've read a number of acts for myself, procedural civil and criminal, and have even run into the invisible wall between legislation and case law.

Glad to hear it corresponded with your lived experience, it really was surprising to see how the map correlated with my own understandings of the law developed through my degree!

ubutler··on Mapping almost every law, regulation and case in Australia
> Furthermore, in common law countries like Australia, you have many legal concepts that have developed independently of statute and either remain independent or have been formalised into statute.

This is the bigger point. In my own university studies, there was a clear segmentation between the common law and statute, although they are certainly interrelated.

It’s also worth noting that the boundaries between cases and legislation were not absolute, there were areas of the cases ‘mainland’ that contained legislation.

My point on the style was that in addition to differences in purposes, they are also textually different, which can indeed bleed into semantics.

ubutler··on Mapping almost every law, regulation and case in Australia
Thank you :). Would you mind sharing what you have in mind? I haven't come across a visualised semantic map of state and federal Australian laws, cases and regulations before.
ubutler··on Mapping almost every law, regulation and case in Australia
As I note in my article, the language and style employed in Australian judgments is different from that employed in statute. Furthermore, in common law countries like Australia, you have many legal concepts that have developed independently of statute and either remain independent or have been formalised into statute (see, eg, torts: https://www.alrc.gov.au/publication/traditional-rights-and-f...).
ubutler··on Mapping almost every law, regulation and case in Australia
Interesting, did you try also using PaCMAP or UMAP for dimensionality reduction? It might result in a more meaningful representation of their underlying semantic structure: see the 'mammoth' example in my article.
ubutler··on Mapping almost every law, regulation and case in Australia
Thank you :)
ubutler··on Mapping almost every law, regulation and case in Australia
Nope, the map is built atop the Open Australian Legal Corpus, which is the first open database of Australian law (you can read about how I built it here: https://umarbutler.com/how-i-built-the-largest-open-database...). Unfortunately, AustLII is free but not open-source (as in licensed under an open-source licence: https://austlii.edu.au/copyright.html).
ubutler··on Mapping almost every law, regulation and case in Australia
I'm glad you appreciated that touch :) Seeing as 59% of my readers are on mobile, I thought it'd be better to have a static image rather than an interactive map which would be pretty unusable on a phone.
ubutler··on Mapping almost every law, regulation and case in Australia
> It definitely provides a pretty picture, but just wanted to emphasise the map !== territory addage.

You're right — my map does not necessarily represent the underlying semantic structure of Australian law, it is an approximation, one that is biased by the data I used (which as I mentioned, is missing laws and cases from a number of jurisdictions), the embedding model I selected and the dimensionality reduction model I used to project my embeddings into a two-dimensional space, to name a few.

Because I was writing for both legal and data science audiences, I tried to avoid sounding like my inferences are anything more than just inferences but without getting too technical and explaining the inherent limitations of any attempt to semantically map knowledge with today's technology.

I will just say though that, having studied law myself, Australian case law is indeed somewhat of a continuum. A single case may touch on many areas of law and there are no restrictions in terms of subject matter on what precedents a judge may draw upon in reaching a decision, apart from that they are both relevant and binding (or, if they are not binding, are not treated as such).

It was also interesting to observe how the final clusters that developed were uncannily similar to the way in which I was taught law at university. It goes to show, there's a lot of thought put into the design of our legal courses here in Australia. In fact, there are 11 subjects that are mandatory, known as the Priestley 11: https://en.wikipedia.org/wiki/Priestley_11. All of those are reflected on the map, although some have been rolled up into larger categories or divided by other means.

ubutler··on Mapping almost every law, regulation and case in Australia
Thanks for sharing that map, I’m going to start using it to discover new artists :)

I’d love to see a semantic map of the internet, I’m considering having a crack it as well, but it’d be a monumental task. There is this cool map but it’s quite dated: http://internet-map.net/

ubutler··on Show HN: Mapping almost every law, regulation and case in Australia
Thanks for sharing this, I’m definitely gonna have fun exploring it :)

I don’t think I came across datamapplot, I’ll have to check it out. I know D3.js would probably be able to solve all my problems but then I’d need to build a lot of it from scratch and I don’t particularly enjoy Javascript (although sometimes you have no choice, I still needed to inject some code to modify the map to enable clicking on data points to open links and not capturing double clicks when zooming out (since there’s so many data points that you’re bound to misclick and end up opening a data point by mistake)).

ubutler··on Show HN: Mapping almost every law, regulation and case in Australia
Hey HN,

What if you could take every law, regulation and case in Australia and project them onto a two-dimensional map such that their distance from one another was proportional to their similarity in meaning? What would that look like?

Well, it might look something like what you’ll find in my latest article. I took every law, regulation and case in the Open Australian Legal Corpus, the largest open database of Australian law (which, full disclosure, I authored), and used text embedding and dimensionality reduction models to plot them on a two-dimensional map (excluding noisy documents that I was unable to cluster).

My map represents the first semantic map of Australian law.

Some of the most interesting insights I was able to gain from this endeavour are that:

• Australian case law is more of a continuum than a rigidly defined structure;

• Migration, family and substantive criminal law are the most isolated branches of case law on the map;

• Migration, family and substantive criminal law are the most distant branches of case law from legislation on the map;

• Development law is the closest branch of case law to legislation on the map; and

• The map does not reveal any noticeable distinctions between Australian state and federal law, whether it be in style, principles of interpretation or general jurisprudence.

If you’re interested in learning more about what the map can teach us about Australian law or if you’d like to find out how you can create semantic maps of your own, you can read the full article on my blog, which provides a detailed analysis of my map and also covers the finer details of how I built it, with code examples offered along the way.

ubutler··on Show HN: Comma Separated Values (CSV) to Unicode Separated Values (USV)
Funnily enough, I published a Python library two days ago that uses emojis to indicate where certain non-msgpackable builtin types have been forced into msgpackable objects: https://github.com/umarbutler/persist-cache/blob/main/src/pe...

is used for tuples, for sets, for frozen sets, for pickles, for bytes and for bytearrays.

I thought it was pretty ingenious but clearly I’m not the only one to think of it.

ubutler··on Webb and Hubble confirm Universe's expansion rate
One of my favourite episodes of Cosmos centres around Eratosthenes’ calculation of the circumference of the Earth: https://youtu.be/G8cbIWMv0rI?si=CuX49ki1GIvBLpeL
ubutler··on The Fashion Police in 16th-century Italy (2014)
Shouldn’t a truly black suit, by definition, not reflect any (noticeable) colour in the presence of light? I haven’t really noticed my black suits reflecting green.
ubutler··on Pineapple – A standalone front end to IPython for Mac
Why would you use this over Jupyter? and why is the latest version only for Python 3.5? The last release was in 2020.
ubutler··on How smart do you have to be to get a degree?
How comparable are IQ tests from 1940 and 2024? And how good a measure of intelligence are IQ tests?
← PreviousPage 2 of 4Next →