Addressing the Ecological Fallacy in Larger LMs with Human Context
Organizations: Department of Computer Science, Stony Brook University · College of Connected Computing, Vanderbilt University, USA
Abstract
Language model training and inference ignore a fundamental linguistic fact -- there is a dependence between multiple sequences of text written by the same person. Prior work has shown that addressing this form of ecological fallacy can greatly improve the performance of multiple smaller (~124M) GPT-based models. In this work, we ask if addressing the ecological fallacy by modeling the author's language context with a specific LM task (called HuLM) can provide similar benefits for a larger-scale model, an 8B Llama model. To this end, we explore variants that process an author's language in the context of their other temporally ordered texts. We study the effect of pre-training with this author context using the HuLM objective, as well as using it during fine-tuning with author context (HuFT:Human-aware Fine-Tuning). Empirical comparisons show that addressing the ecological fallacy during fine-tuning alone using QLoRA improves the performance of the larger 8B model over standard fine-tuning. Additionally, QLoRA-based continued HuLM pre-training results in a human-aware model generalizable for improved performance over eight downstream tasks with linear task classifier training alone. These results indicate the utility and importance of modeling language in the context of its original generators, the authors.
Figures & tables
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Train | Dev | Test | ||||||
| Users | Docs (M) | Tokens (M) | Users | Docs (M) | Tokens (M) | Users | Docs (M) | Tokens (M) | |
| Amazon | 30,000 | 2.217 | 201.85 | 402 | 0.026 | 2.86 | 500 | 0.034 | 3.66 |
| Blogs | 17,760 | 0.293 | 83.13 | 780 | 0.013 | 3.91 | 985 | 0.016 | 4.95 |
| Books | 2,984 | 0.005 | 255.38 | 194 | 0.0002 | 3.01 | 247 | 0.0003 | 3.82 |
| CTLB | 18,393 | 2.194 | 59.72 | 766 | 0.097 | 2.76 | 976 | 0.123 | 3.52 |
| 25,550 | 1.338 | 158.63 | 1,193 | 0.064 | 8.25 | 1,486 | 0.080 | 10.26 | |
| Task | Train | Dev | Test | ||||||
| Users | Docs | Labels | Users | Docs | Labels | Users | Docs | Labels | |
| Occupation(blogs) | 2,135 | 28,199 | 2,135 | 532 | 7,770 | 532 | 872 | 11,531 | 872 |
| Age(blogs) | 10,354 | 135,594 | 10,354 | 2,402 | 32,773 | 2,402 | 3,186 | 41,886 | 3,186 |
| Movie Reviews(amazon) | 10,621 | 71,338 | 71,338 | 2,460 | 16,168 | 16,168 | 3,288 | 21,707 | 21,707 |
| Business Reviews(yelp) | 22,856 | 141,153 | 141,153 | 5,233 | 32,179 | 32,179 | 6,936 | 42,834 | 42,834 |
| Electronics Reviews(amazon) | 9,768 | 84,972 | 84,972 | 2255 | 19,527 | 19,527 | 3,003 | 25,817 | 25,817 |
| Document-Level Labels | |||
| Cls ( ) | |||
| Model | Human Context (HC) | Business | Elec |
| Llama-Instruct | No HC | 59.17 | 59.72 |
| Llama-Instruct | Full HC | 60.34 | 61.16 |
| Llama-Instruct | Limited HC (500 words) | 60.29 | 61.17 |
| Llama-Instruct | Limited HC (250 words) | 60.95 ∗ | 61.10 |
| Task | Prompt Template |
| Stance Topic | Identify the stance of the given target text towards {topic}. Select one of the three: In Favor, or Against, or Neutral. Here is the target text: {text} Do not include any extra information. |
| Stance Topic with Author Context | Here is a list of the previous messages written by the person in chronological order to learn more about the person: {messages} Identify the stance of the given target text towards {topic}. Select one of the three: In Favor, or Against, or Neutral. Here is the target text: {text} Do not include any extra information. |
| Sentiment | Identify the sentiment of the given target text. Select one of the three: Positive, or Negative, or Neutral. Here is the target text: {text} Do not include any extra information. |
| Sentiment with Author Context | Here is a list of the previous messages written by the person in chronological order to learn more about the person: {messages} Identify the sentiment of the given target text. Select one of the three: Positive, or Negative, or Neutral. Here is the target text: {text} Do not include any extra information. |
| Reviews Classification | Determine the star rating (from 1 to 5) that best reflects the following {review} and answer strictly as only one from [1,2,3,4,5]. {review}: {text} Do not include any extra information. |
| Reviews Classification with Author Context | Here is a list of the previous {category} written by the person in chronological order to learn more about the person: {messages} Determine the star rating (from 1 to 5) that best reflects the following {review} and answer strictly as only one from [1,2,3,4,5]. {review}: {text} Do not include any extra information. |
| Task | Target Text | Gold | With HC | No HC | Selected Historical Language | Why History Helps/Hurts |
| Stance Pred. (Abortion) | @_msthirdward @BuhayIpaglaban @blueskies366 It’s never been about “life” has it? “#Prolife” are OK with women dying . | AGAINST | AGAINST | FOR | […] It’s never been about “life” has it? “#Prolife” are OK with women dying . […] The culture of death is #prolife who deny pregnant people healthcare . […] thank you again to show that you are AGAINST CONTRACEPTION ; “#Prolife” = a code word for misogyny . […] Tell me more about how #antichoice laws kill 47,000 women A YEAR ! […] Remember Savita, killed by Irish “#prolife” laws ? Repeal the 8th . […] | Without historical context, the model interprets the tweet as ambiguous or rhetorical . User history contains strong, repeated anti-prolife and pro-choice language, which disambiguates stance . |
| Stance Pred. (Atheism) | I #DenounceHarper for refusing to include family planning in foreign aid even though spending 6 #wherestheFP | FOR | FOR | AGAINST | Enough sneaking around, bringing in religious groups into public schools to access our kids in secrecy. […] I wonder if anti-choice advocates denying accurate SexED ever consider the harm they cause. […] How many can you fit in your womb — mocking reproductive control arguments . […] Anti-choice actors never try to police men over sex , but punishing women puts them into a frenzy. | The target criticizes a political decision but does not explicitly mention religion . History shows persistent opposition to religious influence in policy/education , enabling the correct inference. |
| Stance Pred. (Abortion) | I #DenounceHarper for refusing to include family planning in foreign aid even though spending 6 #wherestheFP | FOR | FOR | AGAINST | family planning as part of foreign aid . […] Sneaking religious groups into public schools to access kids in secrecy. […] Pregnant teens denied accurate SexED suffer long-term consequences. […] Talking about fertility clinics and rescue rhetoric highlights anti-choice framing around women’s bodies and wombs . […] | Without context, the model associates foreign-aid criticism with conservative framing . History consistently links family planning/contraception with women’s health and anti-restriction advocacy . |
| Task | Target Text | Gold | With HC | No HC | Selected Historical Language | Why History Helps/Hurts |
| Stance Pred. (Feminism) | So if a women earns money then it’s HERS to KEEP?? #feminismiscruelty | AGAINST | FOR | AGAINST | […] So if a woman earns money then it’s HERS to KEEP?? […] UGH I am SICK to DEATH of this whole women wanting “equality” thing. […] Drawing attention to women’s health issues is framed as evidence that feminism is harmful or cruel . […] A woman wanting to be equal to a man is portrayed as something outrageous and unnatural . […] Feminism is characterized as a hate group rather than an equality movement . […] | History is repetitive and emotionally charged. The model over-indexes on sarcasm/hostile tone , which can flip polarity despite a consistent anti-feminist intent. |
| Stance Pred. (Abortion) | A prochoice advocate but circumcise ur baby? Fucking hypocrite! #circumcision #humanrights | AGAINST | FOR | AGAINST | […] A pro-choice advocate framed as morally hypocritical for supporting circumcision. […] If a man wants abortion but the woman wants to keep it, he should not be responsible for child support . […] Modern feminism is described as irrational and self-serving . […] Violence against women is contrasted with claims that feminism focuses on trivial cultural issues . […] Broader grievances about gender roles dominate the historical context. […] | History spans multiple issues (abortion, feminism, gender roles), causing topic drift . The model generalizes from broader ideology instead of anchoring to the abortion-specific claim . |
| Task | Target Text | Gold | With HC | No HC | Selected Historical Language | Why History Helps/Hurts |
| Review Pred. (Amazon) | If you have a hard time falling asleep, buy this DVD — you won’t regret it . You’ll be asleep before it ends. The only way to see how it ends is to fast forward to the last 10 minutes and you will still not know what the plot is about. Even if you manage to keep your eyes open throughout the entire DVD. | 0.0 | 0.0 | 4.0 | […] I did not care for this movie … reading cost nothing but your time and eyesight … the DVD does not disclose anything more than you can find out for yourself! ( 0.0 ) […] the movie is extremely boring , every scene is predictable … Don’t waste your time like I did. ( 0.0 ) […] this is a very poorly written movie … the preview makes you believe this might be funny — it is far from being funny . ( 0.0 ) […] The most entertaining movie I have seen in a very long time … It is a must see movie. ( 4.0 ) […] The script was well written, the acting superb … one of the funniest movies I’ve seen in a long time. ( 4.0 ) […] | Without historical context, the sarcastic “you won’t regret it” reads as genuine praise. The user’s history shows a consistent pattern where sleep/boredom metaphors co-occur with “extremely boring” and “Don’t waste your time” , clarifying this as a negative review. |
| Review Pred. (Amazon) | What a horrifying movie ! I wish Tim would have gotten an Oscar for this movie. | 4.0 | 4.0 | 0.0 | […] What an all-star cast that all performed excellent ! The ending was great as well. Sean Penn did an incredible job on this film. ( 3.0 ) […] The script was well written , the acting superb ; this movie is one of the funniest I’ve seen in a long time. ( 4.0 ) […] This and Revenge have been Kevin Costner’s best performances . Amazing script, directing, and acting. ( 4.0 ) […] By contrast, clearly negative reviews contain unambiguous dismissal such as “extremely boring” , “don’t waste your time” , and “very poorly written” , all paired with low ratings ( 0–1 ). […] | Without historical context, “horrifying” is treated as a negative cue. The user’s history makes clear that strong sentiment words are not decisive, while consistent emphasis on performance/acting praise aligns with high ratings. |
| Task | Target Text | Gold | With HC | No HC | Selected Historical Language | Why History Helps/Hurts |
| Review Pred. (Amazon) | I have DVD’s from other region zones and PAL DVD’s and they all play on my Blu Ray… why wouldn’t this one? Someone who has gotten this and is playing it on a US Blu Ray player, please respond! | 4.0 | 0.0 | 4.0 | […] I had the soundtrack on Colgems records and loved the music and dialog ; when I saw the movie was on DVD, I grabbed it! Great nostalgia . ( 3.0 ) […] I read people complain that this is long and boring, but this documentary is like no other in rock history . Morrison was a genius , complicated and tortured, and this film opened my eyes . ( 4.0 ) […] | The review is a neutral, practical question about disc compatibility, not a complaint. Without history, the model treats it as informational and predicts a positive rating. With history, the model expects explicit enthusiasm and overcorrects, interpreting the restrained tone as dissatisfaction. |
| Review Pred. (Amazon) | I purchased this new from media_distributors but I made the mistake of not looking at it right away. It looked like it was new and the video was labeled Blonde Crazy… When I played it, it turned out to be Rumpole. I wrote an email to Media Distributors after posting this, and they replaced my video. Outstanding . | 0.0 | 4.0 | 0.0 | […] A collection of way overpriced videos that you can get in bargain bins for $5 each. ( 1.0 ) […] The Alpha version is of very poor video quality , though the underlying film may have been interesting. ( 1.0 ) […] This is not a great film, but it is a fun film and interesting to see Robert Mitchum in his first feature. ( 2.0 ) […] The Alpha version of Millie is exceptional with outstanding print quality . ( 3.0 ) […] | The review reports a shipping error that was resolved, but the overall experience is still framed around a mistake. Without history, the model anchors on the problem-focused content and predicts a low rating. With history, prior instances of praising releases/distributors after logistics make the model overweight a single positive cue (“Outstanding”) and inflate the rating. |
| Task | Target Text | Gold | With HC | No HC | Selected Historical Language | Why History Helps/Hurts |
| Review Pred. (Yelp) | Do you have a heart condition, high cholesterol, diabetes, over-weight, or anything like that? Well, here is your swan song that’s worth the further damage — the Daily Dog at Lady Di’s. A deep fried hot dog stuffed with gooey cheese, wrapped in crispy bacon. Eat one, you’ll find nirvana. Eat two, you’ll find the ER . | 4.0 | 4.0 | 0.0 | […] Oh dear laaawd! That cheeseburger on a pretzel bun with onion straws — are you kidding me?!? ( 3.0 ) […] Fast food is standard everywhere, but this Taco Bell always gets the order wrong. Mexican pizza with tomatoes and no cheese instead. ( 1.0 ) […] Chuck E Cheese has mediocre pizza, dirty salad bars, and chaos everywhere. This place has it all — and not in a good way. ( 0.0 ) […] | In isolation, the exaggerated health warnings ( “ER” , “damage” ) read as criticism. The user’s history shows that this kind of sarcastic, over-the-top storytelling is how they express strong approval. With context, the humor and sensory detail signal a positive experience rather than a complaint. |
| Review Pred. (Yelp) | Hey Megabus, guess where I am right now? Yeah, that’s right — I’m on Bolt Bus writing a review because Bolt Bus actually gave me the wifi they promised me . Megabus, you are always Megalate, Megarude, and I will not be taking you anymore. | 0.0 | 0.0 | 4.0 | […] Their service is terrible ! I will NEVER recommend them to anyone. ( 0.0 ) […] I’m giving this place 3 stars because of their horrible service . The bagels are great, but the service leaves a bad taste. ( 2.0 ) […] I really wanted to enjoy the food and service, but they fell short in both. ( 1.0 ) […] This truly is the best pizza ever! Everything tastes fresh and the staff are inviting. ( 4.0 ) […] | Without historical context, the review reads as enthusiastic because it highlights concrete benefits ( wifi ) and praises a competitor, leading to a positive prediction. In the user’s history, genuine positives are direct and unambiguous, while sarcastic, insult-heavy rants like this one consistently map to 0-star ratings, disambiguating the intent as negative. |
| Task | Target Text | Gold | With HC | No HC | Selected Historical Language | Why History Helps/Hurts |
| Review Pred. (Yelp) | I’ve never had Chinese food before, and thought to myself after the first bite, “wow this tastes like it was just cooked for me.” This is the experience we had not once but every time we have ordered from Lingnan. | 4.0 | 1.0 | 4.0 | […] The first thing that made me decide I would never eat here was the smell and the condition of their kitchen. I was gagging . ( 0.0 ) […] We were appalled to find they didn’t offer refried beans. We never ended up eating anything . ( 1.0 ) […] This place must be stuck in the early 90’s . No debit, overpriced ATM — no thanks . ( 1.0 ) […] Despite the flies and pricing, the pulled pork sandwich was great, but a lot really pissed me off . ( 2.0 ) […] | The review is clearly positive, with direct praise and repeated satisfaction . Without history, the model follows this surface sentiment. With history, frequent complaint-heavy reviews set a low baseline, causing the model to discount brief praise and predict too low. |
| Review Pred. (Yelp) | I love this place for some late night eats. I would drive past Viva Burrito and go to El Potosino because they have bigger and better burritos. Viva is dirty and the employees are lazy, but El Potosino has great California burritos with guacamole and is one of the best late night eats for the price, quantity, and quality . | 3.0 | 1.0 | 3.0 | […] I don’t understand why people still come to this restaurant — the food has gone downhill and is overpriced . ( 1.0 ) […] Fast and ok, but the new items were soggy and I wouldn’t recommend them. ( 2.0 ) […] This place is terrible . Bad service, bad food — I wouldn’t recommend it at all . ( 0.0 ) […] I do love this place, but the service is terrible and there’s no urgency . ( 0.0 ) […] | The user criticizes one restaurant but is clearly endorsing another . Without history, the model follows that intent. With history, frequent past complaints make the model overreact to negative words and overlook the recommendation . |
| Task | Target Text | Gold | With HC | No HC | Selected Historical Language | Why History Helps/Hurts |
| Occ | “People talk about all this unused potential in the world, but the greatest untapped power is the human mind…” [TFT → Arts] […] “Language is fascinating — the brain doesn’t process words the way we think it does.” [TFT → Arts] […] “If we limit what ideas people are exposed to, we limit the future itself.” [TFT → Arts] […] "… homeward bound :: need my hermit shell back ::" [TFT → Technology] | Tech | Tech | Arts ["Arts", 35, "Tech.", 24, "Student", 13, "Comm.-Media", 6, "Edu", 4] | i am mack, i will some day become great […] People talk about unused CPU power […] the human brain […] Discussion of banning evolution from science classes […] Reactions to NASA discoveries and scientific progress […] homeward bound :: need my hermit shell back […] | Without history, expressive and philosophical phrasing is easy to read as artistic or abstract writing . Across the user’s history, repeated references to computing metaphors , science education , and technology–policy reasoning clarify a technology-oriented mindset rather than an arts identity. |
| Occ | “Played Doom III with Bob yesterday from 2:00 until dark. At one point I noticed strange twinkling lights coming from the bottom of his blinds. Turns out it was the sun. We had no idea what time it was.” [TFT → Tech.] […] “Now I’m off to Future Shop . The Zoom button on my camera has become stuck, and I need it repaired. Wish me luck.” [TFT → Tech.] […] “The last few days of school annoy me. Monday and Tuesday are the last official days, but attendance is extremely sporadic — people would much rather study for exams or play in the sun than sit in classes. Besides, the teachers have all but given up teaching; classes consist of movies, maybe a pretest or two.” [TFT → Student] […] | Student | Student | Tech ["Tech.", 25, "Student", 17, "Edu.", 17, "Arts", 14, "Comm.-Media", 10] | Last official day of school […] had a chemistry final […] Success in my math final and biology provincial […] Currently very pleased with Future Shop […] Classes are completely done […] Exams start tomorrow […] play some Super Nintendo […] | Without broader history, isolated mentions of tools or hobbies push the prediction toward Technology . The full history shows a consistent focus on classes , exams , and academic routines , establishing a clear student-centered identity. |
| Task | Target Text | Gold | With HC | No HC | Selected Historical Language | Why History Helps/Hurts |
| Occ. | Tech. | Student | Tech. | study F.6 … subjects choices are: Physics, Biology / Pure Mathematics , Computer Studies … A-level syllabus is very demanding […] release of HKCEE result … procedure for applying F.6 […] had a chemistry final … success in my math final […] decided to write a polling web page using ASP.NET … learned stored procedures for SQL Server […] downloaded Visual C# Express … mixing .NET and native code […] | The history mixes strong school-centered signals (exams, subject selection, results) with clear hands-on technical work . When history is used, the model overweights repeated school references and collapses the user into a Student identity. Without history, it relies more on concrete development activity ( ASP.NET, C#, SQL ), aligning better with Tech. . | |
| Occ. | Student | Tech. | Student | 3rd party web browser for any modded Xbox […] HTML 4.0 support, HTTP 1.1, Javascript support […] prefer Mozilla/Firefox within Xbox Linux […] stand-alone app launchable from any dashboard […] Xbox modding tutorials […] release date of Microsoft Windows XP Service Pack 2 […] played around with technical betas […] security dashboard, spyware, pop-ups […] Ok so you wana play HALO xbox online […] step-by-step setup instructions […] simple and easy to use , free app […] learning-oriented walkthrough […] Really cool forum of a friend of mine […] perfect if you’re into halo […] sharing screenshots and experiments […] curiosity-driven tinkering rather than deployment […] | The history contains many advanced technical terms and tools , which makes the user appear professionally technology-oriented. However, these posts are mostly framed around learning, gaming, and experimentation , with tutorial-style explanations and hobbyist motivation. Using history amplifies the technical surface cues and misleads the prediction away from the user’s true role as a Student . |
Language Modeling
Language modeling develops systems that learn patterns in text and other sequences to understand, predict, and generate language.
See all 498 papers